接口 VirtualServiceOuterClass.DestinationOrBuilder

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      java.lang.String getHost()
      The name of a service from the service registry.
      com.google.protobuf.ByteString getHostBytes()
      The name of a service from the service registry.
      VirtualServiceOuterClass.PortSelector getPort()
      Specifies the port on the host that is being addressed.
      VirtualServiceOuterClass.PortSelectorOrBuilder getPortOrBuilder()
      Specifies the port on the host that is being addressed.
      java.lang.String getSubset()
      The name of a subset within the service.
      com.google.protobuf.ByteString getSubsetBytes()
      The name of a subset within the service.
      boolean hasPort()
      Specifies the port on the host that is being addressed.
      • 从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 从接口继承的方法 com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 方法详细资料

      • 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];
      • 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];
      • 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;
      • 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;
      • 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;
      • 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;
      • 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;