org.bitcoinj.wallet
Class Protos.TransactionConfidence.Builder

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

public static final class Protos.TransactionConfidence.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>
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.
 


Method Summary
 Protos.TransactionConfidence.Builder addAllBroadcastBy(Iterable<? extends Protos.PeerAddress> values)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder addBroadcastBy(int index, Protos.PeerAddress.Builder builderForValue)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder addBroadcastBy(int index, Protos.PeerAddress value)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder addBroadcastBy(Protos.PeerAddress.Builder builderForValue)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder addBroadcastBy(Protos.PeerAddress value)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.PeerAddress.Builder addBroadcastByBuilder()
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.PeerAddress.Builder addBroadcastByBuilder(int index)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence build()
           
 Protos.TransactionConfidence buildPartial()
           
 Protos.TransactionConfidence.Builder clear()
           
 Protos.TransactionConfidence.Builder clearAppearedAtHeight()
          optional int32 appeared_at_height = 2;
 Protos.TransactionConfidence.Builder clearBroadcastBy()
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder clearDepth()
          optional int32 depth = 4;
 Protos.TransactionConfidence.Builder clearOverridingTransaction()
          optional bytes overriding_transaction = 3;
 Protos.TransactionConfidence.Builder clearSource()
          optional .wallet.TransactionConfidence.Source source = 7;
 Protos.TransactionConfidence.Builder clearType()
          optional .wallet.TransactionConfidence.Type type = 1;
 Protos.TransactionConfidence.Builder clearWorkDone()
          optional int64 work_done = 5;
 Protos.TransactionConfidence.Builder clone()
           
 int getAppearedAtHeight()
          optional int32 appeared_at_height = 2;
 Protos.PeerAddress getBroadcastBy(int index)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.PeerAddress.Builder getBroadcastByBuilder(int index)
          repeated .wallet.PeerAddress broadcast_by = 6;
 List<Protos.PeerAddress.Builder> getBroadcastByBuilderList()
          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;
 Protos.TransactionConfidence getDefaultInstanceForType()
           
 int getDepth()
          optional int32 depth = 4;
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 com.google.protobuf.ByteString getOverridingTransaction()
          optional bytes overriding_transaction = 3;
 Protos.TransactionConfidence.Source getSource()
          optional .wallet.TransactionConfidence.Source source = 7;
 Protos.TransactionConfidence.Type getType()
          optional .wallet.TransactionConfidence.Type type = 1;
 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()
           
 Protos.TransactionConfidence.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.TransactionConfidence.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.TransactionConfidence.Builder mergeFrom(Protos.TransactionConfidence other)
           
 Protos.TransactionConfidence.Builder removeBroadcastBy(int index)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder setAppearedAtHeight(int value)
          optional int32 appeared_at_height = 2;
 Protos.TransactionConfidence.Builder setBroadcastBy(int index, Protos.PeerAddress.Builder builderForValue)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder setBroadcastBy(int index, Protos.PeerAddress value)
          repeated .wallet.PeerAddress broadcast_by = 6;
 Protos.TransactionConfidence.Builder setDepth(int value)
          optional int32 depth = 4;
 Protos.TransactionConfidence.Builder setOverridingTransaction(com.google.protobuf.ByteString value)
          optional bytes overriding_transaction = 3;
 Protos.TransactionConfidence.Builder setSource(Protos.TransactionConfidence.Source value)
          optional .wallet.TransactionConfidence.Source source = 7;
 Protos.TransactionConfidence.Builder setType(Protos.TransactionConfidence.Type value)
          optional .wallet.TransactionConfidence.Type type = 1;
 Protos.TransactionConfidence.Builder setWorkDone(long value)
          optional int64 work_done = 5;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

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.Builder<Protos.TransactionConfidence.Builder>

clear

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

clone

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

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

public Protos.TransactionConfidence.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.TransactionConfidence.Builder>

mergeFrom

public Protos.TransactionConfidence.Builder mergeFrom(Protos.TransactionConfidence other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>

mergeFrom

public Protos.TransactionConfidence.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.TransactionConfidence.Builder>
Throws:
IOException

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

setType

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


clearType

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


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

setAppearedAtHeight

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


clearAppearedAtHeight

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


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

setOverridingTransaction

public Protos.TransactionConfidence.Builder setOverridingTransaction(com.google.protobuf.ByteString value)
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.
 


clearOverridingTransaction

public Protos.TransactionConfidence.Builder clearOverridingTransaction()
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.
 


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

setDepth

public Protos.TransactionConfidence.Builder setDepth(int value)
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.
 


clearDepth

public Protos.TransactionConfidence.Builder clearDepth()
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.
 


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

setWorkDone

public Protos.TransactionConfidence.Builder setWorkDone(long value)
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.
 


clearWorkDone

public Protos.TransactionConfidence.Builder clearWorkDone()
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.
 


getBroadcastByList

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

Specified by:
getBroadcastByList 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

setBroadcastBy

public Protos.TransactionConfidence.Builder setBroadcastBy(int index,
                                                           Protos.PeerAddress value)
repeated .wallet.PeerAddress broadcast_by = 6;


setBroadcastBy

public Protos.TransactionConfidence.Builder setBroadcastBy(int index,
                                                           Protos.PeerAddress.Builder builderForValue)
repeated .wallet.PeerAddress broadcast_by = 6;


addBroadcastBy

public Protos.TransactionConfidence.Builder addBroadcastBy(Protos.PeerAddress value)
repeated .wallet.PeerAddress broadcast_by = 6;


addBroadcastBy

public Protos.TransactionConfidence.Builder addBroadcastBy(int index,
                                                           Protos.PeerAddress value)
repeated .wallet.PeerAddress broadcast_by = 6;


addBroadcastBy

public Protos.TransactionConfidence.Builder addBroadcastBy(Protos.PeerAddress.Builder builderForValue)
repeated .wallet.PeerAddress broadcast_by = 6;


addBroadcastBy

public Protos.TransactionConfidence.Builder addBroadcastBy(int index,
                                                           Protos.PeerAddress.Builder builderForValue)
repeated .wallet.PeerAddress broadcast_by = 6;


addAllBroadcastBy

public Protos.TransactionConfidence.Builder addAllBroadcastBy(Iterable<? extends Protos.PeerAddress> values)
repeated .wallet.PeerAddress broadcast_by = 6;


clearBroadcastBy

public Protos.TransactionConfidence.Builder clearBroadcastBy()
repeated .wallet.PeerAddress broadcast_by = 6;


removeBroadcastBy

public Protos.TransactionConfidence.Builder removeBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6;


getBroadcastByBuilder

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


getBroadcastByOrBuilder

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

Specified by:
getBroadcastByOrBuilder in interface Protos.TransactionConfidenceOrBuilder

getBroadcastByOrBuilderList

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

Specified by:
getBroadcastByOrBuilderList in interface Protos.TransactionConfidenceOrBuilder

addBroadcastByBuilder

public Protos.PeerAddress.Builder addBroadcastByBuilder()
repeated .wallet.PeerAddress broadcast_by = 6;


addBroadcastByBuilder

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


getBroadcastByBuilderList

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


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

setSource

public Protos.TransactionConfidence.Builder setSource(Protos.TransactionConfidence.Source value)
optional .wallet.TransactionConfidence.Source source = 7;


clearSource

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



Copyright © 2014. All rights reserved.