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.SetMergeCodeListRequest;

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

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

        private static volatile SetMergeCodeList_Response[] _emptyArray;

        public SetMergeCodeListRequest.SetMergeCodeList_Request input;

        public SetMergeCodeList_Response() {
            clear();
        }

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

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

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

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            SetMergeCodeListRequest.SetMergeCodeList_Request setMergeCodeList_Request = this.input;
            if (setMergeCodeList_Request != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(1, setMergeCodeList_Request);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            SetMergeCodeListRequest.SetMergeCodeList_Request setMergeCodeList_Request = this.input;
            if (setMergeCodeList_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, setMergeCodeList_Request);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SetMergeCodeList_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 SetMergeCodeListRequest.SetMergeCodeList_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
