Class TopicID.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TopicID,TopicID.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TopicID,TopicID.Builder>
com.hedera.hashgraph.sdk.proto.TopicID.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TopicIDOrBuilder, Cloneable
Enclosing class:
TopicID

public static final class TopicID.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TopicID,TopicID.Builder> implements TopicIDOrBuilder
 *
 An unique identifier for a topic.<br/>
 Topics are part of the consensus service, messages are published to a topic.
 
Protobuf type proto.TopicID
  • Field Summary

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * A whole number realm identifier.
    * A whole number shard identifier.
    * A whole number topic identifier, unique within its realm and shard.
    long
    * A whole number realm identifier.
    long
    * A whole number shard identifier.
    long
    * A whole number topic identifier, unique within its realm and shard.
    setRealmNum(long value)
    * A whole number realm identifier.
    setShardNum(long value)
    * A whole number shard identifier.
    setTopicNum(long value)
    * A whole number topic identifier, unique within its realm and shard.

    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

    • getShardNum

      public long getShardNum()
       *
       A whole number shard identifier.
       
      int64 shardNum = 1;
      Specified by:
      getShardNum in interface TopicIDOrBuilder
      Returns:
      The shardNum.
    • setShardNum

      public TopicID.Builder setShardNum(long value)
       *
       A whole number shard identifier.
       
      int64 shardNum = 1;
      Parameters:
      value - The shardNum to set.
      Returns:
      This builder for chaining.
    • clearShardNum

      public TopicID.Builder clearShardNum()
       *
       A whole number shard identifier.
       
      int64 shardNum = 1;
      Returns:
      This builder for chaining.
    • getRealmNum

      public long getRealmNum()
       *
       A whole number realm identifier.
       
      int64 realmNum = 2;
      Specified by:
      getRealmNum in interface TopicIDOrBuilder
      Returns:
      The realmNum.
    • setRealmNum

      public TopicID.Builder setRealmNum(long value)
       *
       A whole number realm identifier.
       
      int64 realmNum = 2;
      Parameters:
      value - The realmNum to set.
      Returns:
      This builder for chaining.
    • clearRealmNum

      public TopicID.Builder clearRealmNum()
       *
       A whole number realm identifier.
       
      int64 realmNum = 2;
      Returns:
      This builder for chaining.
    • getTopicNum

      public long getTopicNum()
       *
       A whole number topic identifier, unique within its realm and shard.
       
      int64 topicNum = 3;
      Specified by:
      getTopicNum in interface TopicIDOrBuilder
      Returns:
      The topicNum.
    • setTopicNum

      public TopicID.Builder setTopicNum(long value)
       *
       A whole number topic identifier, unique within its realm and shard.
       
      int64 topicNum = 3;
      Parameters:
      value - The topicNum to set.
      Returns:
      This builder for chaining.
    • clearTopicNum

      public TopicID.Builder clearTopicNum()
       *
       A whole number topic identifier, unique within its realm and shard.
       
      int64 topicNum = 3;
      Returns:
      This builder for chaining.