Interface TrafficSplitOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    TrafficSplit, TrafficSplit.Builder

    public interface TrafficSplitOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsAllocations​(String key)
      Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.
      Map<String,​Double> getAllocations()
      Deprecated.
      int getAllocationsCount()
      Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.
      Map<String,​Double> getAllocationsMap()
      Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.
      double getAllocationsOrDefault​(String key, double defaultValue)
      Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.
      double getAllocationsOrThrow​(String key)
      Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.
      TrafficSplit.ShardBy getShardBy()
      Mechanism used to determine which version a request is sent to.
      int getShardByValue()
      Mechanism used to determine which version a request is sent to.
      • 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

      • getShardByValue

        int getShardByValue()
         Mechanism used to determine which version a request is sent to.
         The traffic selection algorithm will
         be stable for either type until allocations are changed.
         
        .google.appengine.v1.TrafficSplit.ShardBy shard_by = 1;
        Returns:
        The enum numeric value on the wire for shardBy.
      • getShardBy

        TrafficSplit.ShardBy getShardBy()
         Mechanism used to determine which version a request is sent to.
         The traffic selection algorithm will
         be stable for either type until allocations are changed.
         
        .google.appengine.v1.TrafficSplit.ShardBy shard_by = 1;
        Returns:
        The shardBy.
      • getAllocationsCount

        int getAllocationsCount()
         Mapping from version IDs within the service to fractional
         (0.000, 1] allocations of traffic for that version. Each version can
         be specified only once, but some versions in the service may not
         have any traffic allocation. Services that have traffic allocated
         cannot be deleted until either the service is deleted or
         their traffic allocation is removed. Allocations must sum to 1.
         Up to two decimal place precision is supported for IP-based splits and
         up to three decimal places is supported for cookie-based splits.
         
        map<string, double> allocations = 2;
      • containsAllocations

        boolean containsAllocations​(String key)
         Mapping from version IDs within the service to fractional
         (0.000, 1] allocations of traffic for that version. Each version can
         be specified only once, but some versions in the service may not
         have any traffic allocation. Services that have traffic allocated
         cannot be deleted until either the service is deleted or
         their traffic allocation is removed. Allocations must sum to 1.
         Up to two decimal place precision is supported for IP-based splits and
         up to three decimal places is supported for cookie-based splits.
         
        map<string, double> allocations = 2;
      • getAllocationsMap

        Map<String,​Double> getAllocationsMap()
         Mapping from version IDs within the service to fractional
         (0.000, 1] allocations of traffic for that version. Each version can
         be specified only once, but some versions in the service may not
         have any traffic allocation. Services that have traffic allocated
         cannot be deleted until either the service is deleted or
         their traffic allocation is removed. Allocations must sum to 1.
         Up to two decimal place precision is supported for IP-based splits and
         up to three decimal places is supported for cookie-based splits.
         
        map<string, double> allocations = 2;
      • getAllocationsOrDefault

        double getAllocationsOrDefault​(String key,
                                       double defaultValue)
         Mapping from version IDs within the service to fractional
         (0.000, 1] allocations of traffic for that version. Each version can
         be specified only once, but some versions in the service may not
         have any traffic allocation. Services that have traffic allocated
         cannot be deleted until either the service is deleted or
         their traffic allocation is removed. Allocations must sum to 1.
         Up to two decimal place precision is supported for IP-based splits and
         up to three decimal places is supported for cookie-based splits.
         
        map<string, double> allocations = 2;
      • getAllocationsOrThrow

        double getAllocationsOrThrow​(String key)
         Mapping from version IDs within the service to fractional
         (0.000, 1] allocations of traffic for that version. Each version can
         be specified only once, but some versions in the service may not
         have any traffic allocation. Services that have traffic allocated
         cannot be deleted until either the service is deleted or
         their traffic allocation is removed. Allocations must sum to 1.
         Up to two decimal place precision is supported for IP-based splits and
         up to three decimal places is supported for cookie-based splits.
         
        map<string, double> allocations = 2;