public static final class Protos.Transaction extends com.google.protobuf.GeneratedMessageV3 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
This is a bitfield oriented enum, with the following bits:
bit 0 - spent
bit 1 - appears in alt chain
bit 2 - appears in best chain
bit 3 - double-spent
bit 4 - pending (we would like the tx to go into the best chain)
Not all combinations are interesting, just the ones actually used in the enum.
|
static class |
Protos.Transaction.Purpose
For what purpose the transaction was created.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
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
Deprecated.
|
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
com.google.protobuf.ByteString |
getBlockHash(int index)
A list of blocks in which the transaction has been observed (on any chain).
|
int |
getBlockHashCount()
A list of blocks in which the transaction has been observed (on any chain).
|
java.util.List<com.google.protobuf.ByteString> |
getBlockHashList()
A list of blocks in which the transaction has been observed (on any chain).
|
int |
getBlockRelativityOffsets(int index)
repeated int32 block_relativity_offsets = 11; |
int |
getBlockRelativityOffsetsCount()
repeated int32 block_relativity_offsets = 11; |
java.util.List<java.lang.Integer> |
getBlockRelativityOffsetsList()
repeated int32 block_relativity_offsets = 11; |
Protos.TransactionConfidence |
getConfidence()
Data describing where the transaction is in the chain.
|
Protos.TransactionConfidenceOrBuilder |
getConfidenceOrBuilder()
Data describing where the transaction is in the chain.
|
static Protos.Transaction |
getDefaultInstance() |
Protos.Transaction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.ExchangeRate |
getExchangeRate()
Exchange rate that was valid when the transaction was sent.
|
Protos.ExchangeRateOrBuilder |
getExchangeRateOrBuilder()
Exchange rate that was valid when the transaction was sent.
|
com.google.protobuf.ByteString |
getHash()
required bytes hash = 2; |
int |
getLockTime()
The nLockTime field is useful for contracts.
|
java.lang.String |
getMemo()
Memo of the transaction.
|
com.google.protobuf.ByteString |
getMemoBytes()
Memo of the transaction.
|
com.google.protobuf.Parser<Protos.Transaction> |
getParserForType() |
Protos.Transaction.Pool |
getPool()
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.
|
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; |
java.util.List<Protos.TransactionInput> |
getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6; |
Protos.TransactionInputOrBuilder |
getTransactionInputOrBuilder(int index)
repeated .wallet.TransactionInput transaction_input = 6; |
java.util.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; |
java.util.List<Protos.TransactionOutput> |
getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7; |
Protos.TransactionOutputOrBuilder |
getTransactionOutputOrBuilder(int index)
repeated .wallet.TransactionOutput transaction_output = 7; |
java.util.List<? extends Protos.TransactionOutputOrBuilder> |
getTransactionOutputOrBuilderList()
repeated .wallet.TransactionOutput transaction_output = 7; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
long |
getUpdatedAt()
millis since epoch the transaction was last updated
|
int |
getVersion()
See Wallet.java for detailed description of pool semantics
|
boolean |
hasConfidence()
Data describing where the transaction is in the chain.
|
boolean |
hasExchangeRate()
Exchange rate that was valid when the transaction was sent.
|
boolean |
hasHash()
required bytes hash = 2; |
int |
hashCode() |
boolean |
hasLockTime()
The nLockTime field is useful for contracts.
|
boolean |
hasMemo()
Memo of the transaction.
|
boolean |
hasPool()
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.
|
boolean |
hasPurpose()
optional .wallet.Transaction.Purpose purpose = 10 [default = UNKNOWN]; |
boolean |
hasUpdatedAt()
millis since epoch the transaction was last updated
|
boolean |
hasVersion()
See Wallet.java for detailed description of pool semantics
|
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) |
static Protos.Transaction |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Transaction |
parseDelimitedFrom(java.io.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(java.nio.ByteBuffer data) |
static Protos.Transaction |
parseFrom(java.nio.ByteBuffer 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(java.io.InputStream input) |
static Protos.Transaction |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protos.Transaction> |
parser() |
Protos.Transaction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
@Deprecated public static final com.google.protobuf.Parser<Protos.Transaction> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasVersion()
See Wallet.java for detailed description of pool semantics
required int32 version = 1;
hasVersion
in interface Protos.TransactionOrBuilder
public int getVersion()
See Wallet.java for detailed description of pool semantics
required int32 version = 1;
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()
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.
optional .wallet.Transaction.Pool pool = 3;
hasPool
in interface Protos.TransactionOrBuilder
public Protos.Transaction.Pool getPool()
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.
optional .wallet.Transaction.Pool pool = 3;
getPool
in interface Protos.TransactionOrBuilder
public boolean hasLockTime()
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
hasLockTime
in interface Protos.TransactionOrBuilder
public int getLockTime()
The nLockTime field is useful for contracts.
optional uint32 lock_time = 4;
getLockTime
in interface Protos.TransactionOrBuilder
public boolean hasUpdatedAt()
millis since epoch the transaction was last updated
optional int64 updated_at = 5;
hasUpdatedAt
in interface Protos.TransactionOrBuilder
public long getUpdatedAt()
millis since epoch the transaction was last updated
optional int64 updated_at = 5;
getUpdatedAt
in interface Protos.TransactionOrBuilder
public java.util.List<Protos.TransactionInput> getTransactionInputList()
repeated .wallet.TransactionInput transaction_input = 6;
getTransactionInputList
in interface Protos.TransactionOrBuilder
public java.util.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 java.util.List<Protos.TransactionOutput> getTransactionOutputList()
repeated .wallet.TransactionOutput transaction_output = 7;
getTransactionOutputList
in interface Protos.TransactionOrBuilder
public java.util.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 java.util.List<com.google.protobuf.ByteString> getBlockHashList()
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
getBlockHashList
in interface Protos.TransactionOrBuilder
public int getBlockHashCount()
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
getBlockHashCount
in interface Protos.TransactionOrBuilder
public com.google.protobuf.ByteString getBlockHash(int index)
A list of blocks in which the transaction has been observed (on any chain). Also, a number used to disambiguate ordering within a block.
repeated bytes block_hash = 8;
getBlockHash
in interface Protos.TransactionOrBuilder
public java.util.List<java.lang.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()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
hasConfidence
in interface Protos.TransactionOrBuilder
public Protos.TransactionConfidence getConfidence()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
getConfidence
in interface Protos.TransactionOrBuilder
public Protos.TransactionConfidenceOrBuilder getConfidenceOrBuilder()
Data describing where the transaction is in the chain.
optional .wallet.TransactionConfidence confidence = 9;
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()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
hasExchangeRate
in interface Protos.TransactionOrBuilder
public Protos.ExchangeRate getExchangeRate()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
getExchangeRate
in interface Protos.TransactionOrBuilder
public Protos.ExchangeRateOrBuilder getExchangeRateOrBuilder()
Exchange rate that was valid when the transaction was sent.
optional .wallet.ExchangeRate exchange_rate = 12;
getExchangeRateOrBuilder
in interface Protos.TransactionOrBuilder
public boolean hasMemo()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
hasMemo
in interface Protos.TransactionOrBuilder
public java.lang.String getMemo()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
getMemo
in interface Protos.TransactionOrBuilder
public com.google.protobuf.ByteString getMemoBytes()
Memo of the transaction. It can be used to record the memo of the payment request that initiated the transaction.
optional string memo = 13;
getMemoBytes
in interface Protos.TransactionOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Protos.Transaction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Transaction parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Transaction parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Transaction parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
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()
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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Protos.Transaction getDefaultInstance()
public static com.google.protobuf.Parser<Protos.Transaction> parser()
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.GeneratedMessageV3
public Protos.Transaction getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder