- 2.47.0 (latest)
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.4
- 2.2.0
- 2.1.10
public interface TrafficSplitOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsAllocations(String key)
public abstract 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;
Name | Description |
key | String |
Type | Description |
boolean |
getAllocations()
public abstract Map<String,Double> getAllocations()
Use #getAllocationsMap() instead.
Type | Description |
Map<String,java.lang.Double> |
getAllocationsCount()
public abstract 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;
Type | Description |
int |
getAllocationsMap()
public abstract 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;
Type | Description |
Map<String,java.lang.Double> |
getAllocationsOrDefault(String key, double defaultValue)
public abstract 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;
Name | Description |
key | String |
defaultValue | double |
Type | Description |
double |
getAllocationsOrThrow(String key)
public abstract 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;
Name | Description |
key | String |
Type | Description |
double |
getShardBy()
public abstract 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;
Type | Description |
TrafficSplit.ShardBy | The shardBy. |
getShardByValue()
public abstract 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;
Type | Description |
int | The enum numeric value on the wire for shardBy. |