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 ClassesModifier and TypeClassDescriptionstatic 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static ServiceEndpoint* 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.intgetPort()* A TCP port to use.static ServiceEndpoint.Builderstatic ServiceEndpoint.BuildernewBuilder(ServiceEndpoint prototype) static ServiceEndpointparseDelimitedFrom(InputStream input) static ServiceEndpointparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(byte[] data) static ServiceEndpointparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(com.google.protobuf.ByteString data) static ServiceEndpointparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(com.google.protobuf.CodedInputStream input) static ServiceEndpointparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(InputStream input) static ServiceEndpointparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(ByteBuffer data) static ServiceEndpointparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ServiceEndpoint> parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
IPADDRESSV4_FIELD_NUMBER
public static final int IPADDRESSV4_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
DOMAIN_NAME_FIELD_NUMBER
public static final int DOMAIN_NAME_FIELD_NUMBER- See Also:
-
-
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:
getIpAddressV4in interfaceServiceEndpointOrBuilder- 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:
getPortin interfaceServiceEndpointOrBuilder- Returns:
- The port.
-
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:
getDomainNamein interfaceServiceEndpointOrBuilder- 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:
getDomainNameBytesin interfaceServiceEndpointOrBuilder- 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
- Throws:
IOException
-
parseFrom
public static ServiceEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ServiceEndpoint,ServiceEndpoint.Builder>
-
getDefaultInstance
-
parser
-