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

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

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

        private static volatile UpdateSummary_Response[] _emptyArray;

        public UpdateSummaryRequest.UpdateSummary_Request input;

        public Summary[] output;

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

            private static volatile Summary[] _emptyArray;

            private int bitField0_;

            private String img_;

            private String name_;

            private int number_;

            private long time_;

            private int type_;

            private String url_;

            public Summary() {
                clear();
            }

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

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

            public Summary clear() {
                this.bitField0_ = 0;
                this.name_ = "";
                this.time_ = 0;
                this.number_ = 0;
                this.type_ = 0;
                this.url_ = "";
                this.img_ = "";
                this.cachedSize = -1;
                return this;
            }

            public Summary clearImg() {
                this.img_ = "";
                this.bitField0_ &= -33;
                return this;
            }

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

            public Summary clearNumber() {
                this.number_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

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

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

            public Summary clearUrl() {
                this.url_ = "";
                this.bitField0_ &= -17;
                return this;
            }

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

            public String getImg() {
                return this.img_;
            }

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

            public int getNumber() {
                return this.number_;
            }

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

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

            public String getUrl() {
                return this.url_;
            }

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

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

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

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

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

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

            public Summary setImg(String str) {
                str.getClass();
                this.img_ = str;
                this.bitField0_ |= 32;
                return this;
            }

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

            public Summary setNumber(int i10) {
                this.number_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public Summary setTime(long j10) {
                this.time_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

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

            public Summary setUrl(String str) {
                str.getClass();
                this.url_ = str;
                this.bitField0_ |= 16;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeString(1, this.name_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt64(2, this.time_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.number_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.type_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeString(5, this.url_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeString(6, this.img_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Summary mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        this.name_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.time_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.number_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.type_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                    } else if (readTag == 42) {
                        this.url_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 16;
                    } else if (readTag == 50) {
                        this.img_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 32;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public UpdateSummary_Response() {
            clear();
        }

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

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

        public UpdateSummary_Response clear() {
            this.input = null;
            this.output = Summary.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            UpdateSummaryRequest.UpdateSummary_Request updateSummary_Request = this.input;
            if (updateSummary_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, updateSummary_Request);
            }
            Summary[] summaryArr = this.output;
            if (summaryArr != null && summaryArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Summary[] summaryArr2 = this.output;
                    if (i10 >= summaryArr2.length) {
                        break;
                    }
                    Summary summary = summaryArr2[i10];
                    if (summary != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, summary);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            UpdateSummaryRequest.UpdateSummary_Request updateSummary_Request = this.input;
            if (updateSummary_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, updateSummary_Request);
            }
            Summary[] summaryArr = this.output;
            if (summaryArr != null && summaryArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Summary[] summaryArr2 = this.output;
                    if (i10 >= summaryArr2.length) {
                        break;
                    }
                    Summary summary = summaryArr2[i10];
                    if (summary != null) {
                        codedOutputByteBufferNano.writeMessage(2, summary);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public UpdateSummary_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 UpdateSummaryRequest.UpdateSummary_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    Summary[] summaryArr = this.output;
                    int length = summaryArr == null ? 0 : summaryArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Summary[] summaryArr2 = new Summary[i10];
                    if (length != 0) {
                        System.arraycopy(summaryArr, 0, summaryArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Summary summary = new Summary();
                        summaryArr2[length] = summary;
                        codedInputByteBufferNano.readMessage(summary);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Summary summary2 = new Summary();
                    summaryArr2[length] = summary2;
                    codedInputByteBufferNano.readMessage(summary2);
                    this.output = summaryArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
