public final class SocketAddress extends com.google.protobuf.GeneratedMessageV3 implements SocketAddressOrBuilder
[#next-free-field: 7]Protobuf type
envoy.api.v2.core.SocketAddress| Modifier and Type | Class and Description |
|---|---|
static class |
SocketAddress.Builder
[#next-free-field: 7]
Protobuf type
envoy.api.v2.core.SocketAddress |
static class |
SocketAddress.PortSpecifierCase |
static class |
SocketAddress.Protocol
Protobuf enum
envoy.api.v2.core.SocketAddress.Protocol |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESS_FIELD_NUMBER |
static int |
IPV4_COMPAT_FIELD_NUMBER |
static int |
NAMED_PORT_FIELD_NUMBER |
static int |
PORT_VALUE_FIELD_NUMBER |
static int |
PROTOCOL_FIELD_NUMBER |
static int |
RESOLVER_NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAddress()
The address for this socket.
|
com.google.protobuf.ByteString |
getAddressBytes()
The address for this socket.
|
static SocketAddress |
getDefaultInstance() |
SocketAddress |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIpv4Compat()
When binding to an IPv6 address above, this enables `IPv4 compatibility
<https://tools.ietf.org/html/rfc3493#page-11>`_.
|
String |
getNamedPort()
This is only valid if :ref:`resolver_name
<envoy_api_field_core.SocketAddress.resolver_name>` is specified below and the
named resolver is capable of named port resolution.
|
com.google.protobuf.ByteString |
getNamedPortBytes()
This is only valid if :ref:`resolver_name
<envoy_api_field_core.SocketAddress.resolver_name>` is specified below and the
named resolver is capable of named port resolution.
|
com.google.protobuf.Parser<SocketAddress> |
getParserForType() |
SocketAddress.PortSpecifierCase |
getPortSpecifierCase() |
int |
getPortValue()
uint32 port_value = 3 [(.validate.rules) = { ... } |
SocketAddress.Protocol |
getProtocol()
.envoy.api.v2.core.SocketAddress.Protocol protocol = 1 [(.validate.rules) = { ... } |
int |
getProtocolValue()
.envoy.api.v2.core.SocketAddress.Protocol protocol = 1 [(.validate.rules) = { ... } |
String |
getResolverName()
The name of the custom resolver.
|
com.google.protobuf.ByteString |
getResolverNameBytes()
The name of the custom resolver.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SocketAddress.Builder |
newBuilder() |
static SocketAddress.Builder |
newBuilder(SocketAddress prototype) |
SocketAddress.Builder |
newBuilderForType() |
protected SocketAddress.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SocketAddress |
parseDelimitedFrom(InputStream input) |
static SocketAddress |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SocketAddress |
parseFrom(byte[] data) |
static SocketAddress |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SocketAddress |
parseFrom(ByteBuffer data) |
static SocketAddress |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SocketAddress |
parseFrom(com.google.protobuf.ByteString data) |
static SocketAddress |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SocketAddress |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SocketAddress |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SocketAddress |
parseFrom(InputStream input) |
static SocketAddress |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SocketAddress> |
parser() |
SocketAddress.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PROTOCOL_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
public static final int PORT_VALUE_FIELD_NUMBER
public static final int NAMED_PORT_FIELD_NUMBER
public static final int RESOLVER_NAME_FIELD_NUMBER
public static final int IPV4_COMPAT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public SocketAddress.PortSpecifierCase getPortSpecifierCase()
getPortSpecifierCase in interface SocketAddressOrBuilderpublic int getProtocolValue()
.envoy.api.v2.core.SocketAddress.Protocol protocol = 1 [(.validate.rules) = { ... }getProtocolValue in interface SocketAddressOrBuilderpublic SocketAddress.Protocol getProtocol()
.envoy.api.v2.core.SocketAddress.Protocol protocol = 1 [(.validate.rules) = { ... }getProtocol in interface SocketAddressOrBuilderpublic String getAddress()
The address for this socket. :ref:`Listeners <config_listeners>` will bind to the address. An empty address is not allowed. Specify ``0.0.0.0`` or ``::`` to bind to any address. [#comment:TODO(zuercher) reinstate when implemented: It is possible to distinguish a Listener address via the prefix/suffix matching in :ref:`FilterChainMatch <envoy_api_msg_listener.FilterChainMatch>`.] When used within an upstream :ref:`BindConfig <envoy_api_msg_core.BindConfig>`, the address controls the source address of outbound connections. For :ref:`clusters <envoy_api_msg_Cluster>`, the cluster type determines whether the address must be an IP (*STATIC* or *EDS* clusters) or a hostname resolved by DNS (*STRICT_DNS* or *LOGICAL_DNS* clusters). Address resolution can be customized via :ref:`resolver_name <envoy_api_field_core.SocketAddress.resolver_name>`.
string address = 2 [(.validate.rules) = { ... }getAddress in interface SocketAddressOrBuilderpublic com.google.protobuf.ByteString getAddressBytes()
The address for this socket. :ref:`Listeners <config_listeners>` will bind to the address. An empty address is not allowed. Specify ``0.0.0.0`` or ``::`` to bind to any address. [#comment:TODO(zuercher) reinstate when implemented: It is possible to distinguish a Listener address via the prefix/suffix matching in :ref:`FilterChainMatch <envoy_api_msg_listener.FilterChainMatch>`.] When used within an upstream :ref:`BindConfig <envoy_api_msg_core.BindConfig>`, the address controls the source address of outbound connections. For :ref:`clusters <envoy_api_msg_Cluster>`, the cluster type determines whether the address must be an IP (*STATIC* or *EDS* clusters) or a hostname resolved by DNS (*STRICT_DNS* or *LOGICAL_DNS* clusters). Address resolution can be customized via :ref:`resolver_name <envoy_api_field_core.SocketAddress.resolver_name>`.
string address = 2 [(.validate.rules) = { ... }getAddressBytes in interface SocketAddressOrBuilderpublic int getPortValue()
uint32 port_value = 3 [(.validate.rules) = { ... }getPortValue in interface SocketAddressOrBuilderpublic String getNamedPort()
This is only valid if :ref:`resolver_name <envoy_api_field_core.SocketAddress.resolver_name>` is specified below and the named resolver is capable of named port resolution.
string named_port = 4;getNamedPort in interface SocketAddressOrBuilderpublic com.google.protobuf.ByteString getNamedPortBytes()
This is only valid if :ref:`resolver_name <envoy_api_field_core.SocketAddress.resolver_name>` is specified below and the named resolver is capable of named port resolution.
string named_port = 4;getNamedPortBytes in interface SocketAddressOrBuilderpublic String getResolverName()
The name of the custom resolver. This must have been registered with Envoy. If this is empty, a context dependent default applies. If the address is a concrete IP address, no resolution will occur. If address is a hostname this should be set for resolution other than DNS. Specifying a custom resolver with *STRICT_DNS* or *LOGICAL_DNS* will generate an error at runtime.
string resolver_name = 5;getResolverName in interface SocketAddressOrBuilderpublic com.google.protobuf.ByteString getResolverNameBytes()
The name of the custom resolver. This must have been registered with Envoy. If this is empty, a context dependent default applies. If the address is a concrete IP address, no resolution will occur. If address is a hostname this should be set for resolution other than DNS. Specifying a custom resolver with *STRICT_DNS* or *LOGICAL_DNS* will generate an error at runtime.
string resolver_name = 5;getResolverNameBytes in interface SocketAddressOrBuilderpublic boolean getIpv4Compat()
When binding to an IPv6 address above, this enables `IPv4 compatibility <https://tools.ietf.org/html/rfc3493#page-11>`_. Binding to ``::`` will allow both IPv4 and IPv6 connections, with peer IPv4 addresses mapped into IPv6 space as ``::FFFF:<IPv4-address>``.
bool ipv4_compat = 6;getIpv4Compat in interface SocketAddressOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SocketAddress parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SocketAddress parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SocketAddress parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SocketAddress parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SocketAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SocketAddress parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SocketAddress parseFrom(InputStream input) throws IOException
IOExceptionpublic static SocketAddress parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SocketAddress parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SocketAddress parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SocketAddress parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SocketAddress parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SocketAddress.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SocketAddress.Builder newBuilder()
public static SocketAddress.Builder newBuilder(SocketAddress prototype)
public SocketAddress.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SocketAddress.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SocketAddress getDefaultInstance()
public static com.google.protobuf.Parser<SocketAddress> parser()
public com.google.protobuf.Parser<SocketAddress> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SocketAddress getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.