Module com.hedera.hashgraph.sdk
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 TypeMethodDescription* 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.mergeConsensusTimestamp(Timestamp value) * 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.setConsensusTimestamp(Timestamp value) * A consensus timestamp.<br/> The network's consensus agreement on a timestamp for this event.setConsensusTimestamp(Timestamp.Builder builderForValue) * 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, 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
-
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:
hasConsensusTimestampin interfaceEventConsensusDataOrBuilder- Returns:
- Whether the consensusTimestamp field is set.
-
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:
getConsensusTimestampin interfaceEventConsensusDataOrBuilder- Returns:
- The consensusTimestamp.
-
setConsensusTimestamp
* 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
* 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
* 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
* 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:
getConsensusOrderin interfaceEventConsensusDataOrBuilder- Returns:
- The consensusOrder.
-
setConsensusOrder
* 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
* 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.
-