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;

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

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

        private static volatile CandleStick_Request[] _emptyArray;

        private long beginPosition_;

        private int bitField0_;

        private int dataPeriod_;

        private int exFlag_;

        private int goodsId_;

        private long lastVolume_;

        private long limitSize_;

        private boolean reqFhsp_;

        private boolean reqHisShares_;

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

            public static final int BACKWARD = 2;

            public static final int FORWARD = 0;

            public static final int FORWARDZDF = 3;

            public static final int NONE = 1;
        }

        public CandleStick_Request() {
            clear();
        }

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

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

        public CandleStick_Request clear() {
            this.bitField0_ = 0;
            this.goodsId_ = 0;
            this.beginPosition_ = 0;
            this.limitSize_ = 0;
            this.dataPeriod_ = 0;
            this.exFlag_ = 0;
            this.lastVolume_ = 0;
            this.reqHisShares_ = false;
            this.reqFhsp_ = false;
            this.cachedSize = -1;
            return this;
        }

        public CandleStick_Request clearBeginPosition() {
            this.beginPosition_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public CandleStick_Request clearDataPeriod() {
            this.dataPeriod_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public CandleStick_Request clearExFlag() {
            this.exFlag_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        public CandleStick_Request clearGoodsId() {
            this.goodsId_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public CandleStick_Request clearLastVolume() {
            this.lastVolume_ = 0;
            this.bitField0_ &= -33;
            return this;
        }

        public CandleStick_Request clearLimitSize() {
            this.limitSize_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public CandleStick_Request clearReqFhsp() {
            this.reqFhsp_ = false;
            this.bitField0_ &= -129;
            return this;
        }

        public CandleStick_Request clearReqHisShares() {
            this.reqHisShares_ = false;
            this.bitField0_ &= -65;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.goodsId_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.beginPosition_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.limitSize_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.dataPeriod_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(5, this.exFlag_);
            }
            if ((this.bitField0_ & 32) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(6, this.lastVolume_);
            }
            if ((this.bitField0_ & 64) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeBoolSize(7, this.reqHisShares_);
            }
            if ((this.bitField0_ & 128) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeBoolSize(8, this.reqFhsp_);
            }
            return computeSerializedSize;
        }

        public long getBeginPosition() {
            return this.beginPosition_;
        }

        public int getDataPeriod() {
            return this.dataPeriod_;
        }

        public int getExFlag() {
            return this.exFlag_;
        }

        public int getGoodsId() {
            return this.goodsId_;
        }

        public long getLastVolume() {
            return this.lastVolume_;
        }

        public long getLimitSize() {
            return this.limitSize_;
        }

        public boolean getReqFhsp() {
            return this.reqFhsp_;
        }

        public boolean getReqHisShares() {
            return this.reqHisShares_;
        }

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

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

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

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

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

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

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

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

        public CandleStick_Request setBeginPosition(long j10) {
            this.beginPosition_ = j10;
            this.bitField0_ |= 2;
            return this;
        }

        public CandleStick_Request setDataPeriod(int i10) {
            this.dataPeriod_ = i10;
            this.bitField0_ |= 8;
            return this;
        }

        public CandleStick_Request setExFlag(int i10) {
            this.exFlag_ = i10;
            this.bitField0_ |= 16;
            return this;
        }

        public CandleStick_Request setGoodsId(int i10) {
            this.goodsId_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public CandleStick_Request setLastVolume(long j10) {
            this.lastVolume_ = j10;
            this.bitField0_ |= 32;
            return this;
        }

        public CandleStick_Request setLimitSize(long j10) {
            this.limitSize_ = j10;
            this.bitField0_ |= 4;
            return this;
        }

        public CandleStick_Request setReqFhsp(boolean z9) {
            this.reqFhsp_ = z9;
            this.bitField0_ |= 128;
            return this;
        }

        public CandleStick_Request setReqHisShares(boolean z9) {
            this.reqHisShares_ = z9;
            this.bitField0_ |= 64;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(1, this.goodsId_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeInt64(2, this.beginPosition_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeInt64(3, this.limitSize_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.dataPeriod_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeInt32(5, this.exFlag_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeUInt64(6, this.lastVolume_);
            }
            if ((this.bitField0_ & 64) != 0) {
                codedOutputByteBufferNano.writeBool(7, this.reqHisShares_);
            }
            if ((this.bitField0_ & 128) != 0) {
                codedOutputByteBufferNano.writeBool(8, this.reqFhsp_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public CandleStick_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.goodsId_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.beginPosition_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.limitSize_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 4;
                } else if (readTag == 32) {
                    this.dataPeriod_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 8;
                } else if (readTag == 40) {
                    int readInt32 = codedInputByteBufferNano.readInt32();
                    if (readInt32 == 0 || readInt32 == 1 || readInt32 == 2 || readInt32 == 3) {
                        this.exFlag_ = readInt32;
                        this.bitField0_ |= 16;
                    }
                } else if (readTag == 48) {
                    this.lastVolume_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 32;
                } else if (readTag == 56) {
                    this.reqHisShares_ = codedInputByteBufferNano.readBool();
                    this.bitField0_ |= 64;
                } else if (readTag == 64) {
                    this.reqFhsp_ = codedInputByteBufferNano.readBool();
                    this.bitField0_ |= 128;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
