public static final class TrafficSplit.Builder extends GeneratedMessageV3.Builder<TrafficSplit.Builder> implements TrafficSplitOrBuilder
Traffic routing configuration for versions within a single service. Traffic splits define how traffic directed to the service is assigned to versions.Protobuf type
google.appengine.v1.TrafficSplit| Modifier and Type | Method and Description |
|---|---|
TrafficSplit.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
TrafficSplit |
build() |
TrafficSplit |
buildPartial() |
TrafficSplit.Builder |
clear() |
TrafficSplit.Builder |
clearAllocations() |
TrafficSplit.Builder |
clearField(Descriptors.FieldDescriptor field) |
TrafficSplit.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
TrafficSplit.Builder |
clearShardBy()
Mechanism used to determine which version a request is sent to.
|
TrafficSplit.Builder |
clone() |
boolean |
containsAllocations(java.lang.String key)
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
java.util.Map<java.lang.String,java.lang.Double> |
getAllocations()
Deprecated.
|
int |
getAllocationsCount()
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
java.util.Map<java.lang.String,java.lang.Double> |
getAllocationsMap()
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
double |
getAllocationsOrDefault(java.lang.String key,
double defaultValue)
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
double |
getAllocationsOrThrow(java.lang.String key)
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
TrafficSplit |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,java.lang.Double> |
getMutableAllocations()
Deprecated.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
TrafficSplit.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
TrafficSplit.Builder |
mergeFrom(Message other) |
TrafficSplit.Builder |
mergeFrom(TrafficSplit other) |
TrafficSplit.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
TrafficSplit.Builder |
putAllAllocations(java.util.Map<java.lang.String,java.lang.Double> values)
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
TrafficSplit.Builder |
putAllocations(java.lang.String key,
double value)
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
TrafficSplit.Builder |
removeAllocations(java.lang.String key)
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
TrafficSplit.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
TrafficSplit.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TrafficSplit.Builder |
setShardBy(TrafficSplit.ShardBy value)
Mechanism used to determine which version a request is sent to.
|
TrafficSplit.Builder |
setShardByValue(int value)
Mechanism used to determine which version a request is sent to.
|
TrafficSplit.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<TrafficSplit.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<TrafficSplit.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic TrafficSplit build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic TrafficSplit buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic TrafficSplit.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<TrafficSplit.Builder>public TrafficSplit.Builder mergeFrom(TrafficSplit other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<TrafficSplit.Builder>java.io.IOExceptionpublic 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;getShardByValue in interface TrafficSplitOrBuilderpublic TrafficSplit.Builder setShardByValue(int value)
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;public 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;getShardBy in interface TrafficSplitOrBuilderpublic TrafficSplit.Builder setShardBy(TrafficSplit.ShardBy value)
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;public TrafficSplit.Builder clearShardBy()
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;public int getAllocationsCount()
TrafficSplitOrBuilderMapping 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;getAllocationsCount in interface TrafficSplitOrBuilderpublic boolean containsAllocations(java.lang.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;containsAllocations in interface TrafficSplitOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.Double> getAllocations()
getAllocationsMap() instead.getAllocations in interface TrafficSplitOrBuilderpublic java.util.Map<java.lang.String,java.lang.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;getAllocationsMap in interface TrafficSplitOrBuilderpublic double getAllocationsOrDefault(java.lang.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;getAllocationsOrDefault in interface TrafficSplitOrBuilderpublic double getAllocationsOrThrow(java.lang.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;getAllocationsOrThrow in interface TrafficSplitOrBuilderpublic TrafficSplit.Builder clearAllocations()
public TrafficSplit.Builder removeAllocations(java.lang.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;@Deprecated public java.util.Map<java.lang.String,java.lang.Double> getMutableAllocations()
public TrafficSplit.Builder putAllocations(java.lang.String key, double value)
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;public TrafficSplit.Builder putAllAllocations(java.util.Map<java.lang.String,java.lang.Double> values)
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;public final TrafficSplit.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<TrafficSplit.Builder>public final TrafficSplit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<TrafficSplit.Builder>