org.bitcoinj.wallet
Class Protos.TransactionConfidence

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.AbstractMessage
          extended by com.google.protobuf.GeneratedMessage
              extended by org.bitcoinj.wallet.Protos.TransactionConfidence
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Protos.TransactionConfidenceOrBuilder
Enclosing class:
Protos

public static final class Protos.TransactionConfidence
extends com.google.protobuf.GeneratedMessage
implements Protos.TransactionConfidenceOrBuilder

Protobuf type 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.
 

See Also:
Serialized Form

Nested Class Summary
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
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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>
 
Field Summary
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
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Method Summary
 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)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessage
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
 
Methods inherited from class com.google.protobuf.AbstractMessage
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
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.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, hasField
 
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 

Field Detail

PARSER

public static com.google.protobuf.Parser<Protos.TransactionConfidence> PARSER

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
See Also:
Constant Field Values

APPEARED_AT_HEIGHT_FIELD_NUMBER

public static final int APPEARED_AT_HEIGHT_FIELD_NUMBER
See Also:
Constant Field Values

OVERRIDING_TRANSACTION_FIELD_NUMBER

public static final int OVERRIDING_TRANSACTION_FIELD_NUMBER
See Also:
Constant Field Values

DEPTH_FIELD_NUMBER

public static final int DEPTH_FIELD_NUMBER
See Also:
Constant Field Values

WORK_DONE_FIELD_NUMBER

public static final int WORK_DONE_FIELD_NUMBER
See Also:
Constant Field Values

BROADCAST_BY_FIELD_NUMBER

public static final int BROADCAST_BY_FIELD_NUMBER
See Also:
Constant Field Values

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
See Also:
Constant Field Values
Method Detail

getDefaultInstance

public static Protos.TransactionConfidence getDefaultInstance()

getDefaultInstanceForType

public Protos.TransactionConfidence getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

getUnknownFields

public final com.google.protobuf.UnknownFieldSet getUnknownFields()
Specified by:
getUnknownFields in interface com.google.protobuf.MessageOrBuilder
Overrides:
getUnknownFields in class com.google.protobuf.GeneratedMessage

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage

getParserForType

public com.google.protobuf.Parser<Protos.TransactionConfidence> getParserForType()
Specified by:
getParserForType in interface com.google.protobuf.Message
Specified by:
getParserForType in interface com.google.protobuf.MessageLite
Overrides:
getParserForType in class com.google.protobuf.GeneratedMessage

hasType

public boolean hasType()
optional .wallet.TransactionConfidence.Type type = 1;
 This is optional in case we add confidence types to prevent parse errors - backwards compatible.
 

Specified by:
hasType in interface Protos.TransactionConfidenceOrBuilder

getType

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.
 

Specified by:
getType in interface Protos.TransactionConfidenceOrBuilder

hasAppearedAtHeight

public boolean hasAppearedAtHeight()
optional int32 appeared_at_height = 2;
 If type == BUILDING then this is the chain height at which the transaction was included.
 

Specified by:
hasAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder

getAppearedAtHeight

public int getAppearedAtHeight()
optional int32 appeared_at_height = 2;
 If type == BUILDING then this is the chain height at which the transaction was included.
 

Specified by:
getAppearedAtHeight in interface Protos.TransactionConfidenceOrBuilder

hasOverridingTransaction

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.
 

Specified by:
hasOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder

getOverridingTransaction

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.
 

Specified by:
getOverridingTransaction in interface Protos.TransactionConfidenceOrBuilder

hasDepth

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.
 

Specified by:
hasDepth in interface Protos.TransactionConfidenceOrBuilder

getDepth

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.
 

Specified by:
getDepth in interface Protos.TransactionConfidenceOrBuilder

hasWorkDone

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.
 

Specified by:
hasWorkDone in interface Protos.TransactionConfidenceOrBuilder

getWorkDone

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.
 

Specified by:
getWorkDone in interface Protos.TransactionConfidenceOrBuilder

getBroadcastByList

public List<Protos.PeerAddress> getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;

Specified by:
getBroadcastByList in interface Protos.TransactionConfidenceOrBuilder

getBroadcastByOrBuilderList

public List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6;

Specified by:
getBroadcastByOrBuilderList in interface Protos.TransactionConfidenceOrBuilder

getBroadcastByCount

public int getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6;

Specified by:
getBroadcastByCount in interface Protos.TransactionConfidenceOrBuilder

getBroadcastBy

public Protos.PeerAddress getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6;

Specified by:
getBroadcastBy in interface Protos.TransactionConfidenceOrBuilder

getBroadcastByOrBuilder

public Protos.PeerAddressOrBuilder getBroadcastByOrBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6;

Specified by:
getBroadcastByOrBuilder in interface Protos.TransactionConfidenceOrBuilder

hasSource

public boolean hasSource()
optional .wallet.TransactionConfidence.Source source = 7;

Specified by:
hasSource in interface Protos.TransactionConfidenceOrBuilder

getSource

public Protos.TransactionConfidence.Source getSource()
optional .wallet.TransactionConfidence.Source source = 7;

Specified by:
getSource in interface Protos.TransactionConfidenceOrBuilder

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output)
             throws IOException
Specified by:
writeTo in interface com.google.protobuf.MessageLite
Overrides:
writeTo in class com.google.protobuf.AbstractMessage
Throws:
IOException

getSerializedSize

public int getSerializedSize()
Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite
Overrides:
getSerializedSize in class com.google.protobuf.AbstractMessage

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Overrides:
writeReplace in class com.google.protobuf.GeneratedMessage
Throws:
ObjectStreamException

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

public static Protos.TransactionConfidence parseFrom(InputStream input)
                                              throws IOException
Throws:
IOException

parseFrom

public static Protos.TransactionConfidence parseFrom(InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws IOException
Throws:
IOException

parseDelimitedFrom

public static Protos.TransactionConfidence parseDelimitedFrom(InputStream input)
                                                       throws IOException
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

public static Protos.TransactionConfidence.Builder newBuilder()

newBuilderForType

public Protos.TransactionConfidence.Builder newBuilderForType()
Specified by:
newBuilderForType in interface com.google.protobuf.Message
Specified by:
newBuilderForType in interface com.google.protobuf.MessageLite

newBuilder

public static Protos.TransactionConfidence.Builder newBuilder(Protos.TransactionConfidence prototype)

toBuilder

public Protos.TransactionConfidence.Builder toBuilder()
Specified by:
toBuilder in interface com.google.protobuf.Message
Specified by:
toBuilder in interface com.google.protobuf.MessageLite

newBuilderForType

protected Protos.TransactionConfidence.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
Specified by:
newBuilderForType in class com.google.protobuf.GeneratedMessage


Copyright © 2014. All rights reserved.