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
Modifier and Type | Class and Description |
---|---|
static class |
Protos.TransactionConfidence.Builder
A description of the confidence we have that a transaction cannot be reversed in the future.
|
static class |
Protos.TransactionConfidence.Source
Where did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.
|
static class |
Protos.TransactionConfidence.Type
Protobuf enum
wallet.TransactionConfidence.Type |
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>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
Modifier and Type | Field and Description |
---|---|
static int |
APPEARED_AT_HEIGHT_FIELD_NUMBER |
static int |
BROADCAST_BY_FIELD_NUMBER |
static int |
DEPTH_FIELD_NUMBER |
static int |
LAST_BROADCASTED_AT_FIELD_NUMBER |
static int |
OVERRIDING_TRANSACTION_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0,
java.lang.Object arg1) |
int |
getAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
|
Protos.PeerAddress |
getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
int |
getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6; |
java.util.List<Protos.PeerAddress> |
getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6; |
Protos.PeerAddressOrBuilder |
getBroadcastByOrBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
java.util.List<? extends Protos.PeerAddressOrBuilder> |
getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6; |
static Protos.TransactionConfidence |
getDefaultInstance() |
int |
getDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.
|
long |
getLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
|
com.google.protobuf.ByteString |
getOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion.
|
Protos.TransactionConfidence.Source |
getSource()
optional .wallet.TransactionConfidence.Source source = 7; |
Protos.TransactionConfidence.Type |
getType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
|
boolean |
hasAppearedAtHeight()
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 |
hasLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
|
boolean |
hasOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion.
|
boolean |
hasSource()
optional .wallet.TransactionConfidence.Source source = 7; |
boolean |
hasType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
|
static Protos.TransactionConfidence.Builder |
newBuilder() |
static Protos.TransactionConfidence.Builder |
newBuilder(Protos.TransactionConfidence prototype) |
static Protos.TransactionConfidence |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.TransactionConfidence |
parseDelimitedFrom(java.io.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(java.nio.ByteBuffer data) |
static Protos.TransactionConfidence |
parseFrom(java.nio.ByteBuffer 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(java.io.InputStream input) |
static Protos.TransactionConfidence |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protos.TransactionConfidence> |
parser() |
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
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TYPE_FIELD_NUMBER
public static final int APPEARED_AT_HEIGHT_FIELD_NUMBER
public static final int OVERRIDING_TRANSACTION_FIELD_NUMBER
public static final int DEPTH_FIELD_NUMBER
public static final int BROADCAST_BY_FIELD_NUMBER
public static final int LAST_BROADCASTED_AT_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public boolean hasType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
hasType
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Type getType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
getType
in interface Protos.TransactionConfidenceOrBuilder
public boolean hasAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
hasAppearedAtHeight
in interface Protos.TransactionConfidenceOrBuilder
public int getAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
getAppearedAtHeight
in interface Protos.TransactionConfidenceOrBuilder
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;
hasOverridingTransaction
in interface Protos.TransactionConfidenceOrBuilder
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;
getOverridingTransaction
in interface Protos.TransactionConfidenceOrBuilder
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;
hasDepth
in interface Protos.TransactionConfidenceOrBuilder
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;
getDepth
in interface Protos.TransactionConfidenceOrBuilder
public java.util.List<Protos.PeerAddress> getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByList
in interface Protos.TransactionConfidenceOrBuilder
public java.util.List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6;
public int getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByCount
in interface Protos.TransactionConfidenceOrBuilder
public Protos.PeerAddress getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastBy
in interface Protos.TransactionConfidenceOrBuilder
public Protos.PeerAddressOrBuilder getBroadcastByOrBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
public boolean hasLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
hasLastBroadcastedAt
in interface Protos.TransactionConfidenceOrBuilder
public long getLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
getLastBroadcastedAt
in interface Protos.TransactionConfidenceOrBuilder
public boolean hasSource()
optional .wallet.TransactionConfidence.Source source = 7;
hasSource
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Source getSource()
optional .wallet.TransactionConfidence.Source source = 7;
getSource
in interface Protos.TransactionConfidenceOrBuilder
public static Protos.TransactionConfidence parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TransactionConfidence parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TransactionConfidence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TransactionConfidence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TransactionConfidence parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TransactionConfidence parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.TransactionConfidence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TransactionConfidence parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.TransactionConfidence.Builder newBuilder()
public static Protos.TransactionConfidence.Builder newBuilder(Protos.TransactionConfidence prototype)
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
dynamicMethod
in class com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder>
public static Protos.TransactionConfidence getDefaultInstance()
public static com.google.protobuf.Parser<Protos.TransactionConfidence> parser()