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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, 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(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.int
getAllocationsCount()
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.double
getAllocationsOrDefault(String key, double defaultValue)
Mapping from version IDs within the service to fractional (0.000, 1] allocations of traffic for that version.double
getAllocationsOrThrow(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()
Map<String,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(TrafficSplit other)
TrafficSplit.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TrafficSplit.Builder
mergeFrom(com.google.protobuf.Message other)
TrafficSplit.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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.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.TrafficSplit.Builder
removeAllocations(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, Object value)
TrafficSplit.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, 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)
-
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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
clear
public TrafficSplit.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
getDefaultInstanceForType
public TrafficSplit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TrafficSplit build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TrafficSplit buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TrafficSplit.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
setField
public TrafficSplit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
clearField
public TrafficSplit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
clearOneof
public TrafficSplit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
setRepeatedField
public TrafficSplit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
addRepeatedField
public TrafficSplit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
mergeFrom
public TrafficSplit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TrafficSplit.Builder>
-
mergeFrom
public TrafficSplit.Builder mergeFrom(TrafficSplit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getShardByValue
in 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:
getShardBy
in 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: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;
- Specified by:
getAllocationsCount
in 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:
containsAllocations
in interfaceTrafficSplitOrBuilder
-
getAllocations
@Deprecated public Map<String,Double> getAllocations()
Deprecated.UsegetAllocationsMap()
instead.- Specified by:
getAllocations
in 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:
getAllocationsMap
in 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:
getAllocationsOrDefault
in 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:
getAllocationsOrThrow
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
mergeUnknownFields
public final TrafficSplit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TrafficSplit.Builder>
-
-