Class ConsensusGetTopicInfoQuery.Builder

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

public static final class ConsensusGetTopicInfoQuery.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ConsensusGetTopicInfoQuery,ConsensusGetTopicInfoQuery.Builder> implements ConsensusGetTopicInfoQueryOrBuilder
 *
 Retrieve the latest state of a topic.

 This method is unrestricted and allowed on any topic by any payer
 account.<br/>
 A query for a deleted topic MAY succeed if the topic is within the
 "autorenew grace period".<br/>
 A query for a topic removed from state SHALL NOT succeed.
 
Protobuf type proto.ConsensusGetTopicInfoQuery
  • Method Details

    • hasHeader

      public boolean hasHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      hasHeader in interface ConsensusGetTopicInfoQueryOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public QueryHeader getHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      getHeader in interface ConsensusGetTopicInfoQueryOrBuilder
      Returns:
      The header.
    • setHeader

       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • setHeader

      public ConsensusGetTopicInfoQuery.Builder setHeader(QueryHeader.Builder builderForValue)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • mergeHeader

      public ConsensusGetTopicInfoQuery.Builder mergeHeader(QueryHeader value)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • clearHeader

      public ConsensusGetTopicInfoQuery.Builder clearHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • hasTopicID

      public boolean hasTopicID()
       *
       A topic ID.
       <p>
       The network SHALL return information for this topic, if successful.
       
      .proto.TopicID topicID = 2;
      Specified by:
      hasTopicID in interface ConsensusGetTopicInfoQueryOrBuilder
      Returns:
      Whether the topicID field is set.
    • getTopicID

      public TopicID getTopicID()
       *
       A topic ID.
       <p>
       The network SHALL return information for this topic, if successful.
       
      .proto.TopicID topicID = 2;
      Specified by:
      getTopicID in interface ConsensusGetTopicInfoQueryOrBuilder
      Returns:
      The topicID.
    • setTopicID

      public ConsensusGetTopicInfoQuery.Builder setTopicID(TopicID value)
       *
       A topic ID.
       <p>
       The network SHALL return information for this topic, if successful.
       
      .proto.TopicID topicID = 2;
    • setTopicID

      public ConsensusGetTopicInfoQuery.Builder setTopicID(TopicID.Builder builderForValue)
       *
       A topic ID.
       <p>
       The network SHALL return information for this topic, if successful.
       
      .proto.TopicID topicID = 2;
    • mergeTopicID

      public ConsensusGetTopicInfoQuery.Builder mergeTopicID(TopicID value)
       *
       A topic ID.
       <p>
       The network SHALL return information for this topic, if successful.
       
      .proto.TopicID topicID = 2;
    • clearTopicID

      public ConsensusGetTopicInfoQuery.Builder clearTopicID()
       *
       A topic ID.
       <p>
       The network SHALL return information for this topic, if successful.
       
      .proto.TopicID topicID = 2;