Class NodeCreateTransactionBody.Builder

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

public static final class NodeCreateTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<NodeCreateTransactionBody,NodeCreateTransactionBody.Builder> implements NodeCreateTransactionBodyOrBuilder
 *
 A transaction body to add a new consensus node to the network address book.

 This transaction body SHALL be considered a "privileged transaction".

 This message supports a transaction to create a new node in the network
 address book. The transaction, once complete, enables a new consensus node
 to join the network, and requires governing council authorization.

 - A `NodeCreateTransactionBody` MUST be signed by the `Key` assigned to the
 `admin_key` field and one of those keys: treasure account (2) key,
 systemAdmin(50) key, or addressBookAdmin(55) key.
 - The newly created node information SHALL be added to the network address
 book information in the network state.
 - The new entry SHALL be created in "state" but SHALL NOT participate in
 network consensus and SHALL NOT be present in network "configuration"
 until the next "upgrade" transaction (as noted below).
 - All new address book entries SHALL be added to the active network
 configuration during the next `freeze` transaction with the field
 `freeze_type` set to `PREPARE_UPGRADE`.

 ### Block Stream Effects
 Upon completion the newly assigned `node_id` SHALL be recorded in
 the transaction receipt.<br/>
 This value SHALL be the next available node identifier.<br/>
 Node identifiers SHALL NOT be reused.
 
Protobuf type com.hedera.hapi.node.addressbook.NodeCreateTransactionBody
  • Method Details

    • hasAccountId

      public boolean hasAccountId()
       *
       A Node account identifier.
       <p>
       This account identifier MUST be in the "account number" form.<br/>
       This account identifier MUST NOT use the alias field.<br/>
       If the identified account does not exist, this transaction SHALL fail.<br/>
       Multiple nodes MAY share the same node account.<br/>
       This field is REQUIRED.
       
      .proto.AccountID account_id = 1;
      Specified by:
      hasAccountId in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      Whether the accountId field is set.
    • getAccountId

      public AccountID getAccountId()
       *
       A Node account identifier.
       <p>
       This account identifier MUST be in the "account number" form.<br/>
       This account identifier MUST NOT use the alias field.<br/>
       If the identified account does not exist, this transaction SHALL fail.<br/>
       Multiple nodes MAY share the same node account.<br/>
       This field is REQUIRED.
       
      .proto.AccountID account_id = 1;
      Specified by:
      getAccountId in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      The accountId.
    • setAccountId

      public NodeCreateTransactionBody.Builder setAccountId(AccountID value)
       *
       A Node account identifier.
       <p>
       This account identifier MUST be in the "account number" form.<br/>
       This account identifier MUST NOT use the alias field.<br/>
       If the identified account does not exist, this transaction SHALL fail.<br/>
       Multiple nodes MAY share the same node account.<br/>
       This field is REQUIRED.
       
      .proto.AccountID account_id = 1;
    • setAccountId

      public NodeCreateTransactionBody.Builder setAccountId(AccountID.Builder builderForValue)
       *
       A Node account identifier.
       <p>
       This account identifier MUST be in the "account number" form.<br/>
       This account identifier MUST NOT use the alias field.<br/>
       If the identified account does not exist, this transaction SHALL fail.<br/>
       Multiple nodes MAY share the same node account.<br/>
       This field is REQUIRED.
       
      .proto.AccountID account_id = 1;
    • mergeAccountId

      public NodeCreateTransactionBody.Builder mergeAccountId(AccountID value)
       *
       A Node account identifier.
       <p>
       This account identifier MUST be in the "account number" form.<br/>
       This account identifier MUST NOT use the alias field.<br/>
       If the identified account does not exist, this transaction SHALL fail.<br/>
       Multiple nodes MAY share the same node account.<br/>
       This field is REQUIRED.
       
      .proto.AccountID account_id = 1;
    • clearAccountId

      public NodeCreateTransactionBody.Builder clearAccountId()
       *
       A Node account identifier.
       <p>
       This account identifier MUST be in the "account number" form.<br/>
       This account identifier MUST NOT use the alias field.<br/>
       If the identified account does not exist, this transaction SHALL fail.<br/>
       Multiple nodes MAY share the same node account.<br/>
       This field is REQUIRED.
       
      .proto.AccountID account_id = 1;
    • getDescription

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

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

      public NodeCreateTransactionBody.Builder setDescription(String value)
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 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

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

      public NodeCreateTransactionBody.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       *
       A short description of the node.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 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.
    • getGossipEndpointList

      public List<ServiceEndpoint> getGossipEndpointList()
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
      Specified by:
      getGossipEndpointList in interface NodeCreateTransactionBodyOrBuilder
    • getGossipEndpointCount

      public int getGossipEndpointCount()
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
      Specified by:
      getGossipEndpointCount in interface NodeCreateTransactionBodyOrBuilder
    • getGossipEndpoint

      public ServiceEndpoint getGossipEndpoint(int index)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
      Specified by:
      getGossipEndpoint in interface NodeCreateTransactionBodyOrBuilder
    • setGossipEndpoint

      public NodeCreateTransactionBody.Builder setGossipEndpoint(int index, ServiceEndpoint value)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • setGossipEndpoint

      public NodeCreateTransactionBody.Builder setGossipEndpoint(int index, ServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • addGossipEndpoint

      public NodeCreateTransactionBody.Builder addGossipEndpoint(ServiceEndpoint value)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • addGossipEndpoint

      public NodeCreateTransactionBody.Builder addGossipEndpoint(int index, ServiceEndpoint value)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • addGossipEndpoint

      public NodeCreateTransactionBody.Builder addGossipEndpoint(ServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • addGossipEndpoint

      public NodeCreateTransactionBody.Builder addGossipEndpoint(int index, ServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • addAllGossipEndpoint

      public NodeCreateTransactionBody.Builder addAllGossipEndpoint(Iterable<? extends ServiceEndpoint> values)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • clearGossipEndpoint

      public NodeCreateTransactionBody.Builder clearGossipEndpoint()
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • removeGossipEndpoint

      public NodeCreateTransactionBody.Builder removeGossipEndpoint(int index)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       These endpoints MUST specify a port.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `10` entries.<br/>
       The first two entries in this list SHALL be the endpoints published to
       all consensus nodes.<br/>
       All other entries SHALL be reserved for future use.
       <p>
       Each network may have additional requirements for these endpoints.
       A client MUST check network-specific documentation for those
       details.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list MUST supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       MUST NOT supply both values for the same endpoint.
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 3;
    • getServiceEndpointList

      public List<ServiceEndpoint> getServiceEndpointList()
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
      Specified by:
      getServiceEndpointList in interface NodeCreateTransactionBodyOrBuilder
    • getServiceEndpointCount

      public int getServiceEndpointCount()
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
      Specified by:
      getServiceEndpointCount in interface NodeCreateTransactionBodyOrBuilder
    • getServiceEndpoint

      public ServiceEndpoint getServiceEndpoint(int index)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
      Specified by:
      getServiceEndpoint in interface NodeCreateTransactionBodyOrBuilder
    • setServiceEndpoint

      public NodeCreateTransactionBody.Builder setServiceEndpoint(int index, ServiceEndpoint value)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • setServiceEndpoint

      public NodeCreateTransactionBody.Builder setServiceEndpoint(int index, ServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public NodeCreateTransactionBody.Builder addServiceEndpoint(ServiceEndpoint value)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public NodeCreateTransactionBody.Builder addServiceEndpoint(int index, ServiceEndpoint value)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public NodeCreateTransactionBody.Builder addServiceEndpoint(ServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • addServiceEndpoint

      public NodeCreateTransactionBody.Builder addServiceEndpoint(int index, ServiceEndpoint.Builder builderForValue)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • addAllServiceEndpoint

      public NodeCreateTransactionBody.Builder addAllServiceEndpoint(Iterable<? extends ServiceEndpoint> values)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • clearServiceEndpoint

      public NodeCreateTransactionBody.Builder clearServiceEndpoint()
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • removeServiceEndpoint

      public NodeCreateTransactionBody.Builder removeServiceEndpoint(int index)
       *
       A list of service endpoints for gRPC calls.
       <p>
       These endpoints SHALL represent the published gRPC endpoints to which
       clients may submit transactions.<br/>
       These endpoints MUST specify a port.<br/>
       Endpoints in this list MAY supply either IP address or FQDN, but MUST
       NOT supply both values for the same endpoint.<br/>
       This list MUST NOT be empty.<br/>
       This list MUST NOT contain more than `8` entries.
       
      repeated .proto.ServiceEndpoint service_endpoint = 4;
    • getGossipCaCertificate

      public com.google.protobuf.ByteString getGossipCaCertificate()
       *
       A certificate used to sign gossip events.
       <p>
       This value MUST be a certificate of a type permitted for gossip
       signatures.<br/>
       This value MUST be the DER encoding of the certificate presented.<br/>
       This field is REQUIRED and MUST NOT be empty.
       
      bytes gossip_ca_certificate = 5;
      Specified by:
      getGossipCaCertificate in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      The gossipCaCertificate.
    • setGossipCaCertificate

      public NodeCreateTransactionBody.Builder setGossipCaCertificate(com.google.protobuf.ByteString value)
       *
       A certificate used to sign gossip events.
       <p>
       This value MUST be a certificate of a type permitted for gossip
       signatures.<br/>
       This value MUST be the DER encoding of the certificate presented.<br/>
       This field is REQUIRED and MUST NOT be empty.
       
      bytes gossip_ca_certificate = 5;
      Parameters:
      value - The gossipCaCertificate to set.
      Returns:
      This builder for chaining.
    • clearGossipCaCertificate

      public NodeCreateTransactionBody.Builder clearGossipCaCertificate()
       *
       A certificate used to sign gossip events.
       <p>
       This value MUST be a certificate of a type permitted for gossip
       signatures.<br/>
       This value MUST be the DER encoding of the certificate presented.<br/>
       This field is REQUIRED and MUST NOT be empty.
       
      bytes gossip_ca_certificate = 5;
      Returns:
      This builder for chaining.
    • getGrpcCertificateHash

      public com.google.protobuf.ByteString getGrpcCertificateHash()
       *
       A hash of the node gRPC TLS certificate.
       <p>
       This value MAY be used to verify the certificate presented by the node
       during TLS negotiation for gRPC.<br/>
       This value MUST be a SHA-384 hash.<br/>
       The TLS certificate to be hashed MUST first be in PEM format and MUST be
       encoded with UTF-8 NFKD encoding to a stream of bytes provided to
       the hash algorithm.<br/>
       This field is OPTIONAL.
       
      bytes grpc_certificate_hash = 6;
      Specified by:
      getGrpcCertificateHash in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      The grpcCertificateHash.
    • setGrpcCertificateHash

      public NodeCreateTransactionBody.Builder setGrpcCertificateHash(com.google.protobuf.ByteString value)
       *
       A hash of the node gRPC TLS certificate.
       <p>
       This value MAY be used to verify the certificate presented by the node
       during TLS negotiation for gRPC.<br/>
       This value MUST be a SHA-384 hash.<br/>
       The TLS certificate to be hashed MUST first be in PEM format and MUST be
       encoded with UTF-8 NFKD encoding to a stream of bytes provided to
       the hash algorithm.<br/>
       This field is OPTIONAL.
       
      bytes grpc_certificate_hash = 6;
      Parameters:
      value - The grpcCertificateHash to set.
      Returns:
      This builder for chaining.
    • clearGrpcCertificateHash

      public NodeCreateTransactionBody.Builder clearGrpcCertificateHash()
       *
       A hash of the node gRPC TLS certificate.
       <p>
       This value MAY be used to verify the certificate presented by the node
       during TLS negotiation for gRPC.<br/>
       This value MUST be a SHA-384 hash.<br/>
       The TLS certificate to be hashed MUST first be in PEM format and MUST be
       encoded with UTF-8 NFKD encoding to a stream of bytes provided to
       the hash algorithm.<br/>
       This field is OPTIONAL.
       
      bytes grpc_certificate_hash = 6;
      Returns:
      This builder for chaining.
    • 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`.
       
      .proto.Key admin_key = 7;
      Specified by:
      hasAdminKey in interface NodeCreateTransactionBodyOrBuilder
      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`.
       
      .proto.Key admin_key = 7;
      Specified by:
      getAdminKey in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      The adminKey.
    • setAdminKey

      public NodeCreateTransactionBody.Builder setAdminKey(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`.
       
      .proto.Key admin_key = 7;
    • setAdminKey

      public NodeCreateTransactionBody.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`.
       
      .proto.Key admin_key = 7;
    • mergeAdminKey

      public NodeCreateTransactionBody.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`.
       
      .proto.Key admin_key = 7;
    • clearAdminKey

      public NodeCreateTransactionBody.Builder 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`.
       
      .proto.Key admin_key = 7;
    • getDeclineReward

      public boolean getDeclineReward()
       *
       A boolean flag indicating whether the node operator declines to receive
       node rewards.
       <p>
       If this flag is set to `true`, the node operator declines to receive
       node rewards.<br/>
       
      bool decline_reward = 8;
      Specified by:
      getDeclineReward in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      The declineReward.
    • setDeclineReward

      public NodeCreateTransactionBody.Builder setDeclineReward(boolean value)
       *
       A boolean flag indicating whether the node operator declines to receive
       node rewards.
       <p>
       If this flag is set to `true`, the node operator declines to receive
       node rewards.<br/>
       
      bool decline_reward = 8;
      Parameters:
      value - The declineReward to set.
      Returns:
      This builder for chaining.
    • clearDeclineReward

      public NodeCreateTransactionBody.Builder clearDeclineReward()
       *
       A boolean flag indicating whether the node operator declines to receive
       node rewards.
       <p>
       If this flag is set to `true`, the node operator declines to receive
       node rewards.<br/>
       
      bool decline_reward = 8;
      Returns:
      This builder for chaining.
    • hasGrpcProxyEndpoint

      public boolean hasGrpcProxyEndpoint()
       *
       A web proxy for gRPC from non-gRPC clients.
       <p>
       This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS
       protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/>
       This endpoint MUST be signed by a trusted certificate authority.<br/>
       This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/>
       This field MAY be omitted if the node does not support gRPC-Web access.<br/>
       This field MUST be updated if the gRPC-Web endpoint changes.<br/>
       This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
       
      .proto.ServiceEndpoint grpc_proxy_endpoint = 9;
      Specified by:
      hasGrpcProxyEndpoint in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      Whether the grpcProxyEndpoint field is set.
    • getGrpcProxyEndpoint

      public ServiceEndpoint getGrpcProxyEndpoint()
       *
       A web proxy for gRPC from non-gRPC clients.
       <p>
       This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS
       protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/>
       This endpoint MUST be signed by a trusted certificate authority.<br/>
       This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/>
       This field MAY be omitted if the node does not support gRPC-Web access.<br/>
       This field MUST be updated if the gRPC-Web endpoint changes.<br/>
       This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
       
      .proto.ServiceEndpoint grpc_proxy_endpoint = 9;
      Specified by:
      getGrpcProxyEndpoint in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      The grpcProxyEndpoint.
    • setGrpcProxyEndpoint

      public NodeCreateTransactionBody.Builder setGrpcProxyEndpoint(ServiceEndpoint value)
       *
       A web proxy for gRPC from non-gRPC clients.
       <p>
       This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS
       protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/>
       This endpoint MUST be signed by a trusted certificate authority.<br/>
       This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/>
       This field MAY be omitted if the node does not support gRPC-Web access.<br/>
       This field MUST be updated if the gRPC-Web endpoint changes.<br/>
       This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
       
      .proto.ServiceEndpoint grpc_proxy_endpoint = 9;
    • setGrpcProxyEndpoint

      public NodeCreateTransactionBody.Builder setGrpcProxyEndpoint(ServiceEndpoint.Builder builderForValue)
       *
       A web proxy for gRPC from non-gRPC clients.
       <p>
       This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS
       protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/>
       This endpoint MUST be signed by a trusted certificate authority.<br/>
       This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/>
       This field MAY be omitted if the node does not support gRPC-Web access.<br/>
       This field MUST be updated if the gRPC-Web endpoint changes.<br/>
       This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
       
      .proto.ServiceEndpoint grpc_proxy_endpoint = 9;
    • mergeGrpcProxyEndpoint

      public NodeCreateTransactionBody.Builder mergeGrpcProxyEndpoint(ServiceEndpoint value)
       *
       A web proxy for gRPC from non-gRPC clients.
       <p>
       This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS
       protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/>
       This endpoint MUST be signed by a trusted certificate authority.<br/>
       This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/>
       This field MAY be omitted if the node does not support gRPC-Web access.<br/>
       This field MUST be updated if the gRPC-Web endpoint changes.<br/>
       This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
       
      .proto.ServiceEndpoint grpc_proxy_endpoint = 9;
    • clearGrpcProxyEndpoint

      public NodeCreateTransactionBody.Builder clearGrpcProxyEndpoint()
       *
       A web proxy for gRPC from non-gRPC clients.
       <p>
       This endpoint SHALL be a Fully Qualified Domain Name (FQDN) using the HTTPS
       protocol, and SHALL support gRPC-Web for use by browser-based clients.<br/>
       This endpoint MUST be signed by a trusted certificate authority.<br/>
       This endpoint MUST use a valid port and SHALL be reachable over TLS.<br/>
       This field MAY be omitted if the node does not support gRPC-Web access.<br/>
       This field MUST be updated if the gRPC-Web endpoint changes.<br/>
       This field SHALL enable frontend clients to avoid hard-coded proxy endpoints.
       
      .proto.ServiceEndpoint grpc_proxy_endpoint = 9;
    • getAssociatedRegisteredNodeList

      public List<Long> getAssociatedRegisteredNodeList()
       *
       A list of registered nodes operated by the same entity as this node.<br/>
       This value may contain a list of "registered nodes" (as described in
       HIP-1137) that are operated by the same entity that operates this
       consensus node.
       <p>
       This field is OPTIONAL and MAY be empty.<br/>
       This field MUST NOT contain more than twenty(20) entries.<br/>
       Every entry in this list MUST be a valid `registered_node_id` for a
       current registered node.
       
      repeated uint64 associated_registered_node = 10;
      Specified by:
      getAssociatedRegisteredNodeList in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      A list containing the associatedRegisteredNode.
    • getAssociatedRegisteredNodeCount

      public int getAssociatedRegisteredNodeCount()
       *
       A list of registered nodes operated by the same entity as this node.<br/>
       This value may contain a list of "registered nodes" (as described in
       HIP-1137) that are operated by the same entity that operates this
       consensus node.
       <p>
       This field is OPTIONAL and MAY be empty.<br/>
       This field MUST NOT contain more than twenty(20) entries.<br/>
       Every entry in this list MUST be a valid `registered_node_id` for a
       current registered node.
       
      repeated uint64 associated_registered_node = 10;
      Specified by:
      getAssociatedRegisteredNodeCount in interface NodeCreateTransactionBodyOrBuilder
      Returns:
      The count of associatedRegisteredNode.
    • getAssociatedRegisteredNode

      public long getAssociatedRegisteredNode(int index)
       *
       A list of registered nodes operated by the same entity as this node.<br/>
       This value may contain a list of "registered nodes" (as described in
       HIP-1137) that are operated by the same entity that operates this
       consensus node.
       <p>
       This field is OPTIONAL and MAY be empty.<br/>
       This field MUST NOT contain more than twenty(20) entries.<br/>
       Every entry in this list MUST be a valid `registered_node_id` for a
       current registered node.
       
      repeated uint64 associated_registered_node = 10;
      Specified by:
      getAssociatedRegisteredNode in interface NodeCreateTransactionBodyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The associatedRegisteredNode at the given index.
    • setAssociatedRegisteredNode

      public NodeCreateTransactionBody.Builder setAssociatedRegisteredNode(int index, long value)
       *
       A list of registered nodes operated by the same entity as this node.<br/>
       This value may contain a list of "registered nodes" (as described in
       HIP-1137) that are operated by the same entity that operates this
       consensus node.
       <p>
       This field is OPTIONAL and MAY be empty.<br/>
       This field MUST NOT contain more than twenty(20) entries.<br/>
       Every entry in this list MUST be a valid `registered_node_id` for a
       current registered node.
       
      repeated uint64 associated_registered_node = 10;
      Parameters:
      value - The associatedRegisteredNode to set.
      Returns:
      This builder for chaining.
    • addAssociatedRegisteredNode

      public NodeCreateTransactionBody.Builder addAssociatedRegisteredNode(long value)
       *
       A list of registered nodes operated by the same entity as this node.<br/>
       This value may contain a list of "registered nodes" (as described in
       HIP-1137) that are operated by the same entity that operates this
       consensus node.
       <p>
       This field is OPTIONAL and MAY be empty.<br/>
       This field MUST NOT contain more than twenty(20) entries.<br/>
       Every entry in this list MUST be a valid `registered_node_id` for a
       current registered node.
       
      repeated uint64 associated_registered_node = 10;
      Parameters:
      value - The associatedRegisteredNode to add.
      Returns:
      This builder for chaining.
    • addAllAssociatedRegisteredNode

      public NodeCreateTransactionBody.Builder addAllAssociatedRegisteredNode(Iterable<? extends Long> values)
       *
       A list of registered nodes operated by the same entity as this node.<br/>
       This value may contain a list of "registered nodes" (as described in
       HIP-1137) that are operated by the same entity that operates this
       consensus node.
       <p>
       This field is OPTIONAL and MAY be empty.<br/>
       This field MUST NOT contain more than twenty(20) entries.<br/>
       Every entry in this list MUST be a valid `registered_node_id` for a
       current registered node.
       
      repeated uint64 associated_registered_node = 10;
      Parameters:
      values - The associatedRegisteredNode to add.
      Returns:
      This builder for chaining.
    • clearAssociatedRegisteredNode

      public NodeCreateTransactionBody.Builder clearAssociatedRegisteredNode()
       *
       A list of registered nodes operated by the same entity as this node.<br/>
       This value may contain a list of "registered nodes" (as described in
       HIP-1137) that are operated by the same entity that operates this
       consensus node.
       <p>
       This field is OPTIONAL and MAY be empty.<br/>
       This field MUST NOT contain more than twenty(20) entries.<br/>
       Every entry in this list MUST be a valid `registered_node_id` for a
       current registered node.
       
      repeated uint64 associated_registered_node = 10;
      Returns:
      This builder for chaining.