org.bitcoinj.wallet
Class Protos.Transaction

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.Transaction
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Protos.TransactionOrBuilder
Enclosing class:
Protos

public static final class Protos.Transaction
extends com.google.protobuf.GeneratedMessage
implements Protos.TransactionOrBuilder

Protobuf type wallet.Transaction

See Also:
Serialized Form

Nested Class Summary
static class Protos.Transaction.Builder
          Protobuf type wallet.Transaction
static class Protos.Transaction.Pool
          Protobuf enum wallet.Transaction.Pool
static class Protos.Transaction.Purpose
          Protobuf enum wallet.Transaction.Purpose
 
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 BLOCK_HASH_FIELD_NUMBER
           
static int BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER
           
static int CONFIDENCE_FIELD_NUMBER
           
static int HASH_FIELD_NUMBER
           
static int LOCK_TIME_FIELD_NUMBER
           
static com.google.protobuf.Parser<Protos.Transaction> PARSER
           
static int POOL_FIELD_NUMBER
           
static int PURPOSE_FIELD_NUMBER
           
static int TRANSACTION_INPUT_FIELD_NUMBER
           
static int TRANSACTION_OUTPUT_FIELD_NUMBER
           
static int UPDATED_AT_FIELD_NUMBER
           
static int VERSION_FIELD_NUMBER
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Method Summary
 com.google.protobuf.ByteString getBlockHash(int index)
          repeated bytes block_hash = 8;
 int getBlockHashCount()
          repeated bytes block_hash = 8;
 List<com.google.protobuf.ByteString> getBlockHashList()
          repeated bytes block_hash = 8;
 int getBlockRelativityOffsets(int index)
          repeated int32 block_relativity_offsets = 11;
 int getBlockRelativityOffsetsCount()
          repeated int32 block_relativity_offsets = 11;
 List<Integer> getBlockRelativityOffsetsList()
          repeated int32 block_relativity_offsets = 11;
 Protos.TransactionConfidence getConfidence()
          optional .wallet.TransactionConfidence confidence = 9;
 Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder()
          optional .wallet.TransactionConfidence confidence = 9;
static Protos.Transaction getDefaultInstance()
           
 Protos.Transaction getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.ByteString getHash()
          required bytes hash = 2;
 int getLockTime()
          optional uint32 lock_time = 4;
 com.google.protobuf.Parser<Protos.Transaction> getParserForType()
           
 Protos.Transaction.Pool getPool()
          optional .wallet.Transaction.Pool pool = 3;
 Protos.Transaction.Purpose getPurpose()
          optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
 int getSerializedSize()
           
 Protos.TransactionInput getTransactionInput(int index)
          repeated .wallet.TransactionInput transaction_input = 6;
 int getTransactionInputCount()
          repeated .wallet.TransactionInput transaction_input = 6;
 List<Protos.TransactionInput> getTransactionInputList()
          repeated .wallet.TransactionInput transaction_input = 6;
 Protos.TransactionInputOrBuilder getTransactionInputOrBuilder(int index)
          repeated .wallet.TransactionInput transaction_input = 6;
 List<? extends Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList()
          repeated .wallet.TransactionInput transaction_input = 6;
 Protos.TransactionOutput getTransactionOutput(int index)
          repeated .wallet.TransactionOutput transaction_output = 7;
 int getTransactionOutputCount()
          repeated .wallet.TransactionOutput transaction_output = 7;
 List<Protos.TransactionOutput> getTransactionOutputList()
          repeated .wallet.TransactionOutput transaction_output = 7;
 Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder(int index)
          repeated .wallet.TransactionOutput transaction_output = 7;
 List<? extends Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList()
          repeated .wallet.TransactionOutput transaction_output = 7;
 com.google.protobuf.UnknownFieldSet getUnknownFields()
           
 long getUpdatedAt()
          optional int64 updated_at = 5;
 int getVersion()
          required int32 version = 1;
 boolean hasConfidence()
          optional .wallet.TransactionConfidence confidence = 9;
 boolean hasHash()
          required bytes hash = 2;
 boolean hasLockTime()
          optional uint32 lock_time = 4;
 boolean hasPool()
          optional .wallet.Transaction.Pool pool = 3;
 boolean hasPurpose()
          optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
 boolean hasUpdatedAt()
          optional int64 updated_at = 5;
 boolean hasVersion()
          required int32 version = 1;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
