Module com.hedera.hashgraph.sdk
Interface EventDescriptorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
EventDescriptor,EventDescriptor.Builder
@Generated
public interface EventDescriptorOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong* The birth round of the event.<br/> The birth round SHALL be the pending consensus round at the time the event is created.<br/> The pending consensus round SHALL be **one greater** than the latest round to reach consensus.long* The creator node identifier.<br/> This SHALL be the unique identifier for the node that created the event.<br/> This SHALL match the ID of the node as it appears in the address book.long* The generation of the event.<br/> This value SHALL be **one greater** than the _maximum_ generation of all parents.<br/>com.google.protobuf.ByteStringgetHash()* The hash of the event.<br/> The hash SHALL be a SHA-384 hash.<br/> The hash SHALL have the following inputs, in the specified order:<br/> 1.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getHash
com.google.protobuf.ByteString getHash()* The hash of the event.<br/> The hash SHALL be a SHA-384 hash.<br/> The hash SHALL have the following inputs, in the specified order:<br/> 1. The bytes of the `EventCore` protobuf<br/> 2. The SHA-384 hash of each individual `EventTransaction`, in the order the transactions appear in the `event_transactions` field of the `GossipEvent` protobuf
bytes hash = 1;- Returns:
- The hash.
-
getCreatorNodeId
long getCreatorNodeId()* The creator node identifier.<br/> This SHALL be the unique identifier for the node that created the event.<br/> This SHALL match the ID of the node as it appears in the address book.
int64 creator_node_id = 2;- Returns:
- The creatorNodeId.
-
getBirthRound
long getBirthRound()* The birth round of the event.<br/> The birth round SHALL be the pending consensus round at the time the event is created.<br/> The pending consensus round SHALL be **one greater** than the latest round to reach consensus.
int64 birth_round = 3;- Returns:
- The birthRound.
-
getGeneration
long getGeneration()* The generation of the event.<br/> This value SHALL be **one greater** than the _maximum_ generation of all parents.<br/>
int64 generation = 17;- Returns:
- The generation.
-