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

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

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

        private static volatile ModelDetail_Response[] _emptyArray;

        private int bitField0_;

        public Describe describe;

        public ModelDetailRequest.ModelDetail_Request input;

        public Goods[] list;

        private String model_;

        private String name_;

        private long timestamp_;

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

            private static volatile Describe[] _emptyArray;

            private int bitField0_;

            private String content_;

            private String summary_;

            private String url_;

            public Describe() {
                clear();
            }

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

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

            public Describe clear() {
                this.bitField0_ = 0;
                this.content_ = "";
                this.summary_ = "";
                this.url_ = "";
                this.cachedSize = -1;
                return this;
            }

            public Describe clearContent() {
                this.content_ = "";
                this.bitField0_ &= -2;
                return this;
            }

            public Describe clearSummary() {
                this.summary_ = "";
                this.bitField0_ &= -3;
                return this;
            }

            public Describe clearUrl() {
                this.url_ = "";
                this.bitField0_ &= -5;
                return this;
            }

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

            public String getContent() {
                return this.content_;
            }

            public String getSummary() {
                return this.summary_;
            }

            public String getUrl() {
                return this.url_;
            }

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

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

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

            public Describe setContent(String str) {
                str.getClass();
                this.content_ = str;
                this.bitField0_ |= 1;
                return this;
            }

            public Describe setSummary(String str) {
                str.getClass();
                this.summary_ = str;
                this.bitField0_ |= 2;
                return this;
            }

            public Describe setUrl(String str) {
                str.getClass();
                this.url_ = str;
                this.bitField0_ |= 4;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeString(1, this.content_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.summary_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.url_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Describe mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        this.content_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        this.summary_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 26) {
                        this.url_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 4;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile Goods[] _emptyArray;

            private int bitField0_;

            private long category_;

            private String change_;

            private String code_;

            private String colume_;

            private int exchange_;

            private int id_;

            private String name_;

            private String price_;

            private int session_;

            private int suspended_;

            public Goods() {
                clear();
            }

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

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

            public Goods clear() {
                this.bitField0_ = 0;
                this.id_ = 0;
                this.code_ = "";
                this.name_ = "";
                this.exchange_ = 0;
                this.category_ = 0;
                this.session_ = 0;
                this.price_ = "";
                this.change_ = "";
                this.colume_ = "";
                this.suspended_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

            public Goods clearChange() {
                this.change_ = "";
                this.bitField0_ &= -129;
                return this;
            }

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

            public Goods clearColume() {
                this.colume_ = "";
                this.bitField0_ &= -257;
                return this;
            }

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

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

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

            public Goods clearPrice() {
                this.price_ = "";
                this.bitField0_ &= -65;
                return this;
            }

            public Goods clearSession() {
                this.session_ = 0;
                this.bitField0_ &= -33;
                return this;
            }

            public Goods clearSuspended() {
                this.suspended_ = 0;
                this.bitField0_ &= -513;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.code_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.name_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.exchange_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.category_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(6, this.session_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(7, this.price_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(8, this.change_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(9, this.colume_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(10, this.suspended_);
                }
                return computeSerializedSize;
            }

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

            public String getChange() {
                return this.change_;
            }

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

            public String getColume() {
                return this.colume_;
            }

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

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

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

            public String getPrice() {
                return this.price_;
            }

            public int getSession() {
                return this.session_;
            }

            public int getSuspended() {
                return this.suspended_;
            }

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

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

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

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

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

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

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

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

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

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

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

            public Goods setChange(String str) {
                str.getClass();
                this.change_ = str;
                this.bitField0_ |= 128;
                return this;
            }

            public Goods setCode(String str) {
                str.getClass();
                this.code_ = str;
                this.bitField0_ |= 2;
                return this;
            }

            public Goods setColume(String str) {
                str.getClass();
                this.colume_ = str;
                this.bitField0_ |= 256;
                return this;
            }

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

            public Goods setId(int i10) {
                this.id_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

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

            public Goods setPrice(String str) {
                str.getClass();
                this.price_ = str;
                this.bitField0_ |= 64;
                return this;
            }

            public Goods setSession(int i10) {
                this.session_ = i10;
                this.bitField0_ |= 32;
                return this;
            }

            public Goods setSuspended(int i10) {
                this.suspended_ = i10;
                this.bitField0_ |= 512;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.code_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.name_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(4, this.exchange_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt64(5, this.category_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeUInt32(6, this.session_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeString(7, this.price_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeString(8, this.change_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    codedOutputByteBufferNano.writeString(9, this.colume_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    codedOutputByteBufferNano.writeUInt32(10, this.suspended_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Goods mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    switch(readTag) {
                        case 0:
                            return this;
                        case 8:
                            this.id_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                            break;
                        case 18:
                            this.code_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2;
                            break;
                        case 26:
                            this.name_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 4;
                            break;
                        case 32:
                            this.exchange_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 8;
                            break;
                        case 40:
                            this.category_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 16;
                            break;
                        case 48:
                            this.session_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 32;
                            break;
                        case 58:
                            this.price_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 64;
                            break;
                        case 66:
                            this.change_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 128;
                            break;
                        case 74:
                            this.colume_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 256;
                            break;
                        case 80:
                            this.suspended_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 512;
                            break;
                        default:
                            if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                break;
                            } else {
                                return this;
                            }
                    }
                }
            }
        }

        public ModelDetail_Response() {
            clear();
        }

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

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

        public ModelDetail_Response clear() {
            this.bitField0_ = 0;
            this.input = null;
            this.name_ = "";
            this.model_ = "";
            this.timestamp_ = 0;
            this.describe = null;
            this.list = Goods.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        public ModelDetail_Response clearModel() {
            this.model_ = "";
            this.bitField0_ &= -3;
            return this;
        }

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

        public ModelDetail_Response clearTimestamp() {
            this.timestamp_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            ModelDetailRequest.ModelDetail_Request modelDetail_Request = this.input;
            if (modelDetail_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, modelDetail_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.name_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.model_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(4, this.timestamp_);
            }
            Describe describe2 = this.describe;
            if (describe2 != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(5, describe2);
            }
            Goods[] goodsArr = this.list;
            if (goodsArr != null && goodsArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Goods[] goodsArr2 = this.list;
                    if (i10 >= goodsArr2.length) {
                        break;
                    }
                    Goods goods = goodsArr2[i10];
                    if (goods != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(6, goods);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public String getModel() {
            return this.model_;
        }

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

        public long getTimestamp() {
            return this.timestamp_;
        }

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

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

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

        public ModelDetail_Response setModel(String str) {
            str.getClass();
            this.model_ = str;
            this.bitField0_ |= 2;
            return this;
        }

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

        public ModelDetail_Response setTimestamp(long j10) {
            this.timestamp_ = j10;
            this.bitField0_ |= 4;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            ModelDetailRequest.ModelDetail_Request modelDetail_Request = this.input;
            if (modelDetail_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, modelDetail_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeString(2, this.name_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeString(3, this.model_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt64(4, this.timestamp_);
            }
            Describe describe2 = this.describe;
            if (describe2 != null) {
                codedOutputByteBufferNano.writeMessage(5, describe2);
            }
            Goods[] goodsArr = this.list;
            if (goodsArr != null && goodsArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Goods[] goodsArr2 = this.list;
                    if (i10 >= goodsArr2.length) {
                        break;
                    }
                    Goods goods = goodsArr2[i10];
                    if (goods != null) {
                        codedOutputByteBufferNano.writeMessage(6, goods);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public ModelDetail_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 ModelDetailRequest.ModelDetail_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    this.name_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 1;
                } else if (readTag == 26) {
                    this.model_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 2;
                } else if (readTag == 32) {
                    this.timestamp_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 4;
                } else if (readTag == 42) {
                    if (this.describe == null) {
                        this.describe = new Describe();
                    }
                    codedInputByteBufferNano.readMessage(this.describe);
                } else if (readTag == 50) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 50);
                    Goods[] goodsArr = this.list;
                    int length = goodsArr == null ? 0 : goodsArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Goods[] goodsArr2 = new Goods[i10];
                    if (length != 0) {
                        System.arraycopy(goodsArr, 0, goodsArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Goods goods = new Goods();
                        goodsArr2[length] = goods;
                        codedInputByteBufferNano.readMessage(goods);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Goods goods2 = new Goods();
                    goodsArr2[length] = goods2;
                    codedInputByteBufferNano.readMessage(goods2);
                    this.list = goodsArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
