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

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

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

        private static volatile SetOperationRecord_Response[] _emptyArray;

        public SetOperationRecordRequest.SetOperationRecord_Request input;

        public SetOperationRecord_Response() {
            clear();
        }

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

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

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

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

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            SetOperationRecordRequest.SetOperationRecord_Request setOperationRecord_Request = this.input;
            if (setOperationRecord_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, setOperationRecord_Request);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

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