接口 DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute,DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder
public static interface DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明booleancontainsTo(String key) Map of upstream localities to traffic distribution weights.getFrom()Originating locality, '/' separated, e.g.com.google.protobuf.ByteStringOriginating locality, '/' separated, e.g.getTo()已过时。intMap of upstream localities to traffic distribution weights.getToMap()Map of upstream localities to traffic distribution weights.intgetToOrDefault(String key, int defaultValue) Map of upstream localities to traffic distribution weights.intgetToOrThrow(String key) Map of upstream localities to traffic distribution weights.从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder
isInitialized从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getFrom
String getFrom()Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
string from = 1;- 返回:
- The from.
-
getFromBytes
com.google.protobuf.ByteString getFromBytes()Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
string from = 1;- 返回:
- The bytes for from.
-
getToCount
int getToCount()Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
containsTo
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
getTo
已过时。UsegetToMap()instead. -
getToMap
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
getToOrDefault
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2; -
getToOrThrow
Map of upstream localities to traffic distribution weights. The sum of all weights should be 100. Any locality not present will receive no traffic.
map<string, uint32> to = 2;
-