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 |
static int |
WORK_DONE_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() |
long |
getWorkDone()
optional int64 work_done = 5; |
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; |
boolean |
hasWorkDone()
optional int64 work_done = 5; |
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, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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 WORK_DONE_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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.TransactionConfidence> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public 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.TransactionConfidenceOrBuilder
public 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.TransactionConfidenceOrBuilder
public 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.TransactionConfidenceOrBuilder
public 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.TransactionConfidenceOrBuilder
public 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.TransactionConfidenceOrBuilder
public 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.TransactionConfidenceOrBuilder
public 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.TransactionConfidenceOrBuilder
public 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.TransactionConfidenceOrBuilder
public boolean hasWorkDone()
optional int64 work_done = 5;
If type == BUILDING then this is the cumulative workDone for the block the transaction appears in, together with all blocks that bury it.
hasWorkDone
in interface Protos.TransactionConfidenceOrBuilder
public long getWorkDone()
optional int64 work_done = 5;
If type == BUILDING then this is the cumulative workDone for the block the transaction appears in, together with all blocks that bury it.
getWorkDone
in interface Protos.TransactionConfidenceOrBuilder
public List<Protos.PeerAddress> getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByList
in interface Protos.TransactionConfidenceOrBuilder
public List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByOrBuilderList
in interface Protos.TransactionConfidenceOrBuilder
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;
getBroadcastByOrBuilder
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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
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(InputStream input) throws IOException
IOException
public static Protos.TransactionConfidence parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.TransactionConfidence parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.TransactionConfidence parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.TransactionConfidence.Builder newBuilder()
public Protos.TransactionConfidence.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.TransactionConfidence.Builder newBuilder(Protos.TransactionConfidence prototype)
public Protos.TransactionConfidence.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.TransactionConfidence.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2014. All rights reserved.