Module com.hedera.hashgraph.sdk
Class EventCore.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<EventCore,EventCore.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<EventCore,EventCore.Builder>
com.hedera.hapi.platform.event.legacy.EventCore.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,EventCoreOrBuilder,Cloneable
- Enclosing class:
EventCore
public static final class EventCore.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<EventCore,EventCore.Builder>
implements EventCoreOrBuilder
* Contains information about an event and its parents.Protobuf type
com.hedera.hapi.platform.event.EventCore-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllParents(Iterable<? extends EventDescriptor> values) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.addParents(int index, EventDescriptor value) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.addParents(int index, EventDescriptor.Builder builderForValue) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.addParents(EventDescriptor value) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.addParents(EventDescriptor.Builder builderForValue) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.* 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.* 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.* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.long* 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.getParents(int index) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.int* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.boolean* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.boolean* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.mergeTimeCreated(Timestamp value) * The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.mergeVersion(SemanticVersion value) * The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.removeParents(int index) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.setBirthRound(long value) * 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.setCreatorNodeId(long value) * 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.setParents(int index, EventDescriptor value) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.setParents(int index, EventDescriptor.Builder builderForValue) * A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.setTimeCreated(Timestamp value) * The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.setTimeCreated(Timestamp.Builder builderForValue) * The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.setVersion(SemanticVersion value) * The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.setVersion(SemanticVersion.Builder builderForValue) * The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getCreatorNodeId
public 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 = 1;- Specified by:
getCreatorNodeIdin interfaceEventCoreOrBuilder- Returns:
- The creatorNodeId.
-
setCreatorNodeId
* 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 = 1;- Parameters:
value- The creatorNodeId to set.- Returns:
- This builder for chaining.
-
clearCreatorNodeId
* 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 = 1;- Returns:
- This builder for chaining.
-
getBirthRound
public 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 = 2;- Specified by:
getBirthRoundin interfaceEventCoreOrBuilder- Returns:
- The birthRound.
-
setBirthRound
* 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 = 2;- Parameters:
value- The birthRound to set.- Returns:
- This builder for chaining.
-
clearBirthRound
* 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 = 2;- Returns:
- This builder for chaining.
-
hasTimeCreated
public boolean hasTimeCreated()* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.
.proto.Timestamp time_created = 3;- Specified by:
hasTimeCreatedin interfaceEventCoreOrBuilder- Returns:
- Whether the timeCreated field is set.
-
getTimeCreated
* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.
.proto.Timestamp time_created = 3;- Specified by:
getTimeCreatedin interfaceEventCoreOrBuilder- Returns:
- The timeCreated.
-
setTimeCreated
* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.
.proto.Timestamp time_created = 3; -
setTimeCreated
* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.
.proto.Timestamp time_created = 3; -
mergeTimeCreated
* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.
.proto.Timestamp time_created = 3; -
clearTimeCreated
* The wall clock time at which the event was created, according to the node creating the event.<br/> If the event has a self parent, this timestamp MUST be strictly greater than the `time_created` of the self parent.
.proto.Timestamp time_created = 3; -
getParentsList
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;- Specified by:
getParentsListin interfaceEventCoreOrBuilder
-
getParentsCount
public int getParentsCount()* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;- Specified by:
getParentsCountin interfaceEventCoreOrBuilder
-
getParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;- Specified by:
getParentsin interfaceEventCoreOrBuilder
-
setParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
setParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
addParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
addParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
addParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
addParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
addAllParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
clearParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
removeParents
* A list of EventDescriptors representing the parents of this event.<br/> The list of parents SHALL include zero or one self parents, and zero or more other parents.<br/> The first element of the list SHALL be the self parent, if one exists.<br/> The list of parents SHALL NOT include more than one parent from the same creator.
repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4; -
hasVersion
public boolean hasVersion()* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.
.proto.SemanticVersion version = 17;- Specified by:
hasVersionin interfaceEventCoreOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.
.proto.SemanticVersion version = 17;- Specified by:
getVersionin interfaceEventCoreOrBuilder- Returns:
- The version.
-
setVersion
* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.
.proto.SemanticVersion version = 17; -
setVersion
* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.
.proto.SemanticVersion version = 17; -
mergeVersion
* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.
.proto.SemanticVersion version = 17; -
clearVersion
* The event specification version.<br/> The specification described by this version SHALL encompass the format of the `GossipEvent` message, and also the format of all contained messages.<br/> This SHALL exactly match the specification version passed into the platform at construction.
.proto.SemanticVersion version = 17;
-