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 Type
    Method
    Description
    * 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.
    * 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 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.
    * 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.
    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.
    * 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 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.
    * 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, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      getCreatorNodeId in interface EventCoreOrBuilder
      Returns:
      The creatorNodeId.
    • setCreatorNodeId

      public EventCore.Builder 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.
       
      int64 creator_node_id = 1;
      Parameters:
      value - The creatorNodeId to set.
      Returns:
      This builder for chaining.
    • clearCreatorNodeId

      public EventCore.Builder 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:
      getBirthRound in interface EventCoreOrBuilder
      Returns:
      The birthRound.
    • setBirthRound

      public EventCore.Builder 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.
       
      int64 birth_round = 2;
      Parameters:
      value - The birthRound to set.
      Returns:
      This builder for chaining.
    • clearBirthRound

      public EventCore.Builder 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:
      hasTimeCreated in interface EventCoreOrBuilder
      Returns:
      Whether the timeCreated field is set.
    • getTimeCreated

      public Timestamp 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:
      getTimeCreated in interface EventCoreOrBuilder
      Returns:
      The timeCreated.
    • setTimeCreated

      public EventCore.Builder 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.
       
      .proto.Timestamp time_created = 3;
    • setTimeCreated

      public EventCore.Builder 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.
       
      .proto.Timestamp time_created = 3;
    • mergeTimeCreated

      public EventCore.Builder 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.
       
      .proto.Timestamp time_created = 3;
    • clearTimeCreated

      public EventCore.Builder 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

      public List<EventDescriptor> 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:
      getParentsList in interface EventCoreOrBuilder
    • 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:
      getParentsCount in interface EventCoreOrBuilder
    • getParents

      public EventDescriptor 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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
      Specified by:
      getParents in interface EventCoreOrBuilder
    • setParents

      public EventCore.Builder 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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
    • setParents

      public EventCore.Builder 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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
    • addParents

      public EventCore.Builder 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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
    • addParents

      public EventCore.Builder 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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
    • addParents

      public EventCore.Builder 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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
    • addParents

      public EventCore.Builder 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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
    • addAllParents

      public EventCore.Builder addAllParents(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.
       
      repeated .com.hedera.hapi.platform.event.EventDescriptor parents = 4;
    • clearParents

      public EventCore.Builder 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

      public EventCore.Builder 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.
       
      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:
      hasVersion in interface EventCoreOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public SemanticVersion 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:
      getVersion in interface EventCoreOrBuilder
      Returns:
      The version.
    • setVersion

      public EventCore.Builder 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.
       
      .proto.SemanticVersion version = 17;
    • setVersion

      public EventCore.Builder 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.
       
      .proto.SemanticVersion version = 17;
    • mergeVersion

      public EventCore.Builder 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.
       
      .proto.SemanticVersion version = 17;
    • clearVersion

      public EventCore.Builder 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;