public static final class ServiceEntry.Endpoint extends com.google.protobuf.GeneratedMessageV3 implements ServiceEntry.EndpointOrBuilder
Endpoint defines a network address (IP or hostname) associated with the mesh service.Protobuf type
istio.networking.v1alpha3.ServiceEntry.Endpoint| 限定符和类型 | 类和说明 |
|---|---|
static class |
ServiceEntry.Endpoint.Builder
Endpoint defines a network address (IP or hostname) associated with
the mesh service.
|
private static class |
ServiceEntry.Endpoint.LabelsDefaultEntryHolder |
private static class |
ServiceEntry.Endpoint.PortsDefaultEntryHolder |
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| 限定符和类型 | 字段和说明 |
|---|---|
private java.lang.Object |
address_ |
static int |
ADDRESS_FIELD_NUMBER |
private static ServiceEntry.Endpoint |
DEFAULT_INSTANCE |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
labels_ |
static int |
LABELS_FIELD_NUMBER |
private java.lang.Object |
locality_ |
static int |
LOCALITY_FIELD_NUMBER |
private byte |
memoizedIsInitialized |
private java.lang.Object |
network_ |
static int |
NETWORK_FIELD_NUMBER |
private static com.google.protobuf.Parser<ServiceEntry.Endpoint> |
PARSER |
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> |
ports_ |
static int |
PORTS_FIELD_NUMBER |
private static long |
serialVersionUID |
private int |
weight_ |
static int |
WEIGHT_FIELD_NUMBER |
| 限定符 | 构造器和说明 |
|---|---|
private |
Endpoint() |
private |
Endpoint(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
private |
Endpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsLabels(java.lang.String key)
One or more labels associated with the endpoint.
|
boolean |
containsPorts(java.lang.String key)
Set of ports associated with the endpoint.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
REQUIRED: Address associated with the network endpoint without the
port.
|
com.google.protobuf.ByteString |
getAddressBytes()
REQUIRED: Address associated with the network endpoint without the
port.
|
static ServiceEntry.Endpoint |
getDefaultInstance() |
ServiceEntry.Endpoint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
已过时。
|
int |
getLabelsCount()
One or more labels associated with the endpoint.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
One or more labels associated with the endpoint.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
One or more labels associated with the endpoint.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
One or more labels associated with the endpoint.
|
java.lang.String |
getLocality()
The locality associated with the endpoint.
|
com.google.protobuf.ByteString |
getLocalityBytes()
The locality associated with the endpoint.
|
java.lang.String |
getNetwork()
Network enables Istio to group endpoints resident in the same L3
domain/network.
|
com.google.protobuf.ByteString |
getNetworkBytes()
Network enables Istio to group endpoints resident in the same L3
domain/network.
|
com.google.protobuf.Parser<ServiceEntry.Endpoint> |
getParserForType() |
java.util.Map<java.lang.String,java.lang.Integer> |
getPorts()
已过时。
|
int |
getPortsCount()
Set of ports associated with the endpoint.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getPortsMap()
Set of ports associated with the endpoint.
|
int |
getPortsOrDefault(java.lang.String key,
int defaultValue)
Set of ports associated with the endpoint.
|
int |
getPortsOrThrow(java.lang.String key)
Set of ports associated with the endpoint.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getWeight()
The load balancing weight associated with the endpoint.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
internalGetLabels() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> |
internalGetPorts() |
boolean |
isInitialized() |
static ServiceEntry.Endpoint.Builder |
newBuilder() |
static ServiceEntry.Endpoint.Builder |
newBuilder(ServiceEntry.Endpoint prototype) |
ServiceEntry.Endpoint.Builder |
newBuilderForType() |
protected ServiceEntry.Endpoint.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ServiceEntry.Endpoint |
parseDelimitedFrom(java.io.InputStream input) |
static ServiceEntry.Endpoint |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceEntry.Endpoint |
parseFrom(byte[] data) |
static ServiceEntry.Endpoint |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceEntry.Endpoint |
parseFrom(java.nio.ByteBuffer data) |
static ServiceEntry.Endpoint |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceEntry.Endpoint |
parseFrom(com.google.protobuf.ByteString data) |
static ServiceEntry.Endpoint |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceEntry.Endpoint |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ServiceEntry.Endpoint |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServiceEntry.Endpoint |
parseFrom(java.io.InputStream input) |
static ServiceEntry.Endpoint |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ServiceEntry.Endpoint> |
parser() |
ServiceEntry.Endpoint.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, makeExtensionsImmutable, 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, getSerializedSizeInternal, isInitializedInternal, makeImmutableInternal, mergeFromInternal, toByteArray, toByteString, writeDelimitedTo, writeTo, writeToInternalprivate static final long serialVersionUID
public static final int ADDRESS_FIELD_NUMBER
private volatile java.lang.Object address_
public static final int PORTS_FIELD_NUMBER
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> ports_
public static final int LABELS_FIELD_NUMBER
private com.google.protobuf.MapField<java.lang.String,java.lang.String> labels_
public static final int NETWORK_FIELD_NUMBER
private volatile java.lang.Object network_
public static final int LOCALITY_FIELD_NUMBER
private volatile java.lang.Object locality_
public static final int WEIGHT_FIELD_NUMBER
private int weight_
private byte memoizedIsInitialized
private static final ServiceEntry.Endpoint DEFAULT_INSTANCE
private static final com.google.protobuf.Parser<ServiceEntry.Endpoint> PARSER
private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
private Endpoint()
private Endpoint(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionprotected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public java.lang.String getAddress()
REQUIRED: Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
string address = 1;getAddress 在接口中 ServiceEntry.EndpointOrBuilderpublic com.google.protobuf.ByteString getAddressBytes()
REQUIRED: Address associated with the network endpoint without the port. Domain names can be used if and only if the resolution is set to DNS, and must be fully-qualified without wildcards. Use the form unix:///absolute/path/to/socket for Unix domain socket endpoints.
string address = 1;getAddressBytes 在接口中 ServiceEntry.EndpointOrBuilderprivate com.google.protobuf.MapField<java.lang.String,java.lang.Integer> internalGetPorts()
public int getPortsCount()
ServiceEntry.EndpointOrBuilderSet of ports associated with the endpoint. The ports must be associated with a port name that was declared as part of the service. Do not use for `unix://` addresses.
map<string, uint32> ports = 2;getPortsCount 在接口中 ServiceEntry.EndpointOrBuilderpublic boolean containsPorts(java.lang.String key)
Set of ports associated with the endpoint. The ports must be associated with a port name that was declared as part of the service. Do not use for `unix://` addresses.
map<string, uint32> ports = 2;containsPorts 在接口中 ServiceEntry.EndpointOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.Integer> getPorts()
getPortsMap() instead.getPorts 在接口中 ServiceEntry.EndpointOrBuilderpublic java.util.Map<java.lang.String,java.lang.Integer> getPortsMap()
Set of ports associated with the endpoint. The ports must be associated with a port name that was declared as part of the service. Do not use for `unix://` addresses.
map<string, uint32> ports = 2;getPortsMap 在接口中 ServiceEntry.EndpointOrBuilderpublic int getPortsOrDefault(java.lang.String key,
int defaultValue)
Set of ports associated with the endpoint. The ports must be associated with a port name that was declared as part of the service. Do not use for `unix://` addresses.
map<string, uint32> ports = 2;public int getPortsOrThrow(java.lang.String key)
Set of ports associated with the endpoint. The ports must be associated with a port name that was declared as part of the service. Do not use for `unix://` addresses.
map<string, uint32> ports = 2;private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetLabels()
public int getLabelsCount()
ServiceEntry.EndpointOrBuilderOne or more labels associated with the endpoint.
map<string, string> labels = 3;getLabelsCount 在接口中 ServiceEntry.EndpointOrBuilderpublic boolean containsLabels(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;containsLabels 在接口中 ServiceEntry.EndpointOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels 在接口中 ServiceEntry.EndpointOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
One or more labels associated with the endpoint.
map<string, string> labels = 3;getLabelsMap 在接口中 ServiceEntry.EndpointOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
One or more labels associated with the endpoint.
map<string, string> labels = 3;public java.lang.String getLabelsOrThrow(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;public java.lang.String getNetwork()
Network enables Istio to group endpoints resident in the same L3 domain/network. All endpoints in the same network are assumed to be directly reachable from one another. When endpoints in different networks cannot reach each other directly, an Istio Gateway can be used to establish connectivity (usually using the AUTO_PASSTHROUGH mode in a Gateway Server). This is an advanced configuration used typically for spanning an Istio mesh over multiple clusters.
string network = 4;getNetwork 在接口中 ServiceEntry.EndpointOrBuilderpublic com.google.protobuf.ByteString getNetworkBytes()
Network enables Istio to group endpoints resident in the same L3 domain/network. All endpoints in the same network are assumed to be directly reachable from one another. When endpoints in different networks cannot reach each other directly, an Istio Gateway can be used to establish connectivity (usually using the AUTO_PASSTHROUGH mode in a Gateway Server). This is an advanced configuration used typically for spanning an Istio mesh over multiple clusters.
string network = 4;getNetworkBytes 在接口中 ServiceEntry.EndpointOrBuilderpublic java.lang.String getLocality()
The locality associated with the endpoint. A locality corresponds to a failure domain (e.g., country/region/zone). Arbitrary failure domain hierarchies can be represented by separating each encapsulating failure domain by /. For example, the locality of an an endpoint in US, in US-East-1 region, within availability zone az-1, in data center rack r11 can be represented as us/us-east-1/az-1/r11. Istio will configure the sidecar to route to endpoints within the same locality as the sidecar. If none of the endpoints in the locality are available, endpoints parent locality (but within the same network ID) will be chosen. For example, if there are two endpoints in same network (networkID "n1"), say e1 with locality us/us-east-1/az-1/r11 and e2 with locality us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality will prefer e1 from the same locality over e2 from a different locality. Endpoint e2 could be the IP associated with a gateway (that bridges networks n1 and n2), or the IP associated with a standard service endpoint.
string locality = 5;getLocality 在接口中 ServiceEntry.EndpointOrBuilderpublic com.google.protobuf.ByteString getLocalityBytes()
The locality associated with the endpoint. A locality corresponds to a failure domain (e.g., country/region/zone). Arbitrary failure domain hierarchies can be represented by separating each encapsulating failure domain by /. For example, the locality of an an endpoint in US, in US-East-1 region, within availability zone az-1, in data center rack r11 can be represented as us/us-east-1/az-1/r11. Istio will configure the sidecar to route to endpoints within the same locality as the sidecar. If none of the endpoints in the locality are available, endpoints parent locality (but within the same network ID) will be chosen. For example, if there are two endpoints in same network (networkID "n1"), say e1 with locality us/us-east-1/az-1/r11 and e2 with locality us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality will prefer e1 from the same locality over e2 from a different locality. Endpoint e2 could be the IP associated with a gateway (that bridges networks n1 and n2), or the IP associated with a standard service endpoint.
string locality = 5;getLocalityBytes 在接口中 ServiceEntry.EndpointOrBuilderpublic int getWeight()
The load balancing weight associated with the endpoint. Endpoints with higher weights will receive proportionally higher traffic.
uint32 weight = 6;getWeight 在接口中 ServiceEntry.EndpointOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static ServiceEntry.Endpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceEntry.Endpoint parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceEntry.Endpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceEntry.Endpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceEntry.Endpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceEntry.Endpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServiceEntry.Endpoint parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ServiceEntry.Endpoint parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ServiceEntry.Endpoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ServiceEntry.Endpoint parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ServiceEntry.Endpoint parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ServiceEntry.Endpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ServiceEntry.Endpoint.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static ServiceEntry.Endpoint.Builder newBuilder()
public static ServiceEntry.Endpoint.Builder newBuilder(ServiceEntry.Endpoint prototype)
public ServiceEntry.Endpoint.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected ServiceEntry.Endpoint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static ServiceEntry.Endpoint getDefaultInstance()
public static com.google.protobuf.Parser<ServiceEntry.Endpoint> parser()
public com.google.protobuf.Parser<ServiceEntry.Endpoint> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public ServiceEntry.Endpoint getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2020 Alibaba Group. All rights reserved.