Interface Rollout.TrafficPercentStrategyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Rollout.TrafficPercentStrategy, Rollout.TrafficPercentStrategy.Builder
Enclosing class:
Rollout

public static interface Rollout.TrafficPercentStrategyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Maps service configuration IDs to their corresponding traffic percentage.
    Deprecated.
    int
    Maps service configuration IDs to their corresponding traffic percentage.
    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
    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 Details

    • 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;
    • getPercentages

      @Deprecated Map<String,Double> getPercentages()
      Deprecated.
      Use getPercentagesMap() instead.
    • 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;