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

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

        private static volatile PriceDoExRights_Request[] _emptyArray;

        public GoodsDatePrice[] goodsList;

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

            private static volatile GoodsDatePrice[] _emptyArray;

            private int bitField0_;

            private int goodsDate_;

            private int goodsFlag_;

            private int goodsId_;

            private int goodsPrice_;

            public GoodsDatePrice() {
                clear();
            }

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

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

            public GoodsDatePrice clear() {
                this.bitField0_ = 0;
                this.goodsId_ = 0;
                this.goodsPrice_ = 0;
                this.goodsDate_ = 0;
                this.goodsFlag_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public GoodsDatePrice clearGoodsDate() {
                this.goodsDate_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public GoodsDatePrice clearGoodsFlag() {
                this.goodsFlag_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public GoodsDatePrice clearGoodsId() {
                this.goodsId_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public GoodsDatePrice clearGoodsPrice() {
                this.goodsPrice_ = 0;
                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.goodsId_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.goodsPrice_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeFixed32Size(3, this.goodsDate_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt32Size(4, this.goodsFlag_);
                }
                return computeSerializedSize;
            }

            public int getGoodsDate() {
                return this.goodsDate_;
            }

            public int getGoodsFlag() {
                return this.goodsFlag_;
            }

            public int getGoodsId() {
                return this.goodsId_;
            }

            public int getGoodsPrice() {
                return this.goodsPrice_;
            }

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

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

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

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

            public GoodsDatePrice setGoodsDate(int i10) {
                this.goodsDate_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public GoodsDatePrice setGoodsFlag(int i10) {
                this.goodsFlag_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public GoodsDatePrice setGoodsId(int i10) {
                this.goodsId_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public GoodsDatePrice setGoodsPrice(int i10) {
                this.goodsPrice_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.goodsId_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.goodsPrice_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeFixed32(3, this.goodsDate_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeInt32(4, this.goodsFlag_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public GoodsDatePrice mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.goodsId_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.goodsPrice_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 29) {
                        this.goodsDate_ = codedInputByteBufferNano.readFixed32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        int readInt32 = codedInputByteBufferNano.readInt32();
                        if (readInt32 == 0 || readInt32 == 1 || readInt32 == 2) {
                            this.goodsFlag_ = readInt32;
                            this.bitField0_ |= 8;
                        }
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public PriceDoExRights_Request() {
            clear();
        }

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

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

        public PriceDoExRights_Request clear() {
            this.goodsList = GoodsDatePrice.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            GoodsDatePrice[] goodsDatePriceArr = this.goodsList;
            if (goodsDatePriceArr != null && goodsDatePriceArr.length > 0) {
                int i10 = 0;
                while (true) {
                    GoodsDatePrice[] goodsDatePriceArr2 = this.goodsList;
                    if (i10 >= goodsDatePriceArr2.length) {
                        break;
                    }
                    GoodsDatePrice goodsDatePrice = goodsDatePriceArr2[i10];
                    if (goodsDatePrice != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, goodsDatePrice);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            GoodsDatePrice[] goodsDatePriceArr = this.goodsList;
            if (goodsDatePriceArr != null && goodsDatePriceArr.length > 0) {
                int i10 = 0;
                while (true) {
                    GoodsDatePrice[] goodsDatePriceArr2 = this.goodsList;
                    if (i10 >= goodsDatePriceArr2.length) {
                        break;
                    }
                    GoodsDatePrice goodsDatePrice = goodsDatePriceArr2[i10];
                    if (goodsDatePrice != null) {
                        codedOutputByteBufferNano.writeMessage(1, goodsDatePrice);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public PriceDoExRights_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);
                    GoodsDatePrice[] goodsDatePriceArr = this.goodsList;
                    int length = goodsDatePriceArr == null ? 0 : goodsDatePriceArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    GoodsDatePrice[] goodsDatePriceArr2 = new GoodsDatePrice[i10];
                    if (length != 0) {
                        System.arraycopy(goodsDatePriceArr, 0, goodsDatePriceArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        GoodsDatePrice goodsDatePrice = new GoodsDatePrice();
                        goodsDatePriceArr2[length] = goodsDatePrice;
                        codedInputByteBufferNano.readMessage(goodsDatePrice);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    GoodsDatePrice goodsDatePrice2 = new GoodsDatePrice();
                    goodsDatePriceArr2[length] = goodsDatePrice2;
                    codedInputByteBufferNano.readMessage(goodsDatePrice2);
                    this.goodsList = goodsDatePriceArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
