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

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

        private static volatile ReportGroup_Request[] _emptyArray;

        public GrpInfo[] group;

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

            private static volatile GrpInfo[] _emptyArray;

            private int bitField0_;

            private long gid_;

            public GroupMember[] member;

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

                private static volatile GroupMember[] _emptyArray;

                private int bitField0_;

                private String detail_;

                private long id_;

                private int role_;

                public GroupMember() {
                    clear();
                }

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

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

                public GroupMember clear() {
                    this.bitField0_ = 0;
                    this.id_ = 0;
                    this.detail_ = "";
                    this.role_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public GroupMember clearDetail() {
                    this.detail_ = "";
                    this.bitField0_ &= -3;
                    return this;
                }

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

                public GroupMember clearRole() {
                    this.role_ = 0;
                    this.bitField0_ &= -5;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(1, this.id_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.detail_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.role_);
                    }
                    return computeSerializedSize;
                }

                public String getDetail() {
                    return this.detail_;
                }

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

                public int getRole() {
                    return this.role_;
                }

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

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

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

                public GroupMember setDetail(String str) {
                    str.getClass();
                    this.detail_ = str;
                    this.bitField0_ |= 2;
                    return this;
                }

                public GroupMember setId(long j10) {
                    this.id_ = j10;
                    this.bitField0_ |= 1;
                    return this;
                }

                public GroupMember setRole(int i10) {
                    this.role_ = i10;
                    this.bitField0_ |= 4;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeInt64(1, this.id_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeString(2, this.detail_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeUInt32(3, this.role_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public GroupMember mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.id_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 1;
                        } else if (readTag == 18) {
                            this.detail_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2;
                        } else if (readTag == 24) {
                            this.role_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public GrpInfo() {
                clear();
            }

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

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

            public GrpInfo clear() {
                this.bitField0_ = 0;
                this.member = GroupMember.emptyArray();
                this.gid_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                GroupMember[] groupMemberArr = this.member;
                if (groupMemberArr != null && groupMemberArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        GroupMember[] groupMemberArr2 = this.member;
                        if (i10 >= groupMemberArr2.length) {
                            break;
                        }
                        GroupMember groupMember = groupMemberArr2[i10];
                        if (groupMember != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, groupMember);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(2, this.gid_);
                }
                return computeSerializedSize;
            }

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

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

            public GrpInfo setGid(long j10) {
                this.gid_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                GroupMember[] groupMemberArr = this.member;
                if (groupMemberArr != null && groupMemberArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        GroupMember[] groupMemberArr2 = this.member;
                        if (i10 >= groupMemberArr2.length) {
                            break;
                        }
                        GroupMember groupMember = groupMemberArr2[i10];
                        if (groupMember != null) {
                            codedOutputByteBufferNano.writeMessage(1, groupMember);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.gid_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public GrpInfo mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 10);
                        GroupMember[] groupMemberArr = this.member;
                        int length = groupMemberArr == null ? 0 : groupMemberArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        GroupMember[] groupMemberArr2 = new GroupMember[i10];
                        if (length != 0) {
                            System.arraycopy(groupMemberArr, 0, groupMemberArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            GroupMember groupMember = new GroupMember();
                            groupMemberArr2[length] = groupMember;
                            codedInputByteBufferNano.readMessage(groupMember);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        GroupMember groupMember2 = new GroupMember();
                        groupMemberArr2[length] = groupMember2;
                        codedInputByteBufferNano.readMessage(groupMember2);
                        this.member = groupMemberArr2;
                    } else if (readTag == 16) {
                        this.gid_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public ReportGroup_Request() {
            clear();
        }

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

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

        public ReportGroup_Request clear() {
            this.group = GrpInfo.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            GrpInfo[] grpInfoArr = this.group;
            if (grpInfoArr != null && grpInfoArr.length > 0) {
                int i10 = 0;
                while (true) {
                    GrpInfo[] grpInfoArr2 = this.group;
                    if (i10 >= grpInfoArr2.length) {
                        break;
                    }
                    GrpInfo grpInfo = grpInfoArr2[i10];
                    if (grpInfo != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, grpInfo);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            GrpInfo[] grpInfoArr = this.group;
            if (grpInfoArr != null && grpInfoArr.length > 0) {
                int i10 = 0;
                while (true) {
                    GrpInfo[] grpInfoArr2 = this.group;
                    if (i10 >= grpInfoArr2.length) {
                        break;
                    }
                    GrpInfo grpInfo = grpInfoArr2[i10];
                    if (grpInfo != null) {
                        codedOutputByteBufferNano.writeMessage(1, grpInfo);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public ReportGroup_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 10);
                    GrpInfo[] grpInfoArr = this.group;
                    int length = grpInfoArr == null ? 0 : grpInfoArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    GrpInfo[] grpInfoArr2 = new GrpInfo[i10];
                    if (length != 0) {
                        System.arraycopy(grpInfoArr, 0, grpInfoArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        GrpInfo grpInfo = new GrpInfo();
                        grpInfoArr2[length] = grpInfo;
                        codedInputByteBufferNano.readMessage(grpInfo);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    GrpInfo grpInfo2 = new GrpInfo();
                    grpInfoArr2[length] = grpInfo2;
                    codedInputByteBufferNano.readMessage(grpInfo2);
                    this.group = grpInfoArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
