public static final class TrafficSplit.Builder extends com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TrafficSplit |
build() |
TrafficSplit |
buildPartial() |
TrafficSplit.Builder |
clear() |
TrafficSplit.Builder |
clearAllocations() |
TrafficSplit.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TrafficSplit.Builder |
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
TrafficSplit.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrafficSplit.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrafficSplit.Builder |
mergeFrom(TrafficSplit other) |
TrafficSplit.Builder |
mergeUnknownFields(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TrafficSplit.Builder |
setRepeatedField(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TrafficSplit build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TrafficSplit buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TrafficSplit.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrafficSplit.Builder>public TrafficSplit.Builder mergeFrom(TrafficSplit other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public TrafficSplit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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.
optional .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.
optional .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.
optional .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.
optional .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.
optional .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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>public final TrafficSplit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>