• 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  * </pre>
26  *
27  * Protobuf type {@code google.cloud.compute.v1.UrlMapsValidateRequest}
28  */
29 public final class UrlMapsValidateRequest extends com.google.protobuf.GeneratedMessageV3
30     implements
31     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.UrlMapsValidateRequest)
32     UrlMapsValidateRequestOrBuilder {
33   private static final long serialVersionUID = 0L;
34   // Use UrlMapsValidateRequest.newBuilder() to construct.
UrlMapsValidateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)35   private UrlMapsValidateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
36     super(builder);
37   }
38 
UrlMapsValidateRequest()39   private UrlMapsValidateRequest() {
40     loadBalancingSchemes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
41   }
42 
43   @java.lang.Override
44   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)45   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
46     return new UrlMapsValidateRequest();
47   }
48 
49   @java.lang.Override
getUnknownFields()50   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
51     return this.unknownFields;
52   }
53 
getDescriptor()54   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
55     return com.google.cloud.compute.v1.Compute
56         .internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor;
57   }
58 
59   @java.lang.Override
60   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()61       internalGetFieldAccessorTable() {
62     return com.google.cloud.compute.v1.Compute
63         .internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_fieldAccessorTable
64         .ensureFieldAccessorsInitialized(
65             com.google.cloud.compute.v1.UrlMapsValidateRequest.class,
66             com.google.cloud.compute.v1.UrlMapsValidateRequest.Builder.class);
67   }
68 
69   /**
70    *
71    *
72    * <pre>
73    * </pre>
74    *
75    * Protobuf enum {@code google.cloud.compute.v1.UrlMapsValidateRequest.LoadBalancingSchemes}
76    */
77   public enum LoadBalancingSchemes implements com.google.protobuf.ProtocolMessageEnum {
78     /**
79      *
80      *
81      * <pre>
82      * A value indicating that the enum field is not set.
83      * </pre>
84      *
85      * <code>UNDEFINED_LOAD_BALANCING_SCHEMES = 0;</code>
86      */
87     UNDEFINED_LOAD_BALANCING_SCHEMES(0),
88     /**
89      *
90      *
91      * <pre>
92      * Signifies that this will be used for Classic L7 External Load Balancing.
93      * </pre>
94      *
95      * <code>EXTERNAL = 35607499;</code>
96      */
97     EXTERNAL(35607499),
98     /**
99      *
100      *
101      * <pre>
102      * Signifies that this will be used for Envoy-based L7 External Load Balancing.
103      * </pre>
104      *
105      * <code>EXTERNAL_MANAGED = 512006923;</code>
106      */
107     EXTERNAL_MANAGED(512006923),
108     /**
109      *
110      *
111      * <pre>
112      * If unspecified, the validation will try to infer the scheme from the backend service resources this Url map references. If the inferrence is not possible, EXTERNAL will be used as the default type.
113      * </pre>
114      *
115      * <code>LOAD_BALANCING_SCHEME_UNSPECIFIED = 526507452;</code>
116      */
117     LOAD_BALANCING_SCHEME_UNSPECIFIED(526507452),
118     UNRECOGNIZED(-1),
119     ;
120 
121     /**
122      *
123      *
124      * <pre>
125      * A value indicating that the enum field is not set.
126      * </pre>
127      *
128      * <code>UNDEFINED_LOAD_BALANCING_SCHEMES = 0;</code>
129      */
130     public static final int UNDEFINED_LOAD_BALANCING_SCHEMES_VALUE = 0;
131     /**
132      *
133      *
134      * <pre>
135      * Signifies that this will be used for Classic L7 External Load Balancing.
136      * </pre>
137      *
138      * <code>EXTERNAL = 35607499;</code>
139      */
140     public static final int EXTERNAL_VALUE = 35607499;
141     /**
142      *
143      *
144      * <pre>
145      * Signifies that this will be used for Envoy-based L7 External Load Balancing.
146      * </pre>
147      *
148      * <code>EXTERNAL_MANAGED = 512006923;</code>
149      */
150     public static final int EXTERNAL_MANAGED_VALUE = 512006923;
151     /**
152      *
153      *
154      * <pre>
155      * If unspecified, the validation will try to infer the scheme from the backend service resources this Url map references. If the inferrence is not possible, EXTERNAL will be used as the default type.
156      * </pre>
157      *
158      * <code>LOAD_BALANCING_SCHEME_UNSPECIFIED = 526507452;</code>
159      */
160     public static final int LOAD_BALANCING_SCHEME_UNSPECIFIED_VALUE = 526507452;
161 
getNumber()162     public final int getNumber() {
163       if (this == UNRECOGNIZED) {
164         throw new java.lang.IllegalArgumentException(
165             "Can't get the number of an unknown enum value.");
166       }
167       return value;
168     }
169 
170     /**
171      * @param value The numeric wire value of the corresponding enum entry.
172      * @return The enum associated with the given numeric wire value.
173      * @deprecated Use {@link #forNumber(int)} instead.
174      */
175     @java.lang.Deprecated
valueOf(int value)176     public static LoadBalancingSchemes valueOf(int value) {
177       return forNumber(value);
178     }
179 
180     /**
181      * @param value The numeric wire value of the corresponding enum entry.
182      * @return The enum associated with the given numeric wire value.
183      */
forNumber(int value)184     public static LoadBalancingSchemes forNumber(int value) {
185       switch (value) {
186         case 0:
187           return UNDEFINED_LOAD_BALANCING_SCHEMES;
188         case 35607499:
189           return EXTERNAL;
190         case 512006923:
191           return EXTERNAL_MANAGED;
192         case 526507452:
193           return LOAD_BALANCING_SCHEME_UNSPECIFIED;
194         default:
195           return null;
196       }
197     }
198 
199     public static com.google.protobuf.Internal.EnumLiteMap<LoadBalancingSchemes>
internalGetValueMap()200         internalGetValueMap() {
201       return internalValueMap;
202     }
203 
204     private static final com.google.protobuf.Internal.EnumLiteMap<LoadBalancingSchemes>
205         internalValueMap =
206             new com.google.protobuf.Internal.EnumLiteMap<LoadBalancingSchemes>() {
207               public LoadBalancingSchemes findValueByNumber(int number) {
208                 return LoadBalancingSchemes.forNumber(number);
209               }
210             };
211 
getValueDescriptor()212     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
213       if (this == UNRECOGNIZED) {
214         throw new java.lang.IllegalStateException(
215             "Can't get the descriptor of an unrecognized enum value.");
216       }
217       return getDescriptor().getValues().get(ordinal());
218     }
219 
getDescriptorForType()220     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
221       return getDescriptor();
222     }
223 
getDescriptor()224     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
225       return com.google.cloud.compute.v1.UrlMapsValidateRequest.getDescriptor()
226           .getEnumTypes()
227           .get(0);
228     }
229 
230     private static final LoadBalancingSchemes[] VALUES = values();
231 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)232     public static LoadBalancingSchemes valueOf(
233         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
234       if (desc.getType() != getDescriptor()) {
235         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
236       }
237       if (desc.getIndex() == -1) {
238         return UNRECOGNIZED;
239       }
240       return VALUES[desc.getIndex()];
241     }
242 
243     private final int value;
244 
LoadBalancingSchemes(int value)245     private LoadBalancingSchemes(int value) {
246       this.value = value;
247     }
248 
249     // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.UrlMapsValidateRequest.LoadBalancingSchemes)
250   }
251 
252   private int bitField0_;
253   public static final int LOAD_BALANCING_SCHEMES_FIELD_NUMBER = 6308527;
254 
255   @SuppressWarnings("serial")
256   private com.google.protobuf.LazyStringList loadBalancingSchemes_;
257   /**
258    *
259    *
260    * <pre>
261    * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
262    * Check the LoadBalancingSchemes enum for the list of possible values.
263    * </pre>
264    *
265    * <code>repeated string load_balancing_schemes = 6308527;</code>
266    *
267    * @return A list containing the loadBalancingSchemes.
268    */
getLoadBalancingSchemesList()269   public com.google.protobuf.ProtocolStringList getLoadBalancingSchemesList() {
270     return loadBalancingSchemes_;
271   }
272   /**
273    *
274    *
275    * <pre>
276    * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
277    * Check the LoadBalancingSchemes enum for the list of possible values.
278    * </pre>
279    *
280    * <code>repeated string load_balancing_schemes = 6308527;</code>
281    *
282    * @return The count of loadBalancingSchemes.
283    */
getLoadBalancingSchemesCount()284   public int getLoadBalancingSchemesCount() {
285     return loadBalancingSchemes_.size();
286   }
287   /**
288    *
289    *
290    * <pre>
291    * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
292    * Check the LoadBalancingSchemes enum for the list of possible values.
293    * </pre>
294    *
295    * <code>repeated string load_balancing_schemes = 6308527;</code>
296    *
297    * @param index The index of the element to return.
298    * @return The loadBalancingSchemes at the given index.
299    */
getLoadBalancingSchemes(int index)300   public java.lang.String getLoadBalancingSchemes(int index) {
301     return loadBalancingSchemes_.get(index);
302   }
303   /**
304    *
305    *
306    * <pre>
307    * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
308    * Check the LoadBalancingSchemes enum for the list of possible values.
309    * </pre>
310    *
311    * <code>repeated string load_balancing_schemes = 6308527;</code>
312    *
313    * @param index The index of the value to return.
314    * @return The bytes of the loadBalancingSchemes at the given index.
315    */
getLoadBalancingSchemesBytes(int index)316   public com.google.protobuf.ByteString getLoadBalancingSchemesBytes(int index) {
317     return loadBalancingSchemes_.getByteString(index);
318   }
319 
320   public static final int RESOURCE_FIELD_NUMBER = 195806222;
321   private com.google.cloud.compute.v1.UrlMap resource_;
322   /**
323    *
324    *
325    * <pre>
326    * Content of the UrlMap to be validated.
327    * </pre>
328    *
329    * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
330    *
331    * @return Whether the resource field is set.
332    */
333   @java.lang.Override
hasResource()334   public boolean hasResource() {
335     return ((bitField0_ & 0x00000001) != 0);
336   }
337   /**
338    *
339    *
340    * <pre>
341    * Content of the UrlMap to be validated.
342    * </pre>
343    *
344    * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
345    *
346    * @return The resource.
347    */
348   @java.lang.Override
getResource()349   public com.google.cloud.compute.v1.UrlMap getResource() {
350     return resource_ == null ? com.google.cloud.compute.v1.UrlMap.getDefaultInstance() : resource_;
351   }
352   /**
353    *
354    *
355    * <pre>
356    * Content of the UrlMap to be validated.
357    * </pre>
358    *
359    * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
360    */
361   @java.lang.Override
getResourceOrBuilder()362   public com.google.cloud.compute.v1.UrlMapOrBuilder getResourceOrBuilder() {
363     return resource_ == null ? com.google.cloud.compute.v1.UrlMap.getDefaultInstance() : resource_;
364   }
365 
366   private byte memoizedIsInitialized = -1;
367 
368   @java.lang.Override
isInitialized()369   public final boolean isInitialized() {
370     byte isInitialized = memoizedIsInitialized;
371     if (isInitialized == 1) return true;
372     if (isInitialized == 0) return false;
373 
374     memoizedIsInitialized = 1;
375     return true;
376   }
377 
378   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)379   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
380     for (int i = 0; i < loadBalancingSchemes_.size(); i++) {
381       com.google.protobuf.GeneratedMessageV3.writeString(
382           output, 6308527, loadBalancingSchemes_.getRaw(i));
383     }
384     if (((bitField0_ & 0x00000001) != 0)) {
385       output.writeMessage(195806222, getResource());
386     }
387     getUnknownFields().writeTo(output);
388   }
389 
390   @java.lang.Override
getSerializedSize()391   public int getSerializedSize() {
392     int size = memoizedSize;
393     if (size != -1) return size;
394 
395     size = 0;
396     {
397       int dataSize = 0;
398       for (int i = 0; i < loadBalancingSchemes_.size(); i++) {
399         dataSize += computeStringSizeNoTag(loadBalancingSchemes_.getRaw(i));
400       }
401       size += dataSize;
402       size += 4 * getLoadBalancingSchemesList().size();
403     }
404     if (((bitField0_ & 0x00000001) != 0)) {
405       size += com.google.protobuf.CodedOutputStream.computeMessageSize(195806222, getResource());
406     }
407     size += getUnknownFields().getSerializedSize();
408     memoizedSize = size;
409     return size;
410   }
411 
412   @java.lang.Override
equals(final java.lang.Object obj)413   public boolean equals(final java.lang.Object obj) {
414     if (obj == this) {
415       return true;
416     }
417     if (!(obj instanceof com.google.cloud.compute.v1.UrlMapsValidateRequest)) {
418       return super.equals(obj);
419     }
420     com.google.cloud.compute.v1.UrlMapsValidateRequest other =
421         (com.google.cloud.compute.v1.UrlMapsValidateRequest) obj;
422 
423     if (!getLoadBalancingSchemesList().equals(other.getLoadBalancingSchemesList())) return false;
424     if (hasResource() != other.hasResource()) return false;
425     if (hasResource()) {
426       if (!getResource().equals(other.getResource())) return false;
427     }
428     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
429     return true;
430   }
431 
432   @java.lang.Override
hashCode()433   public int hashCode() {
434     if (memoizedHashCode != 0) {
435       return memoizedHashCode;
436     }
437     int hash = 41;
438     hash = (19 * hash) + getDescriptor().hashCode();
439     if (getLoadBalancingSchemesCount() > 0) {
440       hash = (37 * hash) + LOAD_BALANCING_SCHEMES_FIELD_NUMBER;
441       hash = (53 * hash) + getLoadBalancingSchemesList().hashCode();
442     }
443     if (hasResource()) {
444       hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
445       hash = (53 * hash) + getResource().hashCode();
446     }
447     hash = (29 * hash) + getUnknownFields().hashCode();
448     memoizedHashCode = hash;
449     return hash;
450   }
451 
parseFrom( java.nio.ByteBuffer data)452   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
453       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
454     return PARSER.parseFrom(data);
455   }
456 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)457   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
458       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
459       throws com.google.protobuf.InvalidProtocolBufferException {
460     return PARSER.parseFrom(data, extensionRegistry);
461   }
462 
parseFrom( com.google.protobuf.ByteString data)463   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
464       com.google.protobuf.ByteString data)
465       throws com.google.protobuf.InvalidProtocolBufferException {
466     return PARSER.parseFrom(data);
467   }
468 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)469   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
470       com.google.protobuf.ByteString data,
471       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
472       throws com.google.protobuf.InvalidProtocolBufferException {
473     return PARSER.parseFrom(data, extensionRegistry);
474   }
475 
parseFrom(byte[] data)476   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(byte[] data)
477       throws com.google.protobuf.InvalidProtocolBufferException {
478     return PARSER.parseFrom(data);
479   }
480 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)481   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
482       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
483       throws com.google.protobuf.InvalidProtocolBufferException {
484     return PARSER.parseFrom(data, extensionRegistry);
485   }
486 
parseFrom( java.io.InputStream input)487   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
488       java.io.InputStream input) throws java.io.IOException {
489     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
490   }
491 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)492   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
493       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
494       throws java.io.IOException {
495     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
496         PARSER, input, extensionRegistry);
497   }
498 
parseDelimitedFrom( java.io.InputStream input)499   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseDelimitedFrom(
500       java.io.InputStream input) throws java.io.IOException {
501     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
502   }
503 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)504   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseDelimitedFrom(
505       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
506       throws java.io.IOException {
507     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
508         PARSER, input, extensionRegistry);
509   }
510 
parseFrom( com.google.protobuf.CodedInputStream input)511   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
512       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
513     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
514   }
515 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)516   public static com.google.cloud.compute.v1.UrlMapsValidateRequest parseFrom(
517       com.google.protobuf.CodedInputStream input,
518       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
519       throws java.io.IOException {
520     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
521         PARSER, input, extensionRegistry);
522   }
523 
524   @java.lang.Override
newBuilderForType()525   public Builder newBuilderForType() {
526     return newBuilder();
527   }
528 
newBuilder()529   public static Builder newBuilder() {
530     return DEFAULT_INSTANCE.toBuilder();
531   }
532 
newBuilder(com.google.cloud.compute.v1.UrlMapsValidateRequest prototype)533   public static Builder newBuilder(com.google.cloud.compute.v1.UrlMapsValidateRequest prototype) {
534     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
535   }
536 
537   @java.lang.Override
toBuilder()538   public Builder toBuilder() {
539     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
540   }
541 
542   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)543   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
544     Builder builder = new Builder(parent);
545     return builder;
546   }
547   /**
548    *
549    *
550    * <pre>
551    * </pre>
552    *
553    * Protobuf type {@code google.cloud.compute.v1.UrlMapsValidateRequest}
554    */
555   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
556       implements
557       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.UrlMapsValidateRequest)
558       com.google.cloud.compute.v1.UrlMapsValidateRequestOrBuilder {
getDescriptor()559     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
560       return com.google.cloud.compute.v1.Compute
561           .internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor;
562     }
563 
564     @java.lang.Override
565     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()566         internalGetFieldAccessorTable() {
567       return com.google.cloud.compute.v1.Compute
568           .internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_fieldAccessorTable
569           .ensureFieldAccessorsInitialized(
570               com.google.cloud.compute.v1.UrlMapsValidateRequest.class,
571               com.google.cloud.compute.v1.UrlMapsValidateRequest.Builder.class);
572     }
573 
574     // Construct using com.google.cloud.compute.v1.UrlMapsValidateRequest.newBuilder()
Builder()575     private Builder() {
576       maybeForceBuilderInitialization();
577     }
578 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)579     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
580       super(parent);
581       maybeForceBuilderInitialization();
582     }
583 
maybeForceBuilderInitialization()584     private void maybeForceBuilderInitialization() {
585       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
586         getResourceFieldBuilder();
587       }
588     }
589 
590     @java.lang.Override
clear()591     public Builder clear() {
592       super.clear();
593       bitField0_ = 0;
594       loadBalancingSchemes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
595       bitField0_ = (bitField0_ & ~0x00000001);
596       resource_ = null;
597       if (resourceBuilder_ != null) {
598         resourceBuilder_.dispose();
599         resourceBuilder_ = null;
600       }
601       return this;
602     }
603 
604     @java.lang.Override
getDescriptorForType()605     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
606       return com.google.cloud.compute.v1.Compute
607           .internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor;
608     }
609 
610     @java.lang.Override
getDefaultInstanceForType()611     public com.google.cloud.compute.v1.UrlMapsValidateRequest getDefaultInstanceForType() {
612       return com.google.cloud.compute.v1.UrlMapsValidateRequest.getDefaultInstance();
613     }
614 
615     @java.lang.Override
build()616     public com.google.cloud.compute.v1.UrlMapsValidateRequest build() {
617       com.google.cloud.compute.v1.UrlMapsValidateRequest result = buildPartial();
618       if (!result.isInitialized()) {
619         throw newUninitializedMessageException(result);
620       }
621       return result;
622     }
623 
624     @java.lang.Override
buildPartial()625     public com.google.cloud.compute.v1.UrlMapsValidateRequest buildPartial() {
626       com.google.cloud.compute.v1.UrlMapsValidateRequest result =
627           new com.google.cloud.compute.v1.UrlMapsValidateRequest(this);
628       buildPartialRepeatedFields(result);
629       if (bitField0_ != 0) {
630         buildPartial0(result);
631       }
632       onBuilt();
633       return result;
634     }
635 
buildPartialRepeatedFields( com.google.cloud.compute.v1.UrlMapsValidateRequest result)636     private void buildPartialRepeatedFields(
637         com.google.cloud.compute.v1.UrlMapsValidateRequest result) {
638       if (((bitField0_ & 0x00000001) != 0)) {
639         loadBalancingSchemes_ = loadBalancingSchemes_.getUnmodifiableView();
640         bitField0_ = (bitField0_ & ~0x00000001);
641       }
642       result.loadBalancingSchemes_ = loadBalancingSchemes_;
643     }
644 
buildPartial0(com.google.cloud.compute.v1.UrlMapsValidateRequest result)645     private void buildPartial0(com.google.cloud.compute.v1.UrlMapsValidateRequest result) {
646       int from_bitField0_ = bitField0_;
647       int to_bitField0_ = 0;
648       if (((from_bitField0_ & 0x00000002) != 0)) {
649         result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build();
650         to_bitField0_ |= 0x00000001;
651       }
652       result.bitField0_ |= to_bitField0_;
653     }
654 
655     @java.lang.Override
clone()656     public Builder clone() {
657       return super.clone();
658     }
659 
660     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)661     public Builder setField(
662         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
663       return super.setField(field, value);
664     }
665 
666     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)667     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
668       return super.clearField(field);
669     }
670 
671     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)672     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
673       return super.clearOneof(oneof);
674     }
675 
676     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)677     public Builder setRepeatedField(
678         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
679       return super.setRepeatedField(field, index, value);
680     }
681 
682     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)683     public Builder addRepeatedField(
684         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
685       return super.addRepeatedField(field, value);
686     }
687 
688     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)689     public Builder mergeFrom(com.google.protobuf.Message other) {
690       if (other instanceof com.google.cloud.compute.v1.UrlMapsValidateRequest) {
691         return mergeFrom((com.google.cloud.compute.v1.UrlMapsValidateRequest) other);
692       } else {
693         super.mergeFrom(other);
694         return this;
695       }
696     }
697 
mergeFrom(com.google.cloud.compute.v1.UrlMapsValidateRequest other)698     public Builder mergeFrom(com.google.cloud.compute.v1.UrlMapsValidateRequest other) {
699       if (other == com.google.cloud.compute.v1.UrlMapsValidateRequest.getDefaultInstance())
700         return this;
701       if (!other.loadBalancingSchemes_.isEmpty()) {
702         if (loadBalancingSchemes_.isEmpty()) {
703           loadBalancingSchemes_ = other.loadBalancingSchemes_;
704           bitField0_ = (bitField0_ & ~0x00000001);
705         } else {
706           ensureLoadBalancingSchemesIsMutable();
707           loadBalancingSchemes_.addAll(other.loadBalancingSchemes_);
708         }
709         onChanged();
710       }
711       if (other.hasResource()) {
712         mergeResource(other.getResource());
713       }
714       this.mergeUnknownFields(other.getUnknownFields());
715       onChanged();
716       return this;
717     }
718 
719     @java.lang.Override
isInitialized()720     public final boolean isInitialized() {
721       return true;
722     }
723 
724     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)725     public Builder mergeFrom(
726         com.google.protobuf.CodedInputStream input,
727         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
728         throws java.io.IOException {
729       if (extensionRegistry == null) {
730         throw new java.lang.NullPointerException();
731       }
732       try {
733         boolean done = false;
734         while (!done) {
735           int tag = input.readTag();
736           switch (tag) {
737             case 0:
738               done = true;
739               break;
740             case 50468218:
741               {
742                 java.lang.String s = input.readStringRequireUtf8();
743                 ensureLoadBalancingSchemesIsMutable();
744                 loadBalancingSchemes_.add(s);
745                 break;
746               } // case 50468218
747             case 1566449778:
748               {
749                 input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
750                 bitField0_ |= 0x00000002;
751                 break;
752               } // case 1566449778
753             default:
754               {
755                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
756                   done = true; // was an endgroup tag
757                 }
758                 break;
759               } // default:
760           } // switch (tag)
761         } // while (!done)
762       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
763         throw e.unwrapIOException();
764       } finally {
765         onChanged();
766       } // finally
767       return this;
768     }
769 
770     private int bitField0_;
771 
772     private com.google.protobuf.LazyStringList loadBalancingSchemes_ =
773         com.google.protobuf.LazyStringArrayList.EMPTY;
774 
ensureLoadBalancingSchemesIsMutable()775     private void ensureLoadBalancingSchemesIsMutable() {
776       if (!((bitField0_ & 0x00000001) != 0)) {
777         loadBalancingSchemes_ = new com.google.protobuf.LazyStringArrayList(loadBalancingSchemes_);
778         bitField0_ |= 0x00000001;
779       }
780     }
781     /**
782      *
783      *
784      * <pre>
785      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
786      * Check the LoadBalancingSchemes enum for the list of possible values.
787      * </pre>
788      *
789      * <code>repeated string load_balancing_schemes = 6308527;</code>
790      *
791      * @return A list containing the loadBalancingSchemes.
792      */
getLoadBalancingSchemesList()793     public com.google.protobuf.ProtocolStringList getLoadBalancingSchemesList() {
794       return loadBalancingSchemes_.getUnmodifiableView();
795     }
796     /**
797      *
798      *
799      * <pre>
800      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
801      * Check the LoadBalancingSchemes enum for the list of possible values.
802      * </pre>
803      *
804      * <code>repeated string load_balancing_schemes = 6308527;</code>
805      *
806      * @return The count of loadBalancingSchemes.
807      */
getLoadBalancingSchemesCount()808     public int getLoadBalancingSchemesCount() {
809       return loadBalancingSchemes_.size();
810     }
811     /**
812      *
813      *
814      * <pre>
815      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
816      * Check the LoadBalancingSchemes enum for the list of possible values.
817      * </pre>
818      *
819      * <code>repeated string load_balancing_schemes = 6308527;</code>
820      *
821      * @param index The index of the element to return.
822      * @return The loadBalancingSchemes at the given index.
823      */
getLoadBalancingSchemes(int index)824     public java.lang.String getLoadBalancingSchemes(int index) {
825       return loadBalancingSchemes_.get(index);
826     }
827     /**
828      *
829      *
830      * <pre>
831      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
832      * Check the LoadBalancingSchemes enum for the list of possible values.
833      * </pre>
834      *
835      * <code>repeated string load_balancing_schemes = 6308527;</code>
836      *
837      * @param index The index of the value to return.
838      * @return The bytes of the loadBalancingSchemes at the given index.
839      */
getLoadBalancingSchemesBytes(int index)840     public com.google.protobuf.ByteString getLoadBalancingSchemesBytes(int index) {
841       return loadBalancingSchemes_.getByteString(index);
842     }
843     /**
844      *
845      *
846      * <pre>
847      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
848      * Check the LoadBalancingSchemes enum for the list of possible values.
849      * </pre>
850      *
851      * <code>repeated string load_balancing_schemes = 6308527;</code>
852      *
853      * @param index The index to set the value at.
854      * @param value The loadBalancingSchemes to set.
855      * @return This builder for chaining.
856      */
setLoadBalancingSchemes(int index, java.lang.String value)857     public Builder setLoadBalancingSchemes(int index, java.lang.String value) {
858       if (value == null) {
859         throw new NullPointerException();
860       }
861       ensureLoadBalancingSchemesIsMutable();
862       loadBalancingSchemes_.set(index, value);
863       onChanged();
864       return this;
865     }
866     /**
867      *
868      *
869      * <pre>
870      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
871      * Check the LoadBalancingSchemes enum for the list of possible values.
872      * </pre>
873      *
874      * <code>repeated string load_balancing_schemes = 6308527;</code>
875      *
876      * @param value The loadBalancingSchemes to add.
877      * @return This builder for chaining.
878      */
addLoadBalancingSchemes(java.lang.String value)879     public Builder addLoadBalancingSchemes(java.lang.String value) {
880       if (value == null) {
881         throw new NullPointerException();
882       }
883       ensureLoadBalancingSchemesIsMutable();
884       loadBalancingSchemes_.add(value);
885       onChanged();
886       return this;
887     }
888     /**
889      *
890      *
891      * <pre>
892      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
893      * Check the LoadBalancingSchemes enum for the list of possible values.
894      * </pre>
895      *
896      * <code>repeated string load_balancing_schemes = 6308527;</code>
897      *
898      * @param values The loadBalancingSchemes to add.
899      * @return This builder for chaining.
900      */
addAllLoadBalancingSchemes(java.lang.Iterable<java.lang.String> values)901     public Builder addAllLoadBalancingSchemes(java.lang.Iterable<java.lang.String> values) {
902       ensureLoadBalancingSchemesIsMutable();
903       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, loadBalancingSchemes_);
904       onChanged();
905       return this;
906     }
907     /**
908      *
909      *
910      * <pre>
911      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
912      * Check the LoadBalancingSchemes enum for the list of possible values.
913      * </pre>
914      *
915      * <code>repeated string load_balancing_schemes = 6308527;</code>
916      *
917      * @return This builder for chaining.
918      */
clearLoadBalancingSchemes()919     public Builder clearLoadBalancingSchemes() {
920       loadBalancingSchemes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
921       bitField0_ = (bitField0_ & ~0x00000001);
922       onChanged();
923       return this;
924     }
925     /**
926      *
927      *
928      * <pre>
929      * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references.
930      * Check the LoadBalancingSchemes enum for the list of possible values.
931      * </pre>
932      *
933      * <code>repeated string load_balancing_schemes = 6308527;</code>
934      *
935      * @param value The bytes of the loadBalancingSchemes to add.
936      * @return This builder for chaining.
937      */
addLoadBalancingSchemesBytes(com.google.protobuf.ByteString value)938     public Builder addLoadBalancingSchemesBytes(com.google.protobuf.ByteString value) {
939       if (value == null) {
940         throw new NullPointerException();
941       }
942       checkByteStringIsUtf8(value);
943       ensureLoadBalancingSchemesIsMutable();
944       loadBalancingSchemes_.add(value);
945       onChanged();
946       return this;
947     }
948 
949     private com.google.cloud.compute.v1.UrlMap resource_;
950     private com.google.protobuf.SingleFieldBuilderV3<
951             com.google.cloud.compute.v1.UrlMap,
952             com.google.cloud.compute.v1.UrlMap.Builder,
953             com.google.cloud.compute.v1.UrlMapOrBuilder>
954         resourceBuilder_;
955     /**
956      *
957      *
958      * <pre>
959      * Content of the UrlMap to be validated.
960      * </pre>
961      *
962      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
963      *
964      * @return Whether the resource field is set.
965      */
hasResource()966     public boolean hasResource() {
967       return ((bitField0_ & 0x00000002) != 0);
968     }
969     /**
970      *
971      *
972      * <pre>
973      * Content of the UrlMap to be validated.
974      * </pre>
975      *
976      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
977      *
978      * @return The resource.
979      */
getResource()980     public com.google.cloud.compute.v1.UrlMap getResource() {
981       if (resourceBuilder_ == null) {
982         return resource_ == null
983             ? com.google.cloud.compute.v1.UrlMap.getDefaultInstance()
984             : resource_;
985       } else {
986         return resourceBuilder_.getMessage();
987       }
988     }
989     /**
990      *
991      *
992      * <pre>
993      * Content of the UrlMap to be validated.
994      * </pre>
995      *
996      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
997      */
setResource(com.google.cloud.compute.v1.UrlMap value)998     public Builder setResource(com.google.cloud.compute.v1.UrlMap value) {
999       if (resourceBuilder_ == null) {
1000         if (value == null) {
1001           throw new NullPointerException();
1002         }
1003         resource_ = value;
1004       } else {
1005         resourceBuilder_.setMessage(value);
1006       }
1007       bitField0_ |= 0x00000002;
1008       onChanged();
1009       return this;
1010     }
1011     /**
1012      *
1013      *
1014      * <pre>
1015      * Content of the UrlMap to be validated.
1016      * </pre>
1017      *
1018      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
1019      */
setResource(com.google.cloud.compute.v1.UrlMap.Builder builderForValue)1020     public Builder setResource(com.google.cloud.compute.v1.UrlMap.Builder builderForValue) {
1021       if (resourceBuilder_ == null) {
1022         resource_ = builderForValue.build();
1023       } else {
1024         resourceBuilder_.setMessage(builderForValue.build());
1025       }
1026       bitField0_ |= 0x00000002;
1027       onChanged();
1028       return this;
1029     }
1030     /**
1031      *
1032      *
1033      * <pre>
1034      * Content of the UrlMap to be validated.
1035      * </pre>
1036      *
1037      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
1038      */
mergeResource(com.google.cloud.compute.v1.UrlMap value)1039     public Builder mergeResource(com.google.cloud.compute.v1.UrlMap value) {
1040       if (resourceBuilder_ == null) {
1041         if (((bitField0_ & 0x00000002) != 0)
1042             && resource_ != null
1043             && resource_ != com.google.cloud.compute.v1.UrlMap.getDefaultInstance()) {
1044           getResourceBuilder().mergeFrom(value);
1045         } else {
1046           resource_ = value;
1047         }
1048       } else {
1049         resourceBuilder_.mergeFrom(value);
1050       }
1051       bitField0_ |= 0x00000002;
1052       onChanged();
1053       return this;
1054     }
1055     /**
1056      *
1057      *
1058      * <pre>
1059      * Content of the UrlMap to be validated.
1060      * </pre>
1061      *
1062      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
1063      */
clearResource()1064     public Builder clearResource() {
1065       bitField0_ = (bitField0_ & ~0x00000002);
1066       resource_ = null;
1067       if (resourceBuilder_ != null) {
1068         resourceBuilder_.dispose();
1069         resourceBuilder_ = null;
1070       }
1071       onChanged();
1072       return this;
1073     }
1074     /**
1075      *
1076      *
1077      * <pre>
1078      * Content of the UrlMap to be validated.
1079      * </pre>
1080      *
1081      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
1082      */
getResourceBuilder()1083     public com.google.cloud.compute.v1.UrlMap.Builder getResourceBuilder() {
1084       bitField0_ |= 0x00000002;
1085       onChanged();
1086       return getResourceFieldBuilder().getBuilder();
1087     }
1088     /**
1089      *
1090      *
1091      * <pre>
1092      * Content of the UrlMap to be validated.
1093      * </pre>
1094      *
1095      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
1096      */
getResourceOrBuilder()1097     public com.google.cloud.compute.v1.UrlMapOrBuilder getResourceOrBuilder() {
1098       if (resourceBuilder_ != null) {
1099         return resourceBuilder_.getMessageOrBuilder();
1100       } else {
1101         return resource_ == null
1102             ? com.google.cloud.compute.v1.UrlMap.getDefaultInstance()
1103             : resource_;
1104       }
1105     }
1106     /**
1107      *
1108      *
1109      * <pre>
1110      * Content of the UrlMap to be validated.
1111      * </pre>
1112      *
1113      * <code>optional .google.cloud.compute.v1.UrlMap resource = 195806222;</code>
1114      */
1115     private com.google.protobuf.SingleFieldBuilderV3<
1116             com.google.cloud.compute.v1.UrlMap,
1117             com.google.cloud.compute.v1.UrlMap.Builder,
1118             com.google.cloud.compute.v1.UrlMapOrBuilder>
getResourceFieldBuilder()1119         getResourceFieldBuilder() {
1120       if (resourceBuilder_ == null) {
1121         resourceBuilder_ =
1122             new com.google.protobuf.SingleFieldBuilderV3<
1123                 com.google.cloud.compute.v1.UrlMap,
1124                 com.google.cloud.compute.v1.UrlMap.Builder,
1125                 com.google.cloud.compute.v1.UrlMapOrBuilder>(
1126                 getResource(), getParentForChildren(), isClean());
1127         resource_ = null;
1128       }
1129       return resourceBuilder_;
1130     }
1131 
1132     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1133     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1134       return super.setUnknownFields(unknownFields);
1135     }
1136 
1137     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1138     public final Builder mergeUnknownFields(
1139         final com.google.protobuf.UnknownFieldSet unknownFields) {
1140       return super.mergeUnknownFields(unknownFields);
1141     }
1142 
1143     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.UrlMapsValidateRequest)
1144   }
1145 
1146   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.UrlMapsValidateRequest)
1147   private static final com.google.cloud.compute.v1.UrlMapsValidateRequest DEFAULT_INSTANCE;
1148 
1149   static {
1150     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.UrlMapsValidateRequest();
1151   }
1152 
getDefaultInstance()1153   public static com.google.cloud.compute.v1.UrlMapsValidateRequest getDefaultInstance() {
1154     return DEFAULT_INSTANCE;
1155   }
1156 
1157   private static final com.google.protobuf.Parser<UrlMapsValidateRequest> PARSER =
1158       new com.google.protobuf.AbstractParser<UrlMapsValidateRequest>() {
1159         @java.lang.Override
1160         public UrlMapsValidateRequest parsePartialFrom(
1161             com.google.protobuf.CodedInputStream input,
1162             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1163             throws com.google.protobuf.InvalidProtocolBufferException {
1164           Builder builder = newBuilder();
1165           try {
1166             builder.mergeFrom(input, extensionRegistry);
1167           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1168             throw e.setUnfinishedMessage(builder.buildPartial());
1169           } catch (com.google.protobuf.UninitializedMessageException e) {
1170             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1171           } catch (java.io.IOException e) {
1172             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1173                 .setUnfinishedMessage(builder.buildPartial());
1174           }
1175           return builder.buildPartial();
1176         }
1177       };
1178 
parser()1179   public static com.google.protobuf.Parser<UrlMapsValidateRequest> parser() {
1180     return PARSER;
1181   }
1182 
1183   @java.lang.Override
getParserForType()1184   public com.google.protobuf.Parser<UrlMapsValidateRequest> getParserForType() {
1185     return PARSER;
1186   }
1187 
1188   @java.lang.Override
getDefaultInstanceForType()1189   public com.google.cloud.compute.v1.UrlMapsValidateRequest getDefaultInstanceForType() {
1190     return DEFAULT_INSTANCE;
1191   }
1192 }
1193