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;
import nano.TrendLineWithTransactionResponse;

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

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

        private static volatile TrendLineExtend_Response[] _emptyArray;

        public AnnouncementDetail announcementData;

        public TrendLineWithTransactionResponse.TrendLineWithTransaction_Response.TransactionDetail transactionData;

        public TrendLineResponse.TrendLine_Response trendData;

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

            private static volatile AnnouncementDetail[] _emptyArray;

            private String articleTitle_;

            private int bitField0_;

            private String dataMd5_;

            private long publishTime_;

            public AnnouncementDetail() {
                clear();
            }

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

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

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

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

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

            public AnnouncementDetail 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) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(3, this.dataMd5_);
                }
                return computeSerializedSize;
            }

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

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

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

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

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

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

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

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

            public AnnouncementDetail 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.writeString(3, this.dataMd5_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public AnnouncementDetail 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 == 26) {
                        this.dataMd5_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 4;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public TrendLineExtend_Response() {
            clear();
        }

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

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

        public TrendLineExtend_Response clear() {
            this.trendData = null;
            this.transactionData = null;
            this.announcementData = 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);
            }
            TrendLineWithTransactionResponse.TrendLineWithTransaction_Response.TransactionDetail transactionDetail = this.transactionData;
            if (transactionDetail != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, transactionDetail);
            }
            AnnouncementDetail announcementDetail = this.announcementData;
            if (announcementDetail != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(3, announcementDetail);
            }
            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);
            }
            TrendLineWithTransactionResponse.TrendLineWithTransaction_Response.TransactionDetail transactionDetail = this.transactionData;
            if (transactionDetail != null) {
                codedOutputByteBufferNano.writeMessage(2, transactionDetail);
            }
            AnnouncementDetail announcementDetail = this.announcementData;
            if (announcementDetail != null) {
                codedOutputByteBufferNano.writeMessage(3, announcementDetail);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public TrendLineExtend_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 TrendLineWithTransactionResponse.TrendLineWithTransaction_Response.TransactionDetail();
                    }
                    codedInputByteBufferNano.readMessage(this.transactionData);
                } else if (readTag == 26) {
                    if (this.announcementData == null) {
                        this.announcementData = new AnnouncementDetail();
                    }
                    codedInputByteBufferNano.readMessage(this.announcementData);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
