接口 DestinationRuleOuterClass.DestinationRuleOrBuilder

    • 方法详细资料

      • 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 [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for
         services that do not exist in the service registry will be ignored.
         *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 misconfigurations, it is recommended to always use fully
         qualified domain names over short names._
         Note that the host field applies to both HTTP and TCP services.
         
        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 [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for
         services that do not exist in the service registry will be ignored.
         *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 misconfigurations, it is recommended to always use fully
         qualified domain names over short names._
         Note that the host field applies to both HTTP and TCP services.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        返回:
        The bytes for host.
      • hasTrafficPolicy

        boolean hasTrafficPolicy()
         Traffic policies to apply (load balancing policy, connection pool
         sizes, outlier detection).
         
        .istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;
        返回:
        Whether the trafficPolicy field is set.
      • getTrafficPolicy

        DestinationRuleOuterClass.TrafficPolicy getTrafficPolicy()
         Traffic policies to apply (load balancing policy, connection pool
         sizes, outlier detection).
         
        .istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;
        返回:
        The trafficPolicy.
      • getTrafficPolicyOrBuilder

        DestinationRuleOuterClass.TrafficPolicyOrBuilder getTrafficPolicyOrBuilder()
         Traffic policies to apply (load balancing policy, connection pool
         sizes, outlier detection).
         
        .istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;
      • getSubsetsList

        java.util.List<DestinationRuleOuterClass.Subset> getSubsetsList()
         One or more named sets that represent individual versions of a
         service. Traffic policies can be overridden at subset level.
         
        repeated .istio.networking.v1alpha3.Subset subsets = 3;
      • getSubsets

        DestinationRuleOuterClass.Subset getSubsets​(int index)
         One or more named sets that represent individual versions of a
         service. Traffic policies can be overridden at subset level.
         
        repeated .istio.networking.v1alpha3.Subset subsets = 3;
      • getSubsetsCount

        int getSubsetsCount()
         One or more named sets that represent individual versions of a
         service. Traffic policies can be overridden at subset level.
         
        repeated .istio.networking.v1alpha3.Subset subsets = 3;
      • getSubsetsOrBuilderList

        java.util.List<? extends DestinationRuleOuterClass.SubsetOrBuilder> getSubsetsOrBuilderList()
         One or more named sets that represent individual versions of a
         service. Traffic policies can be overridden at subset level.
         
        repeated .istio.networking.v1alpha3.Subset subsets = 3;
      • getSubsetsOrBuilder

        DestinationRuleOuterClass.SubsetOrBuilder getSubsetsOrBuilder​(int index)
         One or more named sets that represent individual versions of a
         service. Traffic policies can be overridden at subset level.
         
        repeated .istio.networking.v1alpha3.Subset subsets = 3;
      • getExportToList

        java.util.List<java.lang.String> getExportToList()
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        返回:
        A list containing the exportTo.
      • getExportToCount

        int getExportToCount()
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        返回:
        The count of exportTo.
      • getExportTo

        java.lang.String getExportTo​(int index)
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        参数:
        index - The index of the element to return.
        返回:
        The exportTo at the given index.
      • getExportToBytes

        com.google.protobuf.ByteString getExportToBytes​(int index)
         A list of namespaces to which this destination rule is exported.
         The resolution of a destination rule to apply to a service occurs in the
         context of a hierarchy of namespaces. Exporting a destination rule allows
         it to be included in the resolution hierarchy for services in
         other namespaces. This feature provides a mechanism for service owners
         and mesh administrators to control the visibility of destination rules
         across namespace boundaries.
         If no namespaces are specified then the destination rule is exported to all
         namespaces by default.
         The value "." is reserved and defines an export to the same namespace that
         the destination rule is declared in. Similarly, the value "*" is reserved and
         defines an export to all namespaces.
         NOTE: in the current release, the `exportTo` value is restricted to
         "." or "*" (i.e., the current namespace or all namespaces).
         
        repeated string export_to = 4;
        参数:
        index - The index of the value to return.
        返回:
        The bytes of the exportTo at the given index.