public static final class Protos.TransactionConfidence extends com.google.protobuf.GeneratedMessage implements Protos.TransactionConfidenceOrBuilder
wallet.TransactionConfidence
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.TransactionConfidence.Builder
Protobuf type
wallet.TransactionConfidence |
static class |
Protos.TransactionConfidence.Source
Protobuf enum
wallet.TransactionConfidence.Source |
static class |
Protos.TransactionConfidence.Type
Protobuf enum
wallet.TransactionConfidence.Type |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| 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 |
OVERRIDING_TRANSACTION_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.TransactionConfidence> |
PARSER |
static int |
SOURCE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
int |
getAppearedAtHeight()
optional int32 appeared_at_height = 2; |
Protos.PeerAddress |
getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
int |
getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6; |
List<Protos.PeerAddress> |
getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6; |
Protos.PeerAddressOrBuilder |
getBroadcastByOrBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
List<? extends Protos.PeerAddressOrBuilder> |
getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6; |
static Protos.TransactionConfidence |
getDefaultInstance() |
Protos.TransactionConfidence |
getDefaultInstanceForType() |
int |
getDepth()
optional int32 depth = 4; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getOverridingTransaction()
optional bytes overriding_transaction = 3; |
com.google.protobuf.Parser<Protos.TransactionConfidence> |
getParserForType() |
int |
getSerializedSize() |
Protos.TransactionConfidence.Source |
getSource()
optional .wallet.TransactionConfidence.Source source = 7; |
Protos.TransactionConfidence.Type |
getType()
optional .wallet.TransactionConfidence.Type type = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAppearedAtHeight()
optional int32 appeared_at_height = 2; |
boolean |
hasDepth()
optional int32 depth = 4; |
boolean |
hasOverridingTransaction()
optional bytes overriding_transaction = 3; |
boolean |
hasSource()
optional .wallet.TransactionConfidence.Source source = 7; |
boolean |
hasType()
optional .wallet.TransactionConfidence.Type type = 1; |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) |
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) |
Protos.TransactionConfidence.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<Protos.TransactionConfidence> PARSER
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 SOURCE_FIELD_NUMBER
public static Protos.TransactionConfidence getDefaultInstance()
public Protos.TransactionConfidence getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessagepublic boolean hasType()
optional .wallet.TransactionConfidence.Type type = 1;
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
hasType in interface Protos.TransactionConfidenceOrBuilderpublic Protos.TransactionConfidence.Type getType()
optional .wallet.TransactionConfidence.Type type = 1;
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
getType in interface Protos.TransactionConfidenceOrBuilderpublic boolean hasAppearedAtHeight()
optional int32 appeared_at_height = 2;
If type == BUILDING then this is the chain height at which the transaction was included.
hasAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilderpublic int getAppearedAtHeight()
optional int32 appeared_at_height = 2;
If type == BUILDING then this is the chain height at which the transaction was included.
getAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilderpublic boolean hasOverridingTransaction()
optional bytes overriding_transaction = 3;
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.
hasOverridingTransaction in interface Protos.TransactionConfidenceOrBuilderpublic com.google.protobuf.ByteString getOverridingTransaction()
optional bytes overriding_transaction = 3;
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.
getOverridingTransaction in interface Protos.TransactionConfidenceOrBuilderpublic boolean hasDepth()
optional int32 depth = 4;
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
hasDepth in interface Protos.TransactionConfidenceOrBuilderpublic int getDepth()
optional int32 depth = 4;
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
getDepth in interface Protos.TransactionConfidenceOrBuilderpublic List<Protos.PeerAddress> getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;getBroadcastByList in interface Protos.TransactionConfidenceOrBuilderpublic 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 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.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic 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(InputStream input) throws IOException
IOExceptionpublic static Protos.TransactionConfidence parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.TransactionConfidence parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.TransactionConfidence parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.TransactionConfidence.Builder newBuilder()
public Protos.TransactionConfidence.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.