Interface Rollout.TrafficPercentStrategyOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsPercentages​(String key)
      Maps service configuration IDs to their corresponding traffic percentage.
      Map<String,​Double> getPercentages()
      Deprecated.
      int getPercentagesCount()
      Maps service configuration IDs to their corresponding traffic percentage.
      Map<String,​Double> getPercentagesMap()
      Maps service configuration IDs to their corresponding traffic percentage.
      double getPercentagesOrDefault​(String key, double defaultValue)
      Maps service configuration IDs to their corresponding traffic percentage.
      double getPercentagesOrThrow​(String key)
      Maps service configuration IDs to their corresponding traffic percentage.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getPercentagesCount

        int getPercentagesCount()
         Maps service configuration IDs to their corresponding traffic percentage.
         Key is the service configuration ID, Value is the traffic percentage
         which must be greater than 0.0 and the sum must equal to 100.0.
         
        map<string, double> percentages = 1;
      • containsPercentages

        boolean containsPercentages​(String key)
         Maps service configuration IDs to their corresponding traffic percentage.
         Key is the service configuration ID, Value is the traffic percentage
         which must be greater than 0.0 and the sum must equal to 100.0.
         
        map<string, double> percentages = 1;
      • getPercentagesMap

        Map<String,​Double> getPercentagesMap()
         Maps service configuration IDs to their corresponding traffic percentage.
         Key is the service configuration ID, Value is the traffic percentage
         which must be greater than 0.0 and the sum must equal to 100.0.
         
        map<string, double> percentages = 1;
      • getPercentagesOrDefault

        double getPercentagesOrDefault​(String key,
                                       double defaultValue)
         Maps service configuration IDs to their corresponding traffic percentage.
         Key is the service configuration ID, Value is the traffic percentage
         which must be greater than 0.0 and the sum must equal to 100.0.
         
        map<string, double> percentages = 1;
      • getPercentagesOrThrow

        double getPercentagesOrThrow​(String key)
         Maps service configuration IDs to their corresponding traffic percentage.
         Key is the service configuration ID, Value is the traffic percentage
         which must be greater than 0.0 and the sum must equal to 100.0.
         
        map<string, double> percentages = 1;