Class EventConsensusData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<EventConsensusData,EventConsensusData.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<EventConsensusData,EventConsensusData.Builder>
com.hedera.hapi.platform.event.legacy.EventConsensusData.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, EventConsensusDataOrBuilder, Cloneable
Enclosing class:
EventConsensusData

public static final class EventConsensusData.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<EventConsensusData,EventConsensusData.Builder> implements EventConsensusDataOrBuilder
 *
 Event Consensus Data.<br/>
 This message records the critical values produced by consensus for an event.
 
Protobuf type com.hedera.hapi.platform.event.EventConsensusData
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A consensus order sequence number.<br/> A non-negative sequence number that identifies an event's consensus order since genesis.
    * A consensus timestamp.<br/> The network's consensus agreement on a timestamp for this event.
    long
    * A consensus order sequence number.<br/> A non-negative sequence number that identifies an event's consensus order since genesis.
    * A consensus timestamp.<br/> The network's consensus agreement on a timestamp for this event.
    boolean
    * A consensus timestamp.<br/> The network's consensus agreement on a timestamp for this event.
    * A consensus timestamp.<br/> The network's consensus agreement on a timestamp for this event.
    setConsensusOrder(long value)
    * A consensus order sequence number.<br/> A non-negative sequence number that identifies an event's consensus order since genesis.
    * A consensus timestamp.<br/> The network's consensus agreement on a timestamp for this event.
    * A consensus timestamp.<br/> The network's consensus agreement on a timestamp for this event.

    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

    • hasConsensusTimestamp

      public boolean hasConsensusTimestamp()
       *
       A consensus timestamp.<br/>
       The network's consensus agreement on a timestamp for this event.
       <p>
       This timestamp MUST be strictly greater than the `consensus_timestamp` of
       the previous consensus event.<br/>
       This is a consensus value and MAY NOT match real-world "wall clock" time.
       
      .proto.Timestamp consensus_timestamp = 1;
      Specified by:
      hasConsensusTimestamp in interface EventConsensusDataOrBuilder
      Returns:
      Whether the consensusTimestamp field is set.
    • getConsensusTimestamp

      public Timestamp getConsensusTimestamp()
       *
       A consensus timestamp.<br/>
       The network's consensus agreement on a timestamp for this event.
       <p>
       This timestamp MUST be strictly greater than the `consensus_timestamp` of
       the previous consensus event.<br/>
       This is a consensus value and MAY NOT match real-world "wall clock" time.
       
      .proto.Timestamp consensus_timestamp = 1;
      Specified by:
      getConsensusTimestamp in interface EventConsensusDataOrBuilder
      Returns:
      The consensusTimestamp.
    • setConsensusTimestamp

      public EventConsensusData.Builder setConsensusTimestamp(Timestamp value)
       *
       A consensus timestamp.<br/>
       The network's consensus agreement on a timestamp for this event.
       <p>
       This timestamp MUST be strictly greater than the `consensus_timestamp` of
       the previous consensus event.<br/>
       This is a consensus value and MAY NOT match real-world "wall clock" time.
       
      .proto.Timestamp consensus_timestamp = 1;
    • setConsensusTimestamp

      public EventConsensusData.Builder setConsensusTimestamp(Timestamp.Builder builderForValue)
       *
       A consensus timestamp.<br/>
       The network's consensus agreement on a timestamp for this event.
       <p>
       This timestamp MUST be strictly greater than the `consensus_timestamp` of
       the previous consensus event.<br/>
       This is a consensus value and MAY NOT match real-world "wall clock" time.
       
      .proto.Timestamp consensus_timestamp = 1;
    • mergeConsensusTimestamp

      public EventConsensusData.Builder mergeConsensusTimestamp(Timestamp value)
       *
       A consensus timestamp.<br/>
       The network's consensus agreement on a timestamp for this event.
       <p>
       This timestamp MUST be strictly greater than the `consensus_timestamp` of
       the previous consensus event.<br/>
       This is a consensus value and MAY NOT match real-world "wall clock" time.
       
      .proto.Timestamp consensus_timestamp = 1;
    • clearConsensusTimestamp

      public EventConsensusData.Builder clearConsensusTimestamp()
       *
       A consensus timestamp.<br/>
       The network's consensus agreement on a timestamp for this event.
       <p>
       This timestamp MUST be strictly greater than the `consensus_timestamp` of
       the previous consensus event.<br/>
       This is a consensus value and MAY NOT match real-world "wall clock" time.
       
      .proto.Timestamp consensus_timestamp = 1;
    • getConsensusOrder

      public long getConsensusOrder()
       *
       A consensus order sequence number.<br/>
       A non-negative sequence number that identifies an event's consensus order
       since genesis.
       <p>
       This SHALL be the unique for each consensus event.<br/>
       This SHALL always increase, and SHALL NOT decrease.<br/>
       This SHALL increment by one for each consensus event.
       
      uint64 consensus_order = 2;
      Specified by:
      getConsensusOrder in interface EventConsensusDataOrBuilder
      Returns:
      The consensusOrder.
    • setConsensusOrder

      public EventConsensusData.Builder setConsensusOrder(long value)
       *
       A consensus order sequence number.<br/>
       A non-negative sequence number that identifies an event's consensus order
       since genesis.
       <p>
       This SHALL be the unique for each consensus event.<br/>
       This SHALL always increase, and SHALL NOT decrease.<br/>
       This SHALL increment by one for each consensus event.
       
      uint64 consensus_order = 2;
      Parameters:
      value - The consensusOrder to set.
      Returns:
      This builder for chaining.
    • clearConsensusOrder

      public EventConsensusData.Builder clearConsensusOrder()
       *
       A consensus order sequence number.<br/>
       A non-negative sequence number that identifies an event's consensus order
       since genesis.
       <p>
       This SHALL be the unique for each consensus event.<br/>
       This SHALL always increase, and SHALL NOT decrease.<br/>
       This SHALL increment by one for each consensus event.
       
      uint64 consensus_order = 2;
      Returns:
      This builder for chaining.