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

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

        private static volatile SetAlarm_Request[] _emptyArray;

        public Goods_Condition[] alarm;

        private int bitField0_;

        private int product_;

        private String token_;

        private String user_;

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

            private static volatile Goods_Condition[] _emptyArray;

            private int bitField0_;

            public Condition[] cond;

            private int id_;

            private int once_;

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

                private static volatile Condition[] _emptyArray;

                private int bitField0_;

                private String key_;

                private long value_;

                public Condition() {
                    clear();
                }

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

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

                public Condition clear() {
                    this.bitField0_ = 0;
                    this.key_ = "";
                    this.value_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public Condition clearKey() {
                    this.key_ = "";
                    this.bitField0_ &= -2;
                    return this;
                }

                public Condition clearValue() {
                    this.value_ = 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.key_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(2, this.value_);
                    }
                    return computeSerializedSize;
                }

                public String getKey() {
                    return this.key_;
                }

                public long getValue() {
                    return this.value_;
                }

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

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

                public Condition setKey(String str) {
                    str.getClass();
                    this.key_ = str;
                    this.bitField0_ |= 1;
                    return this;
                }

                public Condition setValue(long j10) {
                    this.value_ = j10;
                    this.bitField0_ |= 2;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeString(1, this.key_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeInt64(2, this.value_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public Condition mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 10) {
                            this.key_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 1;
                        } else if (readTag == 16) {
                            this.value_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 2;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public Goods_Condition() {
                clear();
            }

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

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

            public Goods_Condition clear() {
                this.bitField0_ = 0;
                this.id_ = 0;
                this.cond = Condition.emptyArray();
                this.once_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public Goods_Condition clearId() {
                this.id_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public Goods_Condition clearOnce() {
                this.once_ = 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.computeUInt32Size(1, this.id_);
                }
                Condition[] conditionArr = this.cond;
                if (conditionArr != null && conditionArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        Condition[] conditionArr2 = this.cond;
                        if (i10 >= conditionArr2.length) {
                            break;
                        }
                        Condition condition = conditionArr2[i10];
                        if (condition != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, condition);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.once_);
                }
                return computeSerializedSize;
            }

            public int getId() {
                return this.id_;
            }

            public int getOnce() {
                return this.once_;
            }

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

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

            public Goods_Condition setId(int i10) {
                this.id_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public Goods_Condition setOnce(int i10) {
                this.once_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.id_);
                }
                Condition[] conditionArr = this.cond;
                if (conditionArr != null && conditionArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        Condition[] conditionArr2 = this.cond;
                        if (i10 >= conditionArr2.length) {
                            break;
                        }
                        Condition condition = conditionArr2[i10];
                        if (condition != null) {
                            codedOutputByteBufferNano.writeMessage(2, condition);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.once_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Goods_Condition mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.id_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        Condition[] conditionArr = this.cond;
                        int length = conditionArr == null ? 0 : conditionArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        Condition[] conditionArr2 = new Condition[i10];
                        if (length != 0) {
                            System.arraycopy(conditionArr, 0, conditionArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            Condition condition = new Condition();
                            conditionArr2[length] = condition;
                            codedInputByteBufferNano.readMessage(condition);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        Condition condition2 = new Condition();
                        conditionArr2[length] = condition2;
                        codedInputByteBufferNano.readMessage(condition2);
                        this.cond = conditionArr2;
                    } else if (readTag == 24) {
                        this.once_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public SetAlarm_Request() {
            clear();
        }

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

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

        public SetAlarm_Request clear() {
            this.bitField0_ = 0;
            this.token_ = "";
            this.user_ = "";
            this.product_ = 0;
            this.alarm = Goods_Condition.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        public SetAlarm_Request clearProduct() {
            this.product_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

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

        public SetAlarm_Request clearUser() {
            this.user_ = "";
            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.computeStringSize(2, this.user_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.product_);
            }
            Goods_Condition[] goods_ConditionArr = this.alarm;
            if (goods_ConditionArr != null && goods_ConditionArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Goods_Condition[] goods_ConditionArr2 = this.alarm;
                    if (i10 >= goods_ConditionArr2.length) {
                        break;
                    }
                    Goods_Condition goods_Condition = goods_ConditionArr2[i10];
                    if (goods_Condition != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, goods_Condition);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public int getProduct() {
            return this.product_;
        }

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

        public String getUser() {
            return this.user_;
        }

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

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

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

        public SetAlarm_Request setProduct(int i10) {
            this.product_ = i10;
            this.bitField0_ |= 4;
            return this;
        }

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

        public SetAlarm_Request setUser(String str) {
            str.getClass();
            this.user_ = str;
            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.writeString(2, this.user_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.product_);
            }
            Goods_Condition[] goods_ConditionArr = this.alarm;
            if (goods_ConditionArr != null && goods_ConditionArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Goods_Condition[] goods_ConditionArr2 = this.alarm;
                    if (i10 >= goods_ConditionArr2.length) {
                        break;
                    }
                    Goods_Condition goods_Condition = goods_ConditionArr2[i10];
                    if (goods_Condition != null) {
                        codedOutputByteBufferNano.writeMessage(4, goods_Condition);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SetAlarm_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 == 18) {
                    this.user_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.product_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 4;
                } else if (readTag == 34) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 34);
                    Goods_Condition[] goods_ConditionArr = this.alarm;
                    int length = goods_ConditionArr == null ? 0 : goods_ConditionArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Goods_Condition[] goods_ConditionArr2 = new Goods_Condition[i10];
                    if (length != 0) {
                        System.arraycopy(goods_ConditionArr, 0, goods_ConditionArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Goods_Condition goods_Condition = new Goods_Condition();
                        goods_ConditionArr2[length] = goods_Condition;
                        codedInputByteBufferNano.readMessage(goods_Condition);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Goods_Condition goods_Condition2 = new Goods_Condition();
                    goods_ConditionArr2[length] = goods_Condition2;
                    codedInputByteBufferNano.readMessage(goods_Condition2);
                    this.alarm = goods_ConditionArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
