Class Protos.TransactionConfidence.Builder

    • Method Detail

      • hasType

        public boolean hasType()
         This is optional in case we add confidence types to prevent parse errors - backwards compatible.
         
        optional .wallet.TransactionConfidence.Type type = 1;
        Specified by:
        hasType in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the type field is set.
      • setType

        public Protos.TransactionConfidence.Builder setType​(Protos.TransactionConfidence.Type value)
         This is optional in case we add confidence types to prevent parse errors - backwards compatible.
         
        optional .wallet.TransactionConfidence.Type type = 1;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Protos.TransactionConfidence.Builder clearType()
         This is optional in case we add confidence types to prevent parse errors - backwards compatible.
         
        optional .wallet.TransactionConfidence.Type type = 1;
        Returns:
        This builder for chaining.
      • hasAppearedAtHeight

        public boolean hasAppearedAtHeight()
         If type == BUILDING then this is the chain height at which the transaction was included.
         
        optional int32 appeared_at_height = 2;
        Specified by:
        hasAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the appearedAtHeight field is set.
      • getAppearedAtHeight

        public int getAppearedAtHeight()
         If type == BUILDING then this is the chain height at which the transaction was included.
         
        optional int32 appeared_at_height = 2;
        Specified by:
        getAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        The appearedAtHeight.
      • setAppearedAtHeight

        public Protos.TransactionConfidence.Builder setAppearedAtHeight​(int value)
         If type == BUILDING then this is the chain height at which the transaction was included.
         
        optional int32 appeared_at_height = 2;
        Parameters:
        value - The appearedAtHeight to set.
        Returns:
        This builder for chaining.
      • clearAppearedAtHeight

        public Protos.TransactionConfidence.Builder clearAppearedAtHeight()
         If type == BUILDING then this is the chain height at which the transaction was included.
         
        optional int32 appeared_at_height = 2;
        Returns:
        This builder for chaining.
      • hasOverridingTransaction

        public boolean hasOverridingTransaction()
         If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
         multiple transactions in the case of several inputs being re-spent by several transactions but we don't
         bother to track them all, just the first. This only makes sense if type = DEAD.
         
        optional bytes overriding_transaction = 3;
        Specified by:
        hasOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the overridingTransaction field is set.
      • getOverridingTransaction

        public com.google.protobuf.ByteString getOverridingTransaction()
         If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
         multiple transactions in the case of several inputs being re-spent by several transactions but we don't
         bother to track them all, just the first. This only makes sense if type = DEAD.
         
        optional bytes overriding_transaction = 3;
        Specified by:
        getOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        The overridingTransaction.
      • setOverridingTransaction

        public Protos.TransactionConfidence.Builder setOverridingTransaction​(com.google.protobuf.ByteString value)
         If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
         multiple transactions in the case of several inputs being re-spent by several transactions but we don't
         bother to track them all, just the first. This only makes sense if type = DEAD.
         
        optional bytes overriding_transaction = 3;
        Parameters:
        value - The overridingTransaction to set.
        Returns:
        This builder for chaining.
      • clearOverridingTransaction

        public Protos.TransactionConfidence.Builder clearOverridingTransaction()
         If set, hash of the transaction that double spent this one into oblivion. A transaction can be double spent by
         multiple transactions in the case of several inputs being re-spent by several transactions but we don't
         bother to track them all, just the first. This only makes sense if type = DEAD.
         
        optional bytes overriding_transaction = 3;
        Returns:
        This builder for chaining.
      • hasDepth

        public boolean hasDepth()
         If type == BUILDING then this is the depth of the transaction in the blockchain.
         Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
         
        optional int32 depth = 4;
        Specified by:
        hasDepth in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the depth field is set.
      • getDepth

        public int getDepth()
         If type == BUILDING then this is the depth of the transaction in the blockchain.
         Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
         
        optional int32 depth = 4;
        Specified by:
        getDepth in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        The depth.
      • setDepth

        public Protos.TransactionConfidence.Builder setDepth​(int value)
         If type == BUILDING then this is the depth of the transaction in the blockchain.
         Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
         
        optional int32 depth = 4;
        Parameters:
        value - The depth to set.
        Returns:
        This builder for chaining.
      • clearDepth

        public Protos.TransactionConfidence.Builder clearDepth()
         If type == BUILDING then this is the depth of the transaction in the blockchain.
         Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
         
        optional int32 depth = 4;
        Returns:
        This builder for chaining.
      • hasLastBroadcastedAt

        public boolean hasLastBroadcastedAt()
         Millis since epoch the transaction was last announced to us.
         
        optional int64 last_broadcasted_at = 8;
        Specified by:
        hasLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilder
        Returns:
        Whether the lastBroadcastedAt field is set.
      • setLastBroadcastedAt

        public Protos.TransactionConfidence.Builder setLastBroadcastedAt​(long value)
         Millis since epoch the transaction was last announced to us.
         
        optional int64 last_broadcasted_at = 8;
        Parameters:
        value - The lastBroadcastedAt to set.
        Returns:
        This builder for chaining.
      • clearLastBroadcastedAt

        public Protos.TransactionConfidence.Builder clearLastBroadcastedAt()
         Millis since epoch the transaction was last announced to us.
         
        optional int64 last_broadcasted_at = 8;
        Returns:
        This builder for chaining.