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

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

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

        private static volatile SetGroupGoods_Request[] _emptyArray;

        private String account_;

        private int bitField0_;

        public int[] codes;

        private int date_;

        private String encrypt_;

        private int flag_;

        public long[] gid;

        private int logintype_;

        private long pid_;

        private int sid_;

        public GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[] stockmd5;

        private int time_;

        private String token_;

        private int type_;

        private int uid_;

        public SetGroupGoods_Request() {
            clear();
        }

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

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

        public SetGroupGoods_Request clear() {
            this.bitField0_ = 0;
            this.uid_ = 0;
            this.token_ = "";
            this.codes = WireFormatNano.EMPTY_INT_ARRAY;
            this.pid_ = 0;
            this.gid = WireFormatNano.EMPTY_LONG_ARRAY;
            this.type_ = 0;
            this.sid_ = 0;
            this.encrypt_ = "";
            this.logintype_ = 0;
            this.date_ = 0;
            this.time_ = 0;
            this.flag_ = 0;
            this.account_ = "";
            this.stockmd5 = GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        public SetGroupGoods_Request clearAccount() {
            this.account_ = "";
            this.bitField0_ &= -1025;
            return this;
        }

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

        public SetGroupGoods_Request clearEncrypt() {
            this.encrypt_ = "";
            this.bitField0_ &= -33;
            return this;
        }

        public SetGroupGoods_Request clearFlag() {
            this.flag_ = 0;
            this.bitField0_ &= -513;
            return this;
        }

        public SetGroupGoods_Request clearLogintype() {
            this.logintype_ = 0;
            this.bitField0_ &= -65;
            return this;
        }

        public SetGroupGoods_Request clearPid() {
            this.pid_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public SetGroupGoods_Request clearSid() {
            this.sid_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

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

        public SetGroupGoods_Request clearToken() {
            this.token_ = "";
            this.bitField0_ &= -3;
            return this;
        }

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

        public SetGroupGoods_Request clearUid() {
            this.uid_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            long[] jArr;
            int[] iArr;
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.uid_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.token_);
            }
            int[] iArr2 = this.codes;
            int i10 = 0;
            if (iArr2 != null && iArr2.length > 0) {
                int i11 = 0;
                int i12 = 0;
                while (true) {
                    iArr = this.codes;
                    if (i11 >= iArr.length) {
                        break;
                    }
                    i12 += CodedOutputByteBufferNano.computeUInt32SizeNoTag(iArr[i11]);
                    i11++;
                }
                computeSerializedSize = computeSerializedSize + i12 + iArr.length;
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(4, this.pid_);
            }
            long[] jArr2 = this.gid;
            if (jArr2 != null && jArr2.length > 0) {
                int i13 = 0;
                int i14 = 0;
                while (true) {
                    jArr = this.gid;
                    if (i13 >= jArr.length) {
                        break;
                    }
                    i14 += CodedOutputByteBufferNano.computeInt64SizeNoTag(jArr[i13]);
                    i13++;
                }
                computeSerializedSize = computeSerializedSize + i14 + jArr.length;
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(6, this.type_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(7, this.sid_);
            }
            if ((this.bitField0_ & 32) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(8, this.encrypt_);
            }
            if ((this.bitField0_ & 64) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(9, this.logintype_);
            }
            if ((this.bitField0_ & 128) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(10, this.date_);
            }
            if ((this.bitField0_ & 256) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(11, this.time_);
            }
            if ((this.bitField0_ & 512) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(12, this.flag_);
            }
            if ((this.bitField0_ & 1024) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(13, this.account_);
            }
            GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[] groupDetailArr = this.stockmd5;
            if (groupDetailArr != null && groupDetailArr.length > 0) {
                while (true) {
                    GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[] groupDetailArr2 = this.stockmd5;
                    if (i10 >= groupDetailArr2.length) {
                        break;
                    }
                    GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail groupDetail = groupDetailArr2[i10];
                    if (groupDetail != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(14, groupDetail);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public String getAccount() {
            return this.account_;
        }

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

        public String getEncrypt() {
            return this.encrypt_;
        }

        public int getFlag() {
            return this.flag_;
        }

        public int getLogintype() {
            return this.logintype_;
        }

        public long getPid() {
            return this.pid_;
        }

        public int getSid() {
            return this.sid_;
        }

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

        public String getToken() {
            return this.token_;
        }

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

        public int getUid() {
            return this.uid_;
        }

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

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

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

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

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

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

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

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

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

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

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

        public SetGroupGoods_Request setAccount(String str) {
            str.getClass();
            this.account_ = str;
            this.bitField0_ |= 1024;
            return this;
        }

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

        public SetGroupGoods_Request setEncrypt(String str) {
            str.getClass();
            this.encrypt_ = str;
            this.bitField0_ |= 32;
            return this;
        }

        public SetGroupGoods_Request setFlag(int i10) {
            this.flag_ = i10;
            this.bitField0_ |= 512;
            return this;
        }

        public SetGroupGoods_Request setLogintype(int i10) {
            this.logintype_ = i10;
            this.bitField0_ |= 64;
            return this;
        }

        public SetGroupGoods_Request setPid(long j10) {
            this.pid_ = j10;
            this.bitField0_ |= 4;
            return this;
        }

        public SetGroupGoods_Request setSid(int i10) {
            this.sid_ = i10;
            this.bitField0_ |= 16;
            return this;
        }

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

        public SetGroupGoods_Request setToken(String str) {
            str.getClass();
            this.token_ = str;
            this.bitField0_ |= 2;
            return this;
        }

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

        public SetGroupGoods_Request setUid(int i10) {
            this.uid_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(1, this.uid_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeString(2, this.token_);
            }
            int[] iArr = this.codes;
            int i10 = 0;
            if (iArr != null && iArr.length > 0) {
                int i11 = 0;
                while (true) {
                    int[] iArr2 = this.codes;
                    if (i11 >= iArr2.length) {
                        break;
                    }
                    codedOutputByteBufferNano.writeUInt32(3, iArr2[i11]);
                    i11++;
                }
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeInt64(4, this.pid_);
            }
            long[] jArr = this.gid;
            if (jArr != null && jArr.length > 0) {
                int i12 = 0;
                while (true) {
                    long[] jArr2 = this.gid;
                    if (i12 >= jArr2.length) {
                        break;
                    }
                    codedOutputByteBufferNano.writeInt64(5, jArr2[i12]);
                    i12++;
                }
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt32(6, this.type_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeUInt32(7, this.sid_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeString(8, this.encrypt_);
            }
            if ((this.bitField0_ & 64) != 0) {
                codedOutputByteBufferNano.writeUInt32(9, this.logintype_);
            }
            if ((this.bitField0_ & 128) != 0) {
                codedOutputByteBufferNano.writeUInt32(10, this.date_);
            }
            if ((this.bitField0_ & 256) != 0) {
                codedOutputByteBufferNano.writeUInt32(11, this.time_);
            }
            if ((this.bitField0_ & 512) != 0) {
                codedOutputByteBufferNano.writeInt32(12, this.flag_);
            }
            if ((this.bitField0_ & 1024) != 0) {
                codedOutputByteBufferNano.writeString(13, this.account_);
            }
            GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[] groupDetailArr = this.stockmd5;
            if (groupDetailArr != null && groupDetailArr.length > 0) {
                while (true) {
                    GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[] groupDetailArr2 = this.stockmd5;
                    if (i10 >= groupDetailArr2.length) {
                        break;
                    }
                    GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail groupDetail = groupDetailArr2[i10];
                    if (groupDetail != null) {
                        codedOutputByteBufferNano.writeMessage(14, groupDetail);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SetGroupGoods_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                switch(readTag) {
                    case 0:
                        return this;
                    case 8:
                        this.uid_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                        break;
                    case 18:
                        this.token_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                        break;
                    case 24:
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 24);
                        int[] iArr = this.codes;
                        int length = iArr == null ? 0 : iArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        int[] iArr2 = new int[i10];
                        if (length != 0) {
                            System.arraycopy(iArr, 0, iArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            iArr2[length] = codedInputByteBufferNano.readUInt32();
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        iArr2[length] = codedInputByteBufferNano.readUInt32();
                        this.codes = iArr2;
                        break;
                    case 26:
                        int pushLimit = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                        int position = codedInputByteBufferNano.getPosition();
                        int i11 = 0;
                        while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                            codedInputByteBufferNano.readUInt32();
                            i11++;
                        }
                        codedInputByteBufferNano.rewindToPosition(position);
                        int[] iArr3 = this.codes;
                        int length2 = iArr3 == null ? 0 : iArr3.length;
                        int i12 = i11 + length2;
                        int[] iArr4 = new int[i12];
                        if (length2 != 0) {
                            System.arraycopy(iArr3, 0, iArr4, 0, length2);
                        }
                        while (length2 < i12) {
                            iArr4[length2] = codedInputByteBufferNano.readUInt32();
                            length2++;
                        }
                        this.codes = iArr4;
                        codedInputByteBufferNano.popLimit(pushLimit);
                        break;
                    case 32:
                        this.pid_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                        break;
                    case 40:
                        int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 40);
                        long[] jArr = this.gid;
                        int length3 = jArr == null ? 0 : jArr.length;
                        int i13 = repeatedFieldArrayLength2 + length3;
                        long[] jArr2 = new long[i13];
                        if (length3 != 0) {
                            System.arraycopy(jArr, 0, jArr2, 0, length3);
                        }
                        while (length3 < i13 - 1) {
                            jArr2[length3] = codedInputByteBufferNano.readInt64();
                            codedInputByteBufferNano.readTag();
                            length3++;
                        }
                        jArr2[length3] = codedInputByteBufferNano.readInt64();
                        this.gid = jArr2;
                        break;
                    case 42:
                        int pushLimit2 = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                        int position2 = codedInputByteBufferNano.getPosition();
                        int i14 = 0;
                        while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                            codedInputByteBufferNano.readInt64();
                            i14++;
                        }
                        codedInputByteBufferNano.rewindToPosition(position2);
                        long[] jArr3 = this.gid;
                        int length4 = jArr3 == null ? 0 : jArr3.length;
                        int i15 = i14 + length4;
                        long[] jArr4 = new long[i15];
                        if (length4 != 0) {
                            System.arraycopy(jArr3, 0, jArr4, 0, length4);
                        }
                        while (length4 < i15) {
                            jArr4[length4] = codedInputByteBufferNano.readInt64();
                            length4++;
                        }
                        this.gid = jArr4;
                        codedInputByteBufferNano.popLimit(pushLimit2);
                        break;
                    case 48:
                        this.type_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                        break;
                    case 56:
                        this.sid_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 16;
                        break;
                    case 66:
                        this.encrypt_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 32;
                        break;
                    case 72:
                        this.logintype_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 64;
                        break;
                    case 80:
                        this.date_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 128;
                        break;
                    case 88:
                        this.time_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 256;
                        break;
                    case 96:
                        this.flag_ = codedInputByteBufferNano.readInt32();
                        this.bitField0_ |= 512;
                        break;
                    case 106:
                        this.account_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 1024;
                        break;
                    case 114:
                        int repeatedFieldArrayLength3 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 114);
                        GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[] groupDetailArr = this.stockmd5;
                        int length5 = groupDetailArr == null ? 0 : groupDetailArr.length;
                        int i16 = repeatedFieldArrayLength3 + length5;
                        GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[] groupDetailArr2 = new GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail[i16];
                        if (length5 != 0) {
                            System.arraycopy(groupDetailArr, 0, groupDetailArr2, 0, length5);
                        }
                        while (length5 < i16 - 1) {
                            GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail groupDetail = new GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail();
                            groupDetailArr2[length5] = groupDetail;
                            codedInputByteBufferNano.readMessage(groupDetail);
                            codedInputByteBufferNano.readTag();
                            length5++;
                        }
                        GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail groupDetail2 = new GetGroupGoodsRequest.GetGroupGoods_Request.GroupDetail();
                        groupDetailArr2[length5] = groupDetail2;
                        codedInputByteBufferNano.readMessage(groupDetail2);
                        this.stockmd5 = groupDetailArr2;
                        break;
                    default:
                        if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            break;
                        } else {
                            return this;
                        }
                }
            }
        }
    }
}
