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

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

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

        private static volatile GroupDetail_Response[] _emptyArray;

        public GroupDetailRequest.GroupDetail_Request input;

        public GroupDetail[] output;

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

            private static volatile GroupDetail[] _emptyArray;

            private int bitField0_;

            private long category_;

            private String code_;

            public GroupDetail[] detail;

            private int exchange_;

            private int group_;

            private String name_;

            public GroupDetail() {
                clear();
            }

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

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

            public GroupDetail clear() {
                this.bitField0_ = 0;
                this.group_ = 0;
                this.name_ = "";
                this.code_ = "";
                this.exchange_ = 0;
                this.category_ = 0;
                this.detail = emptyArray();
                this.cachedSize = -1;
                return this;
            }

            public GroupDetail clearCategory() {
                this.category_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public GroupDetail clearCode() {
                this.code_ = "";
                this.bitField0_ &= -5;
                return this;
            }

            public GroupDetail clearExchange() {
                this.exchange_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public GroupDetail clearGroup() {
                this.group_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public GroupDetail clearName() {
                this.name_ = "";
                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.group_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.name_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.code_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.exchange_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.category_);
                }
                GroupDetail[] groupDetailArr = this.detail;
                if (groupDetailArr != null && groupDetailArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        GroupDetail[] groupDetailArr2 = this.detail;
                        if (i10 >= groupDetailArr2.length) {
                            break;
                        }
                        GroupDetail groupDetail = groupDetailArr2[i10];
                        if (groupDetail != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(6, groupDetail);
                        }
                        i10++;
                    }
                }
                return computeSerializedSize;
            }

            public long getCategory() {
                return this.category_;
            }

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

            public int getExchange() {
                return this.exchange_;
            }

            public int getGroup() {
                return this.group_;
            }

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

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

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

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

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

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

            public GroupDetail setCategory(long j10) {
                this.category_ = j10;
                this.bitField0_ |= 16;
                return this;
            }

            public GroupDetail setCode(String str) {
                str.getClass();
                this.code_ = str;
                this.bitField0_ |= 4;
                return this;
            }

            public GroupDetail setExchange(int i10) {
                this.exchange_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public GroupDetail setGroup(int i10) {
                this.group_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

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

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.group_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.name_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.code_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.exchange_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt64(5, this.category_);
                }
                GroupDetail[] groupDetailArr = this.detail;
                if (groupDetailArr != null && groupDetailArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        GroupDetail[] groupDetailArr2 = this.detail;
                        if (i10 >= groupDetailArr2.length) {
                            break;
                        }
                        GroupDetail groupDetail = groupDetailArr2[i10];
                        if (groupDetail != null) {
                            codedOutputByteBufferNano.writeMessage(6, groupDetail);
                        }
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public GroupDetail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.group_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        this.name_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 26) {
                        this.code_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.exchange_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.category_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 16;
                    } else if (readTag == 50) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 50);
                        GroupDetail[] groupDetailArr = this.detail;
                        int length = groupDetailArr == null ? 0 : groupDetailArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        GroupDetail[] groupDetailArr2 = new GroupDetail[i10];
                        if (length != 0) {
                            System.arraycopy(groupDetailArr, 0, groupDetailArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            GroupDetail groupDetail = new GroupDetail();
                            groupDetailArr2[length] = groupDetail;
                            codedInputByteBufferNano.readMessage(groupDetail);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        GroupDetail groupDetail2 = new GroupDetail();
                        groupDetailArr2[length] = groupDetail2;
                        codedInputByteBufferNano.readMessage(groupDetail2);
                        this.detail = groupDetailArr2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public GroupDetail_Response() {
            clear();
        }

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

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

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

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            GroupDetailRequest.GroupDetail_Request groupDetail_Request = this.input;
            if (groupDetail_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, groupDetail_Request);
            }
            GroupDetail[] groupDetailArr = this.output;
            if (groupDetailArr != null && groupDetailArr.length > 0) {
                int i10 = 0;
                while (true) {
                    GroupDetail[] groupDetailArr2 = this.output;
                    if (i10 >= groupDetailArr2.length) {
                        break;
                    }
                    GroupDetail groupDetail = groupDetailArr2[i10];
                    if (groupDetail != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, groupDetail);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            GroupDetailRequest.GroupDetail_Request groupDetail_Request = this.input;
            if (groupDetail_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, groupDetail_Request);
            }
            GroupDetail[] groupDetailArr = this.output;
            if (groupDetailArr != null && groupDetailArr.length > 0) {
                int i10 = 0;
                while (true) {
                    GroupDetail[] groupDetailArr2 = this.output;
                    if (i10 >= groupDetailArr2.length) {
                        break;
                    }
                    GroupDetail groupDetail = groupDetailArr2[i10];
                    if (groupDetail != null) {
                        codedOutputByteBufferNano.writeMessage(2, groupDetail);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public GroupDetail_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 GroupDetailRequest.GroupDetail_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    GroupDetail[] groupDetailArr = this.output;
                    int length = groupDetailArr == null ? 0 : groupDetailArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    GroupDetail[] groupDetailArr2 = new GroupDetail[i10];
                    if (length != 0) {
                        System.arraycopy(groupDetailArr, 0, groupDetailArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        GroupDetail groupDetail = new GroupDetail();
                        groupDetailArr2[length] = groupDetail;
                        codedInputByteBufferNano.readMessage(groupDetail);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    GroupDetail groupDetail2 = new GroupDetail();
                    groupDetailArr2[length] = groupDetail2;
                    codedInputByteBufferNano.readMessage(groupDetail2);
                    this.output = groupDetailArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
