public sealed class AppEngineRouting : IMessage<AppEngineRouting>, IEquatable<AppEngineRouting>, IDeepCloneable<AppEngineRouting>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Tasks v2beta3 API class AppEngineRouting.
App Engine Routing.
Defines routing characteristics specific to App Engine - service, version,
and instance.
The host is constructed from the domain name of the app associated with
the queue's project ID (for example <app-id>.appspot.com), and the
[service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
[version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
[instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks
which were created using the App Engine SDK might have a custom domain
name.
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.v2beta3.AppEngineRouting.host] is
not parsable into
[service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
[version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
[instance][google.cloud.tasks.v2beta3.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.v2beta3.AppEngineRouting.host] is not parsable,
then [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
[version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
[instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the
empty string.
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.v2beta3.AppEngineRouting.host] is
not parsable into
[service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
[version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
[instance][google.cloud.tasks.v2beta3.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.v2beta3.AppEngineRouting.host] is not parsable,
then [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
[version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
[instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the
empty string.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAppEngineRouting\u003c/code\u003e class in the Google Cloud Tasks v2beta3 API defines routing characteristics for tasks sent to App Engine, specifying service, version, and instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows you to control task routing to specific App Engine services, versions, and instances, offering control over how tasks are handled within App Engine environments.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHost\u003c/code\u003e property represents the target host constructed from the app's domain name and routing details, although custom domain names may not be parsed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eService\u003c/code\u003e, \u003ccode\u003eVersion\u003c/code\u003e, and \u003ccode\u003eInstance\u003c/code\u003e properties specify the target App Engine service, version, and instance for task routing, defaulting to the default service, version, and an available instance if not specifically defined.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions available for the AppEngineRouting API, including the latest 3.0.0-beta07 version, as well as previous beta versions.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Tasks v2beta3 API - Class AppEngineRouting (3.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.AppEngineRouting)\n- [3.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/3.0.0-beta06/Google.Cloud.Tasks.V2Beta3.AppEngineRouting)\n- [2.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/2.0.0-beta08/Google.Cloud.Tasks.V2Beta3.AppEngineRouting) \n\n public sealed class AppEngineRouting : IMessage\u003cAppEngineRouting\u003e, IEquatable\u003cAppEngineRouting\u003e, IDeepCloneable\u003cAppEngineRouting\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Tasks v2beta3 API class AppEngineRouting.\n\nApp Engine Routing.\n\nDefines routing characteristics specific to App Engine - service, version,\nand instance.\n\nFor more information about services, versions, and instances see\n[An Overview of App\nEngine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),\n[Microservices Architecture on Google App\nEngine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),\n[App Engine Standard request\nrouting](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),\nand [App Engine Flex request\nrouting](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AppEngineRouting \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AppEngineRouting](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.AppEngineRouting), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AppEngineRouting](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.AppEngineRouting), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AppEngineRouting](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.AppEngineRouting), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Tasks.V2Beta3](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Tasks.V2Beta3.dll\n\nConstructors\n------------\n\n### AppEngineRouting()\n\n public AppEngineRouting()\n\n### AppEngineRouting(AppEngineRouting)\n\n public AppEngineRouting(AppEngineRouting other)\n\nProperties\n----------\n\n### Host\n\n public string Host { get; set; }\n\nOutput only. The host that the task is sent to.\n\nThe host is constructed from the domain name of the app associated with\nthe queue's project ID (for example \\\u003capp-id\\\u003e.appspot.com), and the\n\\[service\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.service\\],\n\\[version\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.version\\], and\n\\[instance\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.instance\\]. Tasks\nwhich were created using the App Engine SDK might have a custom domain\nname.\n\nFor more information, see\n[How Requests are\nRouted](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).\n\n### Instance\n\n public string Instance { get; set; }\n\nApp instance.\n\nBy default, the task is sent to an instance which is available when\nthe task is attempted.\n\nRequests can only be sent to a specific instance if\n[manual scaling is used in App Engine\nStandard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).\nApp Engine Flex does not support instances. For more information, see\n[App Engine Standard request\nrouting](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)\nand [App Engine Flex request\nrouting](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).\n\n### Service\n\n public string Service { get; set; }\n\nApp service.\n\nBy default, the task is sent to the service which is the default\nservice when the task is attempted.\n\nFor some queues or tasks which were created using the App Engine\nTask Queue API, \\[host\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.host\\] is\nnot parsable into\n\\[service\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.service\\],\n\\[version\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.version\\], and\n\\[instance\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.instance\\]. For\nexample, some tasks which were created using the App Engine SDK use a\ncustom domain name; custom domains are not parsed by Cloud Tasks. If\n\\[host\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.host\\] is not parsable,\nthen \\[service\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.service\\],\n\\[version\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.version\\], and\n\\[instance\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.instance\\] are the\nempty string.\n\n### Version\n\n public string Version { get; set; }\n\nApp version.\n\nBy default, the task is sent to the version which is the default\nversion when the task is attempted.\n\nFor some queues or tasks which were created using the App Engine\nTask Queue API, \\[host\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.host\\] is\nnot parsable into\n\\[service\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.service\\],\n\\[version\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.version\\], and\n\\[instance\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.instance\\]. For\nexample, some tasks which were created using the App Engine SDK use a\ncustom domain name; custom domains are not parsed by Cloud Tasks. If\n\\[host\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.host\\] is not parsable,\nthen \\[service\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.service\\],\n\\[version\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.version\\], and\n\\[instance\\]\\[google.cloud.tasks.v2beta3.AppEngineRouting.instance\\] are the\nempty string."]]