public final class AppEngineRouting extends GeneratedMessageV3 implements AppEngineRoutingOrBuilder
App Engine Routing. Defines routing characteristics specific to App Engine - service, version, and instance. For more information about services, versions, and instances see [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), [Microservices Architecture on Google App Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).Protobuf type
google.cloud.tasks.v2beta2.AppEngineRouting
Modifier and Type | Class and Description |
---|---|
static class |
AppEngineRouting.Builder
App Engine Routing.
|
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, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
HOST_FIELD_NUMBER |
static int |
INSTANCE_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, 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 SERVICE_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getService()
App service. By default, the task is sent to the service which is the default service when the task is attempted. For some queues or tasks which were created using the App Engine Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks which were created using the App Engine SDK use a custom domain name; custom domains are not parsed by Cloud Tasks. If [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
string service = 1;
getService
in interface AppEngineRoutingOrBuilder
public ByteString getServiceBytes()
App service. By default, the task is sent to the service which is the default service when the task is attempted. For some queues or tasks which were created using the App Engine Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks which were created using the App Engine SDK use a custom domain name; custom domains are not parsed by Cloud Tasks. If [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
string service = 1;
getServiceBytes
in interface AppEngineRoutingOrBuilder
public String getVersion()
App version. By default, the task is sent to the version which is the default version when the task is attempted. For some queues or tasks which were created using the App Engine Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks which were created using the App Engine SDK use a custom domain name; custom domains are not parsed by Cloud Tasks. If [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
string version = 2;
getVersion
in interface AppEngineRoutingOrBuilder
public ByteString getVersionBytes()
App version. By default, the task is sent to the version which is the default version when the task is attempted. For some queues or tasks which were created using the App Engine Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks which were created using the App Engine SDK use a custom domain name; custom domains are not parsed by Cloud Tasks. If [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
string version = 2;
getVersionBytes
in interface AppEngineRoutingOrBuilder
public String getInstance()
App instance. By default, the task is sent to an instance which is available when the task is attempted. Requests can only be sent to a specific instance if [manual scaling is used in App Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). App Engine Flex does not support instances. For more information, see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
string instance = 3;
getInstance
in interface AppEngineRoutingOrBuilder
public ByteString getInstanceBytes()
App instance. By default, the task is sent to an instance which is available when the task is attempted. Requests can only be sent to a specific instance if [manual scaling is used in App Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). App Engine Flex does not support instances. For more information, see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
string instance = 3;
getInstanceBytes
in interface AppEngineRoutingOrBuilder
public String getHost()
Output only. The host that the task is sent to. For more information, see [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). The host is constructed as: * `host = [application_domain_name]`</br> `| [service] + '.' + [application_domain_name]`</br> `| [version] + '.' + [application_domain_name]`</br> `| [version_dot_service]+ '.' + [application_domain_name]`</br> `| [instance] + '.' + [application_domain_name]`</br> `| [instance_dot_service] + '.' + [application_domain_name]`</br> `| [instance_dot_version] + '.' + [application_domain_name]`</br> `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` * `application_domain_name` = The domain name of the app, for example <app-id>.appspot.com, which is associated with the queue's project ID. Some tasks which were created using the App Engine SDK use a custom domain name. * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] * `version_dot_service =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] * `instance_dot_service =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] * `instance_dot_version =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] * `instance_dot_version_dot_service =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent to the service which is the default service when the task is attempted. If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent to the version which is the default version when the task is attempted. If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task will be sent to an instance which is available when the task is attempted. If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task will be sent to the default version of the default service when the task is attempted.
string host = 4;
getHost
in interface AppEngineRoutingOrBuilder
public ByteString getHostBytes()
Output only. The host that the task is sent to. For more information, see [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). The host is constructed as: * `host = [application_domain_name]`</br> `| [service] + '.' + [application_domain_name]`</br> `| [version] + '.' + [application_domain_name]`</br> `| [version_dot_service]+ '.' + [application_domain_name]`</br> `| [instance] + '.' + [application_domain_name]`</br> `| [instance_dot_service] + '.' + [application_domain_name]`</br> `| [instance_dot_version] + '.' + [application_domain_name]`</br> `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` * `application_domain_name` = The domain name of the app, for example <app-id>.appspot.com, which is associated with the queue's project ID. Some tasks which were created using the App Engine SDK use a custom domain name. * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] * `version_dot_service =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] * `instance_dot_service =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] * `instance_dot_version =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] * `instance_dot_version_dot_service =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent to the service which is the default service when the task is attempted. If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent to the version which is the default version when the task is attempted. If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task will be sent to an instance which is available when the task is attempted. If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task will be sent to the default version of the default service when the task is attempted.
string host = 4;
getHostBytes
in interface AppEngineRoutingOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AppEngineRouting parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AppEngineRouting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AppEngineRouting parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AppEngineRouting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AppEngineRouting parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AppEngineRouting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AppEngineRouting parseFrom(InputStream input) throws IOException
IOException
public static AppEngineRouting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AppEngineRouting parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AppEngineRouting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AppEngineRouting parseFrom(CodedInputStream input) throws IOException
IOException
public static AppEngineRouting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AppEngineRouting.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AppEngineRouting.Builder newBuilder()
public static AppEngineRouting.Builder newBuilder(AppEngineRouting prototype)
public AppEngineRouting.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AppEngineRouting.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AppEngineRouting getDefaultInstance()
public static Parser<AppEngineRouting> parser()
public Parser<AppEngineRouting> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AppEngineRouting getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.