Class ServiceEndpoint

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

@Generated public final class ServiceEndpoint extends com.google.protobuf.GeneratedMessageLite<ServiceEndpoint,ServiceEndpoint.Builder> implements ServiceEndpointOrBuilder
 *
 A network node endpoint.<br/>
 Each network node in the global address book publishes one or more endpoints
 which enable the nodes to communicate both with other nodes, for gossip, and
 with clients to receive transaction requests.

 This message supports IPv4 with address and TCP port,
 and MAY include a FQDN instead of an IP address.<br/>
 IPv6 is not currently supported.

 When the `domain_name` field is set, the `ipAddressV4` field
 MUST NOT be set.<br/>
 When the `ipAddressV4` field is set, the `domain_name` field
 MUST NOT be set.
 
Protobuf type proto.ServiceEndpoint
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A network node endpoint.<br/> Each network node in the global address book publishes one or more endpoints which enable the nodes to communicate both with other nodes, for gossip, and with clients to receive transaction requests.

    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
     

    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)
     
     
    * A node domain name.
    com.google.protobuf.ByteString
    * A node domain name.
    com.google.protobuf.ByteString
    * A 32-bit IPv4 address.<br/> This is the address of the endpoint, encoded in pure "big-endian" (i.e.
    int
    * A TCP port to use.
     
     
     
    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<ServiceEndpoint>
     

    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

  • Method Details

    • getIpAddressV4

      public com.google.protobuf.ByteString getIpAddressV4()
       *
       A 32-bit IPv4 address.<br/>
       This is the address of the endpoint, encoded in pure "big-endian"
       (i.e. left to right) order (e.g. `127.0.0.1` has hex bytes in the
       order `7F`, `00`, `00`, `01`).
       
      bytes ipAddressV4 = 1;
      Specified by:
      getIpAddressV4 in interface ServiceEndpointOrBuilder
      Returns:
      The ipAddressV4.
    • getPort

      public int getPort()
       *
       A TCP port to use.
       <p>
       This value MUST be between 0 and 65535, inclusive.
       
      int32 port = 2;
      Specified by:
      getPort in interface ServiceEndpointOrBuilder
      Returns:
      The port.
    • getDomainName

      public String getDomainName()
       *
       A node domain name.
       <p>
       This MUST be the fully qualified domain name of the node.<br/>
       This value MUST NOT exceed 253 characters.<br/>
       When the `domain_name` field is set, the `ipAddressV4`
       field MUST NOT be set.<br/>
       When the `ipAddressV4` field is set, the `domain_name`
       field MUST NOT be set.
       
      string domain_name = 3;
      Specified by:
      getDomainName in interface ServiceEndpointOrBuilder
      Returns:
      The domainName.
    • getDomainNameBytes

      public com.google.protobuf.ByteString getDomainNameBytes()
       *
       A node domain name.
       <p>
       This MUST be the fully qualified domain name of the node.<br/>
       This value MUST NOT exceed 253 characters.<br/>
       When the `domain_name` field is set, the `ipAddressV4`
       field MUST NOT be set.<br/>
       When the `ipAddressV4` field is set, the `domain_name`
       field MUST NOT be set.
       
      string domain_name = 3;
      Specified by:
      getDomainNameBytes in interface ServiceEndpointOrBuilder
      Returns:
      The bytes for domainName.
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ServiceEndpoint.Builder newBuilder()
    • newBuilder

      public static ServiceEndpoint.Builder newBuilder(ServiceEndpoint 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<ServiceEndpoint,ServiceEndpoint.Builder>
    • getDefaultInstance

      public static ServiceEndpoint getDefaultInstance()
    • parser

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