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.PickStockRequest;
import nano.StrategySelectionRequest;

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

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

        private static volatile PickStrategy_Request[] _emptyArray;

        public PickStockRequest.PickStock_Request pick;

        public StrategySelectionRequest.StrategySelection_Request strategy;

        public PickStrategy_Request() {
            clear();
        }

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

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

        public PickStrategy_Request clear() {
            this.pick = null;
            this.strategy = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            PickStockRequest.PickStock_Request pickStock_Request = this.pick;
            if (pickStock_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, pickStock_Request);
            }
            StrategySelectionRequest.StrategySelection_Request strategySelection_Request = this.strategy;
            if (strategySelection_Request != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, strategySelection_Request);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            PickStockRequest.PickStock_Request pickStock_Request = this.pick;
            if (pickStock_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, pickStock_Request);
            }
            StrategySelectionRequest.StrategySelection_Request strategySelection_Request = this.strategy;
            if (strategySelection_Request != null) {
                codedOutputByteBufferNano.writeMessage(2, strategySelection_Request);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public PickStrategy_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.pick == null) {
                        this.pick = new PickStockRequest.PickStock_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.pick);
                } else if (readTag == 18) {
                    if (this.strategy == null) {
                        this.strategy = new StrategySelectionRequest.StrategySelection_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.strategy);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
