接口 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(java.lang.String key)Map of upstream localities to traffic distribution weights.java.lang.StringgetFrom()Originating locality, '/' separated, e.g.com.google.protobuf.ByteStringgetFromBytes()Originating locality, '/' separated, e.g.java.util.Map<java.lang.String,java.lang.Integer>getTo()已过时。intgetToCount()Map of upstream localities to traffic distribution weights.java.util.Map<java.lang.String,java.lang.Integer>getToMap()Map of upstream localities to traffic distribution weights.intgetToOrDefault(java.lang.String key, int defaultValue)Map of upstream localities to traffic distribution weights.intgetToOrThrow(java.lang.String key)Map of upstream localities to traffic distribution weights.
-
-
-
方法详细资料
-
getFrom
java.lang.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
boolean containsTo(java.lang.String key)
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
@Deprecated java.util.Map<java.lang.String,java.lang.Integer> getTo()
已过时。UsegetToMap()instead.
-
getToMap
java.util.Map<java.lang.String,java.lang.Integer> 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
int getToOrDefault(java.lang.String key, int defaultValue)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
int getToOrThrow(java.lang.String key)
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;
-
-