接口 DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute, DestinationRuleOuterClass.LocalityLoadBalancerSetting.Distribute.Builder
封闭类:
DestinationRuleOuterClass.LocalityLoadBalancerSetting

public static interface DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Map of upstream localities to traffic distribution weights.
    Originating locality, '/' separated, e.g.
    com.google.protobuf.ByteString
    Originating locality, '/' separated, e.g.
    已过时。
    int
    Map of upstream localities to traffic distribution weights.
    Map of upstream localities to traffic distribution weights.
    int
    getToOrDefault(String key, int defaultValue)
    Map of upstream localities to traffic distribution weights.
    int
    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

      boolean containsTo(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

      已过时。
      Use getToMap() instead.
    • getToMap

      Map<String,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(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(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;