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 MinutePreviewRequest {

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

        private static volatile MinutePreview_Request[] _emptyArray;

        private int bitField0_;

        public MinuteParam[] input;

        private int size_;

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

            private static volatile MinuteParam[] _emptyArray;

            private int bitField0_;

            private int indexId_;

            private boolean noLine_;

            private int tradeDate_;

            private int trendTime_;

            public MinuteParam() {
                clear();
            }

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

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

            public MinuteParam clear() {
                this.bitField0_ = 0;
                this.indexId_ = 0;
                this.tradeDate_ = 0;
                this.trendTime_ = 0;
                this.noLine_ = false;
                this.cachedSize = -1;
                return this;
            }

            public MinuteParam clearIndexId() {
                this.indexId_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public MinuteParam clearNoLine() {
                this.noLine_ = false;
                this.bitField0_ &= -9;
                return this;
            }

            public MinuteParam clearTradeDate() {
                this.tradeDate_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public MinuteParam clearTrendTime() {
                this.trendTime_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.indexId_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.tradeDate_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.trendTime_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeBoolSize(5, this.noLine_);
                }
                return computeSerializedSize;
            }

            public int getIndexId() {
                return this.indexId_;
            }

            public boolean getNoLine() {
                return this.noLine_;
            }

            public int getTradeDate() {
                return this.tradeDate_;
            }

            public int getTrendTime() {
                return this.trendTime_;
            }

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

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

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

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

            public MinuteParam setIndexId(int i10) {
                this.indexId_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public MinuteParam setNoLine(boolean z9) {
                this.noLine_ = z9;
                this.bitField0_ |= 8;
                return this;
            }

            public MinuteParam setTradeDate(int i10) {
                this.tradeDate_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public MinuteParam setTrendTime(int i10) {
                this.trendTime_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.indexId_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.tradeDate_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.trendTime_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeBool(5, this.noLine_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public MinuteParam mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.indexId_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.tradeDate_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 32) {
                        this.trendTime_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 40) {
                        this.noLine_ = codedInputByteBufferNano.readBool();
                        this.bitField0_ |= 8;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public MinutePreview_Request() {
            clear();
        }

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

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

        public MinutePreview_Request clear() {
            this.bitField0_ = 0;
            this.input = MinuteParam.emptyArray();
            this.size_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public MinutePreview_Request clearSize() {
            this.size_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            MinuteParam[] minuteParamArr = this.input;
            if (minuteParamArr != null && minuteParamArr.length > 0) {
                int i10 = 0;
                while (true) {
                    MinuteParam[] minuteParamArr2 = this.input;
                    if (i10 >= minuteParamArr2.length) {
                        break;
                    }
                    MinuteParam minuteParam = minuteParamArr2[i10];
                    if (minuteParam != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, minuteParam);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(2, this.size_);
            }
            return computeSerializedSize;
        }

        public int getSize() {
            return this.size_;
        }

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

        public MinutePreview_Request setSize(int i10) {
            this.size_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            MinuteParam[] minuteParamArr = this.input;
            if (minuteParamArr != null && minuteParamArr.length > 0) {
                int i10 = 0;
                while (true) {
                    MinuteParam[] minuteParamArr2 = this.input;
                    if (i10 >= minuteParamArr2.length) {
                        break;
                    }
                    MinuteParam minuteParam = minuteParamArr2[i10];
                    if (minuteParam != null) {
                        codedOutputByteBufferNano.writeMessage(1, minuteParam);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.size_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public MinutePreview_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 10);
                    MinuteParam[] minuteParamArr = this.input;
                    int length = minuteParamArr == null ? 0 : minuteParamArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    MinuteParam[] minuteParamArr2 = new MinuteParam[i10];
                    if (length != 0) {
                        System.arraycopy(minuteParamArr, 0, minuteParamArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        MinuteParam minuteParam = new MinuteParam();
                        minuteParamArr2[length] = minuteParam;
                        codedInputByteBufferNano.readMessage(minuteParam);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    MinuteParam minuteParam2 = new MinuteParam();
                    minuteParamArr2[length] = minuteParam2;
                    codedInputByteBufferNano.readMessage(minuteParam2);
                    this.input = minuteParamArr2;
                } else if (readTag == 16) {
                    this.size_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
