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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TrafficSplit build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TrafficSplit buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TrafficSplit.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder mergeFrom(TrafficSplit other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public TrafficSplit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TrafficSplit.Builder>
java.io.IOException
public 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 TrafficSplitOrBuilder
public 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 TrafficSplitOrBuilder
public 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()
TrafficSplitOrBuilder
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;
getAllocationsCount
in interface TrafficSplitOrBuilder
public 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 TrafficSplitOrBuilder
public 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 TrafficSplitOrBuilder
public 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 TrafficSplitOrBuilder
public 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 TrafficSplitOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>
public final TrafficSplit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TrafficSplit.Builder>