Package com.google.cloud.tasks.v2beta2
Class AppEngineRouting
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.tasks.v2beta2.AppEngineRouting
- All Implemented Interfaces:
AppEngineRoutingOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AppEngineRouting
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AppEngineRoutingstatic final com.google.protobuf.Descriptors.DescriptorgetHost()Output only.com.google.protobuf.ByteStringOutput only.App instance.com.google.protobuf.ByteStringApp instance.com.google.protobuf.Parser<AppEngineRouting>intApp service.com.google.protobuf.ByteStringApp service.App version.com.google.protobuf.ByteStringApp version.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic AppEngineRouting.Builderstatic AppEngineRouting.BuildernewBuilder(AppEngineRouting prototype) protected AppEngineRouting.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AppEngineRoutingparseDelimitedFrom(InputStream input) static AppEngineRoutingparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AppEngineRoutingparseFrom(byte[] data) static AppEngineRoutingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AppEngineRoutingparseFrom(com.google.protobuf.ByteString data) static AppEngineRoutingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AppEngineRoutingparseFrom(com.google.protobuf.CodedInputStream input) static AppEngineRoutingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AppEngineRoutingparseFrom(InputStream input) static AppEngineRoutingparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AppEngineRoutingparseFrom(ByteBuffer data) static AppEngineRoutingparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AppEngineRouting>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
INSTANCE_FIELD_NUMBER
public static final int INSTANCE_FIELD_NUMBER- See Also:
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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;- Specified by:
getServicein interfaceAppEngineRoutingOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.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;- Specified by:
getServiceBytesin interfaceAppEngineRoutingOrBuilder- Returns:
- The bytes for service.
-
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;- Specified by:
getVersionin interfaceAppEngineRoutingOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.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;- Specified by:
getVersionBytesin interfaceAppEngineRoutingOrBuilder- Returns:
- The bytes for version.
-
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;- Specified by:
getInstancein interfaceAppEngineRoutingOrBuilder- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.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;- Specified by:
getInstanceBytesin interfaceAppEngineRoutingOrBuilder- Returns:
- The bytes for instance.
-
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;- Specified by:
getHostin interfaceAppEngineRoutingOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.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;- Specified by:
getHostBytesin interfaceAppEngineRoutingOrBuilder- Returns:
- The bytes for host.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AppEngineRouting parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppEngineRouting parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppEngineRouting parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppEngineRouting parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppEngineRouting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AppEngineRouting parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AppEngineRouting parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AppEngineRouting parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AppEngineRouting parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AppEngineRouting parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AppEngineRouting.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-