接口 DestinationRuleOuterClass.SubsetOrBuilder

    • 方法概要

      所有方法 实例方法 抽象方法 已过时的方法 
      修饰符和类型 方法 说明
      boolean containsLabels​(java.lang.String key)
      Labels apply a filter over the endpoints of a service in the service registry.
      java.util.Map<java.lang.String,​java.lang.String> getLabels()
      已过时。
      int getLabelsCount()
      Labels apply a filter over the endpoints of a service in the service registry.
      java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
      Labels apply a filter over the endpoints of a service in the service registry.
      java.lang.String getLabelsOrDefault​(java.lang.String key, java.lang.String defaultValue)
      Labels apply a filter over the endpoints of a service in the service registry.
      java.lang.String getLabelsOrThrow​(java.lang.String key)
      Labels apply a filter over the endpoints of a service in the service registry.
      java.lang.String getName()
      Name of the subset.
      com.google.protobuf.ByteString getNameBytes()
      Name of the subset.
      DestinationRuleOuterClass.TrafficPolicy getTrafficPolicy()
      Traffic policies that apply to this subset.
      DestinationRuleOuterClass.TrafficPolicyOrBuilder getTrafficPolicyOrBuilder()
      Traffic policies that apply to this subset.
      boolean hasTrafficPolicy()
      Traffic policies that apply to this subset.
      • 从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

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

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

      • getName

        java.lang.String getName()
         Name of the subset. The service name and the subset name can
         be used for traffic splitting in a route rule.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        返回:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Name of the subset. The service name and the subset name can
         be used for traffic splitting in a route rule.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        返回:
        The bytes for name.
      • getLabelsCount

        int getLabelsCount()
         Labels apply a filter over the endpoints of a service in the
         service registry. See route rules for examples of usage.
         
        map<string, string> labels = 2;
      • containsLabels

        boolean containsLabels​(java.lang.String key)
         Labels apply a filter over the endpoints of a service in the
         service registry. See route rules for examples of usage.
         
        map<string, string> labels = 2;
      • getLabels

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.String> getLabels()
        已过时。
        Use getLabelsMap() instead.
      • getLabelsMap

        java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
         Labels apply a filter over the endpoints of a service in the
         service registry. See route rules for examples of usage.
         
        map<string, string> labels = 2;
      • getLabelsOrDefault

        java.lang.String getLabelsOrDefault​(java.lang.String key,
                                            java.lang.String defaultValue)
         Labels apply a filter over the endpoints of a service in the
         service registry. See route rules for examples of usage.
         
        map<string, string> labels = 2;
      • getLabelsOrThrow

        java.lang.String getLabelsOrThrow​(java.lang.String key)
         Labels apply a filter over the endpoints of a service in the
         service registry. See route rules for examples of usage.
         
        map<string, string> labels = 2;
      • hasTrafficPolicy

        boolean hasTrafficPolicy()
         Traffic policies that apply to this subset. Subsets inherit the
         traffic policies specified at the DestinationRule level. Settings
         specified at the subset level will override the corresponding settings
         specified at the DestinationRule level.
         
        .istio.networking.v1alpha3.TrafficPolicy traffic_policy = 3;
        返回:
        Whether the trafficPolicy field is set.
      • getTrafficPolicy

        DestinationRuleOuterClass.TrafficPolicy getTrafficPolicy()
         Traffic policies that apply to this subset. Subsets inherit the
         traffic policies specified at the DestinationRule level. Settings
         specified at the subset level will override the corresponding settings
         specified at the DestinationRule level.
         
        .istio.networking.v1alpha3.TrafficPolicy traffic_policy = 3;
        返回:
        The trafficPolicy.
      • getTrafficPolicyOrBuilder

        DestinationRuleOuterClass.TrafficPolicyOrBuilder getTrafficPolicyOrBuilder()
         Traffic policies that apply to this subset. Subsets inherit the
         traffic policies specified at the DestinationRule level. Settings
         specified at the subset level will override the corresponding settings
         specified at the DestinationRule level.
         
        .istio.networking.v1alpha3.TrafficPolicy traffic_policy = 3;