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

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

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

        private static volatile CancelEntrust_Response[] _emptyArray;

        public CancelEntrustRequest.CancelEntrust_Request requestParam;

        public CancelEntrust_Response() {
            clear();
        }

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

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

        public CancelEntrust_Response clear() {
            this.requestParam = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            CancelEntrustRequest.CancelEntrust_Request cancelEntrust_Request = this.requestParam;
            if (cancelEntrust_Request != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(1, cancelEntrust_Request);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            CancelEntrustRequest.CancelEntrust_Request cancelEntrust_Request = this.requestParam;
            if (cancelEntrust_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, cancelEntrust_Request);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public CancelEntrust_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParam == null) {
                        this.requestParam = new CancelEntrustRequest.CancelEntrust_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParam);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
