public static final class Protos.TransactionConfidence.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder> 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 | Method and Description |
---|---|
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 |
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; |
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() |
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; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.TransactionConfidence build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.TransactionConfidence buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.TransactionConfidence.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder mergeFrom(Protos.TransactionConfidence other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.TransactionConfidence.Builder>
IOException
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 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.
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.
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 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.
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.
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 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.
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.
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 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.
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.
public List<Protos.PeerAddress> getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByList
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.TransactionConfidence.Builder setBroadcastBy(int index, Protos.PeerAddress value)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder setBroadcastBy(int index, Protos.PeerAddress.Builder builderForValue)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder addBroadcastBy(Protos.PeerAddress value)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder addBroadcastBy(int index, Protos.PeerAddress value)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder addBroadcastBy(Protos.PeerAddress.Builder builderForValue)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder addBroadcastBy(int index, Protos.PeerAddress.Builder builderForValue)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder addAllBroadcastBy(Iterable<? extends Protos.PeerAddress> values)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder clearBroadcastBy()
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.TransactionConfidence.Builder removeBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.PeerAddress.Builder getBroadcastByBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.PeerAddressOrBuilder getBroadcastByOrBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByOrBuilder
in interface Protos.TransactionConfidenceOrBuilder
public List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6;
getBroadcastByOrBuilderList
in interface Protos.TransactionConfidenceOrBuilder
public Protos.PeerAddress.Builder addBroadcastByBuilder()
repeated .wallet.PeerAddress broadcast_by = 6;
public Protos.PeerAddress.Builder addBroadcastByBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6;
public List<Protos.PeerAddress.Builder> getBroadcastByBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6;
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 Protos.TransactionConfidence.Builder setSource(Protos.TransactionConfidence.Source value)
optional .wallet.TransactionConfidence.Source source = 7;
public Protos.TransactionConfidence.Builder clearSource()
optional .wallet.TransactionConfidence.Source source = 7;
Copyright © 2014. All rights reserved.