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.StrategyCompositionRequest;
import nano.StrategyStockResponse;

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

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

        private static volatile StrategyComposition_Response[] _emptyArray;

        private int bitField0_;

        public StrategyCompositionRequest.StrategyComposition_Request inputParam;

        public StrategyStockResponse.StrategyStock_Response.StrategyStock_Detail outputParam;

        private int totalSize_;

        private int tradeDate_;

        public StrategyComposition_Response() {
            clear();
        }

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

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

        public StrategyComposition_Response clear() {
            this.bitField0_ = 0;
            this.inputParam = null;
            this.outputParam = null;
            this.totalSize_ = 0;
            this.tradeDate_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public StrategyComposition_Response clearTotalSize() {
            this.totalSize_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public StrategyComposition_Response clearTradeDate() {
            this.tradeDate_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            StrategyCompositionRequest.StrategyComposition_Request strategyComposition_Request = this.inputParam;
            if (strategyComposition_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, strategyComposition_Request);
            }
            StrategyStockResponse.StrategyStock_Response.StrategyStock_Detail strategyStock_Detail = this.outputParam;
            if (strategyStock_Detail != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, strategyStock_Detail);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.totalSize_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(4, this.tradeDate_);
            }
            return computeSerializedSize;
        }

        public int getTotalSize() {
            return this.totalSize_;
        }

        public int getTradeDate() {
            return this.tradeDate_;
        }

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

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

        public StrategyComposition_Response setTotalSize(int i10) {
            this.totalSize_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public StrategyComposition_Response setTradeDate(int i10) {
            this.tradeDate_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            StrategyCompositionRequest.StrategyComposition_Request strategyComposition_Request = this.inputParam;
            if (strategyComposition_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, strategyComposition_Request);
            }
            StrategyStockResponse.StrategyStock_Response.StrategyStock_Detail strategyStock_Detail = this.outputParam;
            if (strategyStock_Detail != null) {
                codedOutputByteBufferNano.writeMessage(2, strategyStock_Detail);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.totalSize_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.tradeDate_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public StrategyComposition_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.inputParam == null) {
                        this.inputParam = new StrategyCompositionRequest.StrategyComposition_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.inputParam);
                } else if (readTag == 18) {
                    if (this.outputParam == null) {
                        this.outputParam = new StrategyStockResponse.StrategyStock_Response.StrategyStock_Detail();
                    }
                    codedInputByteBufferNano.readMessage(this.outputParam);
                } else if (readTag == 24) {
                    this.totalSize_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 32) {
                    this.tradeDate_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
