public static final class Protos.TransactionConfidence extends com.google.protobuf.GeneratedMessageV3 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.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 com.google.protobuf.Parser<Protos.TransactionConfidence> |
PARSER
Deprecated.
|
static int |
SOURCE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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() |
Protos.TransactionConfidence |
getDefaultInstanceForType() |
int |
getDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<Protos.TransactionConfidence> |
getParserForType() |
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.TransactionConfidence.Builder |
newBuilder() |
static Protos.TransactionConfidence.Builder |
newBuilder(Protos.TransactionConfidence prototype) |
Protos.TransactionConfidence.Builder |
newBuilderForType() |
protected Protos.TransactionConfidence.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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() |
Protos.TransactionConfidence.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
@Deprecated public static final com.google.protobuf.Parser<Protos.TransactionConfidence> PARSER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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.TransactionConfidenceOrBuilderpublic 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.TransactionConfidenceOrBuilderpublic 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.TransactionConfidenceOrBuilderpublic 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.TransactionConfidenceOrBuilderpublic 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.TransactionConfidenceOrBuilderpublic 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.TransactionConfidenceOrBuilderpublic 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.TransactionConfidenceOrBuilderpublic 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.TransactionConfidenceOrBuilderpublic java.util.List<Protos.PeerAddress> getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;getBroadcastByList in interface Protos.TransactionConfidenceOrBuilderpublic java.util.List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6;getBroadcastByOrBuilderList in interface Protos.TransactionConfidenceOrBuilderpublic int getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6;getBroadcastByCount in interface Protos.TransactionConfidenceOrBuilderpublic Protos.PeerAddress getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6;getBroadcastBy in interface Protos.TransactionConfidenceOrBuilderpublic Protos.PeerAddressOrBuilder getBroadcastByOrBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6;getBroadcastByOrBuilder in interface Protos.TransactionConfidenceOrBuilderpublic boolean hasLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;hasLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilderpublic long getLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;getLastBroadcastedAt in interface Protos.TransactionConfidenceOrBuilderpublic boolean hasSource()
optional .wallet.TransactionConfidence.Source source = 7;hasSource in interface Protos.TransactionConfidenceOrBuilderpublic Protos.TransactionConfidence.Source getSource()
optional .wallet.TransactionConfidence.Source source = 7;getSource in interface Protos.TransactionConfidenceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Protos.TransactionConfidence parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TransactionConfidence parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TransactionConfidence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TransactionConfidence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TransactionConfidence parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TransactionConfidence parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TransactionConfidence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TransactionConfidence parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.TransactionConfidence.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.TransactionConfidence.Builder newBuilder()
public static Protos.TransactionConfidence.Builder newBuilder(Protos.TransactionConfidence prototype)
public Protos.TransactionConfidence.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.TransactionConfidence.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Protos.TransactionConfidence getDefaultInstance()
public static com.google.protobuf.Parser<Protos.TransactionConfidence> parser()
public com.google.protobuf.Parser<Protos.TransactionConfidence> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Protos.TransactionConfidence getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder