接口 DestinationRuleOuterClass.SubsetOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public static interface DestinationRuleOuterClass.SubsetOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明booleancontainsLabels(String key) Labels apply a filter over the endpoints of a service in the service registry.已过时。intLabels apply a filter over the endpoints of a service in the service registry.Labels apply a filter over the endpoints of a service in the service registry.getLabelsOrDefault(String key, String defaultValue) Labels apply a filter over the endpoints of a service in the service registry.getLabelsOrThrow(String key) Labels apply a filter over the endpoints of a service in the service registry.getName()Name of the subset.com.google.protobuf.ByteStringName of the subset.Traffic policies that apply to this subset.Traffic policies that apply to this subset.booleanTraffic 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
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
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
已过时。UsegetLabelsMap()instead. -
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
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
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;
-