接口 VirtualServiceOuterClass.DestinationOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public static interface VirtualServiceOuterClass.DestinationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.lang.StringgetHost()The name of a service from the service registry.com.google.protobuf.ByteStringgetHostBytes()The name of a service from the service registry.VirtualServiceOuterClass.PortSelectorgetPort()Specifies the port on the host that is being addressed.VirtualServiceOuterClass.PortSelectorOrBuildergetPortOrBuilder()Specifies the port on the host that is being addressed.java.lang.StringgetSubset()The name of a subset within the service.com.google.protobuf.ByteStringgetSubsetBytes()The name of a subset within the service.booleanhasPort()Specifies the port on the host that is being addressed.
-
-
-
方法详细资料
-
getHost
java.lang.String getHost()
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to destinations that are not found in either of the two, will be dropped. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. To avoid potential misconfiguration, it is recommended to always use fully qualified domain names over short names.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The host.
-
getHostBytes
com.google.protobuf.ByteString getHostBytes()
The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntry](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Traffic forwarded to destinations that are not found in either of the two, will be dropped. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. To avoid potential misconfiguration, it is recommended to always use fully qualified domain names over short names.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The bytes for host.
-
getSubset
java.lang.String getSubset()
The name of a subset within the service. Applicable only to services within the mesh. The subset must be defined in a corresponding DestinationRule.
string subset = 2;- 返回:
- The subset.
-
getSubsetBytes
com.google.protobuf.ByteString getSubsetBytes()
The name of a subset within the service. Applicable only to services within the mesh. The subset must be defined in a corresponding DestinationRule.
string subset = 2;- 返回:
- The bytes for subset.
-
hasPort
boolean hasPort()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;- 返回:
- Whether the port field is set.
-
getPort
VirtualServiceOuterClass.PortSelector getPort()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;- 返回:
- The port.
-
getPortOrBuilder
VirtualServiceOuterClass.PortSelectorOrBuilder getPortOrBuilder()
Specifies the port on the host that is being addressed. If a service exposes only a single port it is not required to explicitly select the port.
.istio.networking.v1alpha3.PortSelector port = 3;
-
-