static Protos.Transaction.Builder newBuilder()
           
static Protos.Transaction.Builder newBuilder(Protos.Transaction prototype)
           
 Protos.Transaction.Builder newBuilderForType()
           
protected  Protos.Transaction.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
           
static Protos.Transaction parseDelimitedFrom(InputStream input)
           
static Protos.Transaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.Transaction parseFrom(byte[] data)
           
static Protos.Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.Transaction parseFrom(com.google.protobuf.ByteString data)
           
static Protos.Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input)
           
static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.Transaction parseFrom(InputStream input)
           
static Protos.Transaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.Transaction.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.Transaction> PARSER

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
See Also:
Constant Field Values

HASH_FIELD_NUMBER

public static final int HASH_FIELD_NUMBER
See Also:
Constant Field Values

POOL_FIELD_NUMBER

public static final int POOL_FIELD_NUMBER
See Also:
Constant Field Values

LOCK_TIME_FIELD_NUMBER

public static final int LOCK_TIME_FIELD_NUMBER
See Also:
Constant Field Values

UPDATED_AT_FIELD_NUMBER

public static final int UPDATED_AT_FIELD_NUMBER
See Also:
Constant Field Values

TRANSACTION_INPUT_FIELD_NUMBER

public static final int TRANSACTION_INPUT_FIELD_NUMBER
See Also:
Constant Field Values

TRANSACTION_OUTPUT_FIELD_NUMBER

public static final int TRANSACTION_OUTPUT_FIELD_NUMBER
See Also:
Constant Field Values

BLOCK_HASH_FIELD_NUMBER

public static final int BLOCK_HASH_FIELD_NUMBER
See Also:
Constant Field Values

BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER

public static final int BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER
See Also:
Constant Field Values

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
See Also:
Constant Field Values

PURPOSE_FIELD_NUMBER

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

getDefaultInstance

public static Protos.Transaction getDefaultInstance()

getDefaultInstanceForType

public Protos.Transaction 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.Transaction> 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

hasVersion

public boolean hasVersion()
required int32 version = 1;
 See Wallet.java for detailed description of pool semantics
 

Specified by:
hasVersion in interface Protos.TransactionOrBuilder

getVersion

public int getVersion()
required int32 version = 1;
 See Wallet.java for detailed description of pool semantics
 

Specified by:
getVersion in interface Protos.TransactionOrBuilder

hasHash

public boolean hasHash()
required bytes hash = 2;

Specified by:
hasHash in interface Protos.TransactionOrBuilder

getHash

public com.google.protobuf.ByteString getHash()
required bytes hash = 2;

Specified by:
getHash in interface Protos.TransactionOrBuilder

hasPool

public boolean hasPool()
optional .wallet.Transaction.Pool pool = 3;
 If pool is not present, that means either:
  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
  - Or the Pool enum got a new value which your software is too old to parse.
 

Specified by:
hasPool in interface Protos.TransactionOrBuilder

getPool

public Protos.Transaction.Pool getPool()
optional .wallet.Transaction.Pool pool = 3;
 If pool is not present, that means either:
  - This Transaction is either not in a wallet at all (the proto is re-used elsewhere)
  - Or it is stored but for other purposes, for example, because it is the overriding transaction of a double spend.
  - Or the Pool enum got a new value which your software is too old to parse.
 

Specified by:
getPool in interface Protos.TransactionOrBuilder

hasLockTime

public boolean hasLockTime()
optional uint32 lock_time = 4;
 The nLockTime field is useful for contracts.
 

Specified by:
hasLockTime in interface Protos.TransactionOrBuilder

getLockTime

public int getLockTime()
optional uint32 lock_time = 4;
 The nLockTime field is useful for contracts.
 

Specified by:
getLockTime in interface Protos.TransactionOrBuilder

hasUpdatedAt

public boolean hasUpdatedAt()
optional int64 updated_at = 5;
 millis since epoch the transaction was last updated
 

Specified by:
hasUpdatedAt in interface Protos.TransactionOrBuilder

getUpdatedAt

public long getUpdatedAt()
optional int64 updated_at = 5;
 millis since epoch the transaction was last updated
 

Specified by:
getUpdatedAt in interface Protos.TransactionOrBuilder

getTransactionInputList

public List<Protos.TransactionInput> getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;

Specified by:
getTransactionInputList in interface Protos.TransactionOrBuilder

getTransactionInputOrBuilderList

