public static final class Protos.Transaction extends com.google.protobuf.GeneratedMessage implements Protos.TransactionOrBuilder
wallet.Transaction| Modifier and Type | Class and Description |
|---|---|
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 |
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>| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_HASH_FIELD_NUMBER |
static int |
BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER |
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
EXCHANGE_RATE_FIELD_NUMBER |
static int |
HASH_FIELD_NUMBER |
static int |
LOCK_TIME_FIELD_NUMBER |
static int |
MEMO_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 |
| Modifier and Type | Method and Description |
|---|---|
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() |
Protos.ExchangeRate |
getExchangeRate()
optional .wallet.ExchangeRate exchange_rate = 12; |
Protos.ExchangeRateOrBuilder |
getExchangeRateOrBuilder()
optional .wallet.ExchangeRate exchange_rate = 12; |
com.google.protobuf.ByteString |
getHash()
required bytes hash = 2; |
int |
getLockTime()
optional uint32 lock_time = 4; |
String |
getMemo()
optional string memo = 13; |
com.google.protobuf.ByteString |
getMemoBytes()
optional string memo = 13; |
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 |
hasExchangeRate()
optional .wallet.ExchangeRate exchange_rate = 12; |
boolean |
hasHash()
required bytes hash = 2; |
boolean |
hasLockTime()
optional uint32 lock_time = 4; |
boolean |
hasMemo()
optional string memo = 13; |
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) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static com.google.protobuf.Parser<Protos.Transaction> PARSER
public static final int VERSION_FIELD_NUMBER
public static final int HASH_FIELD_NUMBER
public static final int POOL_FIELD_NUMBER
public static final int LOCK_TIME_FIELD_NUMBER
public static final int UPDATED_AT_FIELD_NUMBER
public static final int TRANSACTION_INPUT_FIELD_NUMBER
public static final int TRANSACTION_OUTPUT_FIELD_NUMBER
public static final int BLOCK_HASH_FIELD_NUMBER
public static final int BLOCK_RELATIVITY_OFFSETS_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
public static final int PURPOSE_FIELD_NUMBER
public static final int EXCHANGE_RATE_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER
public static Protos.Transaction getDefaultInstance()
public Protos.Transaction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<Protos.Transaction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasVersion()
required int32 version = 1;
See Wallet.java for detailed description of pool semantics
hasVersion in interface Protos.TransactionOrBuilderpublic int getVersion()
required int32 version = 1;
See Wallet.java for detailed description of pool semantics
getVersion in interface Protos.TransactionOrBuilderpublic boolean hasHash()
required bytes hash = 2;hasHash in interface Protos.TransactionOrBuilderpublic com.google.protobuf.ByteString getHash()
required bytes hash = 2;getHash in interface Protos.TransactionOrBuilderpublic 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.
hasPool in interface Protos.TransactionOrBuilderpublic 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.
getPool in interface Protos.TransactionOrBuilderpublic boolean hasLockTime()
optional uint32 lock_time = 4;
The nLockTime field is useful for contracts.
hasLockTime in interface Protos.TransactionOrBuilderpublic int getLockTime()
optional uint32 lock_time = 4;
The nLockTime field is useful for contracts.
getLockTime in interface Protos.TransactionOrBuilderpublic boolean hasUpdatedAt()
optional int64 updated_at = 5;
millis since epoch the transaction was last updated
hasUpdatedAt in interface Protos.TransactionOrBuilderpublic long getUpdatedAt()
optional int64 updated_at = 5;
millis since epoch the transaction was last updated
getUpdatedAt in interface Protos.TransactionOrBuilderpublic List<Protos.TransactionInput> getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputList in interface Protos.TransactionOrBuilderpublic List<? extends Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList()
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputOrBuilderList in interface Protos.TransactionOrBuilderpublic int getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputCount in interface Protos.TransactionOrBuilderpublic Protos.TransactionInput getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInput in interface Protos.TransactionOrBuilderpublic Protos.TransactionInputOrBuilder getTransactionInputOrBuilder(int index)
repeated .wallet.TransactionInput transaction_input = 6;getTransactionInputOrBuilder in interface Protos.TransactionOrBuilderpublic List<Protos.TransactionOutput> getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputList in interface Protos.TransactionOrBuilderpublic List<? extends Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList()
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputOrBuilderList in interface Protos.TransactionOrBuilderpublic int getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputCount in interface Protos.TransactionOrBuilderpublic Protos.TransactionOutput getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutput in interface Protos.TransactionOrBuilderpublic Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder(int index)
repeated .wallet.TransactionOutput transaction_output = 7;getTransactionOutputOrBuilder in interface Protos.TransactionOrBuilderpublic 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.
getBlockHashList in interface Protos.TransactionOrBuilderpublic 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.
getBlockHashCount in interface Protos.TransactionOrBuilderpublic 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.
getBlockHash in interface Protos.TransactionOrBuilderpublic List<Integer> getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11;getBlockRelativityOffsetsList in interface Protos.TransactionOrBuilderpublic int getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11;getBlockRelativityOffsetsCount in interface Protos.TransactionOrBuilderpublic int getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11;getBlockRelativityOffsets in interface Protos.TransactionOrBuilderpublic boolean hasConfidence()
optional .wallet.TransactionConfidence confidence = 9;
Data describing where the transaction is in the chain.
hasConfidence in interface Protos.TransactionOrBuilderpublic Protos.TransactionConfidence getConfidence()
optional .wallet.TransactionConfidence confidence = 9;
Data describing where the transaction is in the chain.
getConfidence in interface Protos.TransactionOrBuilderpublic Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder()
optional .wallet.TransactionConfidence confidence = 9;
Data describing where the transaction is in the chain.
getConfidenceOrBuilder in interface Protos.TransactionOrBuilderpublic boolean hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];hasPurpose in interface Protos.TransactionOrBuilderpublic Protos.Transaction.Purpose getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];getPurpose in interface Protos.TransactionOrBuilderpublic boolean hasExchangeRate()
optional .wallet.ExchangeRate exchange_rate = 12;
Exchange rate that was valid when the transaction was sent.
hasExchangeRate in interface Protos.TransactionOrBuilderpublic Protos.ExchangeRate getExchangeRate()
optional .wallet.ExchangeRate exchange_rate = 12;
Exchange rate that was valid when the transaction was sent.
getExchangeRate in interface Protos.TransactionOrBuilderpublic Protos.ExchangeRateOrBuilder getExchangeRateOrBuilder()
optional .wallet.ExchangeRate exchange_rate = 12;
Exchange rate that was valid when the transaction was sent.
getExchangeRateOrBuilder in interface Protos.TransactionOrBuilderpublic boolean hasMemo()
optional string memo = 13;
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
hasMemo in interface Protos.TransactionOrBuilderpublic String getMemo()
optional string memo = 13;
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
getMemo in interface Protos.TransactionOrBuilderpublic com.google.protobuf.ByteString getMemoBytes()
optional string memo = 13;
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
getMemoBytes in interface Protos.TransactionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Transaction parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.Transaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Transaction parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.Transaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Transaction.Builder newBuilder()
public Protos.Transaction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.Transaction.Builder newBuilder(Protos.Transaction prototype)
public Protos.Transaction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.Transaction.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.