Class RegisteredNode.Builder

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

public static final class RegisteredNode.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<RegisteredNode,RegisteredNode.Builder> implements RegisteredNodeOrBuilder
 *
 A single registered node in the network state.

 Each registered node in the network state SHALL represent a single
 non-consensus node that is registered on the network.

 Registered node identifiers SHALL only be unique within a single
 realm and shard combination.
 
Protobuf type com.hedera.hapi.node.state.addressbook.RegisteredNode
  • Method Details

    • getRegisteredNodeId

      public long getRegisteredNodeId()
       *
       A registered node identifier.
       <p>
       This value SHALL be set.<br/>
       This value SHALL be unique within a given network.<br/>
       This value SHALL NOT match any consensus node ID in the same network.
       <p>
       A given value for `registered_node_id` MUST be unique within a given
       shard or realm.<br/>
       A given value for `registered_node_id` MUST NOT be reused, even if the
       corresponding entry is later deleted.
       
      uint64 registered_node_id = 1;
      Specified by:
      getRegisteredNodeId in interface RegisteredNodeOrBuilder
      Returns:
      The registeredNodeId.
    • setRegisteredNodeId

      public RegisteredNode.Builder setRegisteredNodeId(long value)
       *
       A registered node identifier.
       <p>
       This value SHALL be set.<br/>
       This value SHALL be unique within a given network.<br/>
       This value SHALL NOT match any consensus node ID in the same network.
       <p>
       A given value for `registered_node_id` MUST be unique within a given
       shard or realm.<br/>
       A given value for `registered_node_id` MUST NOT be reused, even if the
       corresponding entry is later deleted.
       
      uint64 registered_node_id = 1;
      Parameters:
      value - The registeredNodeId to set.
      Returns:
      This builder for chaining.
    • clearRegisteredNodeId

      public RegisteredNode.Builder clearRegisteredNodeId()
       *
       A registered node identifier.
       <p>
       This value SHALL be set.<br/>
       This value SHALL be unique within a given network.<br/>
       This value SHALL NOT match any consensus node ID in the same network.
       <p>
       A given value for `registered_node_id` MUST be unique within a given
       shard or realm.<br/>
       A given value for `registered_node_id` MUST NOT be reused, even if the
       corresponding entry is later deleted.
       
      uint64 registered_node_id = 1;
      Returns:
      This builder for chaining.
    • hasAdminKey

      public boolean hasAdminKey()
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign each transaction to update this node.<br/>
       This field SHALL contain a valid `Key` value.<br/>
       This field SHALL NOT be set to an empty `KeyList`.<br/>
       It is RECOMMENDED that this key be composed of one or more unique public
       keys that are not associated with any network account.<br/>
       This key MAY be a complex key containing `KeyList` or `ThresholdKey`
       elements, but SHOULD NOT be a contract ID key.
       
      .proto.Key admin_key = 2;
      Specified by:
      hasAdminKey in interface RegisteredNodeOrBuilder
      Returns:
      Whether the adminKey field is set.
    • getAdminKey

      public Key getAdminKey()
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign each transaction to update this node.<br/>
       This field SHALL contain a valid `Key` value.<br/>
       This field SHALL NOT be set to an empty `KeyList`.<br/>
       It is RECOMMENDED that this key be composed of one or more unique public
       keys that are not associated with any network account.<br/>
       This key MAY be a complex key containing `KeyList` or `ThresholdKey`
       elements, but SHOULD NOT be a contract ID key.
       
      .proto.Key admin_key = 2;
      Specified by:
      getAdminKey in interface RegisteredNodeOrBuilder
      Returns:
      The adminKey.
    • setAdminKey

      public RegisteredNode.Builder setAdminKey(Key value)
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign each transaction to update this node.<br/>
       This field SHALL contain a valid `Key` value.<br/>
       This field SHALL NOT be set to an empty `KeyList`.<br/>
       It is RECOMMENDED that this key be composed of one or more unique public
       keys that are not associated with any network account.<br/>
       This key MAY be a complex key containing `KeyList` or `ThresholdKey`
       elements, but SHOULD NOT be a contract ID key.
       
      .proto.Key admin_key = 2;
    • setAdminKey

      public RegisteredNode.Builder setAdminKey(Key.Builder builderForValue)
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign each transaction to update this node.<br/>
       This field SHALL contain a valid `Key` value.<br/>
       This field SHALL NOT be set to an empty `KeyList`.<br/>
       It is RECOMMENDED that this key be composed of one or more unique public
       keys that are not associated with any network account.<br/>
       This key MAY be a complex key containing `KeyList` or `ThresholdKey`
       elements, but SHOULD NOT be a contract ID key.
       
      .proto.Key admin_key = 2;
    • mergeAdminKey

      public RegisteredNode.Builder mergeAdminKey(Key value)
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign each transaction to update this node.<br/>
       This field SHALL contain a valid `Key` value.<br/>
       This field SHALL NOT be set to an empty `KeyList`.<br/>
       It is RECOMMENDED that this key be composed of one or more unique public
       keys that are not associated with any network account.<br/>
       This key MAY be a complex key containing `KeyList` or `ThresholdKey`
       elements, but SHOULD NOT be a contract ID key.
       
      .proto.Key admin_key = 2;
    • clearAdminKey

      public RegisteredNode.Builder clearAdminKey()
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign each transaction to update this node.<br/>
       This field SHALL contain a valid `Key` value.<br/>
       This field SHALL NOT be set to an empty `KeyList`.<br/>
       It is RECOMMENDED that this key be composed of one or more unique public
       keys that are not associated with any network account.<br/>
       This key MAY be a complex key containing `KeyList` or `ThresholdKey`
       elements, but SHOULD NOT be a contract ID key.
       
      .proto.Key admin_key = 2;
    • getDescription

      public String getDescription()
       *
       A short description of the node.
       <p>
       This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
       
      string description = 3;
      Specified by:
      getDescription in interface RegisteredNodeOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       *
       A short description of the node.
       <p>
       This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface RegisteredNodeOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public RegisteredNode.Builder setDescription(String value)
       *
       A short description of the node.
       <p>
       This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public RegisteredNode.Builder clearDescription()
       *
       A short description of the node.
       <p>
       This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public RegisteredNode.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       *
       A short description of the node.
       <p>
       This value SHALL NOT exceed 100 bytes when encoded as UTF-8.
       
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getServiceEndpointList

      public List<RegisteredServiceEndpoint> getServiceEndpointList()
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
      Specified by:
      getServiceEndpointList in interface RegisteredNodeOrBuilder
    • getServiceEndpointCount

      public int getServiceEndpointCount()
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
      Specified by:
      getServiceEndpointCount in interface RegisteredNodeOrBuilder
    • getServiceEndpoint

      public RegisteredServiceEndpoint getServiceEndpoint(int index)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
      Specified by:
      getServiceEndpoint in interface RegisteredNodeOrBuilder
    • setServiceEndpoint

      public RegisteredNode.Builder setServiceEndpoint(int index, RegisteredServiceEndpoint value)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • setServiceEndpoint

      public RegisteredNode.Builder setServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public RegisteredNode.Builder addServiceEndpoint(RegisteredServiceEndpoint value)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public RegisteredNode.Builder addServiceEndpoint(int index, RegisteredServiceEndpoint value)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public RegisteredNode.Builder addServiceEndpoint(RegisteredServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public RegisteredNode.Builder addServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • addAllServiceEndpoint

      public RegisteredNode.Builder addAllServiceEndpoint(Iterable<? extends RegisteredServiceEndpoint> values)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • clearServiceEndpoint

      public RegisteredNode.Builder clearServiceEndpoint()
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
    • removeServiceEndpoint

      public RegisteredNode.Builder removeServiceEndpoint(int index)
       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list SHALL NOT be empty.<br/>
       This list SHALL NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;