public List<? extends Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList()
repeated .wallet.TransactionInput transaction_input = 6;

Specified by:
getTransactionInputOrBuilderList in interface Protos.TransactionOrBuilder

getTransactionInputCount

public int getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;

Specified by:
getTransactionInputCount in interface Protos.TransactionOrBuilder

getTransactionInput

public Protos.TransactionInput getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;

Specified by:
getTransactionInput in interface Protos.TransactionOrBuilder

getTransactionInputOrBuilder

public Protos.TransactionInputOrBuilder getTransactionInputOrBuilder(int index)
repeated .wallet.TransactionInput transaction_input = 6;

Specified by:
getTransactionInputOrBuilder in interface Protos.TransactionOrBuilder

getTransactionOutputList

public List<Protos.TransactionOutput> getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;

Specified by:
getTransactionOutputList in interface Protos.TransactionOrBuilder

getTransactionOutputOrBuilderList

public List<? extends Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList()
repeated .wallet.TransactionOutput transaction_output = 7;

Specified by:
getTransactionOutputOrBuilderList in interface Protos.TransactionOrBuilder

getTransactionOutputCount

public int getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;

Specified by:
getTransactionOutputCount in interface Protos.TransactionOrBuilder

getTransactionOutput

public Protos.TransactionOutput getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;

Specified by:
getTransactionOutput in interface Protos.TransactionOrBuilder

getTransactionOutputOrBuilder

public Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder(int index)
repeated .wallet.TransactionOutput transaction_output = 7;

Specified by:
getTransactionOutputOrBuilder in interface Protos.TransactionOrBuilder

getBlockHashList

public List<com.google.protobuf.ByteString> getBlockHashList()
repeated bytes block_hash = 8;
 A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
 ordering within a block.
 

Specified by:
getBlockHashList in interface Protos.TransactionOrBuilder

getBlockHashCount

public int getBlockHashCount()
repeated bytes block_hash = 8;
 A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
 ordering within a block.
 

Specified by:
getBlockHashCount in interface Protos.TransactionOrBuilder

getBlockHash

public com.google.protobuf.ByteString getBlockHash(int index)
repeated bytes block_hash = 8;
 A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate
 ordering within a block.
 

Specified by:
getBlockHash in interface Protos.TransactionOrBuilder

getBlockRelativityOffsetsList

public List<Integer> getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11;

Specified by:
getBlockRelativityOffsetsList in interface Protos.TransactionOrBuilder

getBlockRelativityOffsetsCount

public int getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11;

Specified by:
getBlockRelativityOffsetsCount in interface Protos.TransactionOrBuilder

getBlockRelativityOffsets

public int getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11;

Specified by:
getBlockRelativityOffsets in interface Protos.TransactionOrBuilder

hasConfidence

public boolean hasConfidence()
optional .wallet.TransactionConfidence confidence = 9;
 Data describing where the transaction is in the chain.
 

Specified by:
hasConfidence in interface Protos.TransactionOrBuilder

getConfidence

public Protos.TransactionConfidence getConfidence()
optional .wallet.TransactionConfidence confidence = 9;
 Data describing where the transaction is in the chain.
 

Specified by:
getConfidence in interface Protos.TransactionOrBuilder

getConfidenceOrBuilder

public Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder()
optional .wallet.TransactionConfidence confidence = 9;
 Data describing where the transaction is in the chain.
 

Specified by:
getConfidenceOrBuilder in interface Protos.TransactionOrBuilder

hasPurpose

public boolean hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];

Specified by:
hasPurpose in interface Protos.TransactionOrBuilder

getPurpose

public Protos.Transaction.Purpose getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];

Specified by:
getPurpose in interface Protos.TransactionOrBuilder

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.Transaction parseFrom(com.google.protobuf.ByteString data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static Protos.Transaction 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.Transaction parseFrom(byte[] data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static Protos.Transaction parseFrom(byte[] data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

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

parseFrom

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

parseDelimitedFrom

public static Protos.Transaction parseDelimitedFrom(InputStream input)
                                             throws IOException
Throws:
IOException

parseDelimitedFrom

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

parseFrom

public static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input)
                                    throws IOException
Throws:
IOException

parseFrom

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

newBuilder

public static Protos.Transaction.Builder newBuilder()

newBuilderForType

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

newBuilder

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

toBuilder

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

newBuilderForType

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


Copyright © 2014. All rights reserved.