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

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

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

        private static volatile TrendLineWithTransaction_Response[] _emptyArray;

        public TransactionDetail transactionData;

        public TrendLineResponse.TrendLine_Response trendData;

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

            private static volatile TransactionDetail[] _emptyArray;

            private String articleReason_;

            private String articleTitle_;

            private int articleType_;

            private int bitField0_;

            private String dataMd5_;

            private long publishTime_;

            public TransactionDetail() {
                clear();
            }

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

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

            public TransactionDetail clear() {
                this.bitField0_ = 0;
                this.publishTime_ = 0;
                this.articleTitle_ = "";
                this.articleType_ = 0;
                this.articleReason_ = "";
                this.dataMd5_ = "";
                this.cachedSize = -1;
                return this;
            }

            public TransactionDetail clearArticleReason() {
                this.articleReason_ = "";
                this.bitField0_ &= -9;
                return this;
            }

            public TransactionDetail clearArticleTitle() {
                this.articleTitle_ = "";
                this.bitField0_ &= -3;
                return this;
            }

            public TransactionDetail clearArticleType() {
                this.articleType_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public TransactionDetail clearDataMd5() {
                this.dataMd5_ = "";
                this.bitField0_ &= -17;
                return this;
            }

            public TransactionDetail clearPublishTime() {
                this.publishTime_ = 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.computeUInt64Size(1, this.publishTime_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.articleTitle_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(3, this.articleType_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(4, this.articleReason_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(5, this.dataMd5_);
                }
                return computeSerializedSize;
            }

            public String getArticleReason() {
                return this.articleReason_;
            }

            public String getArticleTitle() {
                return this.articleTitle_;
            }

            public int getArticleType() {
                return this.articleType_;
            }

            public String getDataMd5() {
                return this.dataMd5_;
            }

            public long getPublishTime() {
                return this.publishTime_;
            }

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

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

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

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

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

            public TransactionDetail setArticleReason(String str) {
                str.getClass();
                this.articleReason_ = str;
                this.bitField0_ |= 8;
                return this;
            }

            public TransactionDetail setArticleTitle(String str) {
                str.getClass();
                this.articleTitle_ = str;
                this.bitField0_ |= 2;
                return this;
            }

            public TransactionDetail setArticleType(int i10) {
                this.articleType_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public TransactionDetail setDataMd5(String str) {
                str.getClass();
                this.dataMd5_ = str;
                this.bitField0_ |= 16;
                return this;
            }

            public TransactionDetail setPublishTime(long j10) {
                this.publishTime_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt64(1, this.publishTime_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.articleTitle_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeSInt32(3, this.articleType_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeString(4, this.articleReason_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeString(5, this.dataMd5_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public TransactionDetail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.publishTime_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        this.articleTitle_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.articleType_ = codedInputByteBufferNano.readSInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 34) {
                        this.articleReason_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 8;
                    } else if (readTag == 42) {
                        this.dataMd5_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 16;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public TrendLineWithTransaction_Response() {
            clear();
        }

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

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

        public TrendLineWithTransaction_Response clear() {
            this.trendData = null;
            this.transactionData = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            TrendLineResponse.TrendLine_Response trendLine_Response = this.trendData;
            if (trendLine_Response != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, trendLine_Response);
            }
            TransactionDetail transactionDetail = this.transactionData;
            if (transactionDetail != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, transactionDetail);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            TrendLineResponse.TrendLine_Response trendLine_Response = this.trendData;
            if (trendLine_Response != null) {
                codedOutputByteBufferNano.writeMessage(1, trendLine_Response);
            }
            TransactionDetail transactionDetail = this.transactionData;
            if (transactionDetail != null) {
                codedOutputByteBufferNano.writeMessage(2, transactionDetail);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public TrendLineWithTransaction_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.trendData == null) {
                        this.trendData = new TrendLineResponse.TrendLine_Response();
                    }
                    codedInputByteBufferNano.readMessage(this.trendData);
                } else if (readTag == 18) {
                    if (this.transactionData == null) {
                        this.transactionData = new TransactionDetail();
                    }
                    codedInputByteBufferNano.readMessage(this.transactionData);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
