接口 DestinationRuleOuterClass.LocalityLoadBalancerSetting.DistributeOrBuilder

    • 方法概要

      所有方法 实例方法 抽象方法 已过时的方法 
      修饰符和类型 方法 说明
      boolean containsTo​(java.lang.String key)
      Map of upstream localities to traffic distribution weights.
      java.lang.String getFrom()
      Originating locality, '/' separated, e.g.
      com.google.protobuf.ByteString getFromBytes()
      Originating locality, '/' separated, e.g.
      java.util.Map<java.lang.String,​java.lang.Integer> getTo()
      已过时。
      int getToCount()
      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.
      int getToOrDefault​(java.lang.String key, int defaultValue)
      Map of upstream localities to traffic distribution weights.
      int getToOrThrow​(java.lang.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

        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()
        已过时。
        Use getToMap() 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;