Package org.bitcoinj.protobuf.wallet
Class Protos.TransactionConfidence
- java.lang.Object
- 
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
- 
- com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder>
- 
- org.bitcoinj.protobuf.wallet.Protos.TransactionConfidence
 
 
 
- 
- All Implemented Interfaces:
- com.google.protobuf.MessageLite,- com.google.protobuf.MessageLiteOrBuilder,- Protos.TransactionConfidenceOrBuilder
 - Enclosing class:
- Protos
 
 public static final class Protos.TransactionConfidence extends com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,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 typewallet.TransactionConfidence
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classProtos.TransactionConfidence.BuilderA description of the confidence we have that a transaction cannot be reversed in the future.static classProtos.TransactionConfidence.SourceWhere did we get this transaction from? Knowing the source may help us to risk analyze pending transactions.static classProtos.TransactionConfidence.TypeProtobuf enumwallet.TransactionConfidence.Type- 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLitecom.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intAPPEARED_AT_HEIGHT_FIELD_NUMBERstatic intBROADCAST_BY_FIELD_NUMBERstatic intDEPTH_FIELD_NUMBERstatic intLAST_BROADCASTED_AT_FIELD_NUMBERstatic intOVERRIDING_TRANSACTION_FIELD_NUMBERstatic intSOURCE_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)intgetAppearedAtHeight()If type == BUILDING then this is the chain height at which the transaction was included.Protos.PeerAddressgetBroadcastBy(int index)repeated .wallet.PeerAddress broadcast_by = 6;intgetBroadcastByCount()repeated .wallet.PeerAddress broadcast_by = 6;java.util.List<Protos.PeerAddress>getBroadcastByList()repeated .wallet.PeerAddress broadcast_by = 6;Protos.PeerAddressOrBuildergetBroadcastByOrBuilder(int index)repeated .wallet.PeerAddress broadcast_by = 6;java.util.List<? extends Protos.PeerAddressOrBuilder>getBroadcastByOrBuilderList()repeated .wallet.PeerAddress broadcast_by = 6;static Protos.TransactionConfidencegetDefaultInstance()intgetDepth()If type == BUILDING then this is the depth of the transaction in the blockchain.longgetLastBroadcastedAt()Millis since epoch the transaction was last announced to us.com.google.protobuf.ByteStringgetOverridingTransaction()If set, hash of the transaction that double spent this one into oblivion.Protos.TransactionConfidence.SourcegetSource()optional .wallet.TransactionConfidence.Source source = 7;Protos.TransactionConfidence.TypegetType()This is optional in case we add confidence types to prevent parse errors - backwards compatible.booleanhasAppearedAtHeight()If type == BUILDING then this is the chain height at which the transaction was included.booleanhasDepth()If type == BUILDING then this is the depth of the transaction in the blockchain.booleanhasLastBroadcastedAt()Millis since epoch the transaction was last announced to us.booleanhasOverridingTransaction()If set, hash of the transaction that double spent this one into oblivion.booleanhasSource()optional .wallet.TransactionConfidence.Source source = 7;booleanhasType()This is optional in case we add confidence types to prevent parse errors - backwards compatible.static Protos.TransactionConfidence.BuildernewBuilder()static Protos.TransactionConfidence.BuildernewBuilder(Protos.TransactionConfidence prototype)static Protos.TransactionConfidenceparseDelimitedFrom(java.io.InputStream input)static Protos.TransactionConfidenceparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionConfidenceparseFrom(byte[] data)static Protos.TransactionConfidenceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionConfidenceparseFrom(com.google.protobuf.ByteString data)static Protos.TransactionConfidenceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionConfidenceparseFrom(com.google.protobuf.CodedInputStream input)static Protos.TransactionConfidenceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionConfidenceparseFrom(java.io.InputStream input)static Protos.TransactionConfidenceparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.TransactionConfidenceparseFrom(java.nio.ByteBuffer data)static Protos.TransactionConfidenceparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Protos.TransactionConfidence>parser()- 
Methods inherited from class com.google.protobuf.GeneratedMessageLitecreateBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
 - 
Methods inherited from class com.google.protobuf.AbstractMessageLiteaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
 
- 
 
- 
- 
- 
Field Detail- 
TYPE_FIELD_NUMBERpublic static final int TYPE_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
APPEARED_AT_HEIGHT_FIELD_NUMBERpublic static final int APPEARED_AT_HEIGHT_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
OVERRIDING_TRANSACTION_FIELD_NUMBERpublic static final int OVERRIDING_TRANSACTION_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
DEPTH_FIELD_NUMBERpublic static final int DEPTH_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
BROADCAST_BY_FIELD_NUMBERpublic static final int BROADCAST_BY_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
LAST_BROADCASTED_AT_FIELD_NUMBERpublic static final int LAST_BROADCASTED_AT_FIELD_NUMBER - See Also:
- Constant Field Values
 
 - 
