• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/tasks/v2beta2/target.proto
18 
19 package com.google.cloud.tasks.v2beta2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * App Engine Routing.
26  * Defines routing characteristics specific to App Engine - service, version,
27  * and instance.
28  * For more information about services, versions, and instances see
29  * [An Overview of App
30  * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
31  * [Microservices Architecture on Google App
32  * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
33  * [App Engine Standard request
34  * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
35  * and [App Engine Flex request
36  * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
37  * </pre>
38  *
39  * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineRouting}
40  */
41 public final class AppEngineRouting extends com.google.protobuf.GeneratedMessageV3
42     implements
43     // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.AppEngineRouting)
44     AppEngineRoutingOrBuilder {
45   private static final long serialVersionUID = 0L;
46   // Use AppEngineRouting.newBuilder() to construct.
AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)47   private AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
48     super(builder);
49   }
50 
AppEngineRouting()51   private AppEngineRouting() {
52     service_ = "";
53     version_ = "";
54     instance_ = "";
55     host_ = "";
56   }
57 
58   @java.lang.Override
59   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)60   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
61     return new AppEngineRouting();
62   }
63 
64   @java.lang.Override
getUnknownFields()65   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
66     return this.unknownFields;
67   }
68 
getDescriptor()69   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
70     return com.google.cloud.tasks.v2beta2.TargetProto
71         .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor;
72   }
73 
74   @java.lang.Override
75   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()76       internalGetFieldAccessorTable() {
77     return com.google.cloud.tasks.v2beta2.TargetProto
78         .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_fieldAccessorTable
79         .ensureFieldAccessorsInitialized(
80             com.google.cloud.tasks.v2beta2.AppEngineRouting.class,
81             com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder.class);
82   }
83 
84   public static final int SERVICE_FIELD_NUMBER = 1;
85 
86   @SuppressWarnings("serial")
87   private volatile java.lang.Object service_ = "";
88   /**
89    *
90    *
91    * <pre>
92    * App service.
93    * By default, the task is sent to the service which is the default
94    * service when the task is attempted.
95    * For some queues or tasks which were created using the App Engine
96    * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
97    * not parsable into
98    * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
99    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
100    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
101    * example, some tasks which were created using the App Engine SDK use a
102    * custom domain name; custom domains are not parsed by Cloud Tasks. If
103    * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
104    * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
105    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
106    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
107    * empty string.
108    * </pre>
109    *
110    * <code>string service = 1;</code>
111    *
112    * @return The service.
113    */
114   @java.lang.Override
getService()115   public java.lang.String getService() {
116     java.lang.Object ref = service_;
117     if (ref instanceof java.lang.String) {
118       return (java.lang.String) ref;
119     } else {
120       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
121       java.lang.String s = bs.toStringUtf8();
122       service_ = s;
123       return s;
124     }
125   }
126   /**
127    *
128    *
129    * <pre>
130    * App service.
131    * By default, the task is sent to the service which is the default
132    * service when the task is attempted.
133    * For some queues or tasks which were created using the App Engine
134    * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
135    * not parsable into
136    * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
137    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
138    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
139    * example, some tasks which were created using the App Engine SDK use a
140    * custom domain name; custom domains are not parsed by Cloud Tasks. If
141    * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
142    * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
143    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
144    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
145    * empty string.
146    * </pre>
147    *
148    * <code>string service = 1;</code>
149    *
150    * @return The bytes for service.
151    */
152   @java.lang.Override
getServiceBytes()153   public com.google.protobuf.ByteString getServiceBytes() {
154     java.lang.Object ref = service_;
155     if (ref instanceof java.lang.String) {
156       com.google.protobuf.ByteString b =
157           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
158       service_ = b;
159       return b;
160     } else {
161       return (com.google.protobuf.ByteString) ref;
162     }
163   }
164 
165   public static final int VERSION_FIELD_NUMBER = 2;
166 
167   @SuppressWarnings("serial")
168   private volatile java.lang.Object version_ = "";
169   /**
170    *
171    *
172    * <pre>
173    * App version.
174    * By default, the task is sent to the version which is the default
175    * version when the task is attempted.
176    * For some queues or tasks which were created using the App Engine
177    * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
178    * not parsable into
179    * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
180    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
181    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
182    * example, some tasks which were created using the App Engine SDK use a
183    * custom domain name; custom domains are not parsed by Cloud Tasks. If
184    * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
185    * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
186    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
187    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
188    * empty string.
189    * </pre>
190    *
191    * <code>string version = 2;</code>
192    *
193    * @return The version.
194    */
195   @java.lang.Override
getVersion()196   public java.lang.String getVersion() {
197     java.lang.Object ref = version_;
198     if (ref instanceof java.lang.String) {
199       return (java.lang.String) ref;
200     } else {
201       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
202       java.lang.String s = bs.toStringUtf8();
203       version_ = s;
204       return s;
205     }
206   }
207   /**
208    *
209    *
210    * <pre>
211    * App version.
212    * By default, the task is sent to the version which is the default
213    * version when the task is attempted.
214    * For some queues or tasks which were created using the App Engine
215    * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
216    * not parsable into
217    * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
218    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
219    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
220    * example, some tasks which were created using the App Engine SDK use a
221    * custom domain name; custom domains are not parsed by Cloud Tasks. If
222    * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
223    * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
224    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
225    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
226    * empty string.
227    * </pre>
228    *
229    * <code>string version = 2;</code>
230    *
231    * @return The bytes for version.
232    */
233   @java.lang.Override
getVersionBytes()234   public com.google.protobuf.ByteString getVersionBytes() {
235     java.lang.Object ref = version_;
236     if (ref instanceof java.lang.String) {
237       com.google.protobuf.ByteString b =
238           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
239       version_ = b;
240       return b;
241     } else {
242       return (com.google.protobuf.ByteString) ref;
243     }
244   }
245 
246   public static final int INSTANCE_FIELD_NUMBER = 3;
247 
248   @SuppressWarnings("serial")
249   private volatile java.lang.Object instance_ = "";
250   /**
251    *
252    *
253    * <pre>
254    * App instance.
255    * By default, the task is sent to an instance which is available when
256    * the task is attempted.
257    * Requests can only be sent to a specific instance if
258    * [manual scaling is used in App Engine
259    * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
260    * App Engine Flex does not support instances. For more information, see
261    * [App Engine Standard request
262    * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
263    * and [App Engine Flex request
264    * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
265    * </pre>
266    *
267    * <code>string instance = 3;</code>
268    *
269    * @return The instance.
270    */
271   @java.lang.Override
getInstance()272   public java.lang.String getInstance() {
273     java.lang.Object ref = instance_;
274     if (ref instanceof java.lang.String) {
275       return (java.lang.String) ref;
276     } else {
277       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
278       java.lang.String s = bs.toStringUtf8();
279       instance_ = s;
280       return s;
281     }
282   }
283   /**
284    *
285    *
286    * <pre>
287    * App instance.
288    * By default, the task is sent to an instance which is available when
289    * the task is attempted.
290    * Requests can only be sent to a specific instance if
291    * [manual scaling is used in App Engine
292    * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
293    * App Engine Flex does not support instances. For more information, see
294    * [App Engine Standard request
295    * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
296    * and [App Engine Flex request
297    * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
298    * </pre>
299    *
300    * <code>string instance = 3;</code>
301    *
302    * @return The bytes for instance.
303    */
304   @java.lang.Override
getInstanceBytes()305   public com.google.protobuf.ByteString getInstanceBytes() {
306     java.lang.Object ref = instance_;
307     if (ref instanceof java.lang.String) {
308       com.google.protobuf.ByteString b =
309           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
310       instance_ = b;
311       return b;
312     } else {
313       return (com.google.protobuf.ByteString) ref;
314     }
315   }
316 
317   public static final int HOST_FIELD_NUMBER = 4;
318 
319   @SuppressWarnings("serial")
320   private volatile java.lang.Object host_ = "";
321   /**
322    *
323    *
324    * <pre>
325    * Output only. The host that the task is sent to.
326    * For more information, see
327    * [How Requests are
328    * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
329    * The host is constructed as:
330    * * `host = [application_domain_name]`&lt;/br&gt;
331    *   `| [service] + '.' + [application_domain_name]`&lt;/br&gt;
332    *   `| [version] + '.' + [application_domain_name]`&lt;/br&gt;
333    *   `| [version_dot_service]+ '.' + [application_domain_name]`&lt;/br&gt;
334    *   `| [instance] + '.' + [application_domain_name]`&lt;/br&gt;
335    *   `| [instance_dot_service] + '.' + [application_domain_name]`&lt;/br&gt;
336    *   `| [instance_dot_version] + '.' + [application_domain_name]`&lt;/br&gt;
337    *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
338    * * `application_domain_name` = The domain name of the app, for
339    *   example &lt;app-id&gt;.appspot.com, which is associated with the
340    *   queue's project ID. Some tasks which were created using the App Engine
341    *   SDK use a custom domain name.
342    * * `service =`
343    * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
344    * * `version =`
345    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
346    * * `version_dot_service =`
347    *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
348    *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
349    * * `instance =`
350    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
351    * * `instance_dot_service =`
352    *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
353    *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
354    * * `instance_dot_version =`
355    *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
356    *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
357    * * `instance_dot_version_dot_service =`
358    *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
359    *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
360    *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
361    * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
362    * then the task will be sent to the service which is the default service when
363    * the task is attempted.
364    * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
365    * then the task will be sent to the version which is the default version when
366    * the task is attempted.
367    * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
368    * empty, then the task will be sent to an instance which is available when
369    * the task is attempted.
370    * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
371    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
372    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
373    * invalid, then the task will be sent to the default version of the default
374    * service when the task is attempted.
375    * </pre>
376    *
377    * <code>string host = 4;</code>
378    *
379    * @return The host.
380    */
381   @java.lang.Override
getHost()382   public java.lang.String getHost() {
383     java.lang.Object ref = host_;
384     if (ref instanceof java.lang.String) {
385       return (java.lang.String) ref;
386     } else {
387       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
388       java.lang.String s = bs.toStringUtf8();
389       host_ = s;
390       return s;
391     }
392   }
393   /**
394    *
395    *
396    * <pre>
397    * Output only. The host that the task is sent to.
398    * For more information, see
399    * [How Requests are
400    * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
401    * The host is constructed as:
402    * * `host = [application_domain_name]`&lt;/br&gt;
403    *   `| [service] + '.' + [application_domain_name]`&lt;/br&gt;
404    *   `| [version] + '.' + [application_domain_name]`&lt;/br&gt;
405    *   `| [version_dot_service]+ '.' + [application_domain_name]`&lt;/br&gt;
406    *   `| [instance] + '.' + [application_domain_name]`&lt;/br&gt;
407    *   `| [instance_dot_service] + '.' + [application_domain_name]`&lt;/br&gt;
408    *   `| [instance_dot_version] + '.' + [application_domain_name]`&lt;/br&gt;
409    *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
410    * * `application_domain_name` = The domain name of the app, for
411    *   example &lt;app-id&gt;.appspot.com, which is associated with the
412    *   queue's project ID. Some tasks which were created using the App Engine
413    *   SDK use a custom domain name.
414    * * `service =`
415    * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
416    * * `version =`
417    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
418    * * `version_dot_service =`
419    *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
420    *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
421    * * `instance =`
422    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
423    * * `instance_dot_service =`
424    *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
425    *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
426    * * `instance_dot_version =`
427    *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
428    *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
429    * * `instance_dot_version_dot_service =`
430    *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
431    *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
432    *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
433    * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
434    * then the task will be sent to the service which is the default service when
435    * the task is attempted.
436    * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
437    * then the task will be sent to the version which is the default version when
438    * the task is attempted.
439    * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
440    * empty, then the task will be sent to an instance which is available when
441    * the task is attempted.
442    * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
443    * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
444    * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
445    * invalid, then the task will be sent to the default version of the default
446    * service when the task is attempted.
447    * </pre>
448    *
449    * <code>string host = 4;</code>
450    *
451    * @return The bytes for host.
452    */
453   @java.lang.Override
getHostBytes()454   public com.google.protobuf.ByteString getHostBytes() {
455     java.lang.Object ref = host_;
456     if (ref instanceof java.lang.String) {
457       com.google.protobuf.ByteString b =
458           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
459       host_ = b;
460       return b;
461     } else {
462       return (com.google.protobuf.ByteString) ref;
463     }
464   }
465 
466   private byte memoizedIsInitialized = -1;
467 
468   @java.lang.Override
isInitialized()469   public final boolean isInitialized() {
470     byte isInitialized = memoizedIsInitialized;
471     if (isInitialized == 1) return true;
472     if (isInitialized == 0) return false;
473 
474     memoizedIsInitialized = 1;
475     return true;
476   }
477 
478   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)479   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
480     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
481       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_);
482     }
483     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
484       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
485     }
486     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
487       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
488     }
489     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
490       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_);
491     }
492     getUnknownFields().writeTo(output);
493   }
494 
495   @java.lang.Override
getSerializedSize()496   public int getSerializedSize() {
497     int size = memoizedSize;
498     if (size != -1) return size;
499 
500     size = 0;
501     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
502       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_);
503     }
504     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
505       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
506     }
507     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
508       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_);
509     }
510     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
511       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_);
512     }
513     size += getUnknownFields().getSerializedSize();
514     memoizedSize = size;
515     return size;
516   }
517 
518   @java.lang.Override
equals(final java.lang.Object obj)519   public boolean equals(final java.lang.Object obj) {
520     if (obj == this) {
521       return true;
522     }
523     if (!(obj instanceof com.google.cloud.tasks.v2beta2.AppEngineRouting)) {
524       return super.equals(obj);
525     }
526     com.google.cloud.tasks.v2beta2.AppEngineRouting other =
527         (com.google.cloud.tasks.v2beta2.AppEngineRouting) obj;
528 
529     if (!getService().equals(other.getService())) return false;
530     if (!getVersion().equals(other.getVersion())) return false;
531     if (!getInstance().equals(other.getInstance())) return false;
532     if (!getHost().equals(other.getHost())) return false;
533     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
534     return true;
535   }
536 
537   @java.lang.Override
hashCode()538   public int hashCode() {
539     if (memoizedHashCode != 0) {
540       return memoizedHashCode;
541     }
542     int hash = 41;
543     hash = (19 * hash) + getDescriptor().hashCode();
544     hash = (37 * hash) + SERVICE_FIELD_NUMBER;
545     hash = (53 * hash) + getService().hashCode();
546     hash = (37 * hash) + VERSION_FIELD_NUMBER;
547     hash = (53 * hash) + getVersion().hashCode();
548     hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
549     hash = (53 * hash) + getInstance().hashCode();
550     hash = (37 * hash) + HOST_FIELD_NUMBER;
551     hash = (53 * hash) + getHost().hashCode();
552     hash = (29 * hash) + getUnknownFields().hashCode();
553     memoizedHashCode = hash;
554     return hash;
555   }
556 
parseFrom(java.nio.ByteBuffer data)557   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(java.nio.ByteBuffer data)
558       throws com.google.protobuf.InvalidProtocolBufferException {
559     return PARSER.parseFrom(data);
560   }
561 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)562   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(
563       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
564       throws com.google.protobuf.InvalidProtocolBufferException {
565     return PARSER.parseFrom(data, extensionRegistry);
566   }
567 
parseFrom( com.google.protobuf.ByteString data)568   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(
569       com.google.protobuf.ByteString data)
570       throws com.google.protobuf.InvalidProtocolBufferException {
571     return PARSER.parseFrom(data);
572   }
573 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)574   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(
575       com.google.protobuf.ByteString data,
576       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
577       throws com.google.protobuf.InvalidProtocolBufferException {
578     return PARSER.parseFrom(data, extensionRegistry);
579   }
580 
parseFrom(byte[] data)581   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(byte[] data)
582       throws com.google.protobuf.InvalidProtocolBufferException {
583     return PARSER.parseFrom(data);
584   }
585 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)586   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(
587       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
588       throws com.google.protobuf.InvalidProtocolBufferException {
589     return PARSER.parseFrom(data, extensionRegistry);
590   }
591 
parseFrom(java.io.InputStream input)592   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(java.io.InputStream input)
593       throws java.io.IOException {
594     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
595   }
596 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)597   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(
598       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
599       throws java.io.IOException {
600     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
601         PARSER, input, extensionRegistry);
602   }
603 
parseDelimitedFrom( java.io.InputStream input)604   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseDelimitedFrom(
605       java.io.InputStream input) throws java.io.IOException {
606     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
607   }
608 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)609   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseDelimitedFrom(
610       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
611       throws java.io.IOException {
612     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
613         PARSER, input, extensionRegistry);
614   }
615 
parseFrom( com.google.protobuf.CodedInputStream input)616   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(
617       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
618     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
619   }
620 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)621   public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(
622       com.google.protobuf.CodedInputStream input,
623       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
624       throws java.io.IOException {
625     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
626         PARSER, input, extensionRegistry);
627   }
628 
629   @java.lang.Override
newBuilderForType()630   public Builder newBuilderForType() {
631     return newBuilder();
632   }
633 
newBuilder()634   public static Builder newBuilder() {
635     return DEFAULT_INSTANCE.toBuilder();
636   }
637 
newBuilder(com.google.cloud.tasks.v2beta2.AppEngineRouting prototype)638   public static Builder newBuilder(com.google.cloud.tasks.v2beta2.AppEngineRouting prototype) {
639     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
640   }
641 
642   @java.lang.Override
toBuilder()643   public Builder toBuilder() {
644     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
645   }
646 
647   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)648   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
649     Builder builder = new Builder(parent);
650     return builder;
651   }
652   /**
653    *
654    *
655    * <pre>
656    * App Engine Routing.
657    * Defines routing characteristics specific to App Engine - service, version,
658    * and instance.
659    * For more information about services, versions, and instances see
660    * [An Overview of App
661    * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
662    * [Microservices Architecture on Google App
663    * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
664    * [App Engine Standard request
665    * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
666    * and [App Engine Flex request
667    * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
668    * </pre>
669    *
670    * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineRouting}
671    */
672   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
673       implements
674       // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.AppEngineRouting)
675       com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder {
getDescriptor()676     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
677       return com.google.cloud.tasks.v2beta2.TargetProto
678           .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor;
679     }
680 
681     @java.lang.Override
682     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()683         internalGetFieldAccessorTable() {
684       return com.google.cloud.tasks.v2beta2.TargetProto
685           .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_fieldAccessorTable
686           .ensureFieldAccessorsInitialized(
687               com.google.cloud.tasks.v2beta2.AppEngineRouting.class,
688               com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder.class);
689     }
690 
691     // Construct using com.google.cloud.tasks.v2beta2.AppEngineRouting.newBuilder()
Builder()692     private Builder() {}
693 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)694     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
695       super(parent);
696     }
697 
698     @java.lang.Override
clear()699     public Builder clear() {
700       super.clear();
701       bitField0_ = 0;
702       service_ = "";
703       version_ = "";
704       instance_ = "";
705       host_ = "";
706       return this;
707     }
708 
709     @java.lang.Override
getDescriptorForType()710     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
711       return com.google.cloud.tasks.v2beta2.TargetProto
712           .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor;
713     }
714 
715     @java.lang.Override
getDefaultInstanceForType()716     public com.google.cloud.tasks.v2beta2.AppEngineRouting getDefaultInstanceForType() {
717       return com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance();
718     }
719 
720     @java.lang.Override
build()721     public com.google.cloud.tasks.v2beta2.AppEngineRouting build() {
722       com.google.cloud.tasks.v2beta2.AppEngineRouting result = buildPartial();
723       if (!result.isInitialized()) {
724         throw newUninitializedMessageException(result);
725       }
726       return result;
727     }
728 
729     @java.lang.Override
buildPartial()730     public com.google.cloud.tasks.v2beta2.AppEngineRouting buildPartial() {
731       com.google.cloud.tasks.v2beta2.AppEngineRouting result =
732           new com.google.cloud.tasks.v2beta2.AppEngineRouting(this);
733       if (bitField0_ != 0) {
734         buildPartial0(result);
735       }
736       onBuilt();
737       return result;
738     }
739 
buildPartial0(com.google.cloud.tasks.v2beta2.AppEngineRouting result)740     private void buildPartial0(com.google.cloud.tasks.v2beta2.AppEngineRouting result) {
741       int from_bitField0_ = bitField0_;
742       if (((from_bitField0_ & 0x00000001) != 0)) {
743         result.service_ = service_;
744       }
745       if (((from_bitField0_ & 0x00000002) != 0)) {
746         result.version_ = version_;
747       }
748       if (((from_bitField0_ & 0x00000004) != 0)) {
749         result.instance_ = instance_;
750       }
751       if (((from_bitField0_ & 0x00000008) != 0)) {
752         result.host_ = host_;
753       }
754     }
755 
756     @java.lang.Override
clone()757     public Builder clone() {
758       return super.clone();
759     }
760 
761     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)762     public Builder setField(
763         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
764       return super.setField(field, value);
765     }
766 
767     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)768     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
769       return super.clearField(field);
770     }
771 
772     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)773     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
774       return super.clearOneof(oneof);
775     }
776 
777     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)778     public Builder setRepeatedField(
779         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
780       return super.setRepeatedField(field, index, value);
781     }
782 
783     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)784     public Builder addRepeatedField(
785         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
786       return super.addRepeatedField(field, value);
787     }
788 
789     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)790     public Builder mergeFrom(com.google.protobuf.Message other) {
791       if (other instanceof com.google.cloud.tasks.v2beta2.AppEngineRouting) {
792         return mergeFrom((com.google.cloud.tasks.v2beta2.AppEngineRouting) other);
793       } else {
794         super.mergeFrom(other);
795         return this;
796       }
797     }
798 
mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineRouting other)799     public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineRouting other) {
800       if (other == com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance())
801         return this;
802       if (!other.getService().isEmpty()) {
803         service_ = other.service_;
804         bitField0_ |= 0x00000001;
805         onChanged();
806       }
807       if (!other.getVersion().isEmpty()) {
808         version_ = other.version_;
809         bitField0_ |= 0x00000002;
810         onChanged();
811       }
812       if (!other.getInstance().isEmpty()) {
813         instance_ = other.instance_;
814         bitField0_ |= 0x00000004;
815         onChanged();
816       }
817       if (!other.getHost().isEmpty()) {
818         host_ = other.host_;
819         bitField0_ |= 0x00000008;
820         onChanged();
821       }
822       this.mergeUnknownFields(other.getUnknownFields());
823       onChanged();
824       return this;
825     }
826 
827     @java.lang.Override
isInitialized()828     public final boolean isInitialized() {
829       return true;
830     }
831 
832     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)833     public Builder mergeFrom(
834         com.google.protobuf.CodedInputStream input,
835         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
836         throws java.io.IOException {
837       if (extensionRegistry == null) {
838         throw new java.lang.NullPointerException();
839       }
840       try {
841         boolean done = false;
842         while (!done) {
843           int tag = input.readTag();
844           switch (tag) {
845             case 0:
846               done = true;
847               break;
848             case 10:
849               {
850                 service_ = input.readStringRequireUtf8();
851                 bitField0_ |= 0x00000001;
852                 break;
853               } // case 10
854             case 18:
855               {
856                 version_ = input.readStringRequireUtf8();
857                 bitField0_ |= 0x00000002;
858                 break;
859               } // case 18
860             case 26:
861               {
862                 instance_ = input.readStringRequireUtf8();
863                 bitField0_ |= 0x00000004;
864                 break;
865               } // case 26
866             case 34:
867               {
868                 host_ = input.readStringRequireUtf8();
869                 bitField0_ |= 0x00000008;
870                 break;
871               } // case 34
872             default:
873               {
874                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
875                   done = true; // was an endgroup tag
876                 }
877                 break;
878               } // default:
879           } // switch (tag)
880         } // while (!done)
881       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
882         throw e.unwrapIOException();
883       } finally {
884         onChanged();
885       } // finally
886       return this;
887     }
888 
889     private int bitField0_;
890 
891     private java.lang.Object service_ = "";
892     /**
893      *
894      *
895      * <pre>
896      * App service.
897      * By default, the task is sent to the service which is the default
898      * service when the task is attempted.
899      * For some queues or tasks which were created using the App Engine
900      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
901      * not parsable into
902      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
903      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
904      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
905      * example, some tasks which were created using the App Engine SDK use a
906      * custom domain name; custom domains are not parsed by Cloud Tasks. If
907      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
908      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
909      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
910      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
911      * empty string.
912      * </pre>
913      *
914      * <code>string service = 1;</code>
915      *
916      * @return The service.
917      */
getService()918     public java.lang.String getService() {
919       java.lang.Object ref = service_;
920       if (!(ref instanceof java.lang.String)) {
921         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
922         java.lang.String s = bs.toStringUtf8();
923         service_ = s;
924         return s;
925       } else {
926         return (java.lang.String) ref;
927       }
928     }
929     /**
930      *
931      *
932      * <pre>
933      * App service.
934      * By default, the task is sent to the service which is the default
935      * service when the task is attempted.
936      * For some queues or tasks which were created using the App Engine
937      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
938      * not parsable into
939      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
940      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
941      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
942      * example, some tasks which were created using the App Engine SDK use a
943      * custom domain name; custom domains are not parsed by Cloud Tasks. If
944      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
945      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
946      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
947      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
948      * empty string.
949      * </pre>
950      *
951      * <code>string service = 1;</code>
952      *
953      * @return The bytes for service.
954      */
getServiceBytes()955     public com.google.protobuf.ByteString getServiceBytes() {
956       java.lang.Object ref = service_;
957       if (ref instanceof String) {
958         com.google.protobuf.ByteString b =
959             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
960         service_ = b;
961         return b;
962       } else {
963         return (com.google.protobuf.ByteString) ref;
964       }
965     }
966     /**
967      *
968      *
969      * <pre>
970      * App service.
971      * By default, the task is sent to the service which is the default
972      * service when the task is attempted.
973      * For some queues or tasks which were created using the App Engine
974      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
975      * not parsable into
976      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
977      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
978      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
979      * example, some tasks which were created using the App Engine SDK use a
980      * custom domain name; custom domains are not parsed by Cloud Tasks. If
981      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
982      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
983      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
984      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
985      * empty string.
986      * </pre>
987      *
988      * <code>string service = 1;</code>
989      *
990      * @param value The service to set.
991      * @return This builder for chaining.
992      */
setService(java.lang.String value)993     public Builder setService(java.lang.String value) {
994       if (value == null) {
995         throw new NullPointerException();
996       }
997       service_ = value;
998       bitField0_ |= 0x00000001;
999       onChanged();
1000       return this;
1001     }
1002     /**
1003      *
1004      *
1005      * <pre>
1006      * App service.
1007      * By default, the task is sent to the service which is the default
1008      * service when the task is attempted.
1009      * For some queues or tasks which were created using the App Engine
1010      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
1011      * not parsable into
1012      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1013      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1014      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
1015      * example, some tasks which were created using the App Engine SDK use a
1016      * custom domain name; custom domains are not parsed by Cloud Tasks. If
1017      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
1018      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1019      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1020      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
1021      * empty string.
1022      * </pre>
1023      *
1024      * <code>string service = 1;</code>
1025      *
1026      * @return This builder for chaining.
1027      */
clearService()1028     public Builder clearService() {
1029       service_ = getDefaultInstance().getService();
1030       bitField0_ = (bitField0_ & ~0x00000001);
1031       onChanged();
1032       return this;
1033     }
1034     /**
1035      *
1036      *
1037      * <pre>
1038      * App service.
1039      * By default, the task is sent to the service which is the default
1040      * service when the task is attempted.
1041      * For some queues or tasks which were created using the App Engine
1042      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
1043      * not parsable into
1044      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1045      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1046      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
1047      * example, some tasks which were created using the App Engine SDK use a
1048      * custom domain name; custom domains are not parsed by Cloud Tasks. If
1049      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
1050      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1051      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1052      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
1053      * empty string.
1054      * </pre>
1055      *
1056      * <code>string service = 1;</code>
1057      *
1058      * @param value The bytes for service to set.
1059      * @return This builder for chaining.
1060      */
setServiceBytes(com.google.protobuf.ByteString value)1061     public Builder setServiceBytes(com.google.protobuf.ByteString value) {
1062       if (value == null) {
1063         throw new NullPointerException();
1064       }
1065       checkByteStringIsUtf8(value);
1066       service_ = value;
1067       bitField0_ |= 0x00000001;
1068       onChanged();
1069       return this;
1070     }
1071 
1072     private java.lang.Object version_ = "";
1073     /**
1074      *
1075      *
1076      * <pre>
1077      * App version.
1078      * By default, the task is sent to the version which is the default
1079      * version when the task is attempted.
1080      * For some queues or tasks which were created using the App Engine
1081      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
1082      * not parsable into
1083      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1084      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1085      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
1086      * example, some tasks which were created using the App Engine SDK use a
1087      * custom domain name; custom domains are not parsed by Cloud Tasks. If
1088      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
1089      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1090      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1091      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
1092      * empty string.
1093      * </pre>
1094      *
1095      * <code>string version = 2;</code>
1096      *
1097      * @return The version.
1098      */
getVersion()1099     public java.lang.String getVersion() {
1100       java.lang.Object ref = version_;
1101       if (!(ref instanceof java.lang.String)) {
1102         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1103         java.lang.String s = bs.toStringUtf8();
1104         version_ = s;
1105         return s;
1106       } else {
1107         return (java.lang.String) ref;
1108       }
1109     }
1110     /**
1111      *
1112      *
1113      * <pre>
1114      * App version.
1115      * By default, the task is sent to the version which is the default
1116      * version when the task is attempted.
1117      * For some queues or tasks which were created using the App Engine
1118      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
1119      * not parsable into
1120      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1121      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1122      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
1123      * example, some tasks which were created using the App Engine SDK use a
1124      * custom domain name; custom domains are not parsed by Cloud Tasks. If
1125      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
1126      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1127      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1128      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
1129      * empty string.
1130      * </pre>
1131      *
1132      * <code>string version = 2;</code>
1133      *
1134      * @return The bytes for version.
1135      */
getVersionBytes()1136     public com.google.protobuf.ByteString getVersionBytes() {
1137       java.lang.Object ref = version_;
1138       if (ref instanceof String) {
1139         com.google.protobuf.ByteString b =
1140             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1141         version_ = b;
1142         return b;
1143       } else {
1144         return (com.google.protobuf.ByteString) ref;
1145       }
1146     }
1147     /**
1148      *
1149      *
1150      * <pre>
1151      * App version.
1152      * By default, the task is sent to the version which is the default
1153      * version when the task is attempted.
1154      * For some queues or tasks which were created using the App Engine
1155      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
1156      * not parsable into
1157      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1158      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1159      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
1160      * example, some tasks which were created using the App Engine SDK use a
1161      * custom domain name; custom domains are not parsed by Cloud Tasks. If
1162      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
1163      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1164      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1165      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
1166      * empty string.
1167      * </pre>
1168      *
1169      * <code>string version = 2;</code>
1170      *
1171      * @param value The version to set.
1172      * @return This builder for chaining.
1173      */
setVersion(java.lang.String value)1174     public Builder setVersion(java.lang.String value) {
1175       if (value == null) {
1176         throw new NullPointerException();
1177       }
1178       version_ = value;
1179       bitField0_ |= 0x00000002;
1180       onChanged();
1181       return this;
1182     }
1183     /**
1184      *
1185      *
1186      * <pre>
1187      * App version.
1188      * By default, the task is sent to the version which is the default
1189      * version when the task is attempted.
1190      * For some queues or tasks which were created using the App Engine
1191      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
1192      * not parsable into
1193      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1194      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1195      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
1196      * example, some tasks which were created using the App Engine SDK use a
1197      * custom domain name; custom domains are not parsed by Cloud Tasks. If
1198      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
1199      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1200      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1201      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
1202      * empty string.
1203      * </pre>
1204      *
1205      * <code>string version = 2;</code>
1206      *
1207      * @return This builder for chaining.
1208      */
clearVersion()1209     public Builder clearVersion() {
1210       version_ = getDefaultInstance().getVersion();
1211       bitField0_ = (bitField0_ & ~0x00000002);
1212       onChanged();
1213       return this;
1214     }
1215     /**
1216      *
1217      *
1218      * <pre>
1219      * App version.
1220      * By default, the task is sent to the version which is the default
1221      * version when the task is attempted.
1222      * For some queues or tasks which were created using the App Engine
1223      * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
1224      * not parsable into
1225      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1226      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1227      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
1228      * example, some tasks which were created using the App Engine SDK use a
1229      * custom domain name; custom domains are not parsed by Cloud Tasks. If
1230      * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
1231      * then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1232      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
1233      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
1234      * empty string.
1235      * </pre>
1236      *
1237      * <code>string version = 2;</code>
1238      *
1239      * @param value The bytes for version to set.
1240      * @return This builder for chaining.
1241      */
setVersionBytes(com.google.protobuf.ByteString value)1242     public Builder setVersionBytes(com.google.protobuf.ByteString value) {
1243       if (value == null) {
1244         throw new NullPointerException();
1245       }
1246       checkByteStringIsUtf8(value);
1247       version_ = value;
1248       bitField0_ |= 0x00000002;
1249       onChanged();
1250       return this;
1251     }
1252 
1253     private java.lang.Object instance_ = "";
1254     /**
1255      *
1256      *
1257      * <pre>
1258      * App instance.
1259      * By default, the task is sent to an instance which is available when
1260      * the task is attempted.
1261      * Requests can only be sent to a specific instance if
1262      * [manual scaling is used in App Engine
1263      * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
1264      * App Engine Flex does not support instances. For more information, see
1265      * [App Engine Standard request
1266      * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
1267      * and [App Engine Flex request
1268      * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
1269      * </pre>
1270      *
1271      * <code>string instance = 3;</code>
1272      *
1273      * @return The instance.
1274      */
getInstance()1275     public java.lang.String getInstance() {
1276       java.lang.Object ref = instance_;
1277       if (!(ref instanceof java.lang.String)) {
1278         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1279         java.lang.String s = bs.toStringUtf8();
1280         instance_ = s;
1281         return s;
1282       } else {
1283         return (java.lang.String) ref;
1284       }
1285     }
1286     /**
1287      *
1288      *
1289      * <pre>
1290      * App instance.
1291      * By default, the task is sent to an instance which is available when
1292      * the task is attempted.
1293      * Requests can only be sent to a specific instance if
1294      * [manual scaling is used in App Engine
1295      * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
1296      * App Engine Flex does not support instances. For more information, see
1297      * [App Engine Standard request
1298      * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
1299      * and [App Engine Flex request
1300      * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
1301      * </pre>
1302      *
1303      * <code>string instance = 3;</code>
1304      *
1305      * @return The bytes for instance.
1306      */
getInstanceBytes()1307     public com.google.protobuf.ByteString getInstanceBytes() {
1308       java.lang.Object ref = instance_;
1309       if (ref instanceof String) {
1310         com.google.protobuf.ByteString b =
1311             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1312         instance_ = b;
1313         return b;
1314       } else {
1315         return (com.google.protobuf.ByteString) ref;
1316       }
1317     }
1318     /**
1319      *
1320      *
1321      * <pre>
1322      * App instance.
1323      * By default, the task is sent to an instance which is available when
1324      * the task is attempted.
1325      * Requests can only be sent to a specific instance if
1326      * [manual scaling is used in App Engine
1327      * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
1328      * App Engine Flex does not support instances. For more information, see
1329      * [App Engine Standard request
1330      * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
1331      * and [App Engine Flex request
1332      * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
1333      * </pre>
1334      *
1335      * <code>string instance = 3;</code>
1336      *
1337      * @param value The instance to set.
1338      * @return This builder for chaining.
1339      */
setInstance(java.lang.String value)1340     public Builder setInstance(java.lang.String value) {
1341       if (value == null) {
1342         throw new NullPointerException();
1343       }
1344       instance_ = value;
1345       bitField0_ |= 0x00000004;
1346       onChanged();
1347       return this;
1348     }
1349     /**
1350      *
1351      *
1352      * <pre>
1353      * App instance.
1354      * By default, the task is sent to an instance which is available when
1355      * the task is attempted.
1356      * Requests can only be sent to a specific instance if
1357      * [manual scaling is used in App Engine
1358      * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
1359      * App Engine Flex does not support instances. For more information, see
1360      * [App Engine Standard request
1361      * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
1362      * and [App Engine Flex request
1363      * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
1364      * </pre>
1365      *
1366      * <code>string instance = 3;</code>
1367      *
1368      * @return This builder for chaining.
1369      */
clearInstance()1370     public Builder clearInstance() {
1371       instance_ = getDefaultInstance().getInstance();
1372       bitField0_ = (bitField0_ & ~0x00000004);
1373       onChanged();
1374       return this;
1375     }
1376     /**
1377      *
1378      *
1379      * <pre>
1380      * App instance.
1381      * By default, the task is sent to an instance which is available when
1382      * the task is attempted.
1383      * Requests can only be sent to a specific instance if
1384      * [manual scaling is used in App Engine
1385      * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
1386      * App Engine Flex does not support instances. For more information, see
1387      * [App Engine Standard request
1388      * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
1389      * and [App Engine Flex request
1390      * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
1391      * </pre>
1392      *
1393      * <code>string instance = 3;</code>
1394      *
1395      * @param value The bytes for instance to set.
1396      * @return This builder for chaining.
1397      */
setInstanceBytes(com.google.protobuf.ByteString value)1398     public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
1399       if (value == null) {
1400         throw new NullPointerException();
1401       }
1402       checkByteStringIsUtf8(value);
1403       instance_ = value;
1404       bitField0_ |= 0x00000004;
1405       onChanged();
1406       return this;
1407     }
1408 
1409     private java.lang.Object host_ = "";
1410     /**
1411      *
1412      *
1413      * <pre>
1414      * Output only. The host that the task is sent to.
1415      * For more information, see
1416      * [How Requests are
1417      * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
1418      * The host is constructed as:
1419      * * `host = [application_domain_name]`&lt;/br&gt;
1420      *   `| [service] + '.' + [application_domain_name]`&lt;/br&gt;
1421      *   `| [version] + '.' + [application_domain_name]`&lt;/br&gt;
1422      *   `| [version_dot_service]+ '.' + [application_domain_name]`&lt;/br&gt;
1423      *   `| [instance] + '.' + [application_domain_name]`&lt;/br&gt;
1424      *   `| [instance_dot_service] + '.' + [application_domain_name]`&lt;/br&gt;
1425      *   `| [instance_dot_version] + '.' + [application_domain_name]`&lt;/br&gt;
1426      *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
1427      * * `application_domain_name` = The domain name of the app, for
1428      *   example &lt;app-id&gt;.appspot.com, which is associated with the
1429      *   queue's project ID. Some tasks which were created using the App Engine
1430      *   SDK use a custom domain name.
1431      * * `service =`
1432      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1433      * * `version =`
1434      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1435      * * `version_dot_service =`
1436      *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
1437      *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1438      * * `instance =`
1439      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
1440      * * `instance_dot_service =`
1441      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1442      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1443      * * `instance_dot_version =`
1444      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1445      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1446      * * `instance_dot_version_dot_service =`
1447      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1448      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
1449      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1450      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
1451      * then the task will be sent to the service which is the default service when
1452      * the task is attempted.
1453      * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
1454      * then the task will be sent to the version which is the default version when
1455      * the task is attempted.
1456      * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1457      * empty, then the task will be sent to an instance which is available when
1458      * the task is attempted.
1459      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1460      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
1461      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1462      * invalid, then the task will be sent to the default version of the default
1463      * service when the task is attempted.
1464      * </pre>
1465      *
1466      * <code>string host = 4;</code>
1467      *
1468      * @return The host.
1469      */
getHost()1470     public java.lang.String getHost() {
1471       java.lang.Object ref = host_;
1472       if (!(ref instanceof java.lang.String)) {
1473         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1474         java.lang.String s = bs.toStringUtf8();
1475         host_ = s;
1476         return s;
1477       } else {
1478         return (java.lang.String) ref;
1479       }
1480     }
1481     /**
1482      *
1483      *
1484      * <pre>
1485      * Output only. The host that the task is sent to.
1486      * For more information, see
1487      * [How Requests are
1488      * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
1489      * The host is constructed as:
1490      * * `host = [application_domain_name]`&lt;/br&gt;
1491      *   `| [service] + '.' + [application_domain_name]`&lt;/br&gt;
1492      *   `| [version] + '.' + [application_domain_name]`&lt;/br&gt;
1493      *   `| [version_dot_service]+ '.' + [application_domain_name]`&lt;/br&gt;
1494      *   `| [instance] + '.' + [application_domain_name]`&lt;/br&gt;
1495      *   `| [instance_dot_service] + '.' + [application_domain_name]`&lt;/br&gt;
1496      *   `| [instance_dot_version] + '.' + [application_domain_name]`&lt;/br&gt;
1497      *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
1498      * * `application_domain_name` = The domain name of the app, for
1499      *   example &lt;app-id&gt;.appspot.com, which is associated with the
1500      *   queue's project ID. Some tasks which were created using the App Engine
1501      *   SDK use a custom domain name.
1502      * * `service =`
1503      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1504      * * `version =`
1505      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1506      * * `version_dot_service =`
1507      *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
1508      *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1509      * * `instance =`
1510      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
1511      * * `instance_dot_service =`
1512      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1513      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1514      * * `instance_dot_version =`
1515      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1516      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1517      * * `instance_dot_version_dot_service =`
1518      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1519      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
1520      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1521      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
1522      * then the task will be sent to the service which is the default service when
1523      * the task is attempted.
1524      * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
1525      * then the task will be sent to the version which is the default version when
1526      * the task is attempted.
1527      * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1528      * empty, then the task will be sent to an instance which is available when
1529      * the task is attempted.
1530      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1531      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
1532      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1533      * invalid, then the task will be sent to the default version of the default
1534      * service when the task is attempted.
1535      * </pre>
1536      *
1537      * <code>string host = 4;</code>
1538      *
1539      * @return The bytes for host.
1540      */
getHostBytes()1541     public com.google.protobuf.ByteString getHostBytes() {
1542       java.lang.Object ref = host_;
1543       if (ref instanceof String) {
1544         com.google.protobuf.ByteString b =
1545             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1546         host_ = b;
1547         return b;
1548       } else {
1549         return (com.google.protobuf.ByteString) ref;
1550       }
1551     }
1552     /**
1553      *
1554      *
1555      * <pre>
1556      * Output only. The host that the task is sent to.
1557      * For more information, see
1558      * [How Requests are
1559      * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
1560      * The host is constructed as:
1561      * * `host = [application_domain_name]`&lt;/br&gt;
1562      *   `| [service] + '.' + [application_domain_name]`&lt;/br&gt;
1563      *   `| [version] + '.' + [application_domain_name]`&lt;/br&gt;
1564      *   `| [version_dot_service]+ '.' + [application_domain_name]`&lt;/br&gt;
1565      *   `| [instance] + '.' + [application_domain_name]`&lt;/br&gt;
1566      *   `| [instance_dot_service] + '.' + [application_domain_name]`&lt;/br&gt;
1567      *   `| [instance_dot_version] + '.' + [application_domain_name]`&lt;/br&gt;
1568      *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
1569      * * `application_domain_name` = The domain name of the app, for
1570      *   example &lt;app-id&gt;.appspot.com, which is associated with the
1571      *   queue's project ID. Some tasks which were created using the App Engine
1572      *   SDK use a custom domain name.
1573      * * `service =`
1574      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1575      * * `version =`
1576      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1577      * * `version_dot_service =`
1578      *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
1579      *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1580      * * `instance =`
1581      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
1582      * * `instance_dot_service =`
1583      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1584      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1585      * * `instance_dot_version =`
1586      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1587      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1588      * * `instance_dot_version_dot_service =`
1589      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1590      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
1591      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1592      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
1593      * then the task will be sent to the service which is the default service when
1594      * the task is attempted.
1595      * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
1596      * then the task will be sent to the version which is the default version when
1597      * the task is attempted.
1598      * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1599      * empty, then the task will be sent to an instance which is available when
1600      * the task is attempted.
1601      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1602      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
1603      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1604      * invalid, then the task will be sent to the default version of the default
1605      * service when the task is attempted.
1606      * </pre>
1607      *
1608      * <code>string host = 4;</code>
1609      *
1610      * @param value The host to set.
1611      * @return This builder for chaining.
1612      */
setHost(java.lang.String value)1613     public Builder setHost(java.lang.String value) {
1614       if (value == null) {
1615         throw new NullPointerException();
1616       }
1617       host_ = value;
1618       bitField0_ |= 0x00000008;
1619       onChanged();
1620       return this;
1621     }
1622     /**
1623      *
1624      *
1625      * <pre>
1626      * Output only. The host that the task is sent to.
1627      * For more information, see
1628      * [How Requests are
1629      * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
1630      * The host is constructed as:
1631      * * `host = [application_domain_name]`&lt;/br&gt;
1632      *   `| [service] + '.' + [application_domain_name]`&lt;/br&gt;
1633      *   `| [version] + '.' + [application_domain_name]`&lt;/br&gt;
1634      *   `| [version_dot_service]+ '.' + [application_domain_name]`&lt;/br&gt;
1635      *   `| [instance] + '.' + [application_domain_name]`&lt;/br&gt;
1636      *   `| [instance_dot_service] + '.' + [application_domain_name]`&lt;/br&gt;
1637      *   `| [instance_dot_version] + '.' + [application_domain_name]`&lt;/br&gt;
1638      *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
1639      * * `application_domain_name` = The domain name of the app, for
1640      *   example &lt;app-id&gt;.appspot.com, which is associated with the
1641      *   queue's project ID. Some tasks which were created using the App Engine
1642      *   SDK use a custom domain name.
1643      * * `service =`
1644      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1645      * * `version =`
1646      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1647      * * `version_dot_service =`
1648      *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
1649      *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1650      * * `instance =`
1651      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
1652      * * `instance_dot_service =`
1653      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1654      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1655      * * `instance_dot_version =`
1656      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1657      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1658      * * `instance_dot_version_dot_service =`
1659      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1660      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
1661      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1662      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
1663      * then the task will be sent to the service which is the default service when
1664      * the task is attempted.
1665      * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
1666      * then the task will be sent to the version which is the default version when
1667      * the task is attempted.
1668      * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1669      * empty, then the task will be sent to an instance which is available when
1670      * the task is attempted.
1671      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1672      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
1673      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1674      * invalid, then the task will be sent to the default version of the default
1675      * service when the task is attempted.
1676      * </pre>
1677      *
1678      * <code>string host = 4;</code>
1679      *
1680      * @return This builder for chaining.
1681      */
clearHost()1682     public Builder clearHost() {
1683       host_ = getDefaultInstance().getHost();
1684       bitField0_ = (bitField0_ & ~0x00000008);
1685       onChanged();
1686       return this;
1687     }
1688     /**
1689      *
1690      *
1691      * <pre>
1692      * Output only. The host that the task is sent to.
1693      * For more information, see
1694      * [How Requests are
1695      * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
1696      * The host is constructed as:
1697      * * `host = [application_domain_name]`&lt;/br&gt;
1698      *   `| [service] + '.' + [application_domain_name]`&lt;/br&gt;
1699      *   `| [version] + '.' + [application_domain_name]`&lt;/br&gt;
1700      *   `| [version_dot_service]+ '.' + [application_domain_name]`&lt;/br&gt;
1701      *   `| [instance] + '.' + [application_domain_name]`&lt;/br&gt;
1702      *   `| [instance_dot_service] + '.' + [application_domain_name]`&lt;/br&gt;
1703      *   `| [instance_dot_version] + '.' + [application_domain_name]`&lt;/br&gt;
1704      *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
1705      * * `application_domain_name` = The domain name of the app, for
1706      *   example &lt;app-id&gt;.appspot.com, which is associated with the
1707      *   queue's project ID. Some tasks which were created using the App Engine
1708      *   SDK use a custom domain name.
1709      * * `service =`
1710      * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1711      * * `version =`
1712      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1713      * * `version_dot_service =`
1714      *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
1715      *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1716      * * `instance =`
1717      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
1718      * * `instance_dot_service =`
1719      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1720      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1721      * * `instance_dot_version =`
1722      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1723      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
1724      * * `instance_dot_version_dot_service =`
1725      *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
1726      *   +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
1727      *   +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
1728      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
1729      * then the task will be sent to the service which is the default service when
1730      * the task is attempted.
1731      * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
1732      * then the task will be sent to the version which is the default version when
1733      * the task is attempted.
1734      * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1735      * empty, then the task will be sent to an instance which is available when
1736      * the task is attempted.
1737      * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
1738      * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
1739      * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
1740      * invalid, then the task will be sent to the default version of the default
1741      * service when the task is attempted.
1742      * </pre>
1743      *
1744      * <code>string host = 4;</code>
1745      *
1746      * @param value The bytes for host to set.
1747      * @return This builder for chaining.
1748      */
setHostBytes(com.google.protobuf.ByteString value)1749     public Builder setHostBytes(com.google.protobuf.ByteString value) {
1750       if (value == null) {
1751         throw new NullPointerException();
1752       }
1753       checkByteStringIsUtf8(value);
1754       host_ = value;
1755       bitField0_ |= 0x00000008;
1756       onChanged();
1757       return this;
1758     }
1759 
1760     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1761     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1762       return super.setUnknownFields(unknownFields);
1763     }
1764 
1765     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1766     public final Builder mergeUnknownFields(
1767         final com.google.protobuf.UnknownFieldSet unknownFields) {
1768       return super.mergeUnknownFields(unknownFields);
1769     }
1770 
1771     // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.AppEngineRouting)
1772   }
1773 
1774   // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineRouting)
1775   private static final com.google.cloud.tasks.v2beta2.AppEngineRouting DEFAULT_INSTANCE;
1776 
1777   static {
1778     DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.AppEngineRouting();
1779   }
1780 
getDefaultInstance()1781   public static com.google.cloud.tasks.v2beta2.AppEngineRouting getDefaultInstance() {
1782     return DEFAULT_INSTANCE;
1783   }
1784 
1785   private static final com.google.protobuf.Parser<AppEngineRouting> PARSER =
1786       new com.google.protobuf.AbstractParser<AppEngineRouting>() {
1787         @java.lang.Override
1788         public AppEngineRouting parsePartialFrom(
1789             com.google.protobuf.CodedInputStream input,
1790             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1791             throws com.google.protobuf.InvalidProtocolBufferException {
1792           Builder builder = newBuilder();
1793           try {
1794             builder.mergeFrom(input, extensionRegistry);
1795           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1796             throw e.setUnfinishedMessage(builder.buildPartial());
1797           } catch (com.google.protobuf.UninitializedMessageException e) {
1798             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1799           } catch (java.io.IOException e) {
1800             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1801                 .setUnfinishedMessage(builder.buildPartial());
1802           }
1803           return builder.buildPartial();
1804         }
1805       };
1806 
parser()1807   public static com.google.protobuf.Parser<AppEngineRouting> parser() {
1808     return PARSER;
1809   }
1810 
1811   @java.lang.Override
getParserForType()1812   public com.google.protobuf.Parser<AppEngineRouting> getParserForType() {
1813     return PARSER;
1814   }
1815 
1816   @java.lang.Override
getDefaultInstanceForType()1817   public com.google.cloud.tasks.v2beta2.AppEngineRouting getDefaultInstanceForType() {
1818     return DEFAULT_INSTANCE;
1819   }
1820 }
1821