Module com.hedera.hashgraph.sdk
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 nodesProtobuf type
com.hedera.mirror.api.proto.AddressBookQuery-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* 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.intgetLimit()* The maximum number of node addresses to receive before stopping.boolean* The ID of the address book file on the network.mergeFileId(FileID value) * 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, 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
-
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:
hasFileIdin interfaceAddressBookQueryOrBuilder- Returns:
- Whether the fileId field is set.
-
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:
getFileIdin interfaceAddressBookQueryOrBuilder- Returns:
- The fileId.
-
setFileId
* 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
* 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
* 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
* 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:
getLimitin interfaceAddressBookQueryOrBuilder- Returns:
- The limit.
-
setLimit
* 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
* 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.
-