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

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

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

        private static volatile SetGroupGoods_Response[] _emptyArray;

        private int bitField0_;

        public SetGroupGoodsRequest.SetGroupGoods_Request input;

        public SetResult output;

        private int reload_;

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

            private static volatile SetResult[] _emptyArray;

            public ErrMsg[] information;

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

                private static volatile ErrMsg[] _emptyArray;

                private int bitField0_;

                private int code_;

                private String error_;

                private long gid_;

                public ErrMsg() {
                    clear();
                }

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

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

                public ErrMsg clear() {
                    this.bitField0_ = 0;
                    this.gid_ = 0;
                    this.code_ = 0;
                    this.error_ = "";
                    this.cachedSize = -1;
                    return this;
                }

                public ErrMsg clearCode() {
                    this.code_ = 0;
                    this.bitField0_ &= -3;
                    return this;
                }

                public ErrMsg clearError() {
                    this.error_ = "";
                    this.bitField0_ &= -5;
                    return this;
                }

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

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

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

                public String getError() {
                    return this.error_;
                }

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

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

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

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

                public ErrMsg setCode(int i10) {
                    this.code_ = i10;
                    this.bitField0_ |= 2;
                    return this;
                }

                public ErrMsg setError(String str) {
                    str.getClass();
                    this.error_ = str;
                    this.bitField0_ |= 4;
                    return this;
                }

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

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeInt64(1, this.gid_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeInt32(2, this.code_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeString(3, this.error_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public ErrMsg mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.gid_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 1;
                        } else if (readTag == 16) {
                            this.code_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 2;
                        } else if (readTag == 26) {
                            this.error_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 4;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public SetResult() {
                clear();
            }

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

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

            public SetResult clear() {
                this.information = ErrMsg.emptyArray();
                this.cachedSize = -1;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                ErrMsg[] errMsgArr = this.information;
                if (errMsgArr != null && errMsgArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        ErrMsg[] errMsgArr2 = this.information;
                        if (i10 >= errMsgArr2.length) {
                            break;
                        }
                        ErrMsg errMsg = errMsgArr2[i10];
                        if (errMsg != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, errMsg);
                        }
                        i10++;
                    }
                }
                return computeSerializedSize;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                ErrMsg[] errMsgArr = this.information;
                if (errMsgArr != null && errMsgArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        ErrMsg[] errMsgArr2 = this.information;
                        if (i10 >= errMsgArr2.length) {
                            break;
                        }
                        ErrMsg errMsg = errMsgArr2[i10];
                        if (errMsg != null) {
                            codedOutputByteBufferNano.writeMessage(3, errMsg);
                        }
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public SetResult mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 26) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 26);
                        ErrMsg[] errMsgArr = this.information;
                        int length = errMsgArr == null ? 0 : errMsgArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        ErrMsg[] errMsgArr2 = new ErrMsg[i10];
                        if (length != 0) {
                            System.arraycopy(errMsgArr, 0, errMsgArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            ErrMsg errMsg = new ErrMsg();
                            errMsgArr2[length] = errMsg;
                            codedInputByteBufferNano.readMessage(errMsg);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        ErrMsg errMsg2 = new ErrMsg();
                        errMsgArr2[length] = errMsg2;
                        codedInputByteBufferNano.readMessage(errMsg2);
                        this.information = errMsgArr2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public SetGroupGoods_Response() {
            clear();
        }

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

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

        public SetGroupGoods_Response clear() {
            this.bitField0_ = 0;
            this.input = null;
            this.output = null;
            this.reload_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public SetGroupGoods_Response clearReload() {
            this.reload_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            SetGroupGoodsRequest.SetGroupGoods_Request setGroupGoods_Request = this.input;
            if (setGroupGoods_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, setGroupGoods_Request);
            }
            SetResult setResult = this.output;
            if (setResult != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, setResult);
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeInt32Size(3, this.reload_);
            }
            return computeSerializedSize;
        }

        public int getReload() {
            return this.reload_;
        }

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

        public SetGroupGoods_Response setReload(int i10) {
            this.reload_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            SetGroupGoodsRequest.SetGroupGoods_Request setGroupGoods_Request = this.input;
            if (setGroupGoods_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, setGroupGoods_Request);
            }
            SetResult setResult = this.output;
            if (setResult != null) {
                codedOutputByteBufferNano.writeMessage(2, setResult);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeInt32(3, this.reload_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SetGroupGoods_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 SetGroupGoodsRequest.SetGroupGoods_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    if (this.output == null) {
                        this.output = new SetResult();
                    }
                    codedInputByteBufferNano.readMessage(this.output);
                } else if (readTag == 24) {
                    this.reload_ = codedInputByteBufferNano.readInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
