• 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/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents a URL Map resource. Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/v1/urlMaps) * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * regionUrlMaps are used by internal HTTP(S) load balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.UrlMap}
29  */
30 public final class UrlMap extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UrlMap)
33     UrlMapOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use UrlMap.newBuilder() to construct.
UrlMap(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private UrlMap(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
UrlMap()40   private UrlMap() {
41     creationTimestamp_ = "";
42     defaultService_ = "";
43     description_ = "";
44     fingerprint_ = "";
45     hostRules_ = java.util.Collections.emptyList();
46     kind_ = "";
47     name_ = "";
48     pathMatchers_ = java.util.Collections.emptyList();
49     region_ = "";
50     selfLink_ = "";
51     tests_ = java.util.Collections.emptyList();
52   }
53 
54   @java.lang.Override
55   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)56   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
57     return new UrlMap();
58   }
59 
60   @java.lang.Override
getUnknownFields()61   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
62     return this.unknownFields;
63   }
64 
getDescriptor()65   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
66     return com.google.cloud.compute.v1.Compute
67         .internal_static_google_cloud_compute_v1_UrlMap_descriptor;
68   }
69 
70   @java.lang.Override
71   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()72       internalGetFieldAccessorTable() {
73     return com.google.cloud.compute.v1.Compute
74         .internal_static_google_cloud_compute_v1_UrlMap_fieldAccessorTable
75         .ensureFieldAccessorsInitialized(
76             com.google.cloud.compute.v1.UrlMap.class,
77             com.google.cloud.compute.v1.UrlMap.Builder.class);
78   }
79 
80   private int bitField0_;
81   public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366;
82 
83   @SuppressWarnings("serial")
84   private volatile java.lang.Object creationTimestamp_ = "";
85   /**
86    *
87    *
88    * <pre>
89    * [Output Only] Creation timestamp in RFC3339 text format.
90    * </pre>
91    *
92    * <code>optional string creation_timestamp = 30525366;</code>
93    *
94    * @return Whether the creationTimestamp field is set.
95    */
96   @java.lang.Override
hasCreationTimestamp()97   public boolean hasCreationTimestamp() {
98     return ((bitField0_ & 0x00000001) != 0);
99   }
100   /**
101    *
102    *
103    * <pre>
104    * [Output Only] Creation timestamp in RFC3339 text format.
105    * </pre>
106    *
107    * <code>optional string creation_timestamp = 30525366;</code>
108    *
109    * @return The creationTimestamp.
110    */
111   @java.lang.Override
getCreationTimestamp()112   public java.lang.String getCreationTimestamp() {
113     java.lang.Object ref = creationTimestamp_;
114     if (ref instanceof java.lang.String) {
115       return (java.lang.String) ref;
116     } else {
117       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
118       java.lang.String s = bs.toStringUtf8();
119       creationTimestamp_ = s;
120       return s;
121     }
122   }
123   /**
124    *
125    *
126    * <pre>
127    * [Output Only] Creation timestamp in RFC3339 text format.
128    * </pre>
129    *
130    * <code>optional string creation_timestamp = 30525366;</code>
131    *
132    * @return The bytes for creationTimestamp.
133    */
134   @java.lang.Override
getCreationTimestampBytes()135   public com.google.protobuf.ByteString getCreationTimestampBytes() {
136     java.lang.Object ref = creationTimestamp_;
137     if (ref instanceof java.lang.String) {
138       com.google.protobuf.ByteString b =
139           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
140       creationTimestamp_ = b;
141       return b;
142     } else {
143       return (com.google.protobuf.ByteString) ref;
144     }
145   }
146 
147   public static final int DEFAULT_ROUTE_ACTION_FIELD_NUMBER = 378919466;
148   private com.google.cloud.compute.v1.HttpRouteAction defaultRouteAction_;
149   /**
150    *
151    *
152    * <pre>
153    * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
154    * </pre>
155    *
156    * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
157    * </code>
158    *
159    * @return Whether the defaultRouteAction field is set.
160    */
161   @java.lang.Override
hasDefaultRouteAction()162   public boolean hasDefaultRouteAction() {
163     return ((bitField0_ & 0x00000002) != 0);
164   }
165   /**
166    *
167    *
168    * <pre>
169    * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
170    * </pre>
171    *
172    * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
173    * </code>
174    *
175    * @return The defaultRouteAction.
176    */
177   @java.lang.Override
getDefaultRouteAction()178   public com.google.cloud.compute.v1.HttpRouteAction getDefaultRouteAction() {
179     return defaultRouteAction_ == null
180         ? com.google.cloud.compute.v1.HttpRouteAction.getDefaultInstance()
181         : defaultRouteAction_;
182   }
183   /**
184    *
185    *
186    * <pre>
187    * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
188    * </pre>
189    *
190    * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
191    * </code>
192    */
193   @java.lang.Override
getDefaultRouteActionOrBuilder()194   public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActionOrBuilder() {
195     return defaultRouteAction_ == null
196         ? com.google.cloud.compute.v1.HttpRouteAction.getDefaultInstance()
197         : defaultRouteAction_;
198   }
199 
200   public static final int DEFAULT_SERVICE_FIELD_NUMBER = 370242231;
201 
202   @SuppressWarnings("serial")
203   private volatile java.lang.Object defaultService_ = "";
204   /**
205    *
206    *
207    * <pre>
208    * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
209    * </pre>
210    *
211    * <code>optional string default_service = 370242231;</code>
212    *
213    * @return Whether the defaultService field is set.
214    */
215   @java.lang.Override
hasDefaultService()216   public boolean hasDefaultService() {
217     return ((bitField0_ & 0x00000004) != 0);
218   }
219   /**
220    *
221    *
222    * <pre>
223    * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
224    * </pre>
225    *
226    * <code>optional string default_service = 370242231;</code>
227    *
228    * @return The defaultService.
229    */
230   @java.lang.Override
getDefaultService()231   public java.lang.String getDefaultService() {
232     java.lang.Object ref = defaultService_;
233     if (ref instanceof java.lang.String) {
234       return (java.lang.String) ref;
235     } else {
236       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
237       java.lang.String s = bs.toStringUtf8();
238       defaultService_ = s;
239       return s;
240     }
241   }
242   /**
243    *
244    *
245    * <pre>
246    * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
247    * </pre>
248    *
249    * <code>optional string default_service = 370242231;</code>
250    *
251    * @return The bytes for defaultService.
252    */
253   @java.lang.Override
getDefaultServiceBytes()254   public com.google.protobuf.ByteString getDefaultServiceBytes() {
255     java.lang.Object ref = defaultService_;
256     if (ref instanceof java.lang.String) {
257       com.google.protobuf.ByteString b =
258           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
259       defaultService_ = b;
260       return b;
261     } else {
262       return (com.google.protobuf.ByteString) ref;
263     }
264   }
265 
266   public static final int DEFAULT_URL_REDIRECT_FIELD_NUMBER = 359503338;
267   private com.google.cloud.compute.v1.HttpRedirectAction defaultUrlRedirect_;
268   /**
269    *
270    *
271    * <pre>
272    * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
273    * </pre>
274    *
275    * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
276    * </code>
277    *
278    * @return Whether the defaultUrlRedirect field is set.
279    */
280   @java.lang.Override
hasDefaultUrlRedirect()281   public boolean hasDefaultUrlRedirect() {
282     return ((bitField0_ & 0x00000008) != 0);
283   }
284   /**
285    *
286    *
287    * <pre>
288    * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
289    * </pre>
290    *
291    * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
292    * </code>
293    *
294    * @return The defaultUrlRedirect.
295    */
296   @java.lang.Override
getDefaultUrlRedirect()297   public com.google.cloud.compute.v1.HttpRedirectAction getDefaultUrlRedirect() {
298     return defaultUrlRedirect_ == null
299         ? com.google.cloud.compute.v1.HttpRedirectAction.getDefaultInstance()
300         : defaultUrlRedirect_;
301   }
302   /**
303    *
304    *
305    * <pre>
306    * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
307    * </pre>
308    *
309    * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
310    * </code>
311    */
312   @java.lang.Override
getDefaultUrlRedirectOrBuilder()313   public com.google.cloud.compute.v1.HttpRedirectActionOrBuilder getDefaultUrlRedirectOrBuilder() {
314     return defaultUrlRedirect_ == null
315         ? com.google.cloud.compute.v1.HttpRedirectAction.getDefaultInstance()
316         : defaultUrlRedirect_;
317   }
318 
319   public static final int DESCRIPTION_FIELD_NUMBER = 422937596;
320 
321   @SuppressWarnings("serial")
322   private volatile java.lang.Object description_ = "";
323   /**
324    *
325    *
326    * <pre>
327    * An optional description of this resource. Provide this property when you create the resource.
328    * </pre>
329    *
330    * <code>optional string description = 422937596;</code>
331    *
332    * @return Whether the description field is set.
333    */
334   @java.lang.Override
hasDescription()335   public boolean hasDescription() {
336     return ((bitField0_ & 0x00000010) != 0);
337   }
338   /**
339    *
340    *
341    * <pre>
342    * An optional description of this resource. Provide this property when you create the resource.
343    * </pre>
344    *
345    * <code>optional string description = 422937596;</code>
346    *
347    * @return The description.
348    */
349   @java.lang.Override
getDescription()350   public java.lang.String getDescription() {
351     java.lang.Object ref = description_;
352     if (ref instanceof java.lang.String) {
353       return (java.lang.String) ref;
354     } else {
355       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
356       java.lang.String s = bs.toStringUtf8();
357       description_ = s;
358       return s;
359     }
360   }
361   /**
362    *
363    *
364    * <pre>
365    * An optional description of this resource. Provide this property when you create the resource.
366    * </pre>
367    *
368    * <code>optional string description = 422937596;</code>
369    *
370    * @return The bytes for description.
371    */
372   @java.lang.Override
getDescriptionBytes()373   public com.google.protobuf.ByteString getDescriptionBytes() {
374     java.lang.Object ref = description_;
375     if (ref instanceof java.lang.String) {
376       com.google.protobuf.ByteString b =
377           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
378       description_ = b;
379       return b;
380     } else {
381       return (com.google.protobuf.ByteString) ref;
382     }
383   }
384 
385   public static final int FINGERPRINT_FIELD_NUMBER = 234678500;
386 
387   @SuppressWarnings("serial")
388   private volatile java.lang.Object fingerprint_ = "";
389   /**
390    *
391    *
392    * <pre>
393    * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
394    * </pre>
395    *
396    * <code>optional string fingerprint = 234678500;</code>
397    *
398    * @return Whether the fingerprint field is set.
399    */
400   @java.lang.Override
hasFingerprint()401   public boolean hasFingerprint() {
402     return ((bitField0_ & 0x00000020) != 0);
403   }
404   /**
405    *
406    *
407    * <pre>
408    * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
409    * </pre>
410    *
411    * <code>optional string fingerprint = 234678500;</code>
412    *
413    * @return The fingerprint.
414    */
415   @java.lang.Override
getFingerprint()416   public java.lang.String getFingerprint() {
417     java.lang.Object ref = fingerprint_;
418     if (ref instanceof java.lang.String) {
419       return (java.lang.String) ref;
420     } else {
421       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
422       java.lang.String s = bs.toStringUtf8();
423       fingerprint_ = s;
424       return s;
425     }
426   }
427   /**
428    *
429    *
430    * <pre>
431    * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
432    * </pre>
433    *
434    * <code>optional string fingerprint = 234678500;</code>
435    *
436    * @return The bytes for fingerprint.
437    */
438   @java.lang.Override
getFingerprintBytes()439   public com.google.protobuf.ByteString getFingerprintBytes() {
440     java.lang.Object ref = fingerprint_;
441     if (ref instanceof java.lang.String) {
442       com.google.protobuf.ByteString b =
443           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
444       fingerprint_ = b;
445       return b;
446     } else {
447       return (com.google.protobuf.ByteString) ref;
448     }
449   }
450 
451   public static final int HEADER_ACTION_FIELD_NUMBER = 328077352;
452   private com.google.cloud.compute.v1.HttpHeaderAction headerAction_;
453   /**
454    *
455    *
456    * <pre>
457    * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
458    * </pre>
459    *
460    * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
461    *
462    * @return Whether the headerAction field is set.
463    */
464   @java.lang.Override
hasHeaderAction()465   public boolean hasHeaderAction() {
466     return ((bitField0_ & 0x00000040) != 0);
467   }
468   /**
469    *
470    *
471    * <pre>
472    * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
473    * </pre>
474    *
475    * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
476    *
477    * @return The headerAction.
478    */
479   @java.lang.Override
getHeaderAction()480   public com.google.cloud.compute.v1.HttpHeaderAction getHeaderAction() {
481     return headerAction_ == null
482         ? com.google.cloud.compute.v1.HttpHeaderAction.getDefaultInstance()
483         : headerAction_;
484   }
485   /**
486    *
487    *
488    * <pre>
489    * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
490    * </pre>
491    *
492    * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
493    */
494   @java.lang.Override
getHeaderActionOrBuilder()495   public com.google.cloud.compute.v1.HttpHeaderActionOrBuilder getHeaderActionOrBuilder() {
496     return headerAction_ == null
497         ? com.google.cloud.compute.v1.HttpHeaderAction.getDefaultInstance()
498         : headerAction_;
499   }
500 
501   public static final int HOST_RULES_FIELD_NUMBER = 311804832;
502 
503   @SuppressWarnings("serial")
504   private java.util.List<com.google.cloud.compute.v1.HostRule> hostRules_;
505   /**
506    *
507    *
508    * <pre>
509    * The list of host rules to use against the URL.
510    * </pre>
511    *
512    * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
513    */
514   @java.lang.Override
getHostRulesList()515   public java.util.List<com.google.cloud.compute.v1.HostRule> getHostRulesList() {
516     return hostRules_;
517   }
518   /**
519    *
520    *
521    * <pre>
522    * The list of host rules to use against the URL.
523    * </pre>
524    *
525    * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
526    */
527   @java.lang.Override
528   public java.util.List<? extends com.google.cloud.compute.v1.HostRuleOrBuilder>
getHostRulesOrBuilderList()529       getHostRulesOrBuilderList() {
530     return hostRules_;
531   }
532   /**
533    *
534    *
535    * <pre>
536    * The list of host rules to use against the URL.
537    * </pre>
538    *
539    * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
540    */
541   @java.lang.Override
getHostRulesCount()542   public int getHostRulesCount() {
543     return hostRules_.size();
544   }
545   /**
546    *
547    *
548    * <pre>
549    * The list of host rules to use against the URL.
550    * </pre>
551    *
552    * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
553    */
554   @java.lang.Override
getHostRules(int index)555   public com.google.cloud.compute.v1.HostRule getHostRules(int index) {
556     return hostRules_.get(index);
557   }
558   /**
559    *
560    *
561    * <pre>
562    * The list of host rules to use against the URL.
563    * </pre>
564    *
565    * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
566    */
567   @java.lang.Override
getHostRulesOrBuilder(int index)568   public com.google.cloud.compute.v1.HostRuleOrBuilder getHostRulesOrBuilder(int index) {
569     return hostRules_.get(index);
570   }
571 
572   public static final int ID_FIELD_NUMBER = 3355;
573   private long id_ = 0L;
574   /**
575    *
576    *
577    * <pre>
578    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
579    * </pre>
580    *
581    * <code>optional uint64 id = 3355;</code>
582    *
583    * @return Whether the id field is set.
584    */
585   @java.lang.Override
hasId()586   public boolean hasId() {
587     return ((bitField0_ & 0x00000080) != 0);
588   }
589   /**
590    *
591    *
592    * <pre>
593    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
594    * </pre>
595    *
596    * <code>optional uint64 id = 3355;</code>
597    *
598    * @return The id.
599    */
600   @java.lang.Override
getId()601   public long getId() {
602     return id_;
603   }
604 
605   public static final int KIND_FIELD_NUMBER = 3292052;
606 
607   @SuppressWarnings("serial")
608   private volatile java.lang.Object kind_ = "";
609   /**
610    *
611    *
612    * <pre>
613    * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
614    * </pre>
615    *
616    * <code>optional string kind = 3292052;</code>
617    *
618    * @return Whether the kind field is set.
619    */
620   @java.lang.Override
hasKind()621   public boolean hasKind() {
622     return ((bitField0_ & 0x00000100) != 0);
623   }
624   /**
625    *
626    *
627    * <pre>
628    * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
629    * </pre>
630    *
631    * <code>optional string kind = 3292052;</code>
632    *
633    * @return The kind.
634    */
635   @java.lang.Override
getKind()636   public java.lang.String getKind() {
637     java.lang.Object ref = kind_;
638     if (ref instanceof java.lang.String) {
639       return (java.lang.String) ref;
640     } else {
641       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
642       java.lang.String s = bs.toStringUtf8();
643       kind_ = s;
644       return s;
645     }
646   }
647   /**
648    *
649    *
650    * <pre>
651    * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
652    * </pre>
653    *
654    * <code>optional string kind = 3292052;</code>
655    *
656    * @return The bytes for kind.
657    */
658   @java.lang.Override
getKindBytes()659   public com.google.protobuf.ByteString getKindBytes() {
660     java.lang.Object ref = kind_;
661     if (ref instanceof java.lang.String) {
662       com.google.protobuf.ByteString b =
663           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
664       kind_ = b;
665       return b;
666     } else {
667       return (com.google.protobuf.ByteString) ref;
668     }
669   }
670 
671   public static final int NAME_FIELD_NUMBER = 3373707;
672 
673   @SuppressWarnings("serial")
674   private volatile java.lang.Object name_ = "";
675   /**
676    *
677    *
678    * <pre>
679    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
680    * </pre>
681    *
682    * <code>optional string name = 3373707;</code>
683    *
684    * @return Whether the name field is set.
685    */
686   @java.lang.Override
hasName()687   public boolean hasName() {
688     return ((bitField0_ & 0x00000200) != 0);
689   }
690   /**
691    *
692    *
693    * <pre>
694    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
695    * </pre>
696    *
697    * <code>optional string name = 3373707;</code>
698    *
699    * @return The name.
700    */
701   @java.lang.Override
getName()702   public java.lang.String getName() {
703     java.lang.Object ref = name_;
704     if (ref instanceof java.lang.String) {
705       return (java.lang.String) ref;
706     } else {
707       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
708       java.lang.String s = bs.toStringUtf8();
709       name_ = s;
710       return s;
711     }
712   }
713   /**
714    *
715    *
716    * <pre>
717    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
718    * </pre>
719    *
720    * <code>optional string name = 3373707;</code>
721    *
722    * @return The bytes for name.
723    */
724   @java.lang.Override
getNameBytes()725   public com.google.protobuf.ByteString getNameBytes() {
726     java.lang.Object ref = name_;
727     if (ref instanceof java.lang.String) {
728       com.google.protobuf.ByteString b =
729           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
730       name_ = b;
731       return b;
732     } else {
733       return (com.google.protobuf.ByteString) ref;
734     }
735   }
736 
737   public static final int PATH_MATCHERS_FIELD_NUMBER = 271664219;
738 
739   @SuppressWarnings("serial")
740   private java.util.List<com.google.cloud.compute.v1.PathMatcher> pathMatchers_;
741   /**
742    *
743    *
744    * <pre>
745    * The list of named PathMatchers to use against the URL.
746    * </pre>
747    *
748    * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
749    */
750   @java.lang.Override
getPathMatchersList()751   public java.util.List<com.google.cloud.compute.v1.PathMatcher> getPathMatchersList() {
752     return pathMatchers_;
753   }
754   /**
755    *
756    *
757    * <pre>
758    * The list of named PathMatchers to use against the URL.
759    * </pre>
760    *
761    * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
762    */
763   @java.lang.Override
764   public java.util.List<? extends com.google.cloud.compute.v1.PathMatcherOrBuilder>
getPathMatchersOrBuilderList()765       getPathMatchersOrBuilderList() {
766     return pathMatchers_;
767   }
768   /**
769    *
770    *
771    * <pre>
772    * The list of named PathMatchers to use against the URL.
773    * </pre>
774    *
775    * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
776    */
777   @java.lang.Override
getPathMatchersCount()778   public int getPathMatchersCount() {
779     return pathMatchers_.size();
780   }
781   /**
782    *
783    *
784    * <pre>
785    * The list of named PathMatchers to use against the URL.
786    * </pre>
787    *
788    * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
789    */
790   @java.lang.Override
getPathMatchers(int index)791   public com.google.cloud.compute.v1.PathMatcher getPathMatchers(int index) {
792     return pathMatchers_.get(index);
793   }
794   /**
795    *
796    *
797    * <pre>
798    * The list of named PathMatchers to use against the URL.
799    * </pre>
800    *
801    * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
802    */
803   @java.lang.Override
getPathMatchersOrBuilder(int index)804   public com.google.cloud.compute.v1.PathMatcherOrBuilder getPathMatchersOrBuilder(int index) {
805     return pathMatchers_.get(index);
806   }
807 
808   public static final int REGION_FIELD_NUMBER = 138946292;
809 
810   @SuppressWarnings("serial")
811   private volatile java.lang.Object region_ = "";
812   /**
813    *
814    *
815    * <pre>
816    * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
817    * </pre>
818    *
819    * <code>optional string region = 138946292;</code>
820    *
821    * @return Whether the region field is set.
822    */
823   @java.lang.Override
hasRegion()824   public boolean hasRegion() {
825     return ((bitField0_ & 0x00000400) != 0);
826   }
827   /**
828    *
829    *
830    * <pre>
831    * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
832    * </pre>
833    *
834    * <code>optional string region = 138946292;</code>
835    *
836    * @return The region.
837    */
838   @java.lang.Override
getRegion()839   public java.lang.String getRegion() {
840     java.lang.Object ref = region_;
841     if (ref instanceof java.lang.String) {
842       return (java.lang.String) ref;
843     } else {
844       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
845       java.lang.String s = bs.toStringUtf8();
846       region_ = s;
847       return s;
848     }
849   }
850   /**
851    *
852    *
853    * <pre>
854    * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
855    * </pre>
856    *
857    * <code>optional string region = 138946292;</code>
858    *
859    * @return The bytes for region.
860    */
861   @java.lang.Override
getRegionBytes()862   public com.google.protobuf.ByteString getRegionBytes() {
863     java.lang.Object ref = region_;
864     if (ref instanceof java.lang.String) {
865       com.google.protobuf.ByteString b =
866           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
867       region_ = b;
868       return b;
869     } else {
870       return (com.google.protobuf.ByteString) ref;
871     }
872   }
873 
874   public static final int SELF_LINK_FIELD_NUMBER = 456214797;
875 
876   @SuppressWarnings("serial")
877   private volatile java.lang.Object selfLink_ = "";
878   /**
879    *
880    *
881    * <pre>
882    * [Output Only] Server-defined URL for the resource.
883    * </pre>
884    *
885    * <code>optional string self_link = 456214797;</code>
886    *
887    * @return Whether the selfLink field is set.
888    */
889   @java.lang.Override
hasSelfLink()890   public boolean hasSelfLink() {
891     return ((bitField0_ & 0x00000800) != 0);
892   }
893   /**
894    *
895    *
896    * <pre>
897    * [Output Only] Server-defined URL for the resource.
898    * </pre>
899    *
900    * <code>optional string self_link = 456214797;</code>
901    *
902    * @return The selfLink.
903    */
904   @java.lang.Override
getSelfLink()905   public java.lang.String getSelfLink() {
906     java.lang.Object ref = selfLink_;
907     if (ref instanceof java.lang.String) {
908       return (java.lang.String) ref;
909     } else {
910       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
911       java.lang.String s = bs.toStringUtf8();
912       selfLink_ = s;
913       return s;
914     }
915   }
916   /**
917    *
918    *
919    * <pre>
920    * [Output Only] Server-defined URL for the resource.
921    * </pre>
922    *
923    * <code>optional string self_link = 456214797;</code>
924    *
925    * @return The bytes for selfLink.
926    */
927   @java.lang.Override
getSelfLinkBytes()928   public com.google.protobuf.ByteString getSelfLinkBytes() {
929     java.lang.Object ref = selfLink_;
930     if (ref instanceof java.lang.String) {
931       com.google.protobuf.ByteString b =
932           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
933       selfLink_ = b;
934       return b;
935     } else {
936       return (com.google.protobuf.ByteString) ref;
937     }
938   }
939 
940   public static final int TESTS_FIELD_NUMBER = 110251553;
941 
942   @SuppressWarnings("serial")
943   private java.util.List<com.google.cloud.compute.v1.UrlMapTest> tests_;
944   /**
945    *
946    *
947    * <pre>
948    * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
949    * </pre>
950    *
951    * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
952    */
953   @java.lang.Override
getTestsList()954   public java.util.List<com.google.cloud.compute.v1.UrlMapTest> getTestsList() {
955     return tests_;
956   }
957   /**
958    *
959    *
960    * <pre>
961    * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
962    * </pre>
963    *
964    * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
965    */
966   @java.lang.Override
967   public java.util.List<? extends com.google.cloud.compute.v1.UrlMapTestOrBuilder>
getTestsOrBuilderList()968       getTestsOrBuilderList() {
969     return tests_;
970   }
971   /**
972    *
973    *
974    * <pre>
975    * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
976    * </pre>
977    *
978    * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
979    */
980   @java.lang.Override
getTestsCount()981   public int getTestsCount() {
982     return tests_.size();
983   }
984   /**
985    *
986    *
987    * <pre>
988    * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
989    * </pre>
990    *
991    * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
992    */
993   @java.lang.Override
getTests(int index)994   public com.google.cloud.compute.v1.UrlMapTest getTests(int index) {
995     return tests_.get(index);
996   }
997   /**
998    *
999    *
1000    * <pre>
1001    * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
1002    * </pre>
1003    *
1004    * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
1005    */
1006   @java.lang.Override
getTestsOrBuilder(int index)1007   public com.google.cloud.compute.v1.UrlMapTestOrBuilder getTestsOrBuilder(int index) {
1008     return tests_.get(index);
1009   }
1010 
1011   private byte memoizedIsInitialized = -1;
1012 
1013   @java.lang.Override
isInitialized()1014   public final boolean isInitialized() {
1015     byte isInitialized = memoizedIsInitialized;
1016     if (isInitialized == 1) return true;
1017     if (isInitialized == 0) return false;
1018 
1019     memoizedIsInitialized = 1;
1020     return true;
1021   }
1022 
1023   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1024   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1025     if (((bitField0_ & 0x00000080) != 0)) {
1026       output.writeUInt64(3355, id_);
1027     }
1028     if (((bitField0_ & 0x00000100) != 0)) {
1029       com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
1030     }
1031     if (((bitField0_ & 0x00000200) != 0)) {
1032       com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_);
1033     }
1034     if (((bitField0_ & 0x00000001) != 0)) {
1035       com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_);
1036     }
1037     for (int i = 0; i < tests_.size(); i++) {
1038       output.writeMessage(110251553, tests_.get(i));
1039     }
1040     if (((bitField0_ & 0x00000400) != 0)) {
1041       com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_);
1042     }
1043     if (((bitField0_ & 0x00000020) != 0)) {
1044       com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_);
1045     }
1046     for (int i = 0; i < pathMatchers_.size(); i++) {
1047       output.writeMessage(271664219, pathMatchers_.get(i));
1048     }
1049     for (int i = 0; i < hostRules_.size(); i++) {
1050       output.writeMessage(311804832, hostRules_.get(i));
1051     }
1052     if (((bitField0_ & 0x00000040) != 0)) {
1053       output.writeMessage(328077352, getHeaderAction());
1054     }
1055     if (((bitField0_ & 0x00000008) != 0)) {
1056       output.writeMessage(359503338, getDefaultUrlRedirect());
1057     }
1058     if (((bitField0_ & 0x00000004) != 0)) {
1059       com.google.protobuf.GeneratedMessageV3.writeString(output, 370242231, defaultService_);
1060     }
1061     if (((bitField0_ & 0x00000002) != 0)) {
1062       output.writeMessage(378919466, getDefaultRouteAction());
1063     }
1064     if (((bitField0_ & 0x00000010) != 0)) {
1065       com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_);
1066     }
1067     if (((bitField0_ & 0x00000800) != 0)) {
1068       com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
1069     }
1070     getUnknownFields().writeTo(output);
1071   }
1072 
1073   @java.lang.Override
getSerializedSize()1074   public int getSerializedSize() {
1075     int size = memoizedSize;
1076     if (size != -1) return size;
1077 
1078     size = 0;
1079     if (((bitField0_ & 0x00000080) != 0)) {
1080       size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_);
1081     }
1082     if (((bitField0_ & 0x00000100) != 0)) {
1083       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
1084     }
1085     if (((bitField0_ & 0x00000200) != 0)) {
1086       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_);
1087     }
1088     if (((bitField0_ & 0x00000001) != 0)) {
1089       size +=
1090           com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_);
1091     }
1092     for (int i = 0; i < tests_.size(); i++) {
1093       size += com.google.protobuf.CodedOutputStream.computeMessageSize(110251553, tests_.get(i));
1094     }
1095     if (((bitField0_ & 0x00000400) != 0)) {
1096       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_);
1097     }
1098     if (((bitField0_ & 0x00000020) != 0)) {
1099       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_);
1100     }
1101     for (int i = 0; i < pathMatchers_.size(); i++) {
1102       size +=
1103           com.google.protobuf.CodedOutputStream.computeMessageSize(271664219, pathMatchers_.get(i));
1104     }
1105     for (int i = 0; i < hostRules_.size(); i++) {
1106       size +=
1107           com.google.protobuf.CodedOutputStream.computeMessageSize(311804832, hostRules_.get(i));
1108     }
1109     if (((bitField0_ & 0x00000040) != 0)) {
1110       size +=
1111           com.google.protobuf.CodedOutputStream.computeMessageSize(328077352, getHeaderAction());
1112     }
1113     if (((bitField0_ & 0x00000008) != 0)) {
1114       size +=
1115           com.google.protobuf.CodedOutputStream.computeMessageSize(
1116               359503338, getDefaultUrlRedirect());
1117     }
1118     if (((bitField0_ & 0x00000004) != 0)) {
1119       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(370242231, defaultService_);
1120     }
1121     if (((bitField0_ & 0x00000002) != 0)) {
1122       size +=
1123           com.google.protobuf.CodedOutputStream.computeMessageSize(
1124               378919466, getDefaultRouteAction());
1125     }
1126     if (((bitField0_ & 0x00000010) != 0)) {
1127       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_);
1128     }
1129     if (((bitField0_ & 0x00000800) != 0)) {
1130       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
1131     }
1132     size += getUnknownFields().getSerializedSize();
1133     memoizedSize = size;
1134     return size;
1135   }
1136 
1137   @java.lang.Override
equals(final java.lang.Object obj)1138   public boolean equals(final java.lang.Object obj) {
1139     if (obj == this) {
1140       return true;
1141     }
1142     if (!(obj instanceof com.google.cloud.compute.v1.UrlMap)) {
1143       return super.equals(obj);
1144     }
1145     com.google.cloud.compute.v1.UrlMap other = (com.google.cloud.compute.v1.UrlMap) obj;
1146 
1147     if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false;
1148     if (hasCreationTimestamp()) {
1149       if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false;
1150     }
1151     if (hasDefaultRouteAction() != other.hasDefaultRouteAction()) return false;
1152     if (hasDefaultRouteAction()) {
1153       if (!getDefaultRouteAction().equals(other.getDefaultRouteAction())) return false;
1154     }
1155     if (hasDefaultService() != other.hasDefaultService()) return false;
1156     if (hasDefaultService()) {
1157       if (!getDefaultService().equals(other.getDefaultService())) return false;
1158     }
1159     if (hasDefaultUrlRedirect() != other.hasDefaultUrlRedirect()) return false;
1160     if (hasDefaultUrlRedirect()) {
1161       if (!getDefaultUrlRedirect().equals(other.getDefaultUrlRedirect())) return false;
1162     }
1163     if (hasDescription() != other.hasDescription()) return false;
1164     if (hasDescription()) {
1165       if (!getDescription().equals(other.getDescription())) return false;
1166     }
1167     if (hasFingerprint() != other.hasFingerprint()) return false;
1168     if (hasFingerprint()) {
1169       if (!getFingerprint().equals(other.getFingerprint())) return false;
1170     }
1171     if (hasHeaderAction() != other.hasHeaderAction()) return false;
1172     if (hasHeaderAction()) {
1173       if (!getHeaderAction().equals(other.getHeaderAction())) return false;
1174     }
1175     if (!getHostRulesList().equals(other.getHostRulesList())) return false;
1176     if (hasId() != other.hasId()) return false;
1177     if (hasId()) {
1178       if (getId() != other.getId()) return false;
1179     }
1180     if (hasKind() != other.hasKind()) return false;
1181     if (hasKind()) {
1182       if (!getKind().equals(other.getKind())) return false;
1183     }
1184     if (hasName() != other.hasName()) return false;
1185     if (hasName()) {
1186       if (!getName().equals(other.getName())) return false;
1187     }
1188     if (!getPathMatchersList().equals(other.getPathMatchersList())) return false;
1189     if (hasRegion() != other.hasRegion()) return false;
1190     if (hasRegion()) {
1191       if (!getRegion().equals(other.getRegion())) return false;
1192     }
1193     if (hasSelfLink() != other.hasSelfLink()) return false;
1194     if (hasSelfLink()) {
1195       if (!getSelfLink().equals(other.getSelfLink())) return false;
1196     }
1197     if (!getTestsList().equals(other.getTestsList())) return false;
1198     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1199     return true;
1200   }
1201 
1202   @java.lang.Override
hashCode()1203   public int hashCode() {
1204     if (memoizedHashCode != 0) {
1205       return memoizedHashCode;
1206     }
1207     int hash = 41;
1208     hash = (19 * hash) + getDescriptor().hashCode();
1209     if (hasCreationTimestamp()) {
1210       hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
1211       hash = (53 * hash) + getCreationTimestamp().hashCode();
1212     }
1213     if (hasDefaultRouteAction()) {
1214       hash = (37 * hash) + DEFAULT_ROUTE_ACTION_FIELD_NUMBER;
1215       hash = (53 * hash) + getDefaultRouteAction().hashCode();
1216     }
1217     if (hasDefaultService()) {
1218       hash = (37 * hash) + DEFAULT_SERVICE_FIELD_NUMBER;
1219       hash = (53 * hash) + getDefaultService().hashCode();
1220     }
1221     if (hasDefaultUrlRedirect()) {
1222       hash = (37 * hash) + DEFAULT_URL_REDIRECT_FIELD_NUMBER;
1223       hash = (53 * hash) + getDefaultUrlRedirect().hashCode();
1224     }
1225     if (hasDescription()) {
1226       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1227       hash = (53 * hash) + getDescription().hashCode();
1228     }
1229     if (hasFingerprint()) {
1230       hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
1231       hash = (53 * hash) + getFingerprint().hashCode();
1232     }
1233     if (hasHeaderAction()) {
1234       hash = (37 * hash) + HEADER_ACTION_FIELD_NUMBER;
1235       hash = (53 * hash) + getHeaderAction().hashCode();
1236     }
1237     if (getHostRulesCount() > 0) {
1238       hash = (37 * hash) + HOST_RULES_FIELD_NUMBER;
1239       hash = (53 * hash) + getHostRulesList().hashCode();
1240     }
1241     if (hasId()) {
1242       hash = (37 * hash) + ID_FIELD_NUMBER;
1243       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
1244     }
1245     if (hasKind()) {
1246       hash = (37 * hash) + KIND_FIELD_NUMBER;
1247       hash = (53 * hash) + getKind().hashCode();
1248     }
1249     if (hasName()) {
1250       hash = (37 * hash) + NAME_FIELD_NUMBER;
1251       hash = (53 * hash) + getName().hashCode();
1252     }
1253     if (getPathMatchersCount() > 0) {
1254       hash = (37 * hash) + PATH_MATCHERS_FIELD_NUMBER;
1255       hash = (53 * hash) + getPathMatchersList().hashCode();
1256     }
1257     if (hasRegion()) {
1258       hash = (37 * hash) + REGION_FIELD_NUMBER;
1259       hash = (53 * hash) + getRegion().hashCode();
1260     }
1261     if (hasSelfLink()) {
1262       hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
1263       hash = (53 * hash) + getSelfLink().hashCode();
1264     }
1265     if (getTestsCount() > 0) {
1266       hash = (37 * hash) + TESTS_FIELD_NUMBER;
1267       hash = (53 * hash) + getTestsList().hashCode();
1268     }
1269     hash = (29 * hash) + getUnknownFields().hashCode();
1270     memoizedHashCode = hash;
1271     return hash;
1272   }
1273 
parseFrom(java.nio.ByteBuffer data)1274   public static com.google.cloud.compute.v1.UrlMap parseFrom(java.nio.ByteBuffer data)
1275       throws com.google.protobuf.InvalidProtocolBufferException {
1276     return PARSER.parseFrom(data);
1277   }
1278 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1279   public static com.google.cloud.compute.v1.UrlMap parseFrom(
1280       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1281       throws com.google.protobuf.InvalidProtocolBufferException {
1282     return PARSER.parseFrom(data, extensionRegistry);
1283   }
1284 
parseFrom(com.google.protobuf.ByteString data)1285   public static com.google.cloud.compute.v1.UrlMap parseFrom(com.google.protobuf.ByteString data)
1286       throws com.google.protobuf.InvalidProtocolBufferException {
1287     return PARSER.parseFrom(data);
1288   }
1289 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1290   public static com.google.cloud.compute.v1.UrlMap parseFrom(
1291       com.google.protobuf.ByteString data,
1292       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1293       throws com.google.protobuf.InvalidProtocolBufferException {
1294     return PARSER.parseFrom(data, extensionRegistry);
1295   }
1296 
parseFrom(byte[] data)1297   public static com.google.cloud.compute.v1.UrlMap parseFrom(byte[] data)
1298       throws com.google.protobuf.InvalidProtocolBufferException {
1299     return PARSER.parseFrom(data);
1300   }
1301 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1302   public static com.google.cloud.compute.v1.UrlMap parseFrom(
1303       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1304       throws com.google.protobuf.InvalidProtocolBufferException {
1305     return PARSER.parseFrom(data, extensionRegistry);
1306   }
1307 
parseFrom(java.io.InputStream input)1308   public static com.google.cloud.compute.v1.UrlMap parseFrom(java.io.InputStream input)
1309       throws java.io.IOException {
1310     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1311   }
1312 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1313   public static com.google.cloud.compute.v1.UrlMap parseFrom(
1314       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1315       throws java.io.IOException {
1316     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1317         PARSER, input, extensionRegistry);
1318   }
1319 
parseDelimitedFrom(java.io.InputStream input)1320   public static com.google.cloud.compute.v1.UrlMap parseDelimitedFrom(java.io.InputStream input)
1321       throws java.io.IOException {
1322     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1323   }
1324 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1325   public static com.google.cloud.compute.v1.UrlMap parseDelimitedFrom(
1326       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1327       throws java.io.IOException {
1328     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1329         PARSER, input, extensionRegistry);
1330   }
1331 
parseFrom( com.google.protobuf.CodedInputStream input)1332   public static com.google.cloud.compute.v1.UrlMap parseFrom(
1333       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1334     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1335   }
1336 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1337   public static com.google.cloud.compute.v1.UrlMap parseFrom(
1338       com.google.protobuf.CodedInputStream input,
1339       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1340       throws java.io.IOException {
1341     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1342         PARSER, input, extensionRegistry);
1343   }
1344 
1345   @java.lang.Override
newBuilderForType()1346   public Builder newBuilderForType() {
1347     return newBuilder();
1348   }
1349 
newBuilder()1350   public static Builder newBuilder() {
1351     return DEFAULT_INSTANCE.toBuilder();
1352   }
1353 
newBuilder(com.google.cloud.compute.v1.UrlMap prototype)1354   public static Builder newBuilder(com.google.cloud.compute.v1.UrlMap prototype) {
1355     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1356   }
1357 
1358   @java.lang.Override
toBuilder()1359   public Builder toBuilder() {
1360     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1361   }
1362 
1363   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1364   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1365     Builder builder = new Builder(parent);
1366     return builder;
1367   }
1368   /**
1369    *
1370    *
1371    * <pre>
1372    * Represents a URL Map resource. Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/v1/urlMaps) * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * regionUrlMaps are used by internal HTTP(S) load balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts.
1373    * </pre>
1374    *
1375    * Protobuf type {@code google.cloud.compute.v1.UrlMap}
1376    */
1377   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1378       implements
1379       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UrlMap)
1380       com.google.cloud.compute.v1.UrlMapOrBuilder {
getDescriptor()1381     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1382       return com.google.cloud.compute.v1.Compute
1383           .internal_static_google_cloud_compute_v1_UrlMap_descriptor;
1384     }
1385 
1386     @java.lang.Override
1387     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1388         internalGetFieldAccessorTable() {
1389       return com.google.cloud.compute.v1.Compute
1390           .internal_static_google_cloud_compute_v1_UrlMap_fieldAccessorTable
1391           .ensureFieldAccessorsInitialized(
1392               com.google.cloud.compute.v1.UrlMap.class,
1393               com.google.cloud.compute.v1.UrlMap.Builder.class);
1394     }
1395 
1396     // Construct using com.google.cloud.compute.v1.UrlMap.newBuilder()
Builder()1397     private Builder() {
1398       maybeForceBuilderInitialization();
1399     }
1400 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1401     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1402       super(parent);
1403       maybeForceBuilderInitialization();
1404     }
1405 
maybeForceBuilderInitialization()1406     private void maybeForceBuilderInitialization() {
1407       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
1408         getDefaultRouteActionFieldBuilder();
1409         getDefaultUrlRedirectFieldBuilder();
1410         getHeaderActionFieldBuilder();
1411         getHostRulesFieldBuilder();
1412         getPathMatchersFieldBuilder();
1413         getTestsFieldBuilder();
1414       }
1415     }
1416 
1417     @java.lang.Override
clear()1418     public Builder clear() {
1419       super.clear();
1420       bitField0_ = 0;
1421       creationTimestamp_ = "";
1422       defaultRouteAction_ = null;
1423       if (defaultRouteActionBuilder_ != null) {
1424         defaultRouteActionBuilder_.dispose();
1425         defaultRouteActionBuilder_ = null;
1426       }
1427       defaultService_ = "";
1428       defaultUrlRedirect_ = null;
1429       if (defaultUrlRedirectBuilder_ != null) {
1430         defaultUrlRedirectBuilder_.dispose();
1431         defaultUrlRedirectBuilder_ = null;
1432       }
1433       description_ = "";
1434       fingerprint_ = "";
1435       headerAction_ = null;
1436       if (headerActionBuilder_ != null) {
1437         headerActionBuilder_.dispose();
1438         headerActionBuilder_ = null;
1439       }
1440       if (hostRulesBuilder_ == null) {
1441         hostRules_ = java.util.Collections.emptyList();
1442       } else {
1443         hostRules_ = null;
1444         hostRulesBuilder_.clear();
1445       }
1446       bitField0_ = (bitField0_ & ~0x00000080);
1447       id_ = 0L;
1448       kind_ = "";
1449       name_ = "";
1450       if (pathMatchersBuilder_ == null) {
1451         pathMatchers_ = java.util.Collections.emptyList();
1452       } else {
1453         pathMatchers_ = null;
1454         pathMatchersBuilder_.clear();
1455       }
1456       bitField0_ = (bitField0_ & ~0x00000800);
1457       region_ = "";
1458       selfLink_ = "";
1459       if (testsBuilder_ == null) {
1460         tests_ = java.util.Collections.emptyList();
1461       } else {
1462         tests_ = null;
1463         testsBuilder_.clear();
1464       }
1465       bitField0_ = (bitField0_ & ~0x00004000);
1466       return this;
1467     }
1468 
1469     @java.lang.Override
getDescriptorForType()1470     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1471       return com.google.cloud.compute.v1.Compute
1472           .internal_static_google_cloud_compute_v1_UrlMap_descriptor;
1473     }
1474 
1475     @java.lang.Override
getDefaultInstanceForType()1476     public com.google.cloud.compute.v1.UrlMap getDefaultInstanceForType() {
1477       return com.google.cloud.compute.v1.UrlMap.getDefaultInstance();
1478     }
1479 
1480     @java.lang.Override
build()1481     public com.google.cloud.compute.v1.UrlMap build() {
1482       com.google.cloud.compute.v1.UrlMap result = buildPartial();
1483       if (!result.isInitialized()) {
1484         throw newUninitializedMessageException(result);
1485       }
1486       return result;
1487     }
1488 
1489     @java.lang.Override
buildPartial()1490     public com.google.cloud.compute.v1.UrlMap buildPartial() {
1491       com.google.cloud.compute.v1.UrlMap result = new com.google.cloud.compute.v1.UrlMap(this);
1492       buildPartialRepeatedFields(result);
1493       if (bitField0_ != 0) {
1494         buildPartial0(result);
1495       }
1496       onBuilt();
1497       return result;
1498     }
1499 
buildPartialRepeatedFields(com.google.cloud.compute.v1.UrlMap result)1500     private void buildPartialRepeatedFields(com.google.cloud.compute.v1.UrlMap result) {
1501       if (hostRulesBuilder_ == null) {
1502         if (((bitField0_ & 0x00000080) != 0)) {
1503           hostRules_ = java.util.Collections.unmodifiableList(hostRules_);
1504           bitField0_ = (bitField0_ & ~0x00000080);
1505         }
1506         result.hostRules_ = hostRules_;
1507       } else {
1508         result.hostRules_ = hostRulesBuilder_.build();
1509       }
1510       if (pathMatchersBuilder_ == null) {
1511         if (((bitField0_ & 0x00000800) != 0)) {
1512           pathMatchers_ = java.util.Collections.unmodifiableList(pathMatchers_);
1513           bitField0_ = (bitField0_ & ~0x00000800);
1514         }
1515         result.pathMatchers_ = pathMatchers_;
1516       } else {
1517         result.pathMatchers_ = pathMatchersBuilder_.build();
1518       }
1519       if (testsBuilder_ == null) {
1520         if (((bitField0_ & 0x00004000) != 0)) {
1521           tests_ = java.util.Collections.unmodifiableList(tests_);
1522           bitField0_ = (bitField0_ & ~0x00004000);
1523         }
1524         result.tests_ = tests_;
1525       } else {
1526         result.tests_ = testsBuilder_.build();
1527       }
1528     }
1529 
buildPartial0(com.google.cloud.compute.v1.UrlMap result)1530     private void buildPartial0(com.google.cloud.compute.v1.UrlMap result) {
1531       int from_bitField0_ = bitField0_;
1532       int to_bitField0_ = 0;
1533       if (((from_bitField0_ & 0x00000001) != 0)) {
1534         result.creationTimestamp_ = creationTimestamp_;
1535         to_bitField0_ |= 0x00000001;
1536       }
1537       if (((from_bitField0_ & 0x00000002) != 0)) {
1538         result.defaultRouteAction_ =
1539             defaultRouteActionBuilder_ == null
1540                 ? defaultRouteAction_
1541                 : defaultRouteActionBuilder_.build();
1542         to_bitField0_ |= 0x00000002;
1543       }
1544       if (((from_bitField0_ & 0x00000004) != 0)) {
1545         result.defaultService_ = defaultService_;
1546         to_bitField0_ |= 0x00000004;
1547       }
1548       if (((from_bitField0_ & 0x00000008) != 0)) {
1549         result.defaultUrlRedirect_ =
1550             defaultUrlRedirectBuilder_ == null
1551                 ? defaultUrlRedirect_
1552                 : defaultUrlRedirectBuilder_.build();
1553         to_bitField0_ |= 0x00000008;
1554       }
1555       if (((from_bitField0_ & 0x00000010) != 0)) {
1556         result.description_ = description_;
1557         to_bitField0_ |= 0x00000010;
1558       }
1559       if (((from_bitField0_ & 0x00000020) != 0)) {
1560         result.fingerprint_ = fingerprint_;
1561         to_bitField0_ |= 0x00000020;
1562       }
1563       if (((from_bitField0_ & 0x00000040) != 0)) {
1564         result.headerAction_ =
1565             headerActionBuilder_ == null ? headerAction_ : headerActionBuilder_.build();
1566         to_bitField0_ |= 0x00000040;
1567       }
1568       if (((from_bitField0_ & 0x00000100) != 0)) {
1569         result.id_ = id_;
1570         to_bitField0_ |= 0x00000080;
1571       }
1572       if (((from_bitField0_ & 0x00000200) != 0)) {
1573         result.kind_ = kind_;
1574         to_bitField0_ |= 0x00000100;
1575       }
1576       if (((from_bitField0_ & 0x00000400) != 0)) {
1577         result.name_ = name_;
1578         to_bitField0_ |= 0x00000200;
1579       }
1580       if (((from_bitField0_ & 0x00001000) != 0)) {
1581         result.region_ = region_;
1582         to_bitField0_ |= 0x00000400;
1583       }
1584       if (((from_bitField0_ & 0x00002000) != 0)) {
1585         result.selfLink_ = selfLink_;
1586         to_bitField0_ |= 0x00000800;
1587       }
1588       result.bitField0_ |= to_bitField0_;
1589     }
1590 
1591     @java.lang.Override
clone()1592     public Builder clone() {
1593       return super.clone();
1594     }
1595 
1596     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1597     public Builder setField(
1598         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1599       return super.setField(field, value);
1600     }
1601 
1602     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1603     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1604       return super.clearField(field);
1605     }
1606 
1607     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1608     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1609       return super.clearOneof(oneof);
1610     }
1611 
1612     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1613     public Builder setRepeatedField(
1614         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1615       return super.setRepeatedField(field, index, value);
1616     }
1617 
1618     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1619     public Builder addRepeatedField(
1620         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1621       return super.addRepeatedField(field, value);
1622     }
1623 
1624     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1625     public Builder mergeFrom(com.google.protobuf.Message other) {
1626       if (other instanceof com.google.cloud.compute.v1.UrlMap) {
1627         return mergeFrom((com.google.cloud.compute.v1.UrlMap) other);
1628       } else {
1629         super.mergeFrom(other);
1630         return this;
1631       }
1632     }
1633 
mergeFrom(com.google.cloud.compute.v1.UrlMap other)1634     public Builder mergeFrom(com.google.cloud.compute.v1.UrlMap other) {
1635       if (other == com.google.cloud.compute.v1.UrlMap.getDefaultInstance()) return this;
1636       if (other.hasCreationTimestamp()) {
1637         creationTimestamp_ = other.creationTimestamp_;
1638         bitField0_ |= 0x00000001;
1639         onChanged();
1640       }
1641       if (other.hasDefaultRouteAction()) {
1642         mergeDefaultRouteAction(other.getDefaultRouteAction());
1643       }
1644       if (other.hasDefaultService()) {
1645         defaultService_ = other.defaultService_;
1646         bitField0_ |= 0x00000004;
1647         onChanged();
1648       }
1649       if (other.hasDefaultUrlRedirect()) {
1650         mergeDefaultUrlRedirect(other.getDefaultUrlRedirect());
1651       }
1652       if (other.hasDescription()) {
1653         description_ = other.description_;
1654         bitField0_ |= 0x00000010;
1655         onChanged();
1656       }
1657       if (other.hasFingerprint()) {
1658         fingerprint_ = other.fingerprint_;
1659         bitField0_ |= 0x00000020;
1660         onChanged();
1661       }
1662       if (other.hasHeaderAction()) {
1663         mergeHeaderAction(other.getHeaderAction());
1664       }
1665       if (hostRulesBuilder_ == null) {
1666         if (!other.hostRules_.isEmpty()) {
1667           if (hostRules_.isEmpty()) {
1668             hostRules_ = other.hostRules_;
1669             bitField0_ = (bitField0_ & ~0x00000080);
1670           } else {
1671             ensureHostRulesIsMutable();
1672             hostRules_.addAll(other.hostRules_);
1673           }
1674           onChanged();
1675         }
1676       } else {
1677         if (!other.hostRules_.isEmpty()) {
1678           if (hostRulesBuilder_.isEmpty()) {
1679             hostRulesBuilder_.dispose();
1680             hostRulesBuilder_ = null;
1681             hostRules_ = other.hostRules_;
1682             bitField0_ = (bitField0_ & ~0x00000080);
1683             hostRulesBuilder_ =
1684                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1685                     ? getHostRulesFieldBuilder()
1686                     : null;
1687           } else {
1688             hostRulesBuilder_.addAllMessages(other.hostRules_);
1689           }
1690         }
1691       }
1692       if (other.hasId()) {
1693         setId(other.getId());
1694       }
1695       if (other.hasKind()) {
1696         kind_ = other.kind_;
1697         bitField0_ |= 0x00000200;
1698         onChanged();
1699       }
1700       if (other.hasName()) {
1701         name_ = other.name_;
1702         bitField0_ |= 0x00000400;
1703         onChanged();
1704       }
1705       if (pathMatchersBuilder_ == null) {
1706         if (!other.pathMatchers_.isEmpty()) {
1707           if (pathMatchers_.isEmpty()) {
1708             pathMatchers_ = other.pathMatchers_;
1709             bitField0_ = (bitField0_ & ~0x00000800);
1710           } else {
1711             ensurePathMatchersIsMutable();
1712             pathMatchers_.addAll(other.pathMatchers_);
1713           }
1714           onChanged();
1715         }
1716       } else {
1717         if (!other.pathMatchers_.isEmpty()) {
1718           if (pathMatchersBuilder_.isEmpty()) {
1719             pathMatchersBuilder_.dispose();
1720             pathMatchersBuilder_ = null;
1721             pathMatchers_ = other.pathMatchers_;
1722             bitField0_ = (bitField0_ & ~0x00000800);
1723             pathMatchersBuilder_ =
1724                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1725                     ? getPathMatchersFieldBuilder()
1726                     : null;
1727           } else {
1728             pathMatchersBuilder_.addAllMessages(other.pathMatchers_);
1729           }
1730         }
1731       }
1732       if (other.hasRegion()) {
1733         region_ = other.region_;
1734         bitField0_ |= 0x00001000;
1735         onChanged();
1736       }
1737       if (other.hasSelfLink()) {
1738         selfLink_ = other.selfLink_;
1739         bitField0_ |= 0x00002000;
1740         onChanged();
1741       }
1742       if (testsBuilder_ == null) {
1743         if (!other.tests_.isEmpty()) {
1744           if (tests_.isEmpty()) {
1745             tests_ = other.tests_;
1746             bitField0_ = (bitField0_ & ~0x00004000);
1747           } else {
1748             ensureTestsIsMutable();
1749             tests_.addAll(other.tests_);
1750           }
1751           onChanged();
1752         }
1753       } else {
1754         if (!other.tests_.isEmpty()) {
1755           if (testsBuilder_.isEmpty()) {
1756             testsBuilder_.dispose();
1757             testsBuilder_ = null;
1758             tests_ = other.tests_;
1759             bitField0_ = (bitField0_ & ~0x00004000);
1760             testsBuilder_ =
1761                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1762                     ? getTestsFieldBuilder()
1763                     : null;
1764           } else {
1765             testsBuilder_.addAllMessages(other.tests_);
1766           }
1767         }
1768       }
1769       this.mergeUnknownFields(other.getUnknownFields());
1770       onChanged();
1771       return this;
1772     }
1773 
1774     @java.lang.Override
isInitialized()1775     public final boolean isInitialized() {
1776       return true;
1777     }
1778 
1779     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1780     public Builder mergeFrom(
1781         com.google.protobuf.CodedInputStream input,
1782         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1783         throws java.io.IOException {
1784       if (extensionRegistry == null) {
1785         throw new java.lang.NullPointerException();
1786       }
1787       try {
1788         boolean done = false;
1789         while (!done) {
1790           int tag = input.readTag();
1791           switch (tag) {
1792             case 0:
1793               done = true;
1794               break;
1795             case 26840:
1796               {
1797                 id_ = input.readUInt64();
1798                 bitField0_ |= 0x00000100;
1799                 break;
1800               } // case 26840
1801             case 26336418:
1802               {
1803                 kind_ = input.readStringRequireUtf8();
1804                 bitField0_ |= 0x00000200;
1805                 break;
1806               } // case 26336418
1807             case 26989658:
1808               {
1809                 name_ = input.readStringRequireUtf8();
1810                 bitField0_ |= 0x00000400;
1811                 break;
1812               } // case 26989658
1813             case 244202930:
1814               {
1815                 creationTimestamp_ = input.readStringRequireUtf8();
1816                 bitField0_ |= 0x00000001;
1817                 break;
1818               } // case 244202930
1819             case 882012426:
1820               {
1821                 com.google.cloud.compute.v1.UrlMapTest m =
1822                     input.readMessage(
1823                         com.google.cloud.compute.v1.UrlMapTest.parser(), extensionRegistry);
1824                 if (testsBuilder_ == null) {
1825                   ensureTestsIsMutable();
1826                   tests_.add(m);
1827                 } else {
1828                   testsBuilder_.addMessage(m);
1829                 }
1830                 break;
1831               } // case 882012426
1832             case 1111570338:
1833               {
1834                 region_ = input.readStringRequireUtf8();
1835                 bitField0_ |= 0x00001000;
1836                 break;
1837               } // case 1111570338
1838             case 1877428002:
1839               {
1840                 fingerprint_ = input.readStringRequireUtf8();
1841                 bitField0_ |= 0x00000020;
1842                 break;
1843               } // case 1877428002
1844             case -2121653542:
1845               {
1846                 com.google.cloud.compute.v1.PathMatcher m =
1847                     input.readMessage(
1848                         com.google.cloud.compute.v1.PathMatcher.parser(), extensionRegistry);
1849                 if (pathMatchersBuilder_ == null) {
1850                   ensurePathMatchersIsMutable();
1851                   pathMatchers_.add(m);
1852                 } else {
1853                   pathMatchersBuilder_.addMessage(m);
1854                 }
1855                 break;
1856               } // case -2121653542
1857             case -1800528638:
1858               {
1859                 com.google.cloud.compute.v1.HostRule m =
1860                     input.readMessage(
1861                         com.google.cloud.compute.v1.HostRule.parser(), extensionRegistry);
1862                 if (hostRulesBuilder_ == null) {
1863                   ensureHostRulesIsMutable();
1864                   hostRules_.add(m);
1865                 } else {
1866                   hostRulesBuilder_.addMessage(m);
1867                 }
1868                 break;
1869               } // case -1800528638
1870             case -1670348478:
1871               {
1872                 input.readMessage(getHeaderActionFieldBuilder().getBuilder(), extensionRegistry);
1873                 bitField0_ |= 0x00000040;
1874                 break;
1875               } // case -1670348478
1876             case -1418940590:
1877               {
1878                 input.readMessage(
1879                     getDefaultUrlRedirectFieldBuilder().getBuilder(), extensionRegistry);
1880                 bitField0_ |= 0x00000008;
1881                 break;
1882               } // case -1418940590
1883             case -1333029446:
1884               {
1885                 defaultService_ = input.readStringRequireUtf8();
1886                 bitField0_ |= 0x00000004;
1887                 break;
1888               } // case -1333029446
1889             case -1263611566:
1890               {
1891                 input.readMessage(
1892                     getDefaultRouteActionFieldBuilder().getBuilder(), extensionRegistry);
1893                 bitField0_ |= 0x00000002;
1894                 break;
1895               } // case -1263611566
1896             case -911466526:
1897               {
1898                 description_ = input.readStringRequireUtf8();
1899                 bitField0_ |= 0x00000010;
1900                 break;
1901               } // case -911466526
1902             case -645248918:
1903               {
1904                 selfLink_ = input.readStringRequireUtf8();
1905                 bitField0_ |= 0x00002000;
1906                 break;
1907               } // case -645248918
1908             default:
1909               {
1910                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1911                   done = true; // was an endgroup tag
1912                 }
1913                 break;
1914               } // default:
1915           } // switch (tag)
1916         } // while (!done)
1917       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1918         throw e.unwrapIOException();
1919       } finally {
1920         onChanged();
1921       } // finally
1922       return this;
1923     }
1924 
1925     private int bitField0_;
1926 
1927     private java.lang.Object creationTimestamp_ = "";
1928     /**
1929      *
1930      *
1931      * <pre>
1932      * [Output Only] Creation timestamp in RFC3339 text format.
1933      * </pre>
1934      *
1935      * <code>optional string creation_timestamp = 30525366;</code>
1936      *
1937      * @return Whether the creationTimestamp field is set.
1938      */
hasCreationTimestamp()1939     public boolean hasCreationTimestamp() {
1940       return ((bitField0_ & 0x00000001) != 0);
1941     }
1942     /**
1943      *
1944      *
1945      * <pre>
1946      * [Output Only] Creation timestamp in RFC3339 text format.
1947      * </pre>
1948      *
1949      * <code>optional string creation_timestamp = 30525366;</code>
1950      *
1951      * @return The creationTimestamp.
1952      */
getCreationTimestamp()1953     public java.lang.String getCreationTimestamp() {
1954       java.lang.Object ref = creationTimestamp_;
1955       if (!(ref instanceof java.lang.String)) {
1956         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1957         java.lang.String s = bs.toStringUtf8();
1958         creationTimestamp_ = s;
1959         return s;
1960       } else {
1961         return (java.lang.String) ref;
1962       }
1963     }
1964     /**
1965      *
1966      *
1967      * <pre>
1968      * [Output Only] Creation timestamp in RFC3339 text format.
1969      * </pre>
1970      *
1971      * <code>optional string creation_timestamp = 30525366;</code>
1972      *
1973      * @return The bytes for creationTimestamp.
1974      */
getCreationTimestampBytes()1975     public com.google.protobuf.ByteString getCreationTimestampBytes() {
1976       java.lang.Object ref = creationTimestamp_;
1977       if (ref instanceof String) {
1978         com.google.protobuf.ByteString b =
1979             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1980         creationTimestamp_ = b;
1981         return b;
1982       } else {
1983         return (com.google.protobuf.ByteString) ref;
1984       }
1985     }
1986     /**
1987      *
1988      *
1989      * <pre>
1990      * [Output Only] Creation timestamp in RFC3339 text format.
1991      * </pre>
1992      *
1993      * <code>optional string creation_timestamp = 30525366;</code>
1994      *
1995      * @param value The creationTimestamp to set.
1996      * @return This builder for chaining.
1997      */
setCreationTimestamp(java.lang.String value)1998     public Builder setCreationTimestamp(java.lang.String value) {
1999       if (value == null) {
2000         throw new NullPointerException();
2001       }
2002       creationTimestamp_ = value;
2003       bitField0_ |= 0x00000001;
2004       onChanged();
2005       return this;
2006     }
2007     /**
2008      *
2009      *
2010      * <pre>
2011      * [Output Only] Creation timestamp in RFC3339 text format.
2012      * </pre>
2013      *
2014      * <code>optional string creation_timestamp = 30525366;</code>
2015      *
2016      * @return This builder for chaining.
2017      */
clearCreationTimestamp()2018     public Builder clearCreationTimestamp() {
2019       creationTimestamp_ = getDefaultInstance().getCreationTimestamp();
2020       bitField0_ = (bitField0_ & ~0x00000001);
2021       onChanged();
2022       return this;
2023     }
2024     /**
2025      *
2026      *
2027      * <pre>
2028      * [Output Only] Creation timestamp in RFC3339 text format.
2029      * </pre>
2030      *
2031      * <code>optional string creation_timestamp = 30525366;</code>
2032      *
2033      * @param value The bytes for creationTimestamp to set.
2034      * @return This builder for chaining.
2035      */
setCreationTimestampBytes(com.google.protobuf.ByteString value)2036     public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) {
2037       if (value == null) {
2038         throw new NullPointerException();
2039       }
2040       checkByteStringIsUtf8(value);
2041       creationTimestamp_ = value;
2042       bitField0_ |= 0x00000001;
2043       onChanged();
2044       return this;
2045     }
2046 
2047     private com.google.cloud.compute.v1.HttpRouteAction defaultRouteAction_;
2048     private com.google.protobuf.SingleFieldBuilderV3<
2049             com.google.cloud.compute.v1.HttpRouteAction,
2050             com.google.cloud.compute.v1.HttpRouteAction.Builder,
2051             com.google.cloud.compute.v1.HttpRouteActionOrBuilder>
2052         defaultRouteActionBuilder_;
2053     /**
2054      *
2055      *
2056      * <pre>
2057      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2058      * </pre>
2059      *
2060      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2061      * </code>
2062      *
2063      * @return Whether the defaultRouteAction field is set.
2064      */
hasDefaultRouteAction()2065     public boolean hasDefaultRouteAction() {
2066       return ((bitField0_ & 0x00000002) != 0);
2067     }
2068     /**
2069      *
2070      *
2071      * <pre>
2072      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2073      * </pre>
2074      *
2075      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2076      * </code>
2077      *
2078      * @return The defaultRouteAction.
2079      */
getDefaultRouteAction()2080     public com.google.cloud.compute.v1.HttpRouteAction getDefaultRouteAction() {
2081       if (defaultRouteActionBuilder_ == null) {
2082         return defaultRouteAction_ == null
2083             ? com.google.cloud.compute.v1.HttpRouteAction.getDefaultInstance()
2084             : defaultRouteAction_;
2085       } else {
2086         return defaultRouteActionBuilder_.getMessage();
2087       }
2088     }
2089     /**
2090      *
2091      *
2092      * <pre>
2093      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2094      * </pre>
2095      *
2096      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2097      * </code>
2098      */
setDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteAction value)2099     public Builder setDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteAction value) {
2100       if (defaultRouteActionBuilder_ == null) {
2101         if (value == null) {
2102           throw new NullPointerException();
2103         }
2104         defaultRouteAction_ = value;
2105       } else {
2106         defaultRouteActionBuilder_.setMessage(value);
2107       }
2108       bitField0_ |= 0x00000002;
2109       onChanged();
2110       return this;
2111     }
2112     /**
2113      *
2114      *
2115      * <pre>
2116      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2117      * </pre>
2118      *
2119      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2120      * </code>
2121      */
setDefaultRouteAction( com.google.cloud.compute.v1.HttpRouteAction.Builder builderForValue)2122     public Builder setDefaultRouteAction(
2123         com.google.cloud.compute.v1.HttpRouteAction.Builder builderForValue) {
2124       if (defaultRouteActionBuilder_ == null) {
2125         defaultRouteAction_ = builderForValue.build();
2126       } else {
2127         defaultRouteActionBuilder_.setMessage(builderForValue.build());
2128       }
2129       bitField0_ |= 0x00000002;
2130       onChanged();
2131       return this;
2132     }
2133     /**
2134      *
2135      *
2136      * <pre>
2137      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2138      * </pre>
2139      *
2140      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2141      * </code>
2142      */
mergeDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteAction value)2143     public Builder mergeDefaultRouteAction(com.google.cloud.compute.v1.HttpRouteAction value) {
2144       if (defaultRouteActionBuilder_ == null) {
2145         if (((bitField0_ & 0x00000002) != 0)
2146             && defaultRouteAction_ != null
2147             && defaultRouteAction_
2148                 != com.google.cloud.compute.v1.HttpRouteAction.getDefaultInstance()) {
2149           getDefaultRouteActionBuilder().mergeFrom(value);
2150         } else {
2151           defaultRouteAction_ = value;
2152         }
2153       } else {
2154         defaultRouteActionBuilder_.mergeFrom(value);
2155       }
2156       bitField0_ |= 0x00000002;
2157       onChanged();
2158       return this;
2159     }
2160     /**
2161      *
2162      *
2163      * <pre>
2164      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2165      * </pre>
2166      *
2167      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2168      * </code>
2169      */
clearDefaultRouteAction()2170     public Builder clearDefaultRouteAction() {
2171       bitField0_ = (bitField0_ & ~0x00000002);
2172       defaultRouteAction_ = null;
2173       if (defaultRouteActionBuilder_ != null) {
2174         defaultRouteActionBuilder_.dispose();
2175         defaultRouteActionBuilder_ = null;
2176       }
2177       onChanged();
2178       return this;
2179     }
2180     /**
2181      *
2182      *
2183      * <pre>
2184      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2185      * </pre>
2186      *
2187      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2188      * </code>
2189      */
getDefaultRouteActionBuilder()2190     public com.google.cloud.compute.v1.HttpRouteAction.Builder getDefaultRouteActionBuilder() {
2191       bitField0_ |= 0x00000002;
2192       onChanged();
2193       return getDefaultRouteActionFieldBuilder().getBuilder();
2194     }
2195     /**
2196      *
2197      *
2198      * <pre>
2199      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2200      * </pre>
2201      *
2202      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2203      * </code>
2204      */
getDefaultRouteActionOrBuilder()2205     public com.google.cloud.compute.v1.HttpRouteActionOrBuilder getDefaultRouteActionOrBuilder() {
2206       if (defaultRouteActionBuilder_ != null) {
2207         return defaultRouteActionBuilder_.getMessageOrBuilder();
2208       } else {
2209         return defaultRouteAction_ == null
2210             ? com.google.cloud.compute.v1.HttpRouteAction.getDefaultInstance()
2211             : defaultRouteAction_;
2212       }
2213     }
2214     /**
2215      *
2216      *
2217      * <pre>
2218      * defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2219      * </pre>
2220      *
2221      * <code>optional .google.cloud.compute.v1.HttpRouteAction default_route_action = 378919466;
2222      * </code>
2223      */
2224     private com.google.protobuf.SingleFieldBuilderV3<
2225             com.google.cloud.compute.v1.HttpRouteAction,
2226             com.google.cloud.compute.v1.HttpRouteAction.Builder,
2227             com.google.cloud.compute.v1.HttpRouteActionOrBuilder>
getDefaultRouteActionFieldBuilder()2228         getDefaultRouteActionFieldBuilder() {
2229       if (defaultRouteActionBuilder_ == null) {
2230         defaultRouteActionBuilder_ =
2231             new com.google.protobuf.SingleFieldBuilderV3<
2232                 com.google.cloud.compute.v1.HttpRouteAction,
2233                 com.google.cloud.compute.v1.HttpRouteAction.Builder,
2234                 com.google.cloud.compute.v1.HttpRouteActionOrBuilder>(
2235                 getDefaultRouteAction(), getParentForChildren(), isClean());
2236         defaultRouteAction_ = null;
2237       }
2238       return defaultRouteActionBuilder_;
2239     }
2240 
2241     private java.lang.Object defaultService_ = "";
2242     /**
2243      *
2244      *
2245      * <pre>
2246      * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2247      * </pre>
2248      *
2249      * <code>optional string default_service = 370242231;</code>
2250      *
2251      * @return Whether the defaultService field is set.
2252      */
hasDefaultService()2253     public boolean hasDefaultService() {
2254       return ((bitField0_ & 0x00000004) != 0);
2255     }
2256     /**
2257      *
2258      *
2259      * <pre>
2260      * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2261      * </pre>
2262      *
2263      * <code>optional string default_service = 370242231;</code>
2264      *
2265      * @return The defaultService.
2266      */
getDefaultService()2267     public java.lang.String getDefaultService() {
2268       java.lang.Object ref = defaultService_;
2269       if (!(ref instanceof java.lang.String)) {
2270         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2271         java.lang.String s = bs.toStringUtf8();
2272         defaultService_ = s;
2273         return s;
2274       } else {
2275         return (java.lang.String) ref;
2276       }
2277     }
2278     /**
2279      *
2280      *
2281      * <pre>
2282      * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2283      * </pre>
2284      *
2285      * <code>optional string default_service = 370242231;</code>
2286      *
2287      * @return The bytes for defaultService.
2288      */
getDefaultServiceBytes()2289     public com.google.protobuf.ByteString getDefaultServiceBytes() {
2290       java.lang.Object ref = defaultService_;
2291       if (ref instanceof String) {
2292         com.google.protobuf.ByteString b =
2293             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2294         defaultService_ = b;
2295         return b;
2296       } else {
2297         return (com.google.protobuf.ByteString) ref;
2298       }
2299     }
2300     /**
2301      *
2302      *
2303      * <pre>
2304      * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2305      * </pre>
2306      *
2307      * <code>optional string default_service = 370242231;</code>
2308      *
2309      * @param value The defaultService to set.
2310      * @return This builder for chaining.
2311      */
setDefaultService(java.lang.String value)2312     public Builder setDefaultService(java.lang.String value) {
2313       if (value == null) {
2314         throw new NullPointerException();
2315       }
2316       defaultService_ = value;
2317       bitField0_ |= 0x00000004;
2318       onChanged();
2319       return this;
2320     }
2321     /**
2322      *
2323      *
2324      * <pre>
2325      * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2326      * </pre>
2327      *
2328      * <code>optional string default_service = 370242231;</code>
2329      *
2330      * @return This builder for chaining.
2331      */
clearDefaultService()2332     public Builder clearDefaultService() {
2333       defaultService_ = getDefaultInstance().getDefaultService();
2334       bitField0_ = (bitField0_ & ~0x00000004);
2335       onChanged();
2336       return this;
2337     }
2338     /**
2339      *
2340      *
2341      * <pre>
2342      * The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
2343      * </pre>
2344      *
2345      * <code>optional string default_service = 370242231;</code>
2346      *
2347      * @param value The bytes for defaultService to set.
2348      * @return This builder for chaining.
2349      */
setDefaultServiceBytes(com.google.protobuf.ByteString value)2350     public Builder setDefaultServiceBytes(com.google.protobuf.ByteString value) {
2351       if (value == null) {
2352         throw new NullPointerException();
2353       }
2354       checkByteStringIsUtf8(value);
2355       defaultService_ = value;
2356       bitField0_ |= 0x00000004;
2357       onChanged();
2358       return this;
2359     }
2360 
2361     private com.google.cloud.compute.v1.HttpRedirectAction defaultUrlRedirect_;
2362     private com.google.protobuf.SingleFieldBuilderV3<
2363             com.google.cloud.compute.v1.HttpRedirectAction,
2364             com.google.cloud.compute.v1.HttpRedirectAction.Builder,
2365             com.google.cloud.compute.v1.HttpRedirectActionOrBuilder>
2366         defaultUrlRedirectBuilder_;
2367     /**
2368      *
2369      *
2370      * <pre>
2371      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2372      * </pre>
2373      *
2374      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2375      * </code>
2376      *
2377      * @return Whether the defaultUrlRedirect field is set.
2378      */
hasDefaultUrlRedirect()2379     public boolean hasDefaultUrlRedirect() {
2380       return ((bitField0_ & 0x00000008) != 0);
2381     }
2382     /**
2383      *
2384      *
2385      * <pre>
2386      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2387      * </pre>
2388      *
2389      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2390      * </code>
2391      *
2392      * @return The defaultUrlRedirect.
2393      */
getDefaultUrlRedirect()2394     public com.google.cloud.compute.v1.HttpRedirectAction getDefaultUrlRedirect() {
2395       if (defaultUrlRedirectBuilder_ == null) {
2396         return defaultUrlRedirect_ == null
2397             ? com.google.cloud.compute.v1.HttpRedirectAction.getDefaultInstance()
2398             : defaultUrlRedirect_;
2399       } else {
2400         return defaultUrlRedirectBuilder_.getMessage();
2401       }
2402     }
2403     /**
2404      *
2405      *
2406      * <pre>
2407      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2408      * </pre>
2409      *
2410      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2411      * </code>
2412      */
setDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction value)2413     public Builder setDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction value) {
2414       if (defaultUrlRedirectBuilder_ == null) {
2415         if (value == null) {
2416           throw new NullPointerException();
2417         }
2418         defaultUrlRedirect_ = value;
2419       } else {
2420         defaultUrlRedirectBuilder_.setMessage(value);
2421       }
2422       bitField0_ |= 0x00000008;
2423       onChanged();
2424       return this;
2425     }
2426     /**
2427      *
2428      *
2429      * <pre>
2430      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2431      * </pre>
2432      *
2433      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2434      * </code>
2435      */
setDefaultUrlRedirect( com.google.cloud.compute.v1.HttpRedirectAction.Builder builderForValue)2436     public Builder setDefaultUrlRedirect(
2437         com.google.cloud.compute.v1.HttpRedirectAction.Builder builderForValue) {
2438       if (defaultUrlRedirectBuilder_ == null) {
2439         defaultUrlRedirect_ = builderForValue.build();
2440       } else {
2441         defaultUrlRedirectBuilder_.setMessage(builderForValue.build());
2442       }
2443       bitField0_ |= 0x00000008;
2444       onChanged();
2445       return this;
2446     }
2447     /**
2448      *
2449      *
2450      * <pre>
2451      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2452      * </pre>
2453      *
2454      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2455      * </code>
2456      */
mergeDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction value)2457     public Builder mergeDefaultUrlRedirect(com.google.cloud.compute.v1.HttpRedirectAction value) {
2458       if (defaultUrlRedirectBuilder_ == null) {
2459         if (((bitField0_ & 0x00000008) != 0)
2460             && defaultUrlRedirect_ != null
2461             && defaultUrlRedirect_
2462                 != com.google.cloud.compute.v1.HttpRedirectAction.getDefaultInstance()) {
2463           getDefaultUrlRedirectBuilder().mergeFrom(value);
2464         } else {
2465           defaultUrlRedirect_ = value;
2466         }
2467       } else {
2468         defaultUrlRedirectBuilder_.mergeFrom(value);
2469       }
2470       bitField0_ |= 0x00000008;
2471       onChanged();
2472       return this;
2473     }
2474     /**
2475      *
2476      *
2477      * <pre>
2478      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2479      * </pre>
2480      *
2481      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2482      * </code>
2483      */
clearDefaultUrlRedirect()2484     public Builder clearDefaultUrlRedirect() {
2485       bitField0_ = (bitField0_ & ~0x00000008);
2486       defaultUrlRedirect_ = null;
2487       if (defaultUrlRedirectBuilder_ != null) {
2488         defaultUrlRedirectBuilder_.dispose();
2489         defaultUrlRedirectBuilder_ = null;
2490       }
2491       onChanged();
2492       return this;
2493     }
2494     /**
2495      *
2496      *
2497      * <pre>
2498      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2499      * </pre>
2500      *
2501      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2502      * </code>
2503      */
getDefaultUrlRedirectBuilder()2504     public com.google.cloud.compute.v1.HttpRedirectAction.Builder getDefaultUrlRedirectBuilder() {
2505       bitField0_ |= 0x00000008;
2506       onChanged();
2507       return getDefaultUrlRedirectFieldBuilder().getBuilder();
2508     }
2509     /**
2510      *
2511      *
2512      * <pre>
2513      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2514      * </pre>
2515      *
2516      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2517      * </code>
2518      */
2519     public com.google.cloud.compute.v1.HttpRedirectActionOrBuilder
getDefaultUrlRedirectOrBuilder()2520         getDefaultUrlRedirectOrBuilder() {
2521       if (defaultUrlRedirectBuilder_ != null) {
2522         return defaultUrlRedirectBuilder_.getMessageOrBuilder();
2523       } else {
2524         return defaultUrlRedirect_ == null
2525             ? com.google.cloud.compute.v1.HttpRedirectAction.getDefaultInstance()
2526             : defaultUrlRedirect_;
2527       }
2528     }
2529     /**
2530      *
2531      *
2532      * <pre>
2533      * When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy.
2534      * </pre>
2535      *
2536      * <code>optional .google.cloud.compute.v1.HttpRedirectAction default_url_redirect = 359503338;
2537      * </code>
2538      */
2539     private com.google.protobuf.SingleFieldBuilderV3<
2540             com.google.cloud.compute.v1.HttpRedirectAction,
2541             com.google.cloud.compute.v1.HttpRedirectAction.Builder,
2542             com.google.cloud.compute.v1.HttpRedirectActionOrBuilder>
getDefaultUrlRedirectFieldBuilder()2543         getDefaultUrlRedirectFieldBuilder() {
2544       if (defaultUrlRedirectBuilder_ == null) {
2545         defaultUrlRedirectBuilder_ =
2546             new com.google.protobuf.SingleFieldBuilderV3<
2547                 com.google.cloud.compute.v1.HttpRedirectAction,
2548                 com.google.cloud.compute.v1.HttpRedirectAction.Builder,
2549                 com.google.cloud.compute.v1.HttpRedirectActionOrBuilder>(
2550                 getDefaultUrlRedirect(), getParentForChildren(), isClean());
2551         defaultUrlRedirect_ = null;
2552       }
2553       return defaultUrlRedirectBuilder_;
2554     }
2555 
2556     private java.lang.Object description_ = "";
2557     /**
2558      *
2559      *
2560      * <pre>
2561      * An optional description of this resource. Provide this property when you create the resource.
2562      * </pre>
2563      *
2564      * <code>optional string description = 422937596;</code>
2565      *
2566      * @return Whether the description field is set.
2567      */
hasDescription()2568     public boolean hasDescription() {
2569       return ((bitField0_ & 0x00000010) != 0);
2570     }
2571     /**
2572      *
2573      *
2574      * <pre>
2575      * An optional description of this resource. Provide this property when you create the resource.
2576      * </pre>
2577      *
2578      * <code>optional string description = 422937596;</code>
2579      *
2580      * @return The description.
2581      */
getDescription()2582     public java.lang.String getDescription() {
2583       java.lang.Object ref = description_;
2584       if (!(ref instanceof java.lang.String)) {
2585         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2586         java.lang.String s = bs.toStringUtf8();
2587         description_ = s;
2588         return s;
2589       } else {
2590         return (java.lang.String) ref;
2591       }
2592     }
2593     /**
2594      *
2595      *
2596      * <pre>
2597      * An optional description of this resource. Provide this property when you create the resource.
2598      * </pre>
2599      *
2600      * <code>optional string description = 422937596;</code>
2601      *
2602      * @return The bytes for description.
2603      */
getDescriptionBytes()2604     public com.google.protobuf.ByteString getDescriptionBytes() {
2605       java.lang.Object ref = description_;
2606       if (ref instanceof String) {
2607         com.google.protobuf.ByteString b =
2608             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2609         description_ = b;
2610         return b;
2611       } else {
2612         return (com.google.protobuf.ByteString) ref;
2613       }
2614     }
2615     /**
2616      *
2617      *
2618      * <pre>
2619      * An optional description of this resource. Provide this property when you create the resource.
2620      * </pre>
2621      *
2622      * <code>optional string description = 422937596;</code>
2623      *
2624      * @param value The description to set.
2625      * @return This builder for chaining.
2626      */
setDescription(java.lang.String value)2627     public Builder setDescription(java.lang.String value) {
2628       if (value == null) {
2629         throw new NullPointerException();
2630       }
2631       description_ = value;
2632       bitField0_ |= 0x00000010;
2633       onChanged();
2634       return this;
2635     }
2636     /**
2637      *
2638      *
2639      * <pre>
2640      * An optional description of this resource. Provide this property when you create the resource.
2641      * </pre>
2642      *
2643      * <code>optional string description = 422937596;</code>
2644      *
2645      * @return This builder for chaining.
2646      */
clearDescription()2647     public Builder clearDescription() {
2648       description_ = getDefaultInstance().getDescription();
2649       bitField0_ = (bitField0_ & ~0x00000010);
2650       onChanged();
2651       return this;
2652     }
2653     /**
2654      *
2655      *
2656      * <pre>
2657      * An optional description of this resource. Provide this property when you create the resource.
2658      * </pre>
2659      *
2660      * <code>optional string description = 422937596;</code>
2661      *
2662      * @param value The bytes for description to set.
2663      * @return This builder for chaining.
2664      */
setDescriptionBytes(com.google.protobuf.ByteString value)2665     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
2666       if (value == null) {
2667         throw new NullPointerException();
2668       }
2669       checkByteStringIsUtf8(value);
2670       description_ = value;
2671       bitField0_ |= 0x00000010;
2672       onChanged();
2673       return this;
2674     }
2675 
2676     private java.lang.Object fingerprint_ = "";
2677     /**
2678      *
2679      *
2680      * <pre>
2681      * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
2682      * </pre>
2683      *
2684      * <code>optional string fingerprint = 234678500;</code>
2685      *
2686      * @return Whether the fingerprint field is set.
2687      */
hasFingerprint()2688     public boolean hasFingerprint() {
2689       return ((bitField0_ & 0x00000020) != 0);
2690     }
2691     /**
2692      *
2693      *
2694      * <pre>
2695      * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
2696      * </pre>
2697      *
2698      * <code>optional string fingerprint = 234678500;</code>
2699      *
2700      * @return The fingerprint.
2701      */
getFingerprint()2702     public java.lang.String getFingerprint() {
2703       java.lang.Object ref = fingerprint_;
2704       if (!(ref instanceof java.lang.String)) {
2705         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2706         java.lang.String s = bs.toStringUtf8();
2707         fingerprint_ = s;
2708         return s;
2709       } else {
2710         return (java.lang.String) ref;
2711       }
2712     }
2713     /**
2714      *
2715      *
2716      * <pre>
2717      * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
2718      * </pre>
2719      *
2720      * <code>optional string fingerprint = 234678500;</code>
2721      *
2722      * @return The bytes for fingerprint.
2723      */
getFingerprintBytes()2724     public com.google.protobuf.ByteString getFingerprintBytes() {
2725       java.lang.Object ref = fingerprint_;
2726       if (ref instanceof String) {
2727         com.google.protobuf.ByteString b =
2728             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2729         fingerprint_ = b;
2730         return b;
2731       } else {
2732         return (com.google.protobuf.ByteString) ref;
2733       }
2734     }
2735     /**
2736      *
2737      *
2738      * <pre>
2739      * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
2740      * </pre>
2741      *
2742      * <code>optional string fingerprint = 234678500;</code>
2743      *
2744      * @param value The fingerprint to set.
2745      * @return This builder for chaining.
2746      */
setFingerprint(java.lang.String value)2747     public Builder setFingerprint(java.lang.String value) {
2748       if (value == null) {
2749         throw new NullPointerException();
2750       }
2751       fingerprint_ = value;
2752       bitField0_ |= 0x00000020;
2753       onChanged();
2754       return this;
2755     }
2756     /**
2757      *
2758      *
2759      * <pre>
2760      * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
2761      * </pre>
2762      *
2763      * <code>optional string fingerprint = 234678500;</code>
2764      *
2765      * @return This builder for chaining.
2766      */
clearFingerprint()2767     public Builder clearFingerprint() {
2768       fingerprint_ = getDefaultInstance().getFingerprint();
2769       bitField0_ = (bitField0_ & ~0x00000020);
2770       onChanged();
2771       return this;
2772     }
2773     /**
2774      *
2775      *
2776      * <pre>
2777      * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
2778      * </pre>
2779      *
2780      * <code>optional string fingerprint = 234678500;</code>
2781      *
2782      * @param value The bytes for fingerprint to set.
2783      * @return This builder for chaining.
2784      */
setFingerprintBytes(com.google.protobuf.ByteString value)2785     public Builder setFingerprintBytes(com.google.protobuf.ByteString value) {
2786       if (value == null) {
2787         throw new NullPointerException();
2788       }
2789       checkByteStringIsUtf8(value);
2790       fingerprint_ = value;
2791       bitField0_ |= 0x00000020;
2792       onChanged();
2793       return this;
2794     }
2795 
2796     private com.google.cloud.compute.v1.HttpHeaderAction headerAction_;
2797     private com.google.protobuf.SingleFieldBuilderV3<
2798             com.google.cloud.compute.v1.HttpHeaderAction,
2799             com.google.cloud.compute.v1.HttpHeaderAction.Builder,
2800             com.google.cloud.compute.v1.HttpHeaderActionOrBuilder>
2801         headerActionBuilder_;
2802     /**
2803      *
2804      *
2805      * <pre>
2806      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2807      * </pre>
2808      *
2809      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2810      *
2811      * @return Whether the headerAction field is set.
2812      */
hasHeaderAction()2813     public boolean hasHeaderAction() {
2814       return ((bitField0_ & 0x00000040) != 0);
2815     }
2816     /**
2817      *
2818      *
2819      * <pre>
2820      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2821      * </pre>
2822      *
2823      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2824      *
2825      * @return The headerAction.
2826      */
getHeaderAction()2827     public com.google.cloud.compute.v1.HttpHeaderAction getHeaderAction() {
2828       if (headerActionBuilder_ == null) {
2829         return headerAction_ == null
2830             ? com.google.cloud.compute.v1.HttpHeaderAction.getDefaultInstance()
2831             : headerAction_;
2832       } else {
2833         return headerActionBuilder_.getMessage();
2834       }
2835     }
2836     /**
2837      *
2838      *
2839      * <pre>
2840      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2841      * </pre>
2842      *
2843      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2844      */
setHeaderAction(com.google.cloud.compute.v1.HttpHeaderAction value)2845     public Builder setHeaderAction(com.google.cloud.compute.v1.HttpHeaderAction value) {
2846       if (headerActionBuilder_ == null) {
2847         if (value == null) {
2848           throw new NullPointerException();
2849         }
2850         headerAction_ = value;
2851       } else {
2852         headerActionBuilder_.setMessage(value);
2853       }
2854       bitField0_ |= 0x00000040;
2855       onChanged();
2856       return this;
2857     }
2858     /**
2859      *
2860      *
2861      * <pre>
2862      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2863      * </pre>
2864      *
2865      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2866      */
setHeaderAction( com.google.cloud.compute.v1.HttpHeaderAction.Builder builderForValue)2867     public Builder setHeaderAction(
2868         com.google.cloud.compute.v1.HttpHeaderAction.Builder builderForValue) {
2869       if (headerActionBuilder_ == null) {
2870         headerAction_ = builderForValue.build();
2871       } else {
2872         headerActionBuilder_.setMessage(builderForValue.build());
2873       }
2874       bitField0_ |= 0x00000040;
2875       onChanged();
2876       return this;
2877     }
2878     /**
2879      *
2880      *
2881      * <pre>
2882      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2883      * </pre>
2884      *
2885      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2886      */
mergeHeaderAction(com.google.cloud.compute.v1.HttpHeaderAction value)2887     public Builder mergeHeaderAction(com.google.cloud.compute.v1.HttpHeaderAction value) {
2888       if (headerActionBuilder_ == null) {
2889         if (((bitField0_ & 0x00000040) != 0)
2890             && headerAction_ != null
2891             && headerAction_ != com.google.cloud.compute.v1.HttpHeaderAction.getDefaultInstance()) {
2892           getHeaderActionBuilder().mergeFrom(value);
2893         } else {
2894           headerAction_ = value;
2895         }
2896       } else {
2897         headerActionBuilder_.mergeFrom(value);
2898       }
2899       bitField0_ |= 0x00000040;
2900       onChanged();
2901       return this;
2902     }
2903     /**
2904      *
2905      *
2906      * <pre>
2907      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2908      * </pre>
2909      *
2910      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2911      */
clearHeaderAction()2912     public Builder clearHeaderAction() {
2913       bitField0_ = (bitField0_ & ~0x00000040);
2914       headerAction_ = null;
2915       if (headerActionBuilder_ != null) {
2916         headerActionBuilder_.dispose();
2917         headerActionBuilder_ = null;
2918       }
2919       onChanged();
2920       return this;
2921     }
2922     /**
2923      *
2924      *
2925      * <pre>
2926      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2927      * </pre>
2928      *
2929      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2930      */
getHeaderActionBuilder()2931     public com.google.cloud.compute.v1.HttpHeaderAction.Builder getHeaderActionBuilder() {
2932       bitField0_ |= 0x00000040;
2933       onChanged();
2934       return getHeaderActionFieldBuilder().getBuilder();
2935     }
2936     /**
2937      *
2938      *
2939      * <pre>
2940      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2941      * </pre>
2942      *
2943      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2944      */
getHeaderActionOrBuilder()2945     public com.google.cloud.compute.v1.HttpHeaderActionOrBuilder getHeaderActionOrBuilder() {
2946       if (headerActionBuilder_ != null) {
2947         return headerActionBuilder_.getMessageOrBuilder();
2948       } else {
2949         return headerAction_ == null
2950             ? com.google.cloud.compute.v1.HttpHeaderAction.getDefaultInstance()
2951             : headerAction_;
2952       }
2953     }
2954     /**
2955      *
2956      *
2957      * <pre>
2958      * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
2959      * </pre>
2960      *
2961      * <code>optional .google.cloud.compute.v1.HttpHeaderAction header_action = 328077352;</code>
2962      */
2963     private com.google.protobuf.SingleFieldBuilderV3<
2964             com.google.cloud.compute.v1.HttpHeaderAction,
2965             com.google.cloud.compute.v1.HttpHeaderAction.Builder,
2966             com.google.cloud.compute.v1.HttpHeaderActionOrBuilder>
getHeaderActionFieldBuilder()2967         getHeaderActionFieldBuilder() {
2968       if (headerActionBuilder_ == null) {
2969         headerActionBuilder_ =
2970             new com.google.protobuf.SingleFieldBuilderV3<
2971                 com.google.cloud.compute.v1.HttpHeaderAction,
2972                 com.google.cloud.compute.v1.HttpHeaderAction.Builder,
2973                 com.google.cloud.compute.v1.HttpHeaderActionOrBuilder>(
2974                 getHeaderAction(), getParentForChildren(), isClean());
2975         headerAction_ = null;
2976       }
2977       return headerActionBuilder_;
2978     }
2979 
2980     private java.util.List<com.google.cloud.compute.v1.HostRule> hostRules_ =
2981         java.util.Collections.emptyList();
2982 
ensureHostRulesIsMutable()2983     private void ensureHostRulesIsMutable() {
2984       if (!((bitField0_ & 0x00000080) != 0)) {
2985         hostRules_ = new java.util.ArrayList<com.google.cloud.compute.v1.HostRule>(hostRules_);
2986         bitField0_ |= 0x00000080;
2987       }
2988     }
2989 
2990     private com.google.protobuf.RepeatedFieldBuilderV3<
2991             com.google.cloud.compute.v1.HostRule,
2992             com.google.cloud.compute.v1.HostRule.Builder,
2993             com.google.cloud.compute.v1.HostRuleOrBuilder>
2994         hostRulesBuilder_;
2995 
2996     /**
2997      *
2998      *
2999      * <pre>
3000      * The list of host rules to use against the URL.
3001      * </pre>
3002      *
3003      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3004      */
getHostRulesList()3005     public java.util.List<com.google.cloud.compute.v1.HostRule> getHostRulesList() {
3006       if (hostRulesBuilder_ == null) {
3007         return java.util.Collections.unmodifiableList(hostRules_);
3008       } else {
3009         return hostRulesBuilder_.getMessageList();
3010       }
3011     }
3012     /**
3013      *
3014      *
3015      * <pre>
3016      * The list of host rules to use against the URL.
3017      * </pre>
3018      *
3019      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3020      */
getHostRulesCount()3021     public int getHostRulesCount() {
3022       if (hostRulesBuilder_ == null) {
3023         return hostRules_.size();
3024       } else {
3025         return hostRulesBuilder_.getCount();
3026       }
3027     }
3028     /**
3029      *
3030      *
3031      * <pre>
3032      * The list of host rules to use against the URL.
3033      * </pre>
3034      *
3035      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3036      */
getHostRules(int index)3037     public com.google.cloud.compute.v1.HostRule getHostRules(int index) {
3038       if (hostRulesBuilder_ == null) {
3039         return hostRules_.get(index);
3040       } else {
3041         return hostRulesBuilder_.getMessage(index);
3042       }
3043     }
3044     /**
3045      *
3046      *
3047      * <pre>
3048      * The list of host rules to use against the URL.
3049      * </pre>
3050      *
3051      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3052      */
setHostRules(int index, com.google.cloud.compute.v1.HostRule value)3053     public Builder setHostRules(int index, com.google.cloud.compute.v1.HostRule value) {
3054       if (hostRulesBuilder_ == null) {
3055         if (value == null) {
3056           throw new NullPointerException();
3057         }
3058         ensureHostRulesIsMutable();
3059         hostRules_.set(index, value);
3060         onChanged();
3061       } else {
3062         hostRulesBuilder_.setMessage(index, value);
3063       }
3064       return this;
3065     }
3066     /**
3067      *
3068      *
3069      * <pre>
3070      * The list of host rules to use against the URL.
3071      * </pre>
3072      *
3073      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3074      */
setHostRules( int index, com.google.cloud.compute.v1.HostRule.Builder builderForValue)3075     public Builder setHostRules(
3076         int index, com.google.cloud.compute.v1.HostRule.Builder builderForValue) {
3077       if (hostRulesBuilder_ == null) {
3078         ensureHostRulesIsMutable();
3079         hostRules_.set(index, builderForValue.build());
3080         onChanged();
3081       } else {
3082         hostRulesBuilder_.setMessage(index, builderForValue.build());
3083       }
3084       return this;
3085     }
3086     /**
3087      *
3088      *
3089      * <pre>
3090      * The list of host rules to use against the URL.
3091      * </pre>
3092      *
3093      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3094      */
addHostRules(com.google.cloud.compute.v1.HostRule value)3095     public Builder addHostRules(com.google.cloud.compute.v1.HostRule value) {
3096       if (hostRulesBuilder_ == null) {
3097         if (value == null) {
3098           throw new NullPointerException();
3099         }
3100         ensureHostRulesIsMutable();
3101         hostRules_.add(value);
3102         onChanged();
3103       } else {
3104         hostRulesBuilder_.addMessage(value);
3105       }
3106       return this;
3107     }
3108     /**
3109      *
3110      *
3111      * <pre>
3112      * The list of host rules to use against the URL.
3113      * </pre>
3114      *
3115      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3116      */
addHostRules(int index, com.google.cloud.compute.v1.HostRule value)3117     public Builder addHostRules(int index, com.google.cloud.compute.v1.HostRule value) {
3118       if (hostRulesBuilder_ == null) {
3119         if (value == null) {
3120           throw new NullPointerException();
3121         }
3122         ensureHostRulesIsMutable();
3123         hostRules_.add(index, value);
3124         onChanged();
3125       } else {
3126         hostRulesBuilder_.addMessage(index, value);
3127       }
3128       return this;
3129     }
3130     /**
3131      *
3132      *
3133      * <pre>
3134      * The list of host rules to use against the URL.
3135      * </pre>
3136      *
3137      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3138      */
addHostRules(com.google.cloud.compute.v1.HostRule.Builder builderForValue)3139     public Builder addHostRules(com.google.cloud.compute.v1.HostRule.Builder builderForValue) {
3140       if (hostRulesBuilder_ == null) {
3141         ensureHostRulesIsMutable();
3142         hostRules_.add(builderForValue.build());
3143         onChanged();
3144       } else {
3145         hostRulesBuilder_.addMessage(builderForValue.build());
3146       }
3147       return this;
3148     }
3149     /**
3150      *
3151      *
3152      * <pre>
3153      * The list of host rules to use against the URL.
3154      * </pre>
3155      *
3156      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3157      */
addHostRules( int index, com.google.cloud.compute.v1.HostRule.Builder builderForValue)3158     public Builder addHostRules(
3159         int index, com.google.cloud.compute.v1.HostRule.Builder builderForValue) {
3160       if (hostRulesBuilder_ == null) {
3161         ensureHostRulesIsMutable();
3162         hostRules_.add(index, builderForValue.build());
3163         onChanged();
3164       } else {
3165         hostRulesBuilder_.addMessage(index, builderForValue.build());
3166       }
3167       return this;
3168     }
3169     /**
3170      *
3171      *
3172      * <pre>
3173      * The list of host rules to use against the URL.
3174      * </pre>
3175      *
3176      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3177      */
addAllHostRules( java.lang.Iterable<? extends com.google.cloud.compute.v1.HostRule> values)3178     public Builder addAllHostRules(
3179         java.lang.Iterable<? extends com.google.cloud.compute.v1.HostRule> values) {
3180       if (hostRulesBuilder_ == null) {
3181         ensureHostRulesIsMutable();
3182         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hostRules_);
3183         onChanged();
3184       } else {
3185         hostRulesBuilder_.addAllMessages(values);
3186       }
3187       return this;
3188     }
3189     /**
3190      *
3191      *
3192      * <pre>
3193      * The list of host rules to use against the URL.
3194      * </pre>
3195      *
3196      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3197      */
clearHostRules()3198     public Builder clearHostRules() {
3199       if (hostRulesBuilder_ == null) {
3200         hostRules_ = java.util.Collections.emptyList();
3201         bitField0_ = (bitField0_ & ~0x00000080);
3202         onChanged();
3203       } else {
3204         hostRulesBuilder_.clear();
3205       }
3206       return this;
3207     }
3208     /**
3209      *
3210      *
3211      * <pre>
3212      * The list of host rules to use against the URL.
3213      * </pre>
3214      *
3215      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3216      */
removeHostRules(int index)3217     public Builder removeHostRules(int index) {
3218       if (hostRulesBuilder_ == null) {
3219         ensureHostRulesIsMutable();
3220         hostRules_.remove(index);
3221         onChanged();
3222       } else {
3223         hostRulesBuilder_.remove(index);
3224       }
3225       return this;
3226     }
3227     /**
3228      *
3229      *
3230      * <pre>
3231      * The list of host rules to use against the URL.
3232      * </pre>
3233      *
3234      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3235      */
getHostRulesBuilder(int index)3236     public com.google.cloud.compute.v1.HostRule.Builder getHostRulesBuilder(int index) {
3237       return getHostRulesFieldBuilder().getBuilder(index);
3238     }
3239     /**
3240      *
3241      *
3242      * <pre>
3243      * The list of host rules to use against the URL.
3244      * </pre>
3245      *
3246      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3247      */
getHostRulesOrBuilder(int index)3248     public com.google.cloud.compute.v1.HostRuleOrBuilder getHostRulesOrBuilder(int index) {
3249       if (hostRulesBuilder_ == null) {
3250         return hostRules_.get(index);
3251       } else {
3252         return hostRulesBuilder_.getMessageOrBuilder(index);
3253       }
3254     }
3255     /**
3256      *
3257      *
3258      * <pre>
3259      * The list of host rules to use against the URL.
3260      * </pre>
3261      *
3262      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3263      */
3264     public java.util.List<? extends com.google.cloud.compute.v1.HostRuleOrBuilder>
getHostRulesOrBuilderList()3265         getHostRulesOrBuilderList() {
3266       if (hostRulesBuilder_ != null) {
3267         return hostRulesBuilder_.getMessageOrBuilderList();
3268       } else {
3269         return java.util.Collections.unmodifiableList(hostRules_);
3270       }
3271     }
3272     /**
3273      *
3274      *
3275      * <pre>
3276      * The list of host rules to use against the URL.
3277      * </pre>
3278      *
3279      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3280      */
addHostRulesBuilder()3281     public com.google.cloud.compute.v1.HostRule.Builder addHostRulesBuilder() {
3282       return getHostRulesFieldBuilder()
3283           .addBuilder(com.google.cloud.compute.v1.HostRule.getDefaultInstance());
3284     }
3285     /**
3286      *
3287      *
3288      * <pre>
3289      * The list of host rules to use against the URL.
3290      * </pre>
3291      *
3292      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3293      */
addHostRulesBuilder(int index)3294     public com.google.cloud.compute.v1.HostRule.Builder addHostRulesBuilder(int index) {
3295       return getHostRulesFieldBuilder()
3296           .addBuilder(index, com.google.cloud.compute.v1.HostRule.getDefaultInstance());
3297     }
3298     /**
3299      *
3300      *
3301      * <pre>
3302      * The list of host rules to use against the URL.
3303      * </pre>
3304      *
3305      * <code>repeated .google.cloud.compute.v1.HostRule host_rules = 311804832;</code>
3306      */
getHostRulesBuilderList()3307     public java.util.List<com.google.cloud.compute.v1.HostRule.Builder> getHostRulesBuilderList() {
3308       return getHostRulesFieldBuilder().getBuilderList();
3309     }
3310 
3311     private com.google.protobuf.RepeatedFieldBuilderV3<
3312             com.google.cloud.compute.v1.HostRule,
3313             com.google.cloud.compute.v1.HostRule.Builder,
3314             com.google.cloud.compute.v1.HostRuleOrBuilder>
getHostRulesFieldBuilder()3315         getHostRulesFieldBuilder() {
3316       if (hostRulesBuilder_ == null) {
3317         hostRulesBuilder_ =
3318             new com.google.protobuf.RepeatedFieldBuilderV3<
3319                 com.google.cloud.compute.v1.HostRule,
3320                 com.google.cloud.compute.v1.HostRule.Builder,
3321                 com.google.cloud.compute.v1.HostRuleOrBuilder>(
3322                 hostRules_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
3323         hostRules_ = null;
3324       }
3325       return hostRulesBuilder_;
3326     }
3327 
3328     private long id_;
3329     /**
3330      *
3331      *
3332      * <pre>
3333      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3334      * </pre>
3335      *
3336      * <code>optional uint64 id = 3355;</code>
3337      *
3338      * @return Whether the id field is set.
3339      */
3340     @java.lang.Override
hasId()3341     public boolean hasId() {
3342       return ((bitField0_ & 0x00000100) != 0);
3343     }
3344     /**
3345      *
3346      *
3347      * <pre>
3348      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3349      * </pre>
3350      *
3351      * <code>optional uint64 id = 3355;</code>
3352      *
3353      * @return The id.
3354      */
3355     @java.lang.Override
getId()3356     public long getId() {
3357       return id_;
3358     }
3359     /**
3360      *
3361      *
3362      * <pre>
3363      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3364      * </pre>
3365      *
3366      * <code>optional uint64 id = 3355;</code>
3367      *
3368      * @param value The id to set.
3369      * @return This builder for chaining.
3370      */
setId(long value)3371     public Builder setId(long value) {
3372 
3373       id_ = value;
3374       bitField0_ |= 0x00000100;
3375       onChanged();
3376       return this;
3377     }
3378     /**
3379      *
3380      *
3381      * <pre>
3382      * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
3383      * </pre>
3384      *
3385      * <code>optional uint64 id = 3355;</code>
3386      *
3387      * @return This builder for chaining.
3388      */
clearId()3389     public Builder clearId() {
3390       bitField0_ = (bitField0_ & ~0x00000100);
3391       id_ = 0L;
3392       onChanged();
3393       return this;
3394     }
3395 
3396     private java.lang.Object kind_ = "";
3397     /**
3398      *
3399      *
3400      * <pre>
3401      * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
3402      * </pre>
3403      *
3404      * <code>optional string kind = 3292052;</code>
3405      *
3406      * @return Whether the kind field is set.
3407      */
hasKind()3408     public boolean hasKind() {
3409       return ((bitField0_ & 0x00000200) != 0);
3410     }
3411     /**
3412      *
3413      *
3414      * <pre>
3415      * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
3416      * </pre>
3417      *
3418      * <code>optional string kind = 3292052;</code>
3419      *
3420      * @return The kind.
3421      */
getKind()3422     public java.lang.String getKind() {
3423       java.lang.Object ref = kind_;
3424       if (!(ref instanceof java.lang.String)) {
3425         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3426         java.lang.String s = bs.toStringUtf8();
3427         kind_ = s;
3428         return s;
3429       } else {
3430         return (java.lang.String) ref;
3431       }
3432     }
3433     /**
3434      *
3435      *
3436      * <pre>
3437      * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
3438      * </pre>
3439      *
3440      * <code>optional string kind = 3292052;</code>
3441      *
3442      * @return The bytes for kind.
3443      */
getKindBytes()3444     public com.google.protobuf.ByteString getKindBytes() {
3445       java.lang.Object ref = kind_;
3446       if (ref instanceof String) {
3447         com.google.protobuf.ByteString b =
3448             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3449         kind_ = b;
3450         return b;
3451       } else {
3452         return (com.google.protobuf.ByteString) ref;
3453       }
3454     }
3455     /**
3456      *
3457      *
3458      * <pre>
3459      * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
3460      * </pre>
3461      *
3462      * <code>optional string kind = 3292052;</code>
3463      *
3464      * @param value The kind to set.
3465      * @return This builder for chaining.
3466      */
setKind(java.lang.String value)3467     public Builder setKind(java.lang.String value) {
3468       if (value == null) {
3469         throw new NullPointerException();
3470       }
3471       kind_ = value;
3472       bitField0_ |= 0x00000200;
3473       onChanged();
3474       return this;
3475     }
3476     /**
3477      *
3478      *
3479      * <pre>
3480      * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
3481      * </pre>
3482      *
3483      * <code>optional string kind = 3292052;</code>
3484      *
3485      * @return This builder for chaining.
3486      */
clearKind()3487     public Builder clearKind() {
3488       kind_ = getDefaultInstance().getKind();
3489       bitField0_ = (bitField0_ & ~0x00000200);
3490       onChanged();
3491       return this;
3492     }
3493     /**
3494      *
3495      *
3496      * <pre>
3497      * [Output Only] Type of the resource. Always compute#urlMaps for url maps.
3498      * </pre>
3499      *
3500      * <code>optional string kind = 3292052;</code>
3501      *
3502      * @param value The bytes for kind to set.
3503      * @return This builder for chaining.
3504      */
setKindBytes(com.google.protobuf.ByteString value)3505     public Builder setKindBytes(com.google.protobuf.ByteString value) {
3506       if (value == null) {
3507         throw new NullPointerException();
3508       }
3509       checkByteStringIsUtf8(value);
3510       kind_ = value;
3511       bitField0_ |= 0x00000200;
3512       onChanged();
3513       return this;
3514     }
3515 
3516     private java.lang.Object name_ = "";
3517     /**
3518      *
3519      *
3520      * <pre>
3521      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
3522      * </pre>
3523      *
3524      * <code>optional string name = 3373707;</code>
3525      *
3526      * @return Whether the name field is set.
3527      */
hasName()3528     public boolean hasName() {
3529       return ((bitField0_ & 0x00000400) != 0);
3530     }
3531     /**
3532      *
3533      *
3534      * <pre>
3535      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
3536      * </pre>
3537      *
3538      * <code>optional string name = 3373707;</code>
3539      *
3540      * @return The name.
3541      */
getName()3542     public java.lang.String getName() {
3543       java.lang.Object ref = name_;
3544       if (!(ref instanceof java.lang.String)) {
3545         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3546         java.lang.String s = bs.toStringUtf8();
3547         name_ = s;
3548         return s;
3549       } else {
3550         return (java.lang.String) ref;
3551       }
3552     }
3553     /**
3554      *
3555      *
3556      * <pre>
3557      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
3558      * </pre>
3559      *
3560      * <code>optional string name = 3373707;</code>
3561      *
3562      * @return The bytes for name.
3563      */
getNameBytes()3564     public com.google.protobuf.ByteString getNameBytes() {
3565       java.lang.Object ref = name_;
3566       if (ref instanceof String) {
3567         com.google.protobuf.ByteString b =
3568             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3569         name_ = b;
3570         return b;
3571       } else {
3572         return (com.google.protobuf.ByteString) ref;
3573       }
3574     }
3575     /**
3576      *
3577      *
3578      * <pre>
3579      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
3580      * </pre>
3581      *
3582      * <code>optional string name = 3373707;</code>
3583      *
3584      * @param value The name to set.
3585      * @return This builder for chaining.
3586      */
setName(java.lang.String value)3587     public Builder setName(java.lang.String value) {
3588       if (value == null) {
3589         throw new NullPointerException();
3590       }
3591       name_ = value;
3592       bitField0_ |= 0x00000400;
3593       onChanged();
3594       return this;
3595     }
3596     /**
3597      *
3598      *
3599      * <pre>
3600      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
3601      * </pre>
3602      *
3603      * <code>optional string name = 3373707;</code>
3604      *
3605      * @return This builder for chaining.
3606      */
clearName()3607     public Builder clearName() {
3608       name_ = getDefaultInstance().getName();
3609       bitField0_ = (bitField0_ & ~0x00000400);
3610       onChanged();
3611       return this;
3612     }
3613     /**
3614      *
3615      *
3616      * <pre>
3617      * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
3618      * </pre>
3619      *
3620      * <code>optional string name = 3373707;</code>
3621      *
3622      * @param value The bytes for name to set.
3623      * @return This builder for chaining.
3624      */
setNameBytes(com.google.protobuf.ByteString value)3625     public Builder setNameBytes(com.google.protobuf.ByteString value) {
3626       if (value == null) {
3627         throw new NullPointerException();
3628       }
3629       checkByteStringIsUtf8(value);
3630       name_ = value;
3631       bitField0_ |= 0x00000400;
3632       onChanged();
3633       return this;
3634     }
3635 
3636     private java.util.List<com.google.cloud.compute.v1.PathMatcher> pathMatchers_ =
3637         java.util.Collections.emptyList();
3638 
ensurePathMatchersIsMutable()3639     private void ensurePathMatchersIsMutable() {
3640       if (!((bitField0_ & 0x00000800) != 0)) {
3641         pathMatchers_ =
3642             new java.util.ArrayList<com.google.cloud.compute.v1.PathMatcher>(pathMatchers_);
3643         bitField0_ |= 0x00000800;
3644       }
3645     }
3646 
3647     private com.google.protobuf.RepeatedFieldBuilderV3<
3648             com.google.cloud.compute.v1.PathMatcher,
3649             com.google.cloud.compute.v1.PathMatcher.Builder,
3650             com.google.cloud.compute.v1.PathMatcherOrBuilder>
3651         pathMatchersBuilder_;
3652 
3653     /**
3654      *
3655      *
3656      * <pre>
3657      * The list of named PathMatchers to use against the URL.
3658      * </pre>
3659      *
3660      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3661      */
getPathMatchersList()3662     public java.util.List<com.google.cloud.compute.v1.PathMatcher> getPathMatchersList() {
3663       if (pathMatchersBuilder_ == null) {
3664         return java.util.Collections.unmodifiableList(pathMatchers_);
3665       } else {
3666         return pathMatchersBuilder_.getMessageList();
3667       }
3668     }
3669     /**
3670      *
3671      *
3672      * <pre>
3673      * The list of named PathMatchers to use against the URL.
3674      * </pre>
3675      *
3676      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3677      */
getPathMatchersCount()3678     public int getPathMatchersCount() {
3679       if (pathMatchersBuilder_ == null) {
3680         return pathMatchers_.size();
3681       } else {
3682         return pathMatchersBuilder_.getCount();
3683       }
3684     }
3685     /**
3686      *
3687      *
3688      * <pre>
3689      * The list of named PathMatchers to use against the URL.
3690      * </pre>
3691      *
3692      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3693      */
getPathMatchers(int index)3694     public com.google.cloud.compute.v1.PathMatcher getPathMatchers(int index) {
3695       if (pathMatchersBuilder_ == null) {
3696         return pathMatchers_.get(index);
3697       } else {
3698         return pathMatchersBuilder_.getMessage(index);
3699       }
3700     }
3701     /**
3702      *
3703      *
3704      * <pre>
3705      * The list of named PathMatchers to use against the URL.
3706      * </pre>
3707      *
3708      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3709      */
setPathMatchers(int index, com.google.cloud.compute.v1.PathMatcher value)3710     public Builder setPathMatchers(int index, com.google.cloud.compute.v1.PathMatcher value) {
3711       if (pathMatchersBuilder_ == null) {
3712         if (value == null) {
3713           throw new NullPointerException();
3714         }
3715         ensurePathMatchersIsMutable();
3716         pathMatchers_.set(index, value);
3717         onChanged();
3718       } else {
3719         pathMatchersBuilder_.setMessage(index, value);
3720       }
3721       return this;
3722     }
3723     /**
3724      *
3725      *
3726      * <pre>
3727      * The list of named PathMatchers to use against the URL.
3728      * </pre>
3729      *
3730      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3731      */
setPathMatchers( int index, com.google.cloud.compute.v1.PathMatcher.Builder builderForValue)3732     public Builder setPathMatchers(
3733         int index, com.google.cloud.compute.v1.PathMatcher.Builder builderForValue) {
3734       if (pathMatchersBuilder_ == null) {
3735         ensurePathMatchersIsMutable();
3736         pathMatchers_.set(index, builderForValue.build());
3737         onChanged();
3738       } else {
3739         pathMatchersBuilder_.setMessage(index, builderForValue.build());
3740       }
3741       return this;
3742     }
3743     /**
3744      *
3745      *
3746      * <pre>
3747      * The list of named PathMatchers to use against the URL.
3748      * </pre>
3749      *
3750      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3751      */
addPathMatchers(com.google.cloud.compute.v1.PathMatcher value)3752     public Builder addPathMatchers(com.google.cloud.compute.v1.PathMatcher value) {
3753       if (pathMatchersBuilder_ == null) {
3754         if (value == null) {
3755           throw new NullPointerException();
3756         }
3757         ensurePathMatchersIsMutable();
3758         pathMatchers_.add(value);
3759         onChanged();
3760       } else {
3761         pathMatchersBuilder_.addMessage(value);
3762       }
3763       return this;
3764     }
3765     /**
3766      *
3767      *
3768      * <pre>
3769      * The list of named PathMatchers to use against the URL.
3770      * </pre>
3771      *
3772      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3773      */
addPathMatchers(int index, com.google.cloud.compute.v1.PathMatcher value)3774     public Builder addPathMatchers(int index, com.google.cloud.compute.v1.PathMatcher value) {
3775       if (pathMatchersBuilder_ == null) {
3776         if (value == null) {
3777           throw new NullPointerException();
3778         }
3779         ensurePathMatchersIsMutable();
3780         pathMatchers_.add(index, value);
3781         onChanged();
3782       } else {
3783         pathMatchersBuilder_.addMessage(index, value);
3784       }
3785       return this;
3786     }
3787     /**
3788      *
3789      *
3790      * <pre>
3791      * The list of named PathMatchers to use against the URL.
3792      * </pre>
3793      *
3794      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3795      */
addPathMatchers( com.google.cloud.compute.v1.PathMatcher.Builder builderForValue)3796     public Builder addPathMatchers(
3797         com.google.cloud.compute.v1.PathMatcher.Builder builderForValue) {
3798       if (pathMatchersBuilder_ == null) {
3799         ensurePathMatchersIsMutable();
3800         pathMatchers_.add(builderForValue.build());
3801         onChanged();
3802       } else {
3803         pathMatchersBuilder_.addMessage(builderForValue.build());
3804       }
3805       return this;
3806     }
3807     /**
3808      *
3809      *
3810      * <pre>
3811      * The list of named PathMatchers to use against the URL.
3812      * </pre>
3813      *
3814      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3815      */
addPathMatchers( int index, com.google.cloud.compute.v1.PathMatcher.Builder builderForValue)3816     public Builder addPathMatchers(
3817         int index, com.google.cloud.compute.v1.PathMatcher.Builder builderForValue) {
3818       if (pathMatchersBuilder_ == null) {
3819         ensurePathMatchersIsMutable();
3820         pathMatchers_.add(index, builderForValue.build());
3821         onChanged();
3822       } else {
3823         pathMatchersBuilder_.addMessage(index, builderForValue.build());
3824       }
3825       return this;
3826     }
3827     /**
3828      *
3829      *
3830      * <pre>
3831      * The list of named PathMatchers to use against the URL.
3832      * </pre>
3833      *
3834      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3835      */
addAllPathMatchers( java.lang.Iterable<? extends com.google.cloud.compute.v1.PathMatcher> values)3836     public Builder addAllPathMatchers(
3837         java.lang.Iterable<? extends com.google.cloud.compute.v1.PathMatcher> values) {
3838       if (pathMatchersBuilder_ == null) {
3839         ensurePathMatchersIsMutable();
3840         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pathMatchers_);
3841         onChanged();
3842       } else {
3843         pathMatchersBuilder_.addAllMessages(values);
3844       }
3845       return this;
3846     }
3847     /**
3848      *
3849      *
3850      * <pre>
3851      * The list of named PathMatchers to use against the URL.
3852      * </pre>
3853      *
3854      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3855      */
clearPathMatchers()3856     public Builder clearPathMatchers() {
3857       if (pathMatchersBuilder_ == null) {
3858         pathMatchers_ = java.util.Collections.emptyList();
3859         bitField0_ = (bitField0_ & ~0x00000800);
3860         onChanged();
3861       } else {
3862         pathMatchersBuilder_.clear();
3863       }
3864       return this;
3865     }
3866     /**
3867      *
3868      *
3869      * <pre>
3870      * The list of named PathMatchers to use against the URL.
3871      * </pre>
3872      *
3873      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3874      */
removePathMatchers(int index)3875     public Builder removePathMatchers(int index) {
3876       if (pathMatchersBuilder_ == null) {
3877         ensurePathMatchersIsMutable();
3878         pathMatchers_.remove(index);
3879         onChanged();
3880       } else {
3881         pathMatchersBuilder_.remove(index);
3882       }
3883       return this;
3884     }
3885     /**
3886      *
3887      *
3888      * <pre>
3889      * The list of named PathMatchers to use against the URL.
3890      * </pre>
3891      *
3892      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3893      */
getPathMatchersBuilder(int index)3894     public com.google.cloud.compute.v1.PathMatcher.Builder getPathMatchersBuilder(int index) {
3895       return getPathMatchersFieldBuilder().getBuilder(index);
3896     }
3897     /**
3898      *
3899      *
3900      * <pre>
3901      * The list of named PathMatchers to use against the URL.
3902      * </pre>
3903      *
3904      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3905      */
getPathMatchersOrBuilder(int index)3906     public com.google.cloud.compute.v1.PathMatcherOrBuilder getPathMatchersOrBuilder(int index) {
3907       if (pathMatchersBuilder_ == null) {
3908         return pathMatchers_.get(index);
3909       } else {
3910         return pathMatchersBuilder_.getMessageOrBuilder(index);
3911       }
3912     }
3913     /**
3914      *
3915      *
3916      * <pre>
3917      * The list of named PathMatchers to use against the URL.
3918      * </pre>
3919      *
3920      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3921      */
3922     public java.util.List<? extends com.google.cloud.compute.v1.PathMatcherOrBuilder>
getPathMatchersOrBuilderList()3923         getPathMatchersOrBuilderList() {
3924       if (pathMatchersBuilder_ != null) {
3925         return pathMatchersBuilder_.getMessageOrBuilderList();
3926       } else {
3927         return java.util.Collections.unmodifiableList(pathMatchers_);
3928       }
3929     }
3930     /**
3931      *
3932      *
3933      * <pre>
3934      * The list of named PathMatchers to use against the URL.
3935      * </pre>
3936      *
3937      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3938      */
addPathMatchersBuilder()3939     public com.google.cloud.compute.v1.PathMatcher.Builder addPathMatchersBuilder() {
3940       return getPathMatchersFieldBuilder()
3941           .addBuilder(com.google.cloud.compute.v1.PathMatcher.getDefaultInstance());
3942     }
3943     /**
3944      *
3945      *
3946      * <pre>
3947      * The list of named PathMatchers to use against the URL.
3948      * </pre>
3949      *
3950      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3951      */
addPathMatchersBuilder(int index)3952     public com.google.cloud.compute.v1.PathMatcher.Builder addPathMatchersBuilder(int index) {
3953       return getPathMatchersFieldBuilder()
3954           .addBuilder(index, com.google.cloud.compute.v1.PathMatcher.getDefaultInstance());
3955     }
3956     /**
3957      *
3958      *
3959      * <pre>
3960      * The list of named PathMatchers to use against the URL.
3961      * </pre>
3962      *
3963      * <code>repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219;</code>
3964      */
3965     public java.util.List<com.google.cloud.compute.v1.PathMatcher.Builder>
getPathMatchersBuilderList()3966         getPathMatchersBuilderList() {
3967       return getPathMatchersFieldBuilder().getBuilderList();
3968     }
3969 
3970     private com.google.protobuf.RepeatedFieldBuilderV3<
3971             com.google.cloud.compute.v1.PathMatcher,
3972             com.google.cloud.compute.v1.PathMatcher.Builder,
3973             com.google.cloud.compute.v1.PathMatcherOrBuilder>
getPathMatchersFieldBuilder()3974         getPathMatchersFieldBuilder() {
3975       if (pathMatchersBuilder_ == null) {
3976         pathMatchersBuilder_ =
3977             new com.google.protobuf.RepeatedFieldBuilderV3<
3978                 com.google.cloud.compute.v1.PathMatcher,
3979                 com.google.cloud.compute.v1.PathMatcher.Builder,
3980                 com.google.cloud.compute.v1.PathMatcherOrBuilder>(
3981                 pathMatchers_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean());
3982         pathMatchers_ = null;
3983       }
3984       return pathMatchersBuilder_;
3985     }
3986 
3987     private java.lang.Object region_ = "";
3988     /**
3989      *
3990      *
3991      * <pre>
3992      * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
3993      * </pre>
3994      *
3995      * <code>optional string region = 138946292;</code>
3996      *
3997      * @return Whether the region field is set.
3998      */
hasRegion()3999     public boolean hasRegion() {
4000       return ((bitField0_ & 0x00001000) != 0);
4001     }
4002     /**
4003      *
4004      *
4005      * <pre>
4006      * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
4007      * </pre>
4008      *
4009      * <code>optional string region = 138946292;</code>
4010      *
4011      * @return The region.
4012      */
getRegion()4013     public java.lang.String getRegion() {
4014       java.lang.Object ref = region_;
4015       if (!(ref instanceof java.lang.String)) {
4016         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4017         java.lang.String s = bs.toStringUtf8();
4018         region_ = s;
4019         return s;
4020       } else {
4021         return (java.lang.String) ref;
4022       }
4023     }
4024     /**
4025      *
4026      *
4027      * <pre>
4028      * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
4029      * </pre>
4030      *
4031      * <code>optional string region = 138946292;</code>
4032      *
4033      * @return The bytes for region.
4034      */
getRegionBytes()4035     public com.google.protobuf.ByteString getRegionBytes() {
4036       java.lang.Object ref = region_;
4037       if (ref instanceof String) {
4038         com.google.protobuf.ByteString b =
4039             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4040         region_ = b;
4041         return b;
4042       } else {
4043         return (com.google.protobuf.ByteString) ref;
4044       }
4045     }
4046     /**
4047      *
4048      *
4049      * <pre>
4050      * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
4051      * </pre>
4052      *
4053      * <code>optional string region = 138946292;</code>
4054      *
4055      * @param value The region to set.
4056      * @return This builder for chaining.
4057      */
setRegion(java.lang.String value)4058     public Builder setRegion(java.lang.String value) {
4059       if (value == null) {
4060         throw new NullPointerException();
4061       }
4062       region_ = value;
4063       bitField0_ |= 0x00001000;
4064       onChanged();
4065       return this;
4066     }
4067     /**
4068      *
4069      *
4070      * <pre>
4071      * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
4072      * </pre>
4073      *
4074      * <code>optional string region = 138946292;</code>
4075      *
4076      * @return This builder for chaining.
4077      */
clearRegion()4078     public Builder clearRegion() {
4079       region_ = getDefaultInstance().getRegion();
4080       bitField0_ = (bitField0_ & ~0x00001000);
4081       onChanged();
4082       return this;
4083     }
4084     /**
4085      *
4086      *
4087      * <pre>
4088      * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
4089      * </pre>
4090      *
4091      * <code>optional string region = 138946292;</code>
4092      *
4093      * @param value The bytes for region to set.
4094      * @return This builder for chaining.
4095      */
setRegionBytes(com.google.protobuf.ByteString value)4096     public Builder setRegionBytes(com.google.protobuf.ByteString value) {
4097       if (value == null) {
4098         throw new NullPointerException();
4099       }
4100       checkByteStringIsUtf8(value);
4101       region_ = value;
4102       bitField0_ |= 0x00001000;
4103       onChanged();
4104       return this;
4105     }
4106 
4107     private java.lang.Object selfLink_ = "";
4108     /**
4109      *
4110      *
4111      * <pre>
4112      * [Output Only] Server-defined URL for the resource.
4113      * </pre>
4114      *
4115      * <code>optional string self_link = 456214797;</code>
4116      *
4117      * @return Whether the selfLink field is set.
4118      */
hasSelfLink()4119     public boolean hasSelfLink() {
4120       return ((bitField0_ & 0x00002000) != 0);
4121     }
4122     /**
4123      *
4124      *
4125      * <pre>
4126      * [Output Only] Server-defined URL for the resource.
4127      * </pre>
4128      *
4129      * <code>optional string self_link = 456214797;</code>
4130      *
4131      * @return The selfLink.
4132      */
getSelfLink()4133     public java.lang.String getSelfLink() {
4134       java.lang.Object ref = selfLink_;
4135       if (!(ref instanceof java.lang.String)) {
4136         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4137         java.lang.String s = bs.toStringUtf8();
4138         selfLink_ = s;
4139         return s;
4140       } else {
4141         return (java.lang.String) ref;
4142       }
4143     }
4144     /**
4145      *
4146      *
4147      * <pre>
4148      * [Output Only] Server-defined URL for the resource.
4149      * </pre>
4150      *
4151      * <code>optional string self_link = 456214797;</code>
4152      *
4153      * @return The bytes for selfLink.
4154      */
getSelfLinkBytes()4155     public com.google.protobuf.ByteString getSelfLinkBytes() {
4156       java.lang.Object ref = selfLink_;
4157       if (ref instanceof String) {
4158         com.google.protobuf.ByteString b =
4159             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4160         selfLink_ = b;
4161         return b;
4162       } else {
4163         return (com.google.protobuf.ByteString) ref;
4164       }
4165     }
4166     /**
4167      *
4168      *
4169      * <pre>
4170      * [Output Only] Server-defined URL for the resource.
4171      * </pre>
4172      *
4173      * <code>optional string self_link = 456214797;</code>
4174      *
4175      * @param value The selfLink to set.
4176      * @return This builder for chaining.
4177      */
setSelfLink(java.lang.String value)4178     public Builder setSelfLink(java.lang.String value) {
4179       if (value == null) {
4180         throw new NullPointerException();
4181       }
4182       selfLink_ = value;
4183       bitField0_ |= 0x00002000;
4184       onChanged();
4185       return this;
4186     }
4187     /**
4188      *
4189      *
4190      * <pre>
4191      * [Output Only] Server-defined URL for the resource.
4192      * </pre>
4193      *
4194      * <code>optional string self_link = 456214797;</code>
4195      *
4196      * @return This builder for chaining.
4197      */
clearSelfLink()4198     public Builder clearSelfLink() {
4199       selfLink_ = getDefaultInstance().getSelfLink();
4200       bitField0_ = (bitField0_ & ~0x00002000);
4201       onChanged();
4202       return this;
4203     }
4204     /**
4205      *
4206      *
4207      * <pre>
4208      * [Output Only] Server-defined URL for the resource.
4209      * </pre>
4210      *
4211      * <code>optional string self_link = 456214797;</code>
4212      *
4213      * @param value The bytes for selfLink to set.
4214      * @return This builder for chaining.
4215      */
setSelfLinkBytes(com.google.protobuf.ByteString value)4216     public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
4217       if (value == null) {
4218         throw new NullPointerException();
4219       }
4220       checkByteStringIsUtf8(value);
4221       selfLink_ = value;
4222       bitField0_ |= 0x00002000;
4223       onChanged();
4224       return this;
4225     }
4226 
4227     private java.util.List<com.google.cloud.compute.v1.UrlMapTest> tests_ =
4228         java.util.Collections.emptyList();
4229 
ensureTestsIsMutable()4230     private void ensureTestsIsMutable() {
4231       if (!((bitField0_ & 0x00004000) != 0)) {
4232         tests_ = new java.util.ArrayList<com.google.cloud.compute.v1.UrlMapTest>(tests_);
4233         bitField0_ |= 0x00004000;
4234       }
4235     }
4236 
4237     private com.google.protobuf.RepeatedFieldBuilderV3<
4238             com.google.cloud.compute.v1.UrlMapTest,
4239             com.google.cloud.compute.v1.UrlMapTest.Builder,
4240             com.google.cloud.compute.v1.UrlMapTestOrBuilder>
4241         testsBuilder_;
4242 
4243     /**
4244      *
4245      *
4246      * <pre>
4247      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4248      * </pre>
4249      *
4250      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4251      */
getTestsList()4252     public java.util.List<com.google.cloud.compute.v1.UrlMapTest> getTestsList() {
4253       if (testsBuilder_ == null) {
4254         return java.util.Collections.unmodifiableList(tests_);
4255       } else {
4256         return testsBuilder_.getMessageList();
4257       }
4258     }
4259     /**
4260      *
4261      *
4262      * <pre>
4263      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4264      * </pre>
4265      *
4266      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4267      */
getTestsCount()4268     public int getTestsCount() {
4269       if (testsBuilder_ == null) {
4270         return tests_.size();
4271       } else {
4272         return testsBuilder_.getCount();
4273       }
4274     }
4275     /**
4276      *
4277      *
4278      * <pre>
4279      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4280      * </pre>
4281      *
4282      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4283      */
getTests(int index)4284     public com.google.cloud.compute.v1.UrlMapTest getTests(int index) {
4285       if (testsBuilder_ == null) {
4286         return tests_.get(index);
4287       } else {
4288         return testsBuilder_.getMessage(index);
4289       }
4290     }
4291     /**
4292      *
4293      *
4294      * <pre>
4295      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4296      * </pre>
4297      *
4298      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4299      */
setTests(int index, com.google.cloud.compute.v1.UrlMapTest value)4300     public Builder setTests(int index, com.google.cloud.compute.v1.UrlMapTest value) {
4301       if (testsBuilder_ == null) {
4302         if (value == null) {
4303           throw new NullPointerException();
4304         }
4305         ensureTestsIsMutable();
4306         tests_.set(index, value);
4307         onChanged();
4308       } else {
4309         testsBuilder_.setMessage(index, value);
4310       }
4311       return this;
4312     }
4313     /**
4314      *
4315      *
4316      * <pre>
4317      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4318      * </pre>
4319      *
4320      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4321      */
setTests( int index, com.google.cloud.compute.v1.UrlMapTest.Builder builderForValue)4322     public Builder setTests(
4323         int index, com.google.cloud.compute.v1.UrlMapTest.Builder builderForValue) {
4324       if (testsBuilder_ == null) {
4325         ensureTestsIsMutable();
4326         tests_.set(index, builderForValue.build());
4327         onChanged();
4328       } else {
4329         testsBuilder_.setMessage(index, builderForValue.build());
4330       }
4331       return this;
4332     }
4333     /**
4334      *
4335      *
4336      * <pre>
4337      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4338      * </pre>
4339      *
4340      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4341      */
addTests(com.google.cloud.compute.v1.UrlMapTest value)4342     public Builder addTests(com.google.cloud.compute.v1.UrlMapTest value) {
4343       if (testsBuilder_ == null) {
4344         if (value == null) {
4345           throw new NullPointerException();
4346         }
4347         ensureTestsIsMutable();
4348         tests_.add(value);
4349         onChanged();
4350       } else {
4351         testsBuilder_.addMessage(value);
4352       }
4353       return this;
4354     }
4355     /**
4356      *
4357      *
4358      * <pre>
4359      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4360      * </pre>
4361      *
4362      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4363      */
addTests(int index, com.google.cloud.compute.v1.UrlMapTest value)4364     public Builder addTests(int index, com.google.cloud.compute.v1.UrlMapTest value) {
4365       if (testsBuilder_ == null) {
4366         if (value == null) {
4367           throw new NullPointerException();
4368         }
4369         ensureTestsIsMutable();
4370         tests_.add(index, value);
4371         onChanged();
4372       } else {
4373         testsBuilder_.addMessage(index, value);
4374       }
4375       return this;
4376     }
4377     /**
4378      *
4379      *
4380      * <pre>
4381      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4382      * </pre>
4383      *
4384      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4385      */
addTests(com.google.cloud.compute.v1.UrlMapTest.Builder builderForValue)4386     public Builder addTests(com.google.cloud.compute.v1.UrlMapTest.Builder builderForValue) {
4387       if (testsBuilder_ == null) {
4388         ensureTestsIsMutable();
4389         tests_.add(builderForValue.build());
4390         onChanged();
4391       } else {
4392         testsBuilder_.addMessage(builderForValue.build());
4393       }
4394       return this;
4395     }
4396     /**
4397      *
4398      *
4399      * <pre>
4400      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4401      * </pre>
4402      *
4403      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4404      */
addTests( int index, com.google.cloud.compute.v1.UrlMapTest.Builder builderForValue)4405     public Builder addTests(
4406         int index, com.google.cloud.compute.v1.UrlMapTest.Builder builderForValue) {
4407       if (testsBuilder_ == null) {
4408         ensureTestsIsMutable();
4409         tests_.add(index, builderForValue.build());
4410         onChanged();
4411       } else {
4412         testsBuilder_.addMessage(index, builderForValue.build());
4413       }
4414       return this;
4415     }
4416     /**
4417      *
4418      *
4419      * <pre>
4420      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4421      * </pre>
4422      *
4423      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4424      */
addAllTests( java.lang.Iterable<? extends com.google.cloud.compute.v1.UrlMapTest> values)4425     public Builder addAllTests(
4426         java.lang.Iterable<? extends com.google.cloud.compute.v1.UrlMapTest> values) {
4427       if (testsBuilder_ == null) {
4428         ensureTestsIsMutable();
4429         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tests_);
4430         onChanged();
4431       } else {
4432         testsBuilder_.addAllMessages(values);
4433       }
4434       return this;
4435     }
4436     /**
4437      *
4438      *
4439      * <pre>
4440      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4441      * </pre>
4442      *
4443      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4444      */
clearTests()4445     public Builder clearTests() {
4446       if (testsBuilder_ == null) {
4447         tests_ = java.util.Collections.emptyList();
4448         bitField0_ = (bitField0_ & ~0x00004000);
4449         onChanged();
4450       } else {
4451         testsBuilder_.clear();
4452       }
4453       return this;
4454     }
4455     /**
4456      *
4457      *
4458      * <pre>
4459      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4460      * </pre>
4461      *
4462      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4463      */
removeTests(int index)4464     public Builder removeTests(int index) {
4465       if (testsBuilder_ == null) {
4466         ensureTestsIsMutable();
4467         tests_.remove(index);
4468         onChanged();
4469       } else {
4470         testsBuilder_.remove(index);
4471       }
4472       return this;
4473     }
4474     /**
4475      *
4476      *
4477      * <pre>
4478      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4479      * </pre>
4480      *
4481      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4482      */
getTestsBuilder(int index)4483     public com.google.cloud.compute.v1.UrlMapTest.Builder getTestsBuilder(int index) {
4484       return getTestsFieldBuilder().getBuilder(index);
4485     }
4486     /**
4487      *
4488      *
4489      * <pre>
4490      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4491      * </pre>
4492      *
4493      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4494      */
getTestsOrBuilder(int index)4495     public com.google.cloud.compute.v1.UrlMapTestOrBuilder getTestsOrBuilder(int index) {
4496       if (testsBuilder_ == null) {
4497         return tests_.get(index);
4498       } else {
4499         return testsBuilder_.getMessageOrBuilder(index);
4500       }
4501     }
4502     /**
4503      *
4504      *
4505      * <pre>
4506      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4507      * </pre>
4508      *
4509      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4510      */
4511     public java.util.List<? extends com.google.cloud.compute.v1.UrlMapTestOrBuilder>
getTestsOrBuilderList()4512         getTestsOrBuilderList() {
4513       if (testsBuilder_ != null) {
4514         return testsBuilder_.getMessageOrBuilderList();
4515       } else {
4516         return java.util.Collections.unmodifiableList(tests_);
4517       }
4518     }
4519     /**
4520      *
4521      *
4522      * <pre>
4523      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4524      * </pre>
4525      *
4526      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4527      */
addTestsBuilder()4528     public com.google.cloud.compute.v1.UrlMapTest.Builder addTestsBuilder() {
4529       return getTestsFieldBuilder()
4530           .addBuilder(com.google.cloud.compute.v1.UrlMapTest.getDefaultInstance());
4531     }
4532     /**
4533      *
4534      *
4535      * <pre>
4536      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4537      * </pre>
4538      *
4539      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4540      */
addTestsBuilder(int index)4541     public com.google.cloud.compute.v1.UrlMapTest.Builder addTestsBuilder(int index) {
4542       return getTestsFieldBuilder()
4543           .addBuilder(index, com.google.cloud.compute.v1.UrlMapTest.getDefaultInstance());
4544     }
4545     /**
4546      *
4547      *
4548      * <pre>
4549      * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
4550      * </pre>
4551      *
4552      * <code>repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553;</code>
4553      */
getTestsBuilderList()4554     public java.util.List<com.google.cloud.compute.v1.UrlMapTest.Builder> getTestsBuilderList() {
4555       return getTestsFieldBuilder().getBuilderList();
4556     }
4557 
4558     private com.google.protobuf.RepeatedFieldBuilderV3<
4559             com.google.cloud.compute.v1.UrlMapTest,
4560             com.google.cloud.compute.v1.UrlMapTest.Builder,
4561             com.google.cloud.compute.v1.UrlMapTestOrBuilder>
getTestsFieldBuilder()4562         getTestsFieldBuilder() {
4563       if (testsBuilder_ == null) {
4564         testsBuilder_ =
4565             new com.google.protobuf.RepeatedFieldBuilderV3<
4566                 com.google.cloud.compute.v1.UrlMapTest,
4567                 com.google.cloud.compute.v1.UrlMapTest.Builder,
4568                 com.google.cloud.compute.v1.UrlMapTestOrBuilder>(
4569                 tests_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean());
4570         tests_ = null;
4571       }
4572       return testsBuilder_;
4573     }
4574 
4575     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4576     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
4577       return super.setUnknownFields(unknownFields);
4578     }
4579 
4580     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4581     public final Builder mergeUnknownFields(
4582         final com.google.protobuf.UnknownFieldSet unknownFields) {
4583       return super.mergeUnknownFields(unknownFields);
4584     }
4585 
4586     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UrlMap)
4587   }
4588 
4589   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UrlMap)
4590   private static final com.google.cloud.compute.v1.UrlMap DEFAULT_INSTANCE;
4591 
4592   static {
4593     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UrlMap();
4594   }
4595 
getDefaultInstance()4596   public static com.google.cloud.compute.v1.UrlMap getDefaultInstance() {
4597     return DEFAULT_INSTANCE;
4598   }
4599 
4600   private static final com.google.protobuf.Parser<UrlMap> PARSER =
4601       new com.google.protobuf.AbstractParser<UrlMap>() {
4602         @java.lang.Override
4603         public UrlMap parsePartialFrom(
4604             com.google.protobuf.CodedInputStream input,
4605             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4606             throws com.google.protobuf.InvalidProtocolBufferException {
4607           Builder builder = newBuilder();
4608           try {
4609             builder.mergeFrom(input, extensionRegistry);
4610           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4611             throw e.setUnfinishedMessage(builder.buildPartial());
4612           } catch (com.google.protobuf.UninitializedMessageException e) {
4613             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4614           } catch (java.io.IOException e) {
4615             throw new com.google.protobuf.InvalidProtocolBufferException(e)
4616                 .setUnfinishedMessage(builder.buildPartial());
4617           }
4618           return builder.buildPartial();
4619         }
4620       };
4621 
parser()4622   public static com.google.protobuf.Parser<UrlMap> parser() {
4623     return PARSER;
4624   }
4625 
4626   @java.lang.Override
getParserForType()4627   public com.google.protobuf.Parser<UrlMap> getParserForType() {
4628     return PARSER;
4629   }
4630 
4631   @java.lang.Override
getDefaultInstanceForType()4632   public com.google.cloud.compute.v1.UrlMap getDefaultInstanceForType() {
4633     return DEFAULT_INSTANCE;
4634   }
4635 }
4636