Package org.bitcoinj.wallet
Class Protos.TransactionConfidence
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder>
org.bitcoinj.wallet.Protos.TransactionConfidence
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Protos.TransactionConfidenceOrBuilder
- Enclosing class:
- Protos
public static final class Protos.TransactionConfidence
extends com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder>
implements Protos.TransactionConfidenceOrBuilder
A description of the confidence we have that a transaction cannot be reversed in the future. Parsing should be lenient, since this could change for different applications yet we should maintain backward compatibility.Protobuf type
wallet.TransactionConfidence
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A description of the confidence we have that a transaction cannot be reversed in the future.static enum
Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.static enum
Protobuf enumwallet.TransactionConfidence.Type
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
memoizedSerializedSize, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) int
If type == BUILDING then this is the chain height at which the transaction was included.getBroadcastBy
(int index) repeated .wallet.PeerAddress broadcast_by = 6;
int
repeated .wallet.PeerAddress broadcast_by = 6;
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByOrBuilder
(int index) repeated .wallet.PeerAddress broadcast_by = 6;
List<? extends Protos.PeerAddressOrBuilder>
repeated .wallet.PeerAddress broadcast_by = 6;
static Protos.TransactionConfidence
int
getDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.long
Millis since epoch the transaction was last announced to us.com.google.protobuf.ByteString
If set, hash of the transaction that double spent this one into oblivion.optional .wallet.TransactionConfidence.Source source = 7;
getType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.boolean
If type == BUILDING then this is the chain height at which the transaction was included.boolean
hasDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.boolean
Millis since epoch the transaction was last announced to us.boolean
If set, hash of the transaction that double spent this one into oblivion.boolean
optional .wallet.TransactionConfidence.Source source = 7;
boolean
hasType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.newBuilder
(Protos.TransactionConfidence prototype) static Protos.TransactionConfidence
parseDelimitedFrom
(InputStream input) static Protos.TransactionConfidence
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionConfidence
parseFrom
(byte[] data) static Protos.TransactionConfidence
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionConfidence
parseFrom
(com.google.protobuf.ByteString data) static Protos.TransactionConfidence
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionConfidence
parseFrom
(com.google.protobuf.CodedInputStream input) static Protos.TransactionConfidence
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionConfidence
parseFrom
(InputStream input) static Protos.TransactionConfidence
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.TransactionConfidence
parseFrom
(ByteBuffer data) static Protos.TransactionConfidence
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Protos.TransactionConfidence>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
APPEARED_AT_HEIGHT_FIELD_NUMBER
public static final int APPEARED_AT_HEIGHT_FIELD_NUMBER- See Also:
-
OVERRIDING_TRANSACTION_FIELD_NUMBER
public static final int OVERRIDING_TRANSACTION_FIELD_NUMBER- See Also:
-
DEPTH_FIELD_NUMBER
public static final int DEPTH_FIELD_NUMBER- See Also:
-
BROADCAST_BY_FIELD_NUMBER
public static final int BROADCAST_BY_FIELD_NUMBER- See Also:
-
LAST_BROADCASTED_AT_FIELD_NUMBER
public static final int LAST_BROADCASTED_AT_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
-
Method Details
-
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 interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- Whether the type field is set.
-
getType
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
- Specified by:
getType
in interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- The type.
-
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 interfaceProtos.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 interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- The appearedAtHeight.
-
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 interfaceProtos.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 interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- The overridingTransaction.
-
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 interfaceProtos.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 interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- The depth.
-
getBroadcastByList
repeated .wallet.PeerAddress broadcast_by = 6;
- Specified by:
getBroadcastByList
in interfaceProtos.TransactionConfidenceOrBuilder
-
getBroadcastByOrBuilderList
repeated .wallet.PeerAddress broadcast_by = 6;
-
getBroadcastByCount
public int getBroadcastByCount()repeated .wallet.PeerAddress broadcast_by = 6;
- Specified by:
getBroadcastByCount
in interfaceProtos.TransactionConfidenceOrBuilder
-
getBroadcastBy
repeated .wallet.PeerAddress broadcast_by = 6;
- Specified by:
getBroadcastBy
in interfaceProtos.TransactionConfidenceOrBuilder
-
getBroadcastByOrBuilder
repeated .wallet.PeerAddress broadcast_by = 6;
-
hasLastBroadcastedAt
public boolean hasLastBroadcastedAt()Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
- Specified by:
hasLastBroadcastedAt
in interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- Whether the lastBroadcastedAt field is set.
-
getLastBroadcastedAt
public long getLastBroadcastedAt()Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
- Specified by:
getLastBroadcastedAt
in interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- The lastBroadcastedAt.
-
hasSource
public boolean hasSource()optional .wallet.TransactionConfidence.Source source = 7;
- Specified by:
hasSource
in interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
optional .wallet.TransactionConfidence.Source source = 7;
- Specified by:
getSource
in interfaceProtos.TransactionConfidenceOrBuilder
- Returns:
- The source.
-
parseFrom
public static Protos.TransactionConfidence parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protos.TransactionConfidence parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static Protos.TransactionConfidence.Builder newBuilder(Protos.TransactionConfidence prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,
Protos.TransactionConfidence.Builder>
-
getDefaultInstance
-
parser
-