Package com.google.appengine.v1
Class TrafficSplit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
- com.google.appengine.v1.TrafficSplit.Builder
-
- All Implemented Interfaces:
TrafficSplitOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TrafficSplit
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 typegoogle.appengine.v1.TrafficSplit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TrafficSplit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TrafficSplitbuild()TrafficSplitbuildPartial()TrafficSplit.Builderclear()TrafficSplit.BuilderclearAllocations()TrafficSplit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TrafficSplit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TrafficSplit.BuilderclearShardBy()Mechanism used to determine which version a request is sent to.TrafficSplit.Builderclone()booleancontainsAllocations(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.intgetAllocationsCount()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.doublegetAllocationsOrDefault(String key, double defaultValue)Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.doublegetAllocationsOrThrow(String key)Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.TrafficSplitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,Double>getMutableAllocations()Deprecated.TrafficSplit.ShardBygetShardBy()Mechanism used to determine which version a request is sent to.intgetShardByValue()Mechanism used to determine which version a request is sent to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()TrafficSplit.BuildermergeFrom(TrafficSplit other)TrafficSplit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TrafficSplit.BuildermergeFrom(com.google.protobuf.Message other)TrafficSplit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TrafficSplit.BuilderputAllAllocations(Map<String,Double> values)Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.TrafficSplit.BuilderputAllocations(String key, double value)Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.TrafficSplit.BuilderremoveAllocations(String key)Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.TrafficSplit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TrafficSplit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TrafficSplit.BuildersetShardBy(TrafficSplit.ShardBy value)Mechanism used to determine which version a request is sent to.TrafficSplit.BuildersetShardByValue(int value)Mechanism used to determine which version a request is sent to.TrafficSplit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
clear
public TrafficSplit.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
getDefaultInstanceForType
public TrafficSplit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TrafficSplit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TrafficSplit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TrafficSplit.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
setField
public TrafficSplit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
clearField
public TrafficSplit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
clearOneof
public TrafficSplit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
setRepeatedField
public TrafficSplit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
addRepeatedField
public TrafficSplit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
mergeFrom
public TrafficSplit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrafficSplit.Builder>
-
mergeFrom
public TrafficSplit.Builder mergeFrom(TrafficSplit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
mergeFrom
public TrafficSplit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrafficSplit.Builder>- Throws:
IOException
-
getShardByValue
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;- Specified by:
getShardByValuein interfaceTrafficSplitOrBuilder- Returns:
- The enum numeric value on the wire for shardBy.
-
setShardByValue
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;- Parameters:
value- The enum numeric value on the wire for shardBy to set.- Returns:
- This builder for chaining.
-
getShardBy
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;- Specified by:
getShardByin interfaceTrafficSplitOrBuilder- Returns:
- The shardBy.
-
setShardBy
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;- Parameters:
value- The shardBy to set.- Returns:
- This builder for chaining.
-
clearShardBy
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;- Returns:
- This builder for chaining.
-
getAllocationsCount
public int getAllocationsCount()
Description copied from interface: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;- Specified by:
getAllocationsCountin interfaceTrafficSplitOrBuilder
-
containsAllocations
public 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;- Specified by:
containsAllocationsin interfaceTrafficSplitOrBuilder
-
getAllocations
@Deprecated public Map<String,Double> getAllocations()
Deprecated.UsegetAllocationsMap()instead.- Specified by:
getAllocationsin interfaceTrafficSplitOrBuilder
-
getAllocationsMap
public 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;- Specified by:
getAllocationsMapin interfaceTrafficSplitOrBuilder
-
getAllocationsOrDefault
public 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;- Specified by:
getAllocationsOrDefaultin interfaceTrafficSplitOrBuilder
-
getAllocationsOrThrow
public 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;- Specified by:
getAllocationsOrThrowin interfaceTrafficSplitOrBuilder
-
clearAllocations
public TrafficSplit.Builder clearAllocations()
-
removeAllocations
public TrafficSplit.Builder removeAllocations(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;
-
getMutableAllocations
@Deprecated public Map<String,Double> getMutableAllocations()
Deprecated.Use alternate mutation accessors instead.
-
putAllocations
public TrafficSplit.Builder putAllocations(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;
-
putAllAllocations
public TrafficSplit.Builder putAllAllocations(Map<String,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;
-
setUnknownFields
public final TrafficSplit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
mergeUnknownFields
public final TrafficSplit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
-