public static final class ServiceEntry.Endpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder> implements ServiceEntry.EndpointOrBuilder
Endpoint defines a network address (IP or hostname) associated with the mesh service.Protobuf type
istio.networking.v1alpha3.ServiceEntry.Endpoint| 限定符和类型 | 字段和说明 |
|---|---|
private java.lang.Object |
address_ |
private int |
bitField0_ |
private com.google.protobuf.MapField<java.lang.String,java.lang.String> |
labels_ |
private java.lang.Object |
locality_ |
private java.lang.Object |
network_ |
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> |
ports_ |
private int |
weight_ |
| 限定符 | 构造器和说明 |
|---|---|
private |
Builder() |
private |
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
| 限定符和类型 | 方法和说明 |
|---|---|
ServiceEntry.Endpoint.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceEntry.Endpoint |
build() |
ServiceEntry.Endpoint |
buildPartial() |
ServiceEntry.Endpoint.Builder |
clear() |
ServiceEntry.Endpoint.Builder |
clearAddress()
REQUIRED: Address associated with the network endpoint without the
port.
|
ServiceEntry.Endpoint.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ServiceEntry.Endpoint.Builder |
clearLabels() |
ServiceEntry.Endpoint.Builder |
clearLocality()
The locality associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
clearNetwork()
Network enables Istio to group endpoints resident in the same L3
domain/network.
|
ServiceEntry.Endpoint.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ServiceEntry.Endpoint.Builder |
clearPorts() |
ServiceEntry.Endpoint.Builder |
clearWeight()
The load balancing weight associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
clone() |
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.
|
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.
|
ServiceEntry.Endpoint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.util.Map<java.lang.String,java.lang.String> |
getMutableLabels()
已过时。
|
java.util.Map<java.lang.String,java.lang.Integer> |
getMutablePorts()
已过时。
|
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.
|
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 |
getWeight()
The load balancing weight associated with the endpoint.
|
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.String> |
internalGetMutableLabels() |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> |
internalGetMutablePorts() |
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> |
internalGetPorts() |
boolean |
isInitialized() |
private void |
maybeForceBuilderInitialization() |
ServiceEntry.Endpoint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ServiceEntry.Endpoint.Builder |
mergeFrom(com.google.protobuf.Message other) |
ServiceEntry.Endpoint.Builder |
mergeFrom(ServiceEntry.Endpoint other) |
ServiceEntry.Endpoint.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ServiceEntry.Endpoint.Builder |
putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
One or more labels associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
putAllPorts(java.util.Map<java.lang.String,java.lang.Integer> values)
Set of ports associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
putLabels(java.lang.String key,
java.lang.String value)
One or more labels associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
putPorts(java.lang.String key,
int value)
Set of ports associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
removeLabels(java.lang.String key)
One or more labels associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
removePorts(java.lang.String key)
Set of ports associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
setAddress(java.lang.String value)
REQUIRED: Address associated with the network endpoint without the
port.
|
ServiceEntry.Endpoint.Builder |
setAddressBytes(com.google.protobuf.ByteString value)
REQUIRED: Address associated with the network endpoint without the
port.
|
ServiceEntry.Endpoint.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceEntry.Endpoint.Builder |
setLocality(java.lang.String value)
The locality associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
setLocalityBytes(com.google.protobuf.ByteString value)
The locality associated with the endpoint.
|
ServiceEntry.Endpoint.Builder |
setNetwork(java.lang.String value)
Network enables Istio to group endpoints resident in the same L3
domain/network.
|
ServiceEntry.Endpoint.Builder |
setNetworkBytes(com.google.protobuf.ByteString value)
Network enables Istio to group endpoints resident in the same L3
domain/network.
|
ServiceEntry.Endpoint.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ServiceEntry.Endpoint.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ServiceEntry.Endpoint.Builder |
setWeight(int value)
The load balancing weight associated with the endpoint.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionprivate int bitField0_
private java.lang.Object address_
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> ports_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> labels_
private java.lang.Object network_
private java.lang.Object locality_
private int weight_
private Builder()
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>private void maybeForceBuilderInitialization()
public ServiceEntry.Endpoint.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic ServiceEntry.Endpoint build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic ServiceEntry.Endpoint buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic ServiceEntry.Endpoint.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder mergeFrom(ServiceEntry.Endpoint other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public ServiceEntry.Endpoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<ServiceEntry.Endpoint.Builder>java.io.IOExceptionpublic 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.EndpointOrBuilderpublic ServiceEntry.Endpoint.Builder setAddress(java.lang.String value)
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;value - The address to set.public ServiceEntry.Endpoint.Builder clearAddress()
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;public ServiceEntry.Endpoint.Builder setAddressBytes(com.google.protobuf.ByteString value)
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;value - The bytes for address to set.private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> internalGetPorts()
private com.google.protobuf.MapField<java.lang.String,java.lang.Integer> internalGetMutablePorts()
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;public ServiceEntry.Endpoint.Builder clearPorts()
public ServiceEntry.Endpoint.Builder removePorts(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;@Deprecated public java.util.Map<java.lang.String,java.lang.Integer> getMutablePorts()
public ServiceEntry.Endpoint.Builder putPorts(java.lang.String key, int value)
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 ServiceEntry.Endpoint.Builder putAllPorts(java.util.Map<java.lang.String,java.lang.Integer> values)
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()
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetMutableLabels()
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 ServiceEntry.Endpoint.Builder clearLabels()
public ServiceEntry.Endpoint.Builder removeLabels(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public ServiceEntry.Endpoint.Builder putLabels(java.lang.String key, java.lang.String value)
One or more labels associated with the endpoint.
map<string, string> labels = 3;public ServiceEntry.Endpoint.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
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 ServiceEntry.Endpoint.Builder setNetwork(java.lang.String value)
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;value - The network to set.public ServiceEntry.Endpoint.Builder clearNetwork()
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;public ServiceEntry.Endpoint.Builder setNetworkBytes(com.google.protobuf.ByteString value)
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;value - The bytes for network to set.public 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 ServiceEntry.Endpoint.Builder setLocality(java.lang.String value)
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;value - The locality to set.public ServiceEntry.Endpoint.Builder clearLocality()
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;public ServiceEntry.Endpoint.Builder setLocalityBytes(com.google.protobuf.ByteString value)
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;value - The bytes for locality to set.public 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 ServiceEntry.Endpoint.Builder setWeight(int value)
The load balancing weight associated with the endpoint. Endpoints with higher weights will receive proportionally higher traffic.
uint32 weight = 6;value - The weight to set.public ServiceEntry.Endpoint.Builder clearWeight()
The load balancing weight associated with the endpoint. Endpoints with higher weights will receive proportionally higher traffic.
uint32 weight = 6;public final ServiceEntry.Endpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>public final ServiceEntry.Endpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<ServiceEntry.Endpoint.Builder>Copyright © 2018–2020 Alibaba Group. All rights reserved.