public static final class Protos.TransactionConfidence.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder> implements Protos.TransactionConfidenceOrBuilder
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.Protobuf type
wallet.TransactionConfidence
Modifier and Type | Method and Description |
---|---|
Protos.TransactionConfidence.Builder |
addAllBroadcastBy(java.lang.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.TransactionConfidence |
build() |
Protos.TransactionConfidence |
buildPartial() |
Protos.TransactionConfidence.Builder |
clear() |
Protos.TransactionConfidence.Builder |
clearAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
|
Protos.TransactionConfidence.Builder |
clearBroadcastBy()
repeated .wallet.PeerAddress broadcast_by = 6; |
Protos.TransactionConfidence.Builder |
clearDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.
|
Protos.TransactionConfidence.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.TransactionConfidence.Builder |
clearLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
|
Protos.TransactionConfidence.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.TransactionConfidence.Builder |
clearOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion.
|
Protos.TransactionConfidence.Builder |
clearSource()
optional .wallet.TransactionConfidence.Source source = 7; |
Protos.TransactionConfidence.Builder |
clearType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
|
Protos.TransactionConfidence.Builder |
clone() |
int |
getAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
|
Protos.PeerAddress |
getBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
Protos.PeerAddress.Builder |
getBroadcastByBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
java.util.List<Protos.PeerAddress.Builder> |
getBroadcastByBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6; |
int |
getBroadcastByCount()
repeated .wallet.PeerAddress broadcast_by = 6; |
java.util.List<Protos.PeerAddress> |
getBroadcastByList()
repeated .wallet.PeerAddress broadcast_by = 6; |
Protos.PeerAddressOrBuilder |
getBroadcastByOrBuilder(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
java.util.List<? extends Protos.PeerAddressOrBuilder> |
getBroadcastByOrBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6; |
Protos.TransactionConfidence |
getDefaultInstanceForType() |
int |
getDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
|
com.google.protobuf.ByteString |
getOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion.
|
Protos.TransactionConfidence.Source |
getSource()
optional .wallet.TransactionConfidence.Source source = 7; |
Protos.TransactionConfidence.Type |
getType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
|
boolean |
hasAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
|
boolean |
hasDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain.
|
boolean |
hasLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
|
boolean |
hasOverridingTransaction()
If set, hash of the transaction that double spent this one into oblivion.
|
boolean |
hasSource()
optional .wallet.TransactionConfidence.Source source = 7; |
boolean |
hasType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
|
protected com.google.protobuf.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.TransactionConfidence.Builder |
removeBroadcastBy(int index)
repeated .wallet.PeerAddress broadcast_by = 6; |
Protos.TransactionConfidence.Builder |
setAppearedAtHeight(int value)
If type == BUILDING then this is the chain height at which the transaction was included.
|
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)
If type == BUILDING then this is the depth of the transaction in the blockchain.
|
Protos.TransactionConfidence.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.TransactionConfidence.Builder |
setLastBroadcastedAt(long value)
Millis since epoch the transaction was last announced to us.
|
Protos.TransactionConfidence.Builder |
setOverridingTransaction(com.google.protobuf.ByteString value)
If set, hash of the transaction that double spent this one into oblivion.
|
Protos.TransactionConfidence.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.TransactionConfidence.Builder |
setSource(Protos.TransactionConfidence.Source value)
optional .wallet.TransactionConfidence.Source source = 7; |
Protos.TransactionConfidence.Builder |
setType(Protos.TransactionConfidence.Type value)
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
|
Protos.TransactionConfidence.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.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.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>
public Protos.TransactionConfidence.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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>
java.io.IOException
public boolean hasType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
hasType
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Type getType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
getType
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Builder setType(Protos.TransactionConfidence.Type value)
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
public Protos.TransactionConfidence.Builder clearType()
This is optional in case we add confidence types to prevent parse errors - backwards compatible.
optional .wallet.TransactionConfidence.Type type = 1;
public boolean hasAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
hasAppearedAtHeight
in interface Protos.TransactionConfidenceOrBuilder
public int getAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
getAppearedAtHeight
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Builder setAppearedAtHeight(int value)
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
public Protos.TransactionConfidence.Builder clearAppearedAtHeight()
If type == BUILDING then this is the chain height at which the transaction was included.
optional int32 appeared_at_height = 2;
public boolean hasOverridingTransaction()
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.
optional bytes overriding_transaction = 3;
hasOverridingTransaction
in interface Protos.TransactionConfidenceOrBuilder
public com.google.protobuf.ByteString getOverridingTransaction()
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.
optional bytes overriding_transaction = 3;
getOverridingTransaction
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Builder setOverridingTransaction(com.google.protobuf.ByteString value)
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.
optional bytes overriding_transaction = 3;
public Protos.TransactionConfidence.Builder clearOverridingTransaction()
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.
optional bytes overriding_transaction = 3;
public boolean hasDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
optional int32 depth = 4;
hasDepth
in interface Protos.TransactionConfidenceOrBuilder
public int getDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
optional int32 depth = 4;
getDepth
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Builder setDepth(int value)
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
optional int32 depth = 4;
public Protos.TransactionConfidence.Builder clearDepth()
If type == BUILDING then this is the depth of the transaction in the blockchain. Zero confirmations: depth = 0, one confirmation: depth = 1 etc.
optional int32 depth = 4;
public java.util.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(java.lang.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 java.util.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 java.util.List<Protos.PeerAddress.Builder> getBroadcastByBuilderList()
repeated .wallet.PeerAddress broadcast_by = 6;
public boolean hasLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
hasLastBroadcastedAt
in interface Protos.TransactionConfidenceOrBuilder
public long getLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
getLastBroadcastedAt
in interface Protos.TransactionConfidenceOrBuilder
public Protos.TransactionConfidence.Builder setLastBroadcastedAt(long value)
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
public Protos.TransactionConfidence.Builder clearLastBroadcastedAt()
Millis since epoch the transaction was last announced to us.
optional int64 last_broadcasted_at = 8;
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;
public final Protos.TransactionConfidence.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>
public final Protos.TransactionConfidence.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.TransactionConfidence.Builder>