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

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

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

        private static volatile OrderEntrust_Response[] _emptyArray;

        private int bitField0_;

        private long entrustNo_;

        public OrderEntrustRequest.OrderEntrust_Request requestParam;

        private String showMsg_;

        public OrderEntrust_Response() {
            clear();
        }

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

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

        public OrderEntrust_Response clear() {
            this.bitField0_ = 0;
            this.requestParam = null;
            this.entrustNo_ = 0;
            this.showMsg_ = "";
            this.cachedSize = -1;
            return this;
        }

        public OrderEntrust_Response clearEntrustNo() {
            this.entrustNo_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public OrderEntrust_Response clearShowMsg() {
            this.showMsg_ = "";
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            OrderEntrustRequest.OrderEntrust_Request orderEntrust_Request = this.requestParam;
            if (orderEntrust_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, orderEntrust_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(2, this.entrustNo_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(3, this.showMsg_);
            }
            return computeSerializedSize;
        }

        public long getEntrustNo() {
            return this.entrustNo_;
        }

        public String getShowMsg() {
            return this.showMsg_;
        }

        public boolean hasEntrustNo() {
            if ((this.bitField0_ & 1) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasShowMsg() {
            if ((this.bitField0_ & 2) != 0) {
                return true;
            }
            return false;
        }

        public OrderEntrust_Response setEntrustNo(long j10) {
            this.entrustNo_ = j10;
            this.bitField0_ |= 1;
            return this;
        }

        public OrderEntrust_Response setShowMsg(String str) {
            str.getClass();
            this.showMsg_ = str;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            OrderEntrustRequest.OrderEntrust_Request orderEntrust_Request = this.requestParam;
            if (orderEntrust_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, orderEntrust_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt64(2, this.entrustNo_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeString(3, this.showMsg_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public OrderEntrust_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 OrderEntrustRequest.OrderEntrust_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParam);
                } else if (readTag == 16) {
                    this.entrustNo_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 1;
                } else if (readTag == 26) {
                    this.showMsg_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
