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.PickStockResponse;
import nano.SpecialStockRequest;

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

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

        private static volatile SpecialStock_Response[] _emptyArray;

        public SpecialStockRequest.SpecialStock_Request input;

        public PickStockResponse.PickStock_Response output;

        public SpecialStock_Response() {
            clear();
        }

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

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

        public SpecialStock_Response clear() {
            this.input = null;
            this.output = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            SpecialStockRequest.SpecialStock_Request specialStock_Request = this.input;
            if (specialStock_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, specialStock_Request);
            }
            PickStockResponse.PickStock_Response pickStock_Response = this.output;
            if (pickStock_Response != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, pickStock_Response);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            SpecialStockRequest.SpecialStock_Request specialStock_Request = this.input;
            if (specialStock_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, specialStock_Request);
            }
            PickStockResponse.PickStock_Response pickStock_Response = this.output;
            if (pickStock_Response != null) {
                codedOutputByteBufferNano.writeMessage(2, pickStock_Response);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SpecialStock_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.input == null) {
                        this.input = new SpecialStockRequest.SpecialStock_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    if (this.output == null) {
                        this.output = new PickStockResponse.PickStock_Response();
                    }
                    codedInputByteBufferNano.readMessage(this.output);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
