Class RegisteredNodeCreateTransactionBody.Builder

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

public static final class RegisteredNodeCreateTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<RegisteredNodeCreateTransactionBody,RegisteredNodeCreateTransactionBody.Builder> implements RegisteredNodeCreateTransactionBodyOrBuilder
 *
 A transaction body to create a new registered node in the network
 address book.

 This transaction, once complete, SHALL add a new registered node to the
 network state.
 The new registered node SHALL be visible and discoverable upon
 completion of this transaction.

 ### Block Stream Effects
 None.
 
Protobuf type com.hedera.hapi.node.addressbook.RegisteredNodeCreateTransactionBody
  • Method Details

    • hasAdminKey

      public boolean hasAdminKey()
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign this transaction.<br/>
       This key MUST sign each transaction to update this node.<br/>
       This field MUST contain a valid `Key` value.<br/>
       This field is REQUIRED and MUST 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 = 1;
      Specified by:
      hasAdminKey in interface RegisteredNodeCreateTransactionBodyOrBuilder
      Returns:
      Whether the adminKey field is set.
    • getAdminKey

      public Key getAdminKey()
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign this transaction.<br/>
       This key MUST sign each transaction to update this node.<br/>
       This field MUST contain a valid `Key` value.<br/>
       This field is REQUIRED and MUST 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 = 1;
      Specified by:
      getAdminKey in interface RegisteredNodeCreateTransactionBodyOrBuilder
      Returns:
      The adminKey.
    • setAdminKey

       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign this transaction.<br/>
       This key MUST sign each transaction to update this node.<br/>
       This field MUST contain a valid `Key` value.<br/>
       This field is REQUIRED and MUST 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 = 1;
    • setAdminKey

      public RegisteredNodeCreateTransactionBody.Builder setAdminKey(Key.Builder builderForValue)
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign this transaction.<br/>
       This key MUST sign each transaction to update this node.<br/>
       This field MUST contain a valid `Key` value.<br/>
       This field is REQUIRED and MUST 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 = 1;
    • mergeAdminKey

      public RegisteredNodeCreateTransactionBody.Builder mergeAdminKey(Key value)
       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign this transaction.<br/>
       This key MUST sign each transaction to update this node.<br/>
       This field MUST contain a valid `Key` value.<br/>
       This field is REQUIRED and MUST 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 = 1;
    • clearAdminKey

       *
       An administrative key controlled by the node operator.
       <p>
       This key MUST sign this transaction.<br/>
       This key MUST sign each transaction to update this node.<br/>
       This field MUST contain a valid `Key` value.<br/>
       This field is REQUIRED and MUST 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 = 1;
    • getDescription

      public String getDescription()
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
       This field is OPTIONAL.
       
      string description = 2;
      Specified by:
      getDescription in interface RegisteredNodeCreateTransactionBodyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
       This field is OPTIONAL.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface RegisteredNodeCreateTransactionBodyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public RegisteredNodeCreateTransactionBody.Builder setDescription(String value)
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
       This field is OPTIONAL.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
       This field is OPTIONAL.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public RegisteredNodeCreateTransactionBody.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/>
       This field is OPTIONAL.
       
      string description = 2;
      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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
      Specified by:
      getServiceEndpointList in interface RegisteredNodeCreateTransactionBodyOrBuilder
    • 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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
      Specified by:
      getServiceEndpointCount in interface RegisteredNodeCreateTransactionBodyOrBuilder
    • 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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
      Specified by:
      getServiceEndpoint in interface RegisteredNodeCreateTransactionBodyOrBuilder
    • setServiceEndpoint

      public RegisteredNodeCreateTransactionBody.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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • setServiceEndpoint

      public RegisteredNodeCreateTransactionBody.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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • addServiceEndpoint

       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • addServiceEndpoint

      public RegisteredNodeCreateTransactionBody.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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • addServiceEndpoint

       *
       A list of service endpoints for client calls.
       <p>
       These endpoints SHALL represent the published endpoints to which
       clients may submit requests.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • addServiceEndpoint

      public RegisteredNodeCreateTransactionBody.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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • addAllServiceEndpoint

      public RegisteredNodeCreateTransactionBody.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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • clearServiceEndpoint

      public RegisteredNodeCreateTransactionBody.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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
    • removeServiceEndpoint

      public RegisteredNodeCreateTransactionBody.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/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       Multiple endpoints in this list MAY resolve to the same interface.<br/>
       One Registered Node MAY expose endpoints for multiple service types.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `50` entries.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;