java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<CRSState,CRSState.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<CRSState,CRSState.Builder>
com.hedera.hashgraph.sdk.proto.CRSState.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,CRSStateOrBuilder,Cloneable
- Enclosing class:
CRSState
public static final class CRSState.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<CRSState,CRSState.Builder>
implements CRSStateOrBuilder
* The state of a CRS construction.Protobuf type
com.hedera.hapi.node.state.hints.CRSState-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.clearCrs()* The bytes of the CRS.* The id of the next node that should contribute to the CRS.* The stage of the CRS construction.* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.com.google.protobuf.ByteStringgetCrs()* The bytes of the CRS.com.google.protobuf.UInt64Value* The id of the next node that should contribute to the CRS.getStage()* The stage of the CRS construction.int* The stage of the CRS construction.boolean* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.boolean* The id of the next node that should contribute to the CRS.* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.mergeNextContributingNodeId(com.google.protobuf.UInt64Value value) * The id of the next node that should contribute to the CRS.setContributionEndTime(Timestamp value) * The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.setContributionEndTime(Timestamp.Builder builderForValue) * The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.setCrs(com.google.protobuf.ByteString value) * The bytes of the CRS.setNextContributingNodeId(com.google.protobuf.UInt64Value value) * The id of the next node that should contribute to the CRS.setNextContributingNodeId(com.google.protobuf.UInt64Value.Builder builderForValue) * The id of the next node that should contribute to the CRS.* The stage of the CRS construction.setStageValue(int value) * The stage of the CRS 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
-
getCrs
public com.google.protobuf.ByteString getCrs()* The bytes of the CRS. Based on the CRSStage, this may be the initial CRS or the final CRS.
bytes crs = 1;- Specified by:
getCrsin interfaceCRSStateOrBuilder- Returns:
- The crs.
-
setCrs
* The bytes of the CRS. Based on the CRSStage, this may be the initial CRS or the final CRS.
bytes crs = 1;- Parameters:
value- The crs to set.- Returns:
- This builder for chaining.
-
clearCrs
* The bytes of the CRS. Based on the CRSStage, this may be the initial CRS or the final CRS.
bytes crs = 1;- Returns:
- This builder for chaining.
-
getStageValue
public int getStageValue()* The stage of the CRS construction.
.com.hedera.hapi.node.state.hints.CRSStage stage = 2;- Specified by:
getStageValuein interfaceCRSStateOrBuilder- Returns:
- The enum numeric value on the wire for stage.
-
setStageValue
* The stage of the CRS construction.
.com.hedera.hapi.node.state.hints.CRSStage stage = 2;- Parameters:
value- The stage to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getStage
* The stage of the CRS construction.
.com.hedera.hapi.node.state.hints.CRSStage stage = 2;- Specified by:
getStagein interfaceCRSStateOrBuilder- Returns:
- The stage.
-
setStage
* The stage of the CRS construction.
.com.hedera.hapi.node.state.hints.CRSStage stage = 2;- Parameters:
value- The enum numeric value on the wire for stage to set.- Returns:
- This builder for chaining.
-
clearStage
* The stage of the CRS construction.
.com.hedera.hapi.node.state.hints.CRSStage stage = 2;- Returns:
- This builder for chaining.
-
hasNextContributingNodeId
public boolean hasNextContributingNodeId()* The id of the next node that should contribute to the CRS. This is used to ensure that all nodes contribute to the CRS in a round-robin fashion. If this is null, then all nodes in the network have contributed to the CRS.
.google.protobuf.UInt64Value next_contributing_node_id = 3;- Specified by:
hasNextContributingNodeIdin interfaceCRSStateOrBuilder- Returns:
- Whether the nextContributingNodeId field is set.
-
getNextContributingNodeId
public com.google.protobuf.UInt64Value getNextContributingNodeId()* The id of the next node that should contribute to the CRS. This is used to ensure that all nodes contribute to the CRS in a round-robin fashion. If this is null, then all nodes in the network have contributed to the CRS.
.google.protobuf.UInt64Value next_contributing_node_id = 3;- Specified by:
getNextContributingNodeIdin interfaceCRSStateOrBuilder- Returns:
- The nextContributingNodeId.
-
setNextContributingNodeId
* The id of the next node that should contribute to the CRS. This is used to ensure that all nodes contribute to the CRS in a round-robin fashion. If this is null, then all nodes in the network have contributed to the CRS.
.google.protobuf.UInt64Value next_contributing_node_id = 3; -
setNextContributingNodeId
public CRSState.Builder setNextContributingNodeId(com.google.protobuf.UInt64Value.Builder builderForValue) * The id of the next node that should contribute to the CRS. This is used to ensure that all nodes contribute to the CRS in a round-robin fashion. If this is null, then all nodes in the network have contributed to the CRS.
.google.protobuf.UInt64Value next_contributing_node_id = 3; -
mergeNextContributingNodeId
* The id of the next node that should contribute to the CRS. This is used to ensure that all nodes contribute to the CRS in a round-robin fashion. If this is null, then all nodes in the network have contributed to the CRS.
.google.protobuf.UInt64Value next_contributing_node_id = 3; -
clearNextContributingNodeId
* The id of the next node that should contribute to the CRS. This is used to ensure that all nodes contribute to the CRS in a round-robin fashion. If this is null, then all nodes in the network have contributed to the CRS.
.google.protobuf.UInt64Value next_contributing_node_id = 3; -
hasContributionEndTime
public boolean hasContributionEndTime()* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.
.proto.Timestamp contribution_end_time = 4;- Specified by:
hasContributionEndTimein interfaceCRSStateOrBuilder- Returns:
- Whether the contributionEndTime field is set.
-
getContributionEndTime
* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.
.proto.Timestamp contribution_end_time = 4;- Specified by:
getContributionEndTimein interfaceCRSStateOrBuilder- Returns:
- The contributionEndTime.
-
setContributionEndTime
* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.
.proto.Timestamp contribution_end_time = 4; -
setContributionEndTime
* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.
.proto.Timestamp contribution_end_time = 4; -
mergeContributionEndTime
* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.
.proto.Timestamp contribution_end_time = 4; -
clearContributionEndTime
* The time at which the network should stop waiting for the node's contributions and move on to the next node in the round-robin fashion.
.proto.Timestamp contribution_end_time = 4;
-