Class RegisteredNode

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

@Generated public final class RegisteredNode extends com.google.protobuf.GeneratedMessageLite<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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A single registered node in the network state.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    * An administrative key controlled by the node operator.
     
    * A short description of the node.
    com.google.protobuf.ByteString
    * A short description of the node.
    long
    * A registered node identifier.
    getServiceEndpoint(int index)
    * A list of service endpoints for client calls.
    int
    * A list of service endpoints for client calls.
    * A list of service endpoints for client calls.
    * A list of service endpoints for client calls.
    * A list of service endpoints for client calls.
    boolean
    * An administrative key controlled by the node operator.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<RegisteredNode>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • REGISTERED_NODE_ID_FIELD_NUMBER

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

    • 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.
    • 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.
    • 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.
    • 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
    • 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/>
       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;
    • 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
    • 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/>
       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;
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static RegisteredNode.Builder newBuilder()
    • newBuilder

      public static RegisteredNode.Builder newBuilder(RegisteredNode prototype)
    • dynamicMethod

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

      public static RegisteredNode getDefaultInstance()
    • parser

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