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

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

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

        private static volatile AlarmItem[] _emptyArray;

        private int bitField0_;

        private int code_;

        private int extend_;

        private long index_;

        private String name_;

        private int time_;

        private int type_;

        private long value_;

        public AlarmItem() {
            clear();
        }

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

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

        public AlarmItem clear() {
            this.bitField0_ = 0;
            this.index_ = 0;
            this.code_ = 0;
            this.time_ = 0;
            this.type_ = 0;
            this.value_ = 0;
            this.extend_ = 0;
            this.name_ = "";
            this.cachedSize = -1;
            return this;
        }

        public AlarmItem clearCode() {
            this.code_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public AlarmItem clearExtend() {
            this.extend_ = 0;
            this.bitField0_ &= -33;
            return this;
        }

        public AlarmItem clearIndex() {
            this.index_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public AlarmItem clearName() {
            this.name_ = "";
            this.bitField0_ &= -65;
            return this;
        }

        public AlarmItem clearTime() {
            this.time_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public AlarmItem clearType() {
            this.type_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public AlarmItem clearValue() {
            this.value_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(1, this.index_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.code_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.time_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.type_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(5, this.value_);
            }
            if ((this.bitField0_ & 32) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(6, this.extend_);
            }
            if ((this.bitField0_ & 64) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(7, this.name_);
            }
            return computeSerializedSize;
        }

        public int getCode() {
            return this.code_;
        }

        public int getExtend() {
            return this.extend_;
        }

        public long getIndex() {
            return this.index_;
        }

        public String getName() {
            return this.name_;
        }

        public int getTime() {
            return this.time_;
        }

        public int getType() {
            return this.type_;
        }

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

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

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

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

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

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

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

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

        public AlarmItem setCode(int i10) {
            this.code_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public AlarmItem setExtend(int i10) {
            this.extend_ = i10;
            this.bitField0_ |= 32;
            return this;
        }

        public AlarmItem setIndex(long j10) {
            this.index_ = j10;
            this.bitField0_ |= 1;
            return this;
        }

        public AlarmItem setName(String str) {
            str.getClass();
            this.name_ = str;
            this.bitField0_ |= 64;
            return this;
        }

        public AlarmItem setTime(int i10) {
            this.time_ = i10;
            this.bitField0_ |= 4;
            return this;
        }

        public AlarmItem setType(int i10) {
            this.type_ = i10;
            this.bitField0_ |= 8;
            return this;
        }

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

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt64(1, this.index_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.code_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.time_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.type_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeInt64(5, this.value_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeInt32(6, this.extend_);
            }
            if ((this.bitField0_ & 64) != 0) {
                codedOutputByteBufferNano.writeString(7, this.name_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public AlarmItem mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.index_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.code_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.time_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 4;
                } else if (readTag == 32) {
                    this.type_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 8;
                } else if (readTag == 40) {
                    this.value_ = codedInputByteBufferNano.readInt64();
                    this.bitField0_ |= 16;
                } else if (readTag == 48) {
                    this.extend_ = codedInputByteBufferNano.readInt32();
                    this.bitField0_ |= 32;
                } else if (readTag == 58) {
                    this.name_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 64;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }

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

        private static volatile ShortAlarm_Response[] _emptyArray;

        private int bitField0_;

        private String codesmd5_;

        private int date_;

        public ShortAlarmRequest.ShortAlarm_Request input;

        public AlarmItem[] output;

        public ShortAlarm_Response() {
            clear();
        }

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

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

        public ShortAlarm_Response clear() {
            this.bitField0_ = 0;
            this.input = null;
            this.codesmd5_ = "";
            this.output = AlarmItem.emptyArray();
            this.date_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public ShortAlarm_Response clearCodesmd5() {
            this.codesmd5_ = "";
            this.bitField0_ &= -2;
            return this;
        }

        public ShortAlarm_Response clearDate() {
            this.date_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            ShortAlarmRequest.ShortAlarm_Request shortAlarm_Request = this.input;
            if (shortAlarm_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, shortAlarm_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.codesmd5_);
            }
            AlarmItem[] alarmItemArr = this.output;
            if (alarmItemArr != null && alarmItemArr.length > 0) {
                int i10 = 0;
                while (true) {
                    AlarmItem[] alarmItemArr2 = this.output;
                    if (i10 >= alarmItemArr2.length) {
                        break;
                    }
                    AlarmItem alarmItem = alarmItemArr2[i10];
                    if (alarmItem != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, alarmItem);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(4, this.date_);
            }
            return computeSerializedSize;
        }

        public String getCodesmd5() {
            return this.codesmd5_;
        }

        public int getDate() {
            return this.date_;
        }

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

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

        public ShortAlarm_Response setCodesmd5(String str) {
            str.getClass();
            this.codesmd5_ = str;
            this.bitField0_ |= 1;
            return this;
        }

        public ShortAlarm_Response setDate(int i10) {
            this.date_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            ShortAlarmRequest.ShortAlarm_Request shortAlarm_Request = this.input;
            if (shortAlarm_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, shortAlarm_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeString(2, this.codesmd5_);
            }
            AlarmItem[] alarmItemArr = this.output;
            if (alarmItemArr != null && alarmItemArr.length > 0) {
                int i10 = 0;
                while (true) {
                    AlarmItem[] alarmItemArr2 = this.output;
                    if (i10 >= alarmItemArr2.length) {
                        break;
                    }
                    AlarmItem alarmItem = alarmItemArr2[i10];
                    if (alarmItem != null) {
                        codedOutputByteBufferNano.writeMessage(3, alarmItem);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.date_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public ShortAlarm_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.input == null) {
                        this.input = new ShortAlarmRequest.ShortAlarm_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    this.codesmd5_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 1;
                } else if (readTag == 26) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 26);
                    AlarmItem[] alarmItemArr = this.output;
                    int length = alarmItemArr == null ? 0 : alarmItemArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    AlarmItem[] alarmItemArr2 = new AlarmItem[i10];
                    if (length != 0) {
                        System.arraycopy(alarmItemArr, 0, alarmItemArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        AlarmItem alarmItem = new AlarmItem();
                        alarmItemArr2[length] = alarmItem;
                        codedInputByteBufferNano.readMessage(alarmItem);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    AlarmItem alarmItem2 = new AlarmItem();
                    alarmItemArr2[length] = alarmItem2;
                    codedInputByteBufferNano.readMessage(alarmItem2);
                    this.output = alarmItemArr2;
                } else if (readTag == 32) {
                    this.date_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
