接口 WorkloadEntryOuterClass.WorkloadEntryOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public static interface WorkloadEntryOuterClass.WorkloadEntryOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 booleancontainsLabels(java.lang.String key)One or more labels associated with the endpoint.booleancontainsPorts(java.lang.String key)Set of ports associated with the endpoint.java.lang.StringgetAddress()Address associated with the network endpoint without the port.com.google.protobuf.ByteStringgetAddressBytes()Address associated with the network endpoint without the port.java.util.Map<java.lang.String,java.lang.String>getLabels()已过时。intgetLabelsCount()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.StringgetLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels associated with the endpoint.java.lang.StringgetLabelsOrThrow(java.lang.String key)One or more labels associated with the endpoint.java.lang.StringgetLocality()The locality associated with the endpoint.com.google.protobuf.ByteStringgetLocalityBytes()The locality associated with the endpoint.java.lang.StringgetNetwork()Network enables Istio to group endpoints resident in the same L3 domain/network.com.google.protobuf.ByteStringgetNetworkBytes()Network enables Istio to group endpoints resident in the same L3 domain/network.java.util.Map<java.lang.String,java.lang.Integer>getPorts()已过时。intgetPortsCount()Set of ports associated with the endpoint.java.util.Map<java.lang.String,java.lang.Integer>getPortsMap()Set of ports associated with the endpoint.intgetPortsOrDefault(java.lang.String key, int defaultValue)Set of ports associated with the endpoint.intgetPortsOrThrow(java.lang.String key)Set of ports associated with the endpoint.java.lang.StringgetServiceAccount()The service account associated with the workload if a sidecar is present in the workload.com.google.protobuf.ByteStringgetServiceAccountBytes()The service account associated with the workload if a sidecar is present in the workload.intgetWeight()The load balancing weight associated with the endpoint.
-
-
-
方法详细资料
-
getAddress
java.lang.String getAddress()
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 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The address.
-
getAddressBytes
com.google.protobuf.ByteString getAddressBytes()
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 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The bytes for address.
-
getPortsCount
int getPortsCount()
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
containsPorts
boolean containsPorts(java.lang.String key)
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getPorts
@Deprecated java.util.Map<java.lang.String,java.lang.Integer> getPorts()
已过时。UsegetPortsMap()instead.
-
getPortsMap
java.util.Map<java.lang.String,java.lang.Integer> getPortsMap()
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getPortsOrDefault
int getPortsOrDefault(java.lang.String key, int defaultValue)Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getPortsOrThrow
int getPortsOrThrow(java.lang.String key)
Set of ports associated with the endpoint. If the port map is specified, it must be a map of servicePortName to this endpoint's port, such that traffic to the service port will be forwarded to the endpoint port that maps to the service's portName. If omitted, and the targetPort is specified as part of the service's port specification, traffic to the service port will be forwarded to one of the endpoints on the specified `targetPort`. If both the targetPort and endpoint's port map are not specified, traffic to a service port will be forwarded to one of the endpoints on the same port. **NOTE 1:** Do not use for `unix://` addresses. **NOTE 2:** endpoint port map takes precedence over targetPort.
map<string, uint32> ports = 2;
-
getLabelsCount
int getLabelsCount()
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
containsLabels
boolean containsLabels(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getLabels
@Deprecated java.util.Map<java.lang.String,java.lang.String> getLabels()
已过时。UsegetLabelsMap()instead.
-
getLabelsMap
java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getLabelsOrDefault
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;
-
getLabelsOrThrow
java.lang.String getLabelsOrThrow(java.lang.String key)
One or more labels associated with the endpoint.
map<string, string> labels = 3;
-
getNetwork
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;- 返回:
- The network.
-
getNetworkBytes
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;- 返回:
- The bytes for network.
-
getLocality
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;- 返回:
- The locality.
-
getLocalityBytes
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;- 返回:
- The bytes for locality.
-
getWeight
int getWeight()
The load balancing weight associated with the endpoint. Endpoints with higher weights will receive proportionally higher traffic.
uint32 weight = 6;- 返回:
- The weight.
-
getServiceAccount
java.lang.String getServiceAccount()
The service account associated with the workload if a sidecar is present in the workload. The service account must be present in the same namespace as the configuration ( WorkloadEntry or a ServiceEntry)
string service_account = 7;- 返回:
- The serviceAccount.
-
getServiceAccountBytes
com.google.protobuf.ByteString getServiceAccountBytes()
The service account associated with the workload if a sidecar is present in the workload. The service account must be present in the same namespace as the configuration ( WorkloadEntry or a ServiceEntry)
string service_account = 7;- 返回:
- The bytes for serviceAccount.
-
-