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

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

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

        private static volatile GetGoodsGroup_Response[] _emptyArray;

        public GetGoodsGroupRequest.GetGoodsGroup_Request input;

        public GroupDetail[] output;

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

            private static volatile GroupDetail[] _emptyArray;

            private int bitField0_;

            private int count_;

            private long id_;

            private String md5_;

            private String name_;

            private int protect_;

            private String sysname_;

            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.id_ = 0;
                this.name_ = "";
                this.count_ = 0;
                this.md5_ = "";
                this.protect_ = 0;
                this.sysname_ = "";
                this.cachedSize = -1;
                return this;
            }

            public GroupDetail clearCount() {
                this.count_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

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

            public GroupDetail clearMd5() {
                this.md5_ = "";
                this.bitField0_ &= -9;
                return this;
            }

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

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

            public GroupDetail clearSysname() {
                this.sysname_ = "";
                this.bitField0_ &= -33;
                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.name_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.count_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(4, this.md5_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(5, this.protect_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(6, this.sysname_);
                }
                return computeSerializedSize;
            }

            public int getCount() {
                return this.count_;
            }

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

            public String getMd5() {
                return this.md5_;
            }

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

            public int getProtect() {
                return this.protect_;
            }

            public String getSysname() {
                return this.sysname_;
            }

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

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

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

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

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

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

            public GroupDetail setCount(int i10) {
                this.count_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

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

            public GroupDetail setMd5(String str) {
                str.getClass();
                this.md5_ = str;
                this.bitField0_ |= 8;
                return this;
            }

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

            public GroupDetail setProtect(int i10) {
                this.protect_ = i10;
                this.bitField0_ |= 16;
                return this;
            }

            public GroupDetail setSysname(String str) {
                str.getClass();
                this.sysname_ = str;
                this.bitField0_ |= 32;
                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.name_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.count_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeString(4, this.md5_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeInt32(5, this.protect_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeString(6, this.sysname_);
                }
                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.id_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        this.name_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.count_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 34) {
                        this.md5_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.protect_ = codedInputByteBufferNano.readInt32();
                        this.bitField0_ |= 16;
                    } else if (readTag == 50) {
                        this.sysname_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 32;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public GetGoodsGroup_Response() {
            clear();
        }

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

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

        public GetGoodsGroup_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();
            GetGoodsGroupRequest.GetGoodsGroup_Request getGoodsGroup_Request = this.input;
            if (getGoodsGroup_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, getGoodsGroup_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 {
            GetGoodsGroupRequest.GetGoodsGroup_Request getGoodsGroup_Request = this.input;
            if (getGoodsGroup_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, getGoodsGroup_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 GetGoodsGroup_Response parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            return new GetGoodsGroup_Response().mergeFrom(codedInputByteBufferNano);
        }

        public GetGoodsGroup_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 GetGoodsGroupRequest.GetGoodsGroup_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;
                }
            }
        }
    }
}