SOURCE_FIELD_NUMBERpublic static final int SOURCE_FIELD_NUMBER - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
hasTypepublic boolean hasType() This is optional in case we add confidence types to prevent parse errors - backwards compatible. optional .wallet.TransactionConfidence.Type type = 1;- Specified by:
- hasTypein interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- Whether the type field is set.
 
 - 
getTypepublic 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;- Specified by:
- getTypein interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- The type.
 
 - 
hasAppearedAtHeightpublic boolean hasAppearedAtHeight() If type == BUILDING then this is the chain height at which the transaction was included. optional int32 appeared_at_height = 2;- Specified by:
- hasAppearedAtHeightin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- Whether the appearedAtHeight field is set.
 
 - 
getAppearedAtHeightpublic int getAppearedAtHeight() If type == BUILDING then this is the chain height at which the transaction was included. optional int32 appeared_at_height = 2;- Specified by:
- getAppearedAtHeightin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- The appearedAtHeight.
 
 - 
hasOverridingTransactionpublic 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;- Specified by:
- hasOverridingTransactionin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- Whether the overridingTransaction field is set.
 
 - 
getOverridingTransactionpublic 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;- Specified by:
- getOverridingTransactionin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- The overridingTransaction.
 
 - 
hasDepthpublic 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;- Specified by:
- hasDepthin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- Whether the depth field is set.
 
 - 
getDepthpublic 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;- Specified by:
- getDepthin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- The depth.
 
 - 
getBroadcastByListpublic java.util.List<Protos.PeerAddress> getBroadcastByList() repeated .wallet.PeerAddress broadcast_by = 6;- Specified by:
- getBroadcastByListin interface- Protos.TransactionConfidenceOrBuilder
 
 - 
getBroadcastByOrBuilderListpublic java.util.List<? extends Protos.PeerAddressOrBuilder> getBroadcastByOrBuilderList() repeated .wallet.PeerAddress broadcast_by = 6;
 - 
getBroadcastByCountpublic int getBroadcastByCount() repeated .wallet.PeerAddress broadcast_by = 6;- Specified by:
- getBroadcastByCountin interface- Protos.TransactionConfidenceOrBuilder
 
 - 
getBroadcastBypublic Protos.PeerAddress getBroadcastBy(int index) repeated .wallet.PeerAddress broadcast_by = 6;- Specified by:
- getBroadcastByin interface- Protos.TransactionConfidenceOrBuilder
 
 - 
getBroadcastByOrBuilderpublic Protos.PeerAddressOrBuilder getBroadcastByOrBuilder(int index) repeated .wallet.PeerAddress broadcast_by = 6;
 - 
hasLastBroadcastedAtpublic boolean hasLastBroadcastedAt() Millis since epoch the transaction was last announced to us. optional int64 last_broadcasted_at = 8;- Specified by:
- hasLastBroadcastedAtin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- Whether the lastBroadcastedAt field is set.
 
 - 
getLastBroadcastedAtpublic long getLastBroadcastedAt() Millis since epoch the transaction was last announced to us. optional int64 last_broadcasted_at = 8;- Specified by:
- getLastBroadcastedAtin interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- The lastBroadcastedAt.
 
 - 
hasSourcepublic boolean hasSource() optional .wallet.TransactionConfidence.Source source = 7;- Specified by:
- hasSourcein interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- Whether the source field is set.
 
 - 
getSourcepublic Protos.TransactionConfidence.Source getSource() optional .wallet.TransactionConfidence.Source source = 7;- Specified by:
- getSourcein interface- Protos.TransactionConfidenceOrBuilder
- Returns:
- The source.
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
- com.google.protobuf.InvalidProtocolBufferException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(java.io.InputStream input) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseDelimitedFrompublic static Protos.TransactionConfidence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseDelimitedFrompublic static Protos.TransactionConfidence parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
parseFrompublic static Protos.TransactionConfidence parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
newBuilderpublic static Protos.TransactionConfidence.Builder newBuilder() 
 - 
newBuilderpublic static Protos.TransactionConfidence.Builder newBuilder(Protos.TransactionConfidence prototype) 
 - 
dynamicMethodprotected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)- Specified by:
- dynamicMethodin class- com.google.protobuf.GeneratedMessageLite<Protos.TransactionConfidence,Protos.TransactionConfidence.Builder>
 
 - 
getDefaultInstancepublic static Protos.TransactionConfidence getDefaultInstance() 
 - 
parserpublic static com.google.protobuf.Parser<Protos.TransactionConfidence> parser() 
 
- 
 
-