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, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.Transaction> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasVersion()
required int32 version = 1;
See Wallet.java for detailed description of pool semantics
hasVersion
in interface Protos.TransactionOrBuilder
public int getVersion()
required int32 version = 1;
See Wallet.java for detailed description of pool semantics
getVersion
in interface Protos.TransactionOrBuilder
public boolean hasHash()
required bytes hash = 2;
hasHash
in interface Protos.TransactionOrBuilder
public com.google.protobuf.ByteString getHash()
required bytes hash = 2;
getHash
in interface Protos.TransactionOrBuilder
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.
hasPool
in interface Protos.TransactionOrBuilder
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.
getPool
in interface Protos.TransactionOrBuilder
public boolean hasLockTime()
optional uint32 lock_time = 4;
The nLockTime field is useful for contracts.
hasLockTime
in interface Protos.TransactionOrBuilder
public int getLockTime()
optional uint32 lock_time = 4;
The nLockTime field is useful for contracts.
getLockTime
in interface Protos.TransactionOrBuilder
public boolean hasUpdatedAt()
optional int64 updated_at = 5;
millis since epoch the transaction was last updated
hasUpdatedAt
in interface Protos.TransactionOrBuilder
public long getUpdatedAt()
optional int64 updated_at = 5;
millis since epoch the transaction was last updated
getUpdatedAt
in interface Protos.TransactionOrBuilder
public List<Protos.TransactionInput> getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;
getTransactionInputList
in interface Protos.TransactionOrBuilder
public List<? extends Protos.TransactionInputOrBuilder> getTransactionInputOrBuilderList()
repeated .wallet.TransactionInput transaction_input = 6;
getTransactionInputOrBuilderList
in interface Protos.TransactionOrBuilder
public int getTransactionInputCount()
repeated .wallet.TransactionInput transaction_input = 6;
getTransactionInputCount
in interface Protos.TransactionOrBuilder
public Protos.TransactionInput getTransactionInput(int index)
repeated .wallet.TransactionInput transaction_input = 6;
getTransactionInput
in interface Protos.TransactionOrBuilder
public Protos.TransactionInputOrBuilder getTransactionInputOrBuilder(int index)
repeated .wallet.TransactionInput transaction_input = 6;
getTransactionInputOrBuilder
in interface Protos.TransactionOrBuilder
public List<Protos.TransactionOutput> getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;
getTransactionOutputList
in interface Protos.TransactionOrBuilder
public List<? extends Protos.TransactionOutputOrBuilder> getTransactionOutputOrBuilderList()
repeated .wallet.TransactionOutput transaction_output = 7;
getTransactionOutputOrBuilderList
in interface Protos.TransactionOrBuilder
public int getTransactionOutputCount()
repeated .wallet.TransactionOutput transaction_output = 7;
getTransactionOutputCount
in interface Protos.TransactionOrBuilder
public Protos.TransactionOutput getTransactionOutput(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
getTransactionOutput
in interface Protos.TransactionOrBuilder
public Protos.TransactionOutputOrBuilder getTransactionOutputOrBuilder(int index)
repeated .wallet.TransactionOutput transaction_output = 7;
getTransactionOutputOrBuilder
in interface Protos.TransactionOrBuilder
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.
getBlockHashList
in interface Protos.TransactionOrBuilder
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.
getBlockHashCount
in interface Protos.TransactionOrBuilder
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.
getBlockHash
in interface Protos.TransactionOrBuilder
public List<Integer> getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11;
getBlockRelativityOffsetsList
in interface Protos.TransactionOrBuilder
public int getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11;
getBlockRelativityOffsetsCount
in interface Protos.TransactionOrBuilder
public int getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11;
getBlockRelativityOffsets
in interface Protos.TransactionOrBuilder
public boolean hasConfidence()
optional .wallet.TransactionConfidence confidence = 9;
Data describing where the transaction is in the chain.
hasConfidence
in interface Protos.TransactionOrBuilder
public Protos.TransactionConfidence getConfidence()
optional .wallet.TransactionConfidence confidence = 9;
Data describing where the transaction is in the chain.
getConfidence
in interface Protos.TransactionOrBuilder
public Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder()
optional .wallet.TransactionConfidence confidence = 9;
Data describing where the transaction is in the chain.
getConfidenceOrBuilder
in interface Protos.TransactionOrBuilder
public boolean hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
hasPurpose
in interface Protos.TransactionOrBuilder
public Protos.Transaction.Purpose getPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN];
getPurpose
in interface Protos.TransactionOrBuilder
public boolean hasExchangeRate()
optional .wallet.ExchangeRate exchange_rate = 12;
Exchange rate that was valid when the transaction was sent.
hasExchangeRate
in interface Protos.TransactionOrBuilder
public Protos.ExchangeRate getExchangeRate()
optional .wallet.ExchangeRate exchange_rate = 12;
Exchange rate that was valid when the transaction was sent.
getExchangeRate
in interface Protos.TransactionOrBuilder
public Protos.ExchangeRateOrBuilder getExchangeRateOrBuilder()
optional .wallet.ExchangeRate exchange_rate = 12;
Exchange rate that was valid when the transaction was sent.
getExchangeRateOrBuilder
in interface Protos.TransactionOrBuilder
public 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.TransactionOrBuilder
public 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.TransactionOrBuilder
public 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.TransactionOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.Transaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Transaction parseFrom(InputStream input) throws IOException
IOException
public static Protos.Transaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Transaction parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.Transaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Transaction.Builder newBuilder()
public Protos.Transaction.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.Transaction.Builder newBuilder(Protos.Transaction prototype)
public Protos.Transaction.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.Transaction.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2014. All rights reserved.