publicfinalclass TrafficSplitextendsGeneratedMessageV3implementsTrafficSplitOrBuilder
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALLOCATIONS_FIELD_NUMBER
publicstaticfinalintALLOCATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SHARD_BY_FIELD_NUMBER
publicstaticfinalintSHARD_BY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticTrafficSplitgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticTrafficSplit.BuildernewBuilder()
newBuilder(TrafficSplit prototype)
publicstaticTrafficSplit.BuildernewBuilder(TrafficSplitprototype)
publicstaticTrafficSplitparseDelimitedFrom(InputStreaminput)
publicstaticTrafficSplitparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticTrafficSplitparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticTrafficSplitparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticTrafficSplitparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticTrafficSplitparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticTrafficSplitparseFrom(CodedInputStreaminput)
publicstaticTrafficSplitparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticTrafficSplitparseFrom(InputStreaminput)
publicstaticTrafficSplitparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticTrafficSplitparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticTrafficSplitparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<TrafficSplit>parser()
Methods
containsAllocations(String key)
publicbooleancontainsAllocations(Stringkey)
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;
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAllocations() (deprecated)
publicMap<String,Double>getAllocations()
| Returns |
| Type |
Description |
Map<String,java.lang.Double> |
getAllocationsCount()
publicintgetAllocationsCount()
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;
| Returns |
| Type |
Description |
int |
getAllocationsMap()
publicMap<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;
| Returns |
| Type |
Description |
Map<String,java.lang.Double> |
getAllocationsOrDefault(String key, double defaultValue)
publicdoublegetAllocationsOrDefault(Stringkey,doubledefaultValue)
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;
| Returns |
| Type |
Description |
double |
getAllocationsOrThrow(String key)
publicdoublegetAllocationsOrThrow(Stringkey)
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;
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
double |
getDefaultInstanceForType()
publicTrafficSplitgetDefaultInstanceForType()
getParserForType()
publicParser<TrafficSplit>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getShardBy()
publicTrafficSplit.ShardBygetShardBy()
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()
publicintgetShardByValue()
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 |
| Type |
Description |
int |
The enum numeric value on the wire for shardBy.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicTrafficSplit.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedTrafficSplit.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicTrafficSplit.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides