Class RegisteredNodeCreateTransactionBody

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

@Generated public final class RegisteredNodeCreateTransactionBody extends com.google.protobuf.GeneratedMessageLite<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
  • Field Details

    • ADMIN_KEY_FIELD_NUMBER

      public static final int ADMIN_KEY_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • SERVICE_ENDPOINT_FIELD_NUMBER

      public static final int SERVICE_ENDPOINT_FIELD_NUMBER
      See Also:
  • 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.
    • 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.
    • 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
    • getServiceEndpointOrBuilderList

      public List<? extends RegisteredServiceEndpointOrBuilder> getServiceEndpointOrBuilderList()
       *
       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;
    • 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
    • getServiceEndpointOrBuilder

      public RegisteredServiceEndpointOrBuilder getServiceEndpointOrBuilder(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;
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RegisteredNodeCreateTransactionBody parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RegisteredNodeCreateTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RegisteredNodeCreateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static RegisteredNodeCreateTransactionBody.Builder newBuilder()
    • newBuilder

    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<RegisteredNodeCreateTransactionBody,RegisteredNodeCreateTransactionBody.Builder>
    • getDefaultInstance

      public static RegisteredNodeCreateTransactionBody getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RegisteredNodeCreateTransactionBody> parser()