public static final class Transaction.TransactionListWithProof extends com.google.protobuf.GeneratedMessageV3 implements Transaction.TransactionListWithProofOrBuilder
A list of consecutive transactions with proof. This is mainly used for state synchronization when a validator would request a list of transactions from a peer, verify the proof, execute the transactions and persist them. Note that the transactions are supposed to belong to the same epoch E, otherwise verification will fail.Protobuf type
types.TransactionListWithProof| Modifier and Type | Class and Description |
|---|---|
static class |
Transaction.TransactionListWithProof.Builder
A list of consecutive transactions with proof.
|
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 |
EVENTS_FOR_VERSIONS_FIELD_NUMBER |
static int |
FIRST_TRANSACTION_VERSION_FIELD_NUMBER |
static int |
INFOS_FIELD_NUMBER |
static int |
PROOF_OF_FIRST_TRANSACTION_FIELD_NUMBER |
static int |
PROOF_OF_LAST_TRANSACTION_FIELD_NUMBER |
static int |
TRANSACTIONS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Transaction.TransactionListWithProof |
getDefaultInstance() |
Transaction.TransactionListWithProof |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Events.EventsForVersions |
getEventsForVersions()
The list of corresponding Event objects (only present if fetch_events was set to true in req)
|
Events.EventsForVersionsOrBuilder |
getEventsForVersionsOrBuilder()
The list of corresponding Event objects (only present if fetch_events was set to true in req)
|
com.google.protobuf.UInt64Value |
getFirstTransactionVersion()
If the list is not empty, the version of the first transaction.
|
com.google.protobuf.UInt64ValueOrBuilder |
getFirstTransactionVersionOrBuilder()
If the list is not empty, the version of the first transaction.
|
TransactionInfoOuterClass.TransactionInfo |
getInfos(int index)
The list of corresponding TransactionInfo objects.
|
int |
getInfosCount()
The list of corresponding TransactionInfo objects.
|
List<TransactionInfoOuterClass.TransactionInfo> |
getInfosList()
The list of corresponding TransactionInfo objects.
|
TransactionInfoOuterClass.TransactionInfoOrBuilder |
getInfosOrBuilder(int index)
The list of corresponding TransactionInfo objects.
|
List<? extends TransactionInfoOuterClass.TransactionInfoOrBuilder> |
getInfosOrBuilderList()
The list of corresponding TransactionInfo objects.
|
com.google.protobuf.Parser<Transaction.TransactionListWithProof> |
getParserForType() |
Proof.AccumulatorProof |
getProofOfFirstTransaction()
The proofs of the first and last transaction in this chunk.
|
Proof.AccumulatorProofOrBuilder |
getProofOfFirstTransactionOrBuilder()
The proofs of the first and last transaction in this chunk.
|
Proof.AccumulatorProof |
getProofOfLastTransaction()
.types.AccumulatorProof proof_of_last_transaction = 6; |
Proof.AccumulatorProofOrBuilder |
getProofOfLastTransactionOrBuilder()
.types.AccumulatorProof proof_of_last_transaction = 6; |
int |
getSerializedSize() |
Transaction.SignedTransaction |
getTransactions(int index)
The list of transactions.
|
int |
getTransactionsCount()
The list of transactions.
|
List<Transaction.SignedTransaction> |
getTransactionsList()
The list of transactions.
|
Transaction.SignedTransactionOrBuilder |
getTransactionsOrBuilder(int index)
The list of transactions.
|
List<? extends Transaction.SignedTransactionOrBuilder> |
getTransactionsOrBuilderList()
The list of transactions.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasEventsForVersions()
The list of corresponding Event objects (only present if fetch_events was set to true in req)
|
boolean |
hasFirstTransactionVersion()
If the list is not empty, the version of the first transaction.
|
int |
hashCode() |
boolean |
hasProofOfFirstTransaction()
The proofs of the first and last transaction in this chunk.
|
boolean |
hasProofOfLastTransaction()
.types.AccumulatorProof proof_of_last_transaction = 6; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Transaction.TransactionListWithProof.Builder |
newBuilder() |
static Transaction.TransactionListWithProof.Builder |
newBuilder(Transaction.TransactionListWithProof prototype) |
Transaction.TransactionListWithProof.Builder |
newBuilderForType() |
protected Transaction.TransactionListWithProof.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Transaction.TransactionListWithProof |
parseDelimitedFrom(InputStream input) |
static Transaction.TransactionListWithProof |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction.TransactionListWithProof |
parseFrom(byte[] data) |
static Transaction.TransactionListWithProof |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction.TransactionListWithProof |
parseFrom(ByteBuffer data) |
static Transaction.TransactionListWithProof |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction.TransactionListWithProof |
parseFrom(com.google.protobuf.ByteString data) |
static Transaction.TransactionListWithProof |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction.TransactionListWithProof |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Transaction.TransactionListWithProof |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction.TransactionListWithProof |
parseFrom(InputStream input) |
static Transaction.TransactionListWithProof |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Transaction.TransactionListWithProof> |
parser() |
Transaction.TransactionListWithProof.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRANSACTIONS_FIELD_NUMBER
public static final int INFOS_FIELD_NUMBER
public static final int EVENTS_FOR_VERSIONS_FIELD_NUMBER
public static final int FIRST_TRANSACTION_VERSION_FIELD_NUMBER
public static final int PROOF_OF_FIRST_TRANSACTION_FIELD_NUMBER
public static final int PROOF_OF_LAST_TRANSACTION_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<Transaction.SignedTransaction> getTransactionsList()
The list of transactions.
repeated .types.SignedTransaction transactions = 1;getTransactionsList in interface Transaction.TransactionListWithProofOrBuilderpublic List<? extends Transaction.SignedTransactionOrBuilder> getTransactionsOrBuilderList()
The list of transactions.
repeated .types.SignedTransaction transactions = 1;getTransactionsOrBuilderList in interface Transaction.TransactionListWithProofOrBuilderpublic int getTransactionsCount()
The list of transactions.
repeated .types.SignedTransaction transactions = 1;getTransactionsCount in interface Transaction.TransactionListWithProofOrBuilderpublic Transaction.SignedTransaction getTransactions(int index)
The list of transactions.
repeated .types.SignedTransaction transactions = 1;getTransactions in interface Transaction.TransactionListWithProofOrBuilderpublic Transaction.SignedTransactionOrBuilder getTransactionsOrBuilder(int index)
The list of transactions.
repeated .types.SignedTransaction transactions = 1;getTransactionsOrBuilder in interface Transaction.TransactionListWithProofOrBuilderpublic List<TransactionInfoOuterClass.TransactionInfo> getInfosList()
The list of corresponding TransactionInfo objects.
repeated .types.TransactionInfo infos = 2;getInfosList in interface Transaction.TransactionListWithProofOrBuilderpublic List<? extends TransactionInfoOuterClass.TransactionInfoOrBuilder> getInfosOrBuilderList()
The list of corresponding TransactionInfo objects.
repeated .types.TransactionInfo infos = 2;getInfosOrBuilderList in interface Transaction.TransactionListWithProofOrBuilderpublic int getInfosCount()
The list of corresponding TransactionInfo objects.
repeated .types.TransactionInfo infos = 2;getInfosCount in interface Transaction.TransactionListWithProofOrBuilderpublic TransactionInfoOuterClass.TransactionInfo getInfos(int index)
The list of corresponding TransactionInfo objects.
repeated .types.TransactionInfo infos = 2;getInfos in interface Transaction.TransactionListWithProofOrBuilderpublic TransactionInfoOuterClass.TransactionInfoOrBuilder getInfosOrBuilder(int index)
The list of corresponding TransactionInfo objects.
repeated .types.TransactionInfo infos = 2;getInfosOrBuilder in interface Transaction.TransactionListWithProofOrBuilderpublic boolean hasEventsForVersions()
The list of corresponding Event objects (only present if fetch_events was set to true in req)
.types.EventsForVersions events_for_versions = 3;hasEventsForVersions in interface Transaction.TransactionListWithProofOrBuilderpublic Events.EventsForVersions getEventsForVersions()
The list of corresponding Event objects (only present if fetch_events was set to true in req)
.types.EventsForVersions events_for_versions = 3;getEventsForVersions in interface Transaction.TransactionListWithProofOrBuilderpublic Events.EventsForVersionsOrBuilder getEventsForVersionsOrBuilder()
The list of corresponding Event objects (only present if fetch_events was set to true in req)
.types.EventsForVersions events_for_versions = 3;getEventsForVersionsOrBuilder in interface Transaction.TransactionListWithProofOrBuilderpublic boolean hasFirstTransactionVersion()
If the list is not empty, the version of the first transaction.
.google.protobuf.UInt64Value first_transaction_version = 4;hasFirstTransactionVersion in interface Transaction.TransactionListWithProofOrBuilderpublic com.google.protobuf.UInt64Value getFirstTransactionVersion()
If the list is not empty, the version of the first transaction.
.google.protobuf.UInt64Value first_transaction_version = 4;getFirstTransactionVersion in interface Transaction.TransactionListWithProofOrBuilderpublic com.google.protobuf.UInt64ValueOrBuilder getFirstTransactionVersionOrBuilder()
If the list is not empty, the version of the first transaction.
.google.protobuf.UInt64Value first_transaction_version = 4;getFirstTransactionVersionOrBuilder in interface Transaction.TransactionListWithProofOrBuilderpublic boolean hasProofOfFirstTransaction()
The proofs of the first and last transaction in this chunk. When this is used for state synchronization, the validator who requests the transactions will provide a version in the request and the proofs will be relative to the given version. When this is returned in GetTransactionsResponse, the proofs will be relative to the ledger info returned in UpdateToLatestLedgerResponse.
.types.AccumulatorProof proof_of_first_transaction = 5;hasProofOfFirstTransaction in interface Transaction.TransactionListWithProofOrBuilderpublic Proof.AccumulatorProof getProofOfFirstTransaction()
The proofs of the first and last transaction in this chunk. When this is used for state synchronization, the validator who requests the transactions will provide a version in the request and the proofs will be relative to the given version. When this is returned in GetTransactionsResponse, the proofs will be relative to the ledger info returned in UpdateToLatestLedgerResponse.
.types.AccumulatorProof proof_of_first_transaction = 5;getProofOfFirstTransaction in interface Transaction.TransactionListWithProofOrBuilderpublic Proof.AccumulatorProofOrBuilder getProofOfFirstTransactionOrBuilder()
The proofs of the first and last transaction in this chunk. When this is used for state synchronization, the validator who requests the transactions will provide a version in the request and the proofs will be relative to the given version. When this is returned in GetTransactionsResponse, the proofs will be relative to the ledger info returned in UpdateToLatestLedgerResponse.
.types.AccumulatorProof proof_of_first_transaction = 5;getProofOfFirstTransactionOrBuilder in interface Transaction.TransactionListWithProofOrBuilderpublic boolean hasProofOfLastTransaction()
.types.AccumulatorProof proof_of_last_transaction = 6;hasProofOfLastTransaction in interface Transaction.TransactionListWithProofOrBuilderpublic Proof.AccumulatorProof getProofOfLastTransaction()
.types.AccumulatorProof proof_of_last_transaction = 6;getProofOfLastTransaction in interface Transaction.TransactionListWithProofOrBuilderpublic Proof.AccumulatorProofOrBuilder getProofOfLastTransactionOrBuilder()
.types.AccumulatorProof proof_of_last_transaction = 6;getProofOfLastTransactionOrBuilder in interface Transaction.TransactionListWithProofOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Transaction.TransactionListWithProof parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Transaction.TransactionListWithProof parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Transaction.TransactionListWithProof parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Transaction.TransactionListWithProof parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Transaction.TransactionListWithProof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Transaction.TransactionListWithProof parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Transaction.TransactionListWithProof parseFrom(InputStream input) throws IOException
IOExceptionpublic static Transaction.TransactionListWithProof parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Transaction.TransactionListWithProof parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Transaction.TransactionListWithProof parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Transaction.TransactionListWithProof parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Transaction.TransactionListWithProof parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Transaction.TransactionListWithProof.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Transaction.TransactionListWithProof.Builder newBuilder()
public static Transaction.TransactionListWithProof.Builder newBuilder(Transaction.TransactionListWithProof prototype)
public Transaction.TransactionListWithProof.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Transaction.TransactionListWithProof.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Transaction.TransactionListWithProof getDefaultInstance()
public static com.google.protobuf.Parser<Transaction.TransactionListWithProof> parser()
public com.google.protobuf.Parser<Transaction.TransactionListWithProof> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Transaction.TransactionListWithProof getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.