package nano;

import com.google.protobuf.nano.CodedInputByteBufferNano;
import com.google.protobuf.nano.CodedOutputByteBufferNano;
import com.google.protobuf.nano.InternalNano;
import com.google.protobuf.nano.InvalidProtocolBufferNanoException;
import com.google.protobuf.nano.MessageNano;
import com.google.protobuf.nano.WireFormatNano;
import java.io.IOException;
import nano.SetPortfolioFollowsRequest;

/* compiled from: TbsSdkJava */
public interface SetPortfolioFollowsResponse {

    /* compiled from: TbsSdkJava */
    public static final class SetPortfolioFollows_Response extends MessageNano {

        private static volatile SetPortfolioFollows_Response[] _emptyArray;

        private int bitField0_;

        private int followsCount_;

        public SetPortfolioFollowsRequest.SetPortfolioFollows_Request requestParams;

        public SetPortfolioFollows_Response() {
            clear();
        }

        public static SetPortfolioFollows_Response[] emptyArray() {
            if (_emptyArray == null) {
                synchronized (InternalNano.LAZY_INIT_LOCK) {
                    try {
                        if (_emptyArray == null) {
                            _emptyArray = new SetPortfolioFollows_Response[0];
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
            }
            return _emptyArray;
        }

        public static SetPortfolioFollows_Response parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException {
            return (SetPortfolioFollows_Response) MessageNano.mergeFrom(new SetPortfolioFollows_Response(), bArr);
        }

        public SetPortfolioFollows_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.followsCount_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public SetPortfolioFollows_Response clearFollowsCount() {
            this.followsCount_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            SetPortfolioFollowsRequest.SetPortfolioFollows_Request setPortfolioFollows_Request = this.requestParams;
            if (setPortfolioFollows_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, setPortfolioFollows_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(2, this.followsCount_);
            }
            return computeSerializedSize;
        }

        public int getFollowsCount() {
            return this.followsCount_;
        }

        public boolean hasFollowsCount() {
            if ((this.bitField0_ & 1) != 0) {
                return true;
            }
            return false;
        }

        public SetPortfolioFollows_Response setFollowsCount(int i10) {
            this.followsCount_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            SetPortfolioFollowsRequest.SetPortfolioFollows_Request setPortfolioFollows_Request = this.requestParams;
            if (setPortfolioFollows_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, setPortfolioFollows_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.followsCount_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

        public static SetPortfolioFollows_Response parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            return new SetPortfolioFollows_Response().mergeFrom(codedInputByteBufferNano);
        }

        public SetPortfolioFollows_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new SetPortfolioFollowsRequest.SetPortfolioFollows_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 16) {
                    this.followsCount_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
