java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ShardID,ShardID.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ShardID,ShardID.Builder>
com.hedera.hashgraph.sdk.proto.ShardID.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ShardIDOrBuilder,Cloneable
- Enclosing class:
ShardID
public static final class ShardID.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ShardID,ShardID.Builder>
implements ShardIDOrBuilder
* A shard identifier.<br/> A shard is a partition of nodes running the network that processes transactions separately from other shards. Each shard is effectively an independent instance of the overall network that shares the same virtual distributed ledger, and may gossip cross-shard transactions with other shards to maintain overall correct processing of the ledger.Protobuf type
proto.ShardID-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A whole number shard identifier.long* A whole number shard identifier.setShardNum(long value) * A whole number shard identifier.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
-
getShardNum
public long getShardNum()* A whole number shard identifier.
int64 shardNum = 1;- Specified by:
getShardNumin interfaceShardIDOrBuilder- Returns:
- The shardNum.
-
setShardNum
* A whole number shard identifier.
int64 shardNum = 1;- Parameters:
value- The shardNum to set.- Returns:
- This builder for chaining.
-
clearShardNum
* A whole number shard identifier.
int64 shardNum = 1;- Returns:
- This builder for chaining.
-