Module com.hedera.hashgraph.sdk
Interface GossipEventOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
GossipEvent,GossipEvent.Builder
@Generated
public interface GossipEventOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescription* The core event datagetEventTransaction(int index) Deprecated.intDeprecated.Deprecated.com.google.protobuf.ByteString* A node signature on the event hash.<br/> The signature SHALL be created with the SHA384withRSA algorithm.<br/> The signature MUST verify using the public key belonging to the `event_creator`.<br/> The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/> The signed event hash SHALL be a SHA-384 hash.<br/> The signed event hash SHALL have the following inputs, in the specified order:<br/> 1.com.google.protobuf.ByteStringgetTransactions(int index) * A list of serialized transactions.int* A list of serialized transactions.List<com.google.protobuf.ByteString> * A list of serialized transactions.boolean* The core event dataMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasEventCore
boolean hasEventCore()* The core event data
.com.hedera.hapi.platform.event.EventCore event_core = 1;- Returns:
- Whether the eventCore field is set.
-
getEventCore
EventCore getEventCore()* The core event data
.com.hedera.hapi.platform.event.EventCore event_core = 1;- Returns:
- The eventCore.
-
getSignature
com.google.protobuf.ByteString getSignature()* A node signature on the event hash.<br/> The signature SHALL be created with the SHA384withRSA algorithm.<br/> The signature MUST verify using the public key belonging to the `event_creator`.<br/> The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/> The signed event hash SHALL be a SHA-384 hash.<br/> The signed event hash SHALL have the following inputs, in the specified order:<br/> 1. The bytes of the `event_core` field<br/> 2. The SHA-384 hash of each individual `EventTransaction`, in the order the transaction appear in the `event_transaction` field
bytes signature = 2;- Returns:
- The signature.
-
getEventTransactionList
Deprecated.* The event transaction. <p> This field MAY contain zero transactions.<br/> This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/> This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/> Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/> This is transitional state until 'transaction' field is fully adopted.
repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true]; -
getEventTransaction
Deprecated.* The event transaction. <p> This field MAY contain zero transactions.<br/> This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/> This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/> Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/> This is transitional state until 'transaction' field is fully adopted.
repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true]; -
getEventTransactionCount
Deprecated.* The event transaction. <p> This field MAY contain zero transactions.<br/> This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/> This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.<br/> Deprecated in favor of the `transaction` field. The idea is to clean the design of event transactions.<br/> This is transitional state until 'transaction' field is fully adopted.
repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3 [deprecated = true]; -
getTransactionsList
List<com.google.protobuf.ByteString> getTransactionsList()* A list of serialized transactions. <p> This field MAY contain zero transactions.<br/> Each transaction in this list SHALL be presented exactly as it was supplied to the consensus algorithm.<br/> This field MUST contain one entry for each transaction included in this gossip event.
repeated bytes transactions = 4;- Returns:
- A list containing the transactions.
-
getTransactionsCount
int getTransactionsCount()* A list of serialized transactions. <p> This field MAY contain zero transactions.<br/> Each transaction in this list SHALL be presented exactly as it was supplied to the consensus algorithm.<br/> This field MUST contain one entry for each transaction included in this gossip event.
repeated bytes transactions = 4;- Returns:
- The count of transactions.
-
getTransactions
com.google.protobuf.ByteString getTransactions(int index) * A list of serialized transactions. <p> This field MAY contain zero transactions.<br/> Each transaction in this list SHALL be presented exactly as it was supplied to the consensus algorithm.<br/> This field MUST contain one entry for each transaction included in this gossip event.
repeated bytes transactions = 4;- Parameters:
index- The index of the element to return.- Returns:
- The transactions at the given index.
-