Class AddressBookQuery.Builder

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

public static final class AddressBookQuery.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AddressBookQuery,AddressBookQuery.Builder> implements AddressBookQueryOrBuilder
 *
 Request object to query an address book for its list of nodes
 
Protobuf type com.hedera.mirror.api.proto.AddressBookQuery
  • Field Summary

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * The ID of the address book file on the network.
    * The maximum number of node addresses to receive before stopping.
    * The ID of the address book file on the network.
    int
    * The maximum number of node addresses to receive before stopping.
    boolean
    * The ID of the address book file on the network.
    * The ID of the address book file on the network.
    * The ID of the address book file on the network.
    setFileId(FileID.Builder builderForValue)
    * The ID of the address book file on the network.
    setLimit(int value)
    * The maximum number of node addresses to receive before stopping.

    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

    • hasFileId

      public boolean hasFileId()
       *
       The ID of the address book file on the network. Can be either 0.0.101 or 0.0.102.
       
      .proto.FileID file_id = 1;
      Specified by:
      hasFileId in interface AddressBookQueryOrBuilder
      Returns:
      Whether the fileId field is set.
    • getFileId

      public FileID getFileId()
       *
       The ID of the address book file on the network. Can be either 0.0.101 or 0.0.102.
       
      .proto.FileID file_id = 1;
      Specified by:
      getFileId in interface AddressBookQueryOrBuilder
      Returns:
      The fileId.
    • setFileId

      public AddressBookQuery.Builder setFileId(FileID value)
       *
       The ID of the address book file on the network. Can be either 0.0.101 or 0.0.102.
       
      .proto.FileID file_id = 1;
    • setFileId

      public AddressBookQuery.Builder setFileId(FileID.Builder builderForValue)
       *
       The ID of the address book file on the network. Can be either 0.0.101 or 0.0.102.
       
      .proto.FileID file_id = 1;
    • mergeFileId

      public AddressBookQuery.Builder mergeFileId(FileID value)
       *
       The ID of the address book file on the network. Can be either 0.0.101 or 0.0.102.
       
      .proto.FileID file_id = 1;
    • clearFileId

      public AddressBookQuery.Builder clearFileId()
       *
       The ID of the address book file on the network. Can be either 0.0.101 or 0.0.102.
       
      .proto.FileID file_id = 1;
    • getLimit

      public int getLimit()
       *
       The maximum number of node addresses to receive before stopping. If not set or set to zero it will return all node addresses in the database.
       
      int32 limit = 2;
      Specified by:
      getLimit in interface AddressBookQueryOrBuilder
      Returns:
      The limit.
    • setLimit

      public AddressBookQuery.Builder setLimit(int value)
       *
       The maximum number of node addresses to receive before stopping. If not set or set to zero it will return all node addresses in the database.
       
      int32 limit = 2;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

      public AddressBookQuery.Builder clearLimit()
       *
       The maximum number of node addresses to receive before stopping. If not set or set to zero it will return all node addresses in the database.
       
      int32 limit = 2;
      Returns:
      This builder for chaining.