public final class TrafficSplit extends GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
TrafficSplit.Builder
Traffic routing configuration for versions within a single service.
|
static class |
TrafficSplit.ShardBy
Available sharding mechanisms.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ALLOCATIONS_FIELD_NUMBER |
static int |
SHARD_BY_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsAllocations(java.lang.String key)
Mapping from version IDs within the service to fractional
(0.000, 1] allocations of traffic for that version.
|
boolean |
equals(java.lang.Object obj) |
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.
|
static TrafficSplit |
getDefaultInstance() |
TrafficSplit |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<TrafficSplit> |
getParserForType() |
int |
getSerializedSize() |
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.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static TrafficSplit.Builder |
newBuilder() |
static TrafficSplit.Builder |
newBuilder(TrafficSplit prototype) |
TrafficSplit.Builder |
newBuilderForType() |
protected TrafficSplit.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static TrafficSplit |
parseDelimitedFrom(java.io.InputStream input) |
static TrafficSplit |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static TrafficSplit |
parseFrom(byte[] data) |
static TrafficSplit |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static TrafficSplit |
parseFrom(java.nio.ByteBuffer data) |
static TrafficSplit |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static TrafficSplit |
parseFrom(ByteString data) |
static TrafficSplit |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static TrafficSplit |
parseFrom(CodedInputStream input) |
static TrafficSplit |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static TrafficSplit |
parseFrom(java.io.InputStream input) |
static TrafficSplit |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<TrafficSplit> |
parser() |
TrafficSplit.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SHARD_BY_FIELD_NUMBER
public static final int ALLOCATIONS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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.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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static TrafficSplit parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TrafficSplit parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TrafficSplit parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TrafficSplit parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TrafficSplit parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TrafficSplit parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static TrafficSplit parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TrafficSplit parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static TrafficSplit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TrafficSplit parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static TrafficSplit parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static TrafficSplit parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public TrafficSplit.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static TrafficSplit.Builder newBuilder()
public static TrafficSplit.Builder newBuilder(TrafficSplit prototype)
public TrafficSplit.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected TrafficSplit.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static TrafficSplit getDefaultInstance()
public static Parser<TrafficSplit> parser()
public Parser<TrafficSplit> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public TrafficSplit getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder