@java.lang.Override
  public com.google.protobuf.ByteString getServiceBytes() {
    java.lang.Object ref = service_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      service_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
<pre>
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.
</pre>

<code>string service = 1;</code>

@return The bytes for service.
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java