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

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

        private static volatile StrategyStock_Request[] _emptyArray;

        private int bitField0_;

        public StrategyStock_Default[] strategy;

        private String token_;

        private int uid_;

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

            private static volatile StrategyStock_Default[] _emptyArray;

            private int bitField0_;

            private int days_;

            private int gid_;

            private int sid_;

            public StrategyStock_Default() {
                clear();
            }

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

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

            public StrategyStock_Default clear() {
                this.bitField0_ = 0;
                this.days_ = 0;
                this.sid_ = 0;
                this.gid_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public StrategyStock_Default clearDays() {
                this.days_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public StrategyStock_Default clearGid() {
                this.gid_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public StrategyStock_Default clearSid() {
                this.sid_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(1, this.days_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.sid_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.gid_);
                }
                return computeSerializedSize;
            }

            public int getDays() {
                return this.days_;
            }

            public int getGid() {
                return this.gid_;
            }

            public int getSid() {
                return this.sid_;
            }

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

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

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

            public StrategyStock_Default setDays(int i10) {
                this.days_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public StrategyStock_Default setGid(int i10) {
                this.gid_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public StrategyStock_Default setSid(int i10) {
                this.sid_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt32(1, this.days_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.sid_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.gid_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public StrategyStock_Default mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.days_ = codedInputByteBufferNano.readInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.sid_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.gid_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public StrategyStock_Request() {
            clear();
        }

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

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

        public StrategyStock_Request clear() {
            this.bitField0_ = 0;
            this.token_ = "";
            this.uid_ = 0;
            this.strategy = StrategyStock_Default.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        public StrategyStock_Request clearToken() {
            this.token_ = "";
            this.bitField0_ &= -2;
            return this;
        }

        public StrategyStock_Request clearUid() {
            this.uid_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(1, this.token_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.uid_);
            }
            StrategyStock_Default[] strategyStock_DefaultArr = this.strategy;
            if (strategyStock_DefaultArr != null && strategyStock_DefaultArr.length > 0) {
                int i10 = 0;
                while (true) {
                    StrategyStock_Default[] strategyStock_DefaultArr2 = this.strategy;
                    if (i10 >= strategyStock_DefaultArr2.length) {
                        break;
                    }
                    StrategyStock_Default strategyStock_Default = strategyStock_DefaultArr2[i10];
                    if (strategyStock_Default != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, strategyStock_Default);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public String getToken() {
            return this.token_;
        }

        public int getUid() {
            return this.uid_;
        }

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

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

        public StrategyStock_Request setToken(String str) {
            str.getClass();
            this.token_ = str;
            this.bitField0_ |= 1;
            return this;
        }

        public StrategyStock_Request setUid(int i10) {
            this.uid_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeString(1, this.token_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.uid_);
            }
            StrategyStock_Default[] strategyStock_DefaultArr = this.strategy;
            if (strategyStock_DefaultArr != null && strategyStock_DefaultArr.length > 0) {
                int i10 = 0;
                while (true) {
                    StrategyStock_Default[] strategyStock_DefaultArr2 = this.strategy;
                    if (i10 >= strategyStock_DefaultArr2.length) {
                        break;
                    }
                    StrategyStock_Default strategyStock_Default = strategyStock_DefaultArr2[i10];
                    if (strategyStock_Default != null) {
                        codedOutputByteBufferNano.writeMessage(3, strategyStock_Default);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public StrategyStock_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    this.token_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.uid_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 26) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 26);
                    StrategyStock_Default[] strategyStock_DefaultArr = this.strategy;
                    int length = strategyStock_DefaultArr == null ? 0 : strategyStock_DefaultArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    StrategyStock_Default[] strategyStock_DefaultArr2 = new StrategyStock_Default[i10];
                    if (length != 0) {
                        System.arraycopy(strategyStock_DefaultArr, 0, strategyStock_DefaultArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        StrategyStock_Default strategyStock_Default = new StrategyStock_Default();
                        strategyStock_DefaultArr2[length] = strategyStock_Default;
                        codedInputByteBufferNano.readMessage(strategyStock_Default);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    StrategyStock_Default strategyStock_Default2 = new StrategyStock_Default();
                    strategyStock_DefaultArr2[length] = strategyStock_Default2;
                    codedInputByteBufferNano.readMessage(strategyStock_Default2);
                    this.strategy = strategyStock_DefaultArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
