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

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

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

        private static volatile TimeStatus_Response[] _emptyArray;

        private int bitField0_;

        private int marketDate_;

        private int marketTime_;

        public TimeStatusRequest.TimeStatus_Request requestParams;

        private long systemTimestamp_;

        private int tradeStatus_;

        public TimeStatus_Response() {
            clear();
        }

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

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

        public TimeStatus_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.tradeStatus_ = 0;
            this.marketDate_ = 0;
            this.marketTime_ = 0;
            this.systemTimestamp_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public TimeStatus_Response clearMarketDate() {
            this.marketDate_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public TimeStatus_Response clearMarketTime() {
            this.marketTime_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public TimeStatus_Response clearSystemTimestamp() {
            this.systemTimestamp_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public TimeStatus_Response clearTradeStatus() {
            this.tradeStatus_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            TimeStatusRequest.TimeStatus_Request timeStatus_Request = this.requestParams;
            if (timeStatus_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, timeStatus_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.tradeStatus_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.marketDate_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.marketTime_);
            }
            if ((this.bitField0_ & 8) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt64Size(5, this.systemTimestamp_);
            }
            return computeSerializedSize;
        }

        public int getMarketDate() {
            return this.marketDate_;
        }

        public int getMarketTime() {
            return this.marketTime_;
        }

        public long getSystemTimestamp() {
            return this.systemTimestamp_;
        }

        public int getTradeStatus() {
            return this.tradeStatus_;
        }

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

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

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

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

        public TimeStatus_Response setMarketDate(int i10) {
            this.marketDate_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public TimeStatus_Response setMarketTime(int i10) {
            this.marketTime_ = i10;
            this.bitField0_ |= 4;
            return this;
        }

        public TimeStatus_Response setSystemTimestamp(long j10) {
            this.systemTimestamp_ = j10;
            this.bitField0_ |= 8;
            return this;
        }

        public TimeStatus_Response setTradeStatus(int i10) {
            this.tradeStatus_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            TimeStatusRequest.TimeStatus_Request timeStatus_Request = this.requestParams;
            if (timeStatus_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, timeStatus_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.tradeStatus_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.marketDate_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.marketTime_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt64(5, this.systemTimestamp_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public TimeStatus_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new TimeStatusRequest.TimeStatus_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 16) {
                    this.tradeStatus_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 24) {
                    this.marketDate_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 32) {
                    this.marketTime_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 4;
                } else if (readTag == 40) {
                    this.systemTimestamp_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 8;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
