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

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

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

        private static volatile TrendLineWithTransaction_Request[] _emptyArray;

        private int bitField0_;

        private boolean ignoreTransaction_;

        public TrendLineRequest.TrendLine_Request requstParam;

        private String transactionMd5_;

        public TrendLineWithTransaction_Request() {
            clear();
        }

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

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

        public TrendLineWithTransaction_Request clear() {
            this.bitField0_ = 0;
            this.requstParam = null;
            this.ignoreTransaction_ = false;
            this.transactionMd5_ = "";
            this.cachedSize = -1;
            return this;
        }

        public TrendLineWithTransaction_Request clearIgnoreTransaction() {
            this.ignoreTransaction_ = false;
            this.bitField0_ &= -2;
            return this;
        }

        public TrendLineWithTransaction_Request clearTransactionMd5() {
            this.transactionMd5_ = "";
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            TrendLineRequest.TrendLine_Request trendLine_Request = this.requstParam;
            if (trendLine_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, trendLine_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeBoolSize(2, this.ignoreTransaction_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(3, this.transactionMd5_);
            }
            return computeSerializedSize;
        }

        public boolean getIgnoreTransaction() {
            return this.ignoreTransaction_;
        }

        public String getTransactionMd5() {
            return this.transactionMd5_;
        }

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

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

        public TrendLineWithTransaction_Request setIgnoreTransaction(boolean z9) {
            this.ignoreTransaction_ = z9;
            this.bitField0_ |= 1;
            return this;
        }

        public TrendLineWithTransaction_Request setTransactionMd5(String str) {
            str.getClass();
            this.transactionMd5_ = str;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            TrendLineRequest.TrendLine_Request trendLine_Request = this.requstParam;
            if (trendLine_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, trendLine_Request);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeBool(2, this.ignoreTransaction_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeString(3, this.transactionMd5_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public TrendLineWithTransaction_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requstParam == null) {
                        this.requstParam = new TrendLineRequest.TrendLine_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requstParam);
                } else if (readTag == 16) {
                    this.ignoreTransaction_ = codedInputByteBufferNano.readBool();
                    this.bitField0_ |= 1;
                } else if (readTag == 26) {
                    this.transactionMd5_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
