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.MapFactories;
import com.google.protobuf.nano.MessageNano;
import com.google.protobuf.nano.WireFormatNano;
import java.io.IOException;
import java.util.Map;
import nano.ValueDataRequest;

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

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

        private static volatile ValueData_Response[] _emptyArray;

        private int bitField0_;

        private long category_;

        private int exchange_;

        public Map<Integer, String> fieldValue;

        private long goodsTime_;

        public ValueDataRequest.ValueData_Request requestParams;

        private int tradeSession_;

        public ValueData_Response() {
            clear();
        }

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

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

        public ValueData_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.goodsTime_ = 0;
            this.fieldValue = null;
            this.exchange_ = 0;
            this.category_ = 0;
            this.tradeSession_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public ValueData_Response clearCategory() {
            this.category_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public ValueData_Response clearExchange() {
            this.exchange_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public ValueData_Response clearGoodsTime() {
            this.goodsTime_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public ValueData_Response clearTradeSession() {
            this.tradeSession_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            ValueDataRequest.ValueData_Request valueData_Request = this.requestParams;
            if (valueData_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, valueData_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(2, this.goodsTime_);
            }
            Map<Integer, String> map = this.fieldValue;
            if (map != null) {
                computeSerializedSize += InternalNano.computeMapFieldSize(map, 3, 5, 9);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.exchange_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.category_);
            }
            if ((this.bitField0_ & 8) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(6, this.tradeSession_);
            }
            return computeSerializedSize;
        }

        public long getCategory() {
            return this.category_;
        }

        public int getExchange() {
            return this.exchange_;
        }

        public long getGoodsTime() {
            return this.goodsTime_;
        }

        public int getTradeSession() {
            return this.tradeSession_;
        }

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

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

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

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

        public ValueData_Response setCategory(long j10) {
            this.category_ = j10;
            this.bitField0_ |= 4;
            return this;
        }

        public ValueData_Response setExchange(int i10) {
            this.exchange_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public ValueData_Response setGoodsTime(long j10) {
            this.goodsTime_ = j10;
            this.bitField0_ |= 1;
            return this;
        }

        public ValueData_Response setTradeSession(int i10) {
            this.tradeSession_ = i10;
            this.bitField0_ |= 8;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            ValueDataRequest.ValueData_Request valueData_Request = this.requestParams;
            if (valueData_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, valueData_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt64(2, this.goodsTime_);
            }
            Map<Integer, String> map = this.fieldValue;
            if (map != null) {
                InternalNano.serializeMapField(codedOutputByteBufferNano, map, 3, 5, 9);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.exchange_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt64(5, this.category_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt32(6, this.tradeSession_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public ValueData_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            MapFactories.MapFactory mapFactory = MapFactories.getMapFactory();
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new ValueDataRequest.ValueData_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 16) {
                    this.goodsTime_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 1;
                } else if (readTag == 26) {
                    this.fieldValue = InternalNano.mergeMapEntry(codedInputByteBufferNano, this.fieldValue, mapFactory, 5, 9, null, 8, 18);
                } else if (readTag == 32) {
                    this.exchange_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 40) {
                    this.category_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 4;
                } else if (readTag == 48) {
                    this.tradeSession_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 8;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
