• 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  * A request message for UrlMaps.Delete. See the method description for details.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.DeleteUrlMapRequest}
29  */
30 public final class DeleteUrlMapRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DeleteUrlMapRequest)
33     DeleteUrlMapRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use DeleteUrlMapRequest.newBuilder() to construct.
DeleteUrlMapRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private DeleteUrlMapRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
DeleteUrlMapRequest()40   private DeleteUrlMapRequest() {
41     project_ = "";
42     requestId_ = "";
43     urlMap_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new DeleteUrlMapRequest();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.compute.v1.Compute
59         .internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.compute.v1.Compute
66         .internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.compute.v1.DeleteUrlMapRequest.class,
69             com.google.cloud.compute.v1.DeleteUrlMapRequest.Builder.class);
70   }
71 
72   private int bitField0_;
73   public static final int PROJECT_FIELD_NUMBER = 227560217;
74 
75   @SuppressWarnings("serial")
76   private volatile java.lang.Object project_ = "";
77   /**
78    *
79    *
80    * <pre>
81    * Project ID for this request.
82    * </pre>
83    *
84    * <code>
85    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
86    * </code>
87    *
88    * @return The project.
89    */
90   @java.lang.Override
getProject()91   public java.lang.String getProject() {
92     java.lang.Object ref = project_;
93     if (ref instanceof java.lang.String) {
94       return (java.lang.String) ref;
95     } else {
96       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
97       java.lang.String s = bs.toStringUtf8();
98       project_ = s;
99       return s;
100     }
101   }
102   /**
103    *
104    *
105    * <pre>
106    * Project ID for this request.
107    * </pre>
108    *
109    * <code>
110    * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
111    * </code>
112    *
113    * @return The bytes for project.
114    */
115   @java.lang.Override
getProjectBytes()116   public com.google.protobuf.ByteString getProjectBytes() {
117     java.lang.Object ref = project_;
118     if (ref instanceof java.lang.String) {
119       com.google.protobuf.ByteString b =
120           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
121       project_ = b;
122       return b;
123     } else {
124       return (com.google.protobuf.ByteString) ref;
125     }
126   }
127 
128   public static final int REQUEST_ID_FIELD_NUMBER = 37109963;
129 
130   @SuppressWarnings("serial")
131   private volatile java.lang.Object requestId_ = "";
132   /**
133    *
134    *
135    * <pre>
136    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
137    * </pre>
138    *
139    * <code>optional string request_id = 37109963;</code>
140    *
141    * @return Whether the requestId field is set.
142    */
143   @java.lang.Override
hasRequestId()144   public boolean hasRequestId() {
145     return ((bitField0_ & 0x00000001) != 0);
146   }
147   /**
148    *
149    *
150    * <pre>
151    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
152    * </pre>
153    *
154    * <code>optional string request_id = 37109963;</code>
155    *
156    * @return The requestId.
157    */
158   @java.lang.Override
getRequestId()159   public java.lang.String getRequestId() {
160     java.lang.Object ref = requestId_;
161     if (ref instanceof java.lang.String) {
162       return (java.lang.String) ref;
163     } else {
164       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
165       java.lang.String s = bs.toStringUtf8();
166       requestId_ = s;
167       return s;
168     }
169   }
170   /**
171    *
172    *
173    * <pre>
174    * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
175    * </pre>
176    *
177    * <code>optional string request_id = 37109963;</code>
178    *
179    * @return The bytes for requestId.
180    */
181   @java.lang.Override
getRequestIdBytes()182   public com.google.protobuf.ByteString getRequestIdBytes() {
183     java.lang.Object ref = requestId_;
184     if (ref instanceof java.lang.String) {
185       com.google.protobuf.ByteString b =
186           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
187       requestId_ = b;
188       return b;
189     } else {
190       return (com.google.protobuf.ByteString) ref;
191     }
192   }
193 
194   public static final int URL_MAP_FIELD_NUMBER = 367020684;
195 
196   @SuppressWarnings("serial")
197   private volatile java.lang.Object urlMap_ = "";
198   /**
199    *
200    *
201    * <pre>
202    * Name of the UrlMap resource to delete.
203    * </pre>
204    *
205    * <code>string url_map = 367020684 [(.google.api.field_behavior) = REQUIRED];</code>
206    *
207    * @return The urlMap.
208    */
209   @java.lang.Override
getUrlMap()210   public java.lang.String getUrlMap() {
211     java.lang.Object ref = urlMap_;
212     if (ref instanceof java.lang.String) {
213       return (java.lang.String) ref;
214     } else {
215       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
216       java.lang.String s = bs.toStringUtf8();
217       urlMap_ = s;
218       return s;
219     }
220   }
221   /**
222    *
223    *
224    * <pre>
225    * Name of the UrlMap resource to delete.
226    * </pre>
227    *
228    * <code>string url_map = 367020684 [(.google.api.field_behavior) = REQUIRED];</code>
229    *
230    * @return The bytes for urlMap.
231    */
232   @java.lang.Override
getUrlMapBytes()233   public com.google.protobuf.ByteString getUrlMapBytes() {
234     java.lang.Object ref = urlMap_;
235     if (ref instanceof java.lang.String) {
236       com.google.protobuf.ByteString b =
237           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
238       urlMap_ = b;
239       return b;
240     } else {
241       return (com.google.protobuf.ByteString) ref;
242     }
243   }
244 
245   private byte memoizedIsInitialized = -1;
246 
247   @java.lang.Override
isInitialized()248   public final boolean isInitialized() {
249     byte isInitialized = memoizedIsInitialized;
250     if (isInitialized == 1) return true;
251     if (isInitialized == 0) return false;
252 
253     memoizedIsInitialized = 1;
254     return true;
255   }
256 
257   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)258   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
259     if (((bitField0_ & 0x00000001) != 0)) {
260       com.google.protobuf.GeneratedMessageV3.writeString(output, 37109963, requestId_);
261     }
262     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
263       com.google.protobuf.GeneratedMessageV3.writeString(output, 227560217, project_);
264     }
265     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urlMap_)) {
266       com.google.protobuf.GeneratedMessageV3.writeString(output, 367020684, urlMap_);
267     }
268     getUnknownFields().writeTo(output);
269   }
270 
271   @java.lang.Override
getSerializedSize()272   public int getSerializedSize() {
273     int size = memoizedSize;
274     if (size != -1) return size;
275 
276     size = 0;
277     if (((bitField0_ & 0x00000001) != 0)) {
278       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37109963, requestId_);
279     }
280     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
281       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227560217, project_);
282     }
283     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urlMap_)) {
284       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(367020684, urlMap_);
285     }
286     size += getUnknownFields().getSerializedSize();
287     memoizedSize = size;
288     return size;
289   }
290 
291   @java.lang.Override
equals(final java.lang.Object obj)292   public boolean equals(final java.lang.Object obj) {
293     if (obj == this) {
294       return true;
295     }
296     if (!(obj instanceof com.google.cloud.compute.v1.DeleteUrlMapRequest)) {
297       return super.equals(obj);
298     }
299     com.google.cloud.compute.v1.DeleteUrlMapRequest other =
300         (com.google.cloud.compute.v1.DeleteUrlMapRequest) obj;
301 
302     if (!getProject().equals(other.getProject())) return false;
303     if (hasRequestId() != other.hasRequestId()) return false;
304     if (hasRequestId()) {
305       if (!getRequestId().equals(other.getRequestId())) return false;
306     }
307     if (!getUrlMap().equals(other.getUrlMap())) return false;
308     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
309     return true;
310   }
311 
312   @java.lang.Override
hashCode()313   public int hashCode() {
314     if (memoizedHashCode != 0) {
315       return memoizedHashCode;
316     }
317     int hash = 41;
318     hash = (19 * hash) + getDescriptor().hashCode();
319     hash = (37 * hash) + PROJECT_FIELD_NUMBER;
320     hash = (53 * hash) + getProject().hashCode();
321     if (hasRequestId()) {
322       hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
323       hash = (53 * hash) + getRequestId().hashCode();
324     }
325     hash = (37 * hash) + URL_MAP_FIELD_NUMBER;
326     hash = (53 * hash) + getUrlMap().hashCode();
327     hash = (29 * hash) + getUnknownFields().hashCode();
328     memoizedHashCode = hash;
329     return hash;
330   }
331 
parseFrom(java.nio.ByteBuffer data)332   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(java.nio.ByteBuffer data)
333       throws com.google.protobuf.InvalidProtocolBufferException {
334     return PARSER.parseFrom(data);
335   }
336 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)337   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(
338       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
339       throws com.google.protobuf.InvalidProtocolBufferException {
340     return PARSER.parseFrom(data, extensionRegistry);
341   }
342 
parseFrom( com.google.protobuf.ByteString data)343   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(
344       com.google.protobuf.ByteString data)
345       throws com.google.protobuf.InvalidProtocolBufferException {
346     return PARSER.parseFrom(data);
347   }
348 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)349   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(
350       com.google.protobuf.ByteString data,
351       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
352       throws com.google.protobuf.InvalidProtocolBufferException {
353     return PARSER.parseFrom(data, extensionRegistry);
354   }
355 
parseFrom(byte[] data)356   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(byte[] data)
357       throws com.google.protobuf.InvalidProtocolBufferException {
358     return PARSER.parseFrom(data);
359   }
360 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)361   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(
362       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
363       throws com.google.protobuf.InvalidProtocolBufferException {
364     return PARSER.parseFrom(data, extensionRegistry);
365   }
366 
parseFrom(java.io.InputStream input)367   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(java.io.InputStream input)
368       throws java.io.IOException {
369     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
370   }
371 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)372   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(
373       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
374       throws java.io.IOException {
375     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
376         PARSER, input, extensionRegistry);
377   }
378 
parseDelimitedFrom( java.io.InputStream input)379   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseDelimitedFrom(
380       java.io.InputStream input) throws java.io.IOException {
381     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
382   }
383 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)384   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseDelimitedFrom(
385       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
386       throws java.io.IOException {
387     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
388         PARSER, input, extensionRegistry);
389   }
390 
parseFrom( com.google.protobuf.CodedInputStream input)391   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(
392       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
393     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
394   }
395 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)396   public static com.google.cloud.compute.v1.DeleteUrlMapRequest parseFrom(
397       com.google.protobuf.CodedInputStream input,
398       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
399       throws java.io.IOException {
400     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
401         PARSER, input, extensionRegistry);
402   }
403 
404   @java.lang.Override
newBuilderForType()405   public Builder newBuilderForType() {
406     return newBuilder();
407   }
408 
newBuilder()409   public static Builder newBuilder() {
410     return DEFAULT_INSTANCE.toBuilder();
411   }
412 
newBuilder(com.google.cloud.compute.v1.DeleteUrlMapRequest prototype)413   public static Builder newBuilder(com.google.cloud.compute.v1.DeleteUrlMapRequest prototype) {
414     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
415   }
416 
417   @java.lang.Override
toBuilder()418   public Builder toBuilder() {
419     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
420   }
421 
422   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)423   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
424     Builder builder = new Builder(parent);
425     return builder;
426   }
427   /**
428    *
429    *
430    * <pre>
431    * A request message for UrlMaps.Delete. See the method description for details.
432    * </pre>
433    *
434    * Protobuf type {@code google.cloud.compute.v1.DeleteUrlMapRequest}
435    */
436   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
437       implements
438       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DeleteUrlMapRequest)
439       com.google.cloud.compute.v1.DeleteUrlMapRequestOrBuilder {
getDescriptor()440     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
441       return com.google.cloud.compute.v1.Compute
442           .internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor;
443     }
444 
445     @java.lang.Override
446     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()447         internalGetFieldAccessorTable() {
448       return com.google.cloud.compute.v1.Compute
449           .internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_fieldAccessorTable
450           .ensureFieldAccessorsInitialized(
451               com.google.cloud.compute.v1.DeleteUrlMapRequest.class,
452               com.google.cloud.compute.v1.DeleteUrlMapRequest.Builder.class);
453     }
454 
455     // Construct using com.google.cloud.compute.v1.DeleteUrlMapRequest.newBuilder()
Builder()456     private Builder() {}
457 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)458     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
459       super(parent);
460     }
461 
462     @java.lang.Override
clear()463     public Builder clear() {
464       super.clear();
465       bitField0_ = 0;
466       project_ = "";
467       requestId_ = "";
468       urlMap_ = "";
469       return this;
470     }
471 
472     @java.lang.Override
getDescriptorForType()473     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
474       return com.google.cloud.compute.v1.Compute
475           .internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor;
476     }
477 
478     @java.lang.Override
getDefaultInstanceForType()479     public com.google.cloud.compute.v1.DeleteUrlMapRequest getDefaultInstanceForType() {
480       return com.google.cloud.compute.v1.DeleteUrlMapRequest.getDefaultInstance();
481     }
482 
483     @java.lang.Override
build()484     public com.google.cloud.compute.v1.DeleteUrlMapRequest build() {
485       com.google.cloud.compute.v1.DeleteUrlMapRequest result = buildPartial();
486       if (!result.isInitialized()) {
487         throw newUninitializedMessageException(result);
488       }
489       return result;
490     }
491 
492     @java.lang.Override
buildPartial()493     public com.google.cloud.compute.v1.DeleteUrlMapRequest buildPartial() {
494       com.google.cloud.compute.v1.DeleteUrlMapRequest result =
495           new com.google.cloud.compute.v1.DeleteUrlMapRequest(this);
496       if (bitField0_ != 0) {
497         buildPartial0(result);
498       }
499       onBuilt();
500       return result;
501     }
502 
buildPartial0(com.google.cloud.compute.v1.DeleteUrlMapRequest result)503     private void buildPartial0(com.google.cloud.compute.v1.DeleteUrlMapRequest result) {
504       int from_bitField0_ = bitField0_;
505       if (((from_bitField0_ & 0x00000001) != 0)) {
506         result.project_ = project_;
507       }
508       int to_bitField0_ = 0;
509       if (((from_bitField0_ & 0x00000002) != 0)) {
510         result.requestId_ = requestId_;
511         to_bitField0_ |= 0x00000001;
512       }
513       if (((from_bitField0_ & 0x00000004) != 0)) {
514         result.urlMap_ = urlMap_;
515       }
516       result.bitField0_ |= to_bitField0_;
517     }
518 
519     @java.lang.Override
clone()520     public Builder clone() {
521       return super.clone();
522     }
523 
524     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)525     public Builder setField(
526         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
527       return super.setField(field, value);
528     }
529 
530     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)531     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
532       return super.clearField(field);
533     }
534 
535     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)536     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
537       return super.clearOneof(oneof);
538     }
539 
540     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)541     public Builder setRepeatedField(
542         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
543       return super.setRepeatedField(field, index, value);
544     }
545 
546     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)547     public Builder addRepeatedField(
548         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
549       return super.addRepeatedField(field, value);
550     }
551 
552     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)553     public Builder mergeFrom(com.google.protobuf.Message other) {
554       if (other instanceof com.google.cloud.compute.v1.DeleteUrlMapRequest) {
555         return mergeFrom((com.google.cloud.compute.v1.DeleteUrlMapRequest) other);
556       } else {
557         super.mergeFrom(other);
558         return this;
559       }
560     }
561 
mergeFrom(com.google.cloud.compute.v1.DeleteUrlMapRequest other)562     public Builder mergeFrom(com.google.cloud.compute.v1.DeleteUrlMapRequest other) {
563       if (other == com.google.cloud.compute.v1.DeleteUrlMapRequest.getDefaultInstance())
564         return this;
565       if (!other.getProject().isEmpty()) {
566         project_ = other.project_;
567         bitField0_ |= 0x00000001;
568         onChanged();
569       }
570       if (other.hasRequestId()) {
571         requestId_ = other.requestId_;
572         bitField0_ |= 0x00000002;
573         onChanged();
574       }
575       if (!other.getUrlMap().isEmpty()) {
576         urlMap_ = other.urlMap_;
577         bitField0_ |= 0x00000004;
578         onChanged();
579       }
580       this.mergeUnknownFields(other.getUnknownFields());
581       onChanged();
582       return this;
583     }
584 
585     @java.lang.Override
isInitialized()586     public final boolean isInitialized() {
587       return true;
588     }
589 
590     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)591     public Builder mergeFrom(
592         com.google.protobuf.CodedInputStream input,
593         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
594         throws java.io.IOException {
595       if (extensionRegistry == null) {
596         throw new java.lang.NullPointerException();
597       }
598       try {
599         boolean done = false;
600         while (!done) {
601           int tag = input.readTag();
602           switch (tag) {
603             case 0:
604               done = true;
605               break;
606             case 296879706:
607               {
608                 requestId_ = input.readStringRequireUtf8();
609                 bitField0_ |= 0x00000002;
610                 break;
611               } // case 296879706
612             case 1820481738:
613               {
614                 project_ = input.readStringRequireUtf8();
615                 bitField0_ |= 0x00000001;
616                 break;
617               } // case 1820481738
618             case -1358801822:
619               {
620                 urlMap_ = input.readStringRequireUtf8();
621                 bitField0_ |= 0x00000004;
622                 break;
623               } // case -1358801822
624             default:
625               {
626                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
627                   done = true; // was an endgroup tag
628                 }
629                 break;
630               } // default:
631           } // switch (tag)
632         } // while (!done)
633       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
634         throw e.unwrapIOException();
635       } finally {
636         onChanged();
637       } // finally
638       return this;
639     }
640 
641     private int bitField0_;
642 
643     private java.lang.Object project_ = "";
644     /**
645      *
646      *
647      * <pre>
648      * Project ID for this request.
649      * </pre>
650      *
651      * <code>
652      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
653      * </code>
654      *
655      * @return The project.
656      */
getProject()657     public java.lang.String getProject() {
658       java.lang.Object ref = project_;
659       if (!(ref instanceof java.lang.String)) {
660         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
661         java.lang.String s = bs.toStringUtf8();
662         project_ = s;
663         return s;
664       } else {
665         return (java.lang.String) ref;
666       }
667     }
668     /**
669      *
670      *
671      * <pre>
672      * Project ID for this request.
673      * </pre>
674      *
675      * <code>
676      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
677      * </code>
678      *
679      * @return The bytes for project.
680      */
getProjectBytes()681     public com.google.protobuf.ByteString getProjectBytes() {
682       java.lang.Object ref = project_;
683       if (ref instanceof String) {
684         com.google.protobuf.ByteString b =
685             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
686         project_ = b;
687         return b;
688       } else {
689         return (com.google.protobuf.ByteString) ref;
690       }
691     }
692     /**
693      *
694      *
695      * <pre>
696      * Project ID for this request.
697      * </pre>
698      *
699      * <code>
700      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
701      * </code>
702      *
703      * @param value The project to set.
704      * @return This builder for chaining.
705      */
setProject(java.lang.String value)706     public Builder setProject(java.lang.String value) {
707       if (value == null) {
708         throw new NullPointerException();
709       }
710       project_ = value;
711       bitField0_ |= 0x00000001;
712       onChanged();
713       return this;
714     }
715     /**
716      *
717      *
718      * <pre>
719      * Project ID for this request.
720      * </pre>
721      *
722      * <code>
723      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
724      * </code>
725      *
726      * @return This builder for chaining.
727      */
clearProject()728     public Builder clearProject() {
729       project_ = getDefaultInstance().getProject();
730       bitField0_ = (bitField0_ & ~0x00000001);
731       onChanged();
732       return this;
733     }
734     /**
735      *
736      *
737      * <pre>
738      * Project ID for this request.
739      * </pre>
740      *
741      * <code>
742      * string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
743      * </code>
744      *
745      * @param value The bytes for project to set.
746      * @return This builder for chaining.
747      */
setProjectBytes(com.google.protobuf.ByteString value)748     public Builder setProjectBytes(com.google.protobuf.ByteString value) {
749       if (value == null) {
750         throw new NullPointerException();
751       }
752       checkByteStringIsUtf8(value);
753       project_ = value;
754       bitField0_ |= 0x00000001;
755       onChanged();
756       return this;
757     }
758 
759     private java.lang.Object requestId_ = "";
760     /**
761      *
762      *
763      * <pre>
764      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
765      * </pre>
766      *
767      * <code>optional string request_id = 37109963;</code>
768      *
769      * @return Whether the requestId field is set.
770      */
hasRequestId()771     public boolean hasRequestId() {
772       return ((bitField0_ & 0x00000002) != 0);
773     }
774     /**
775      *
776      *
777      * <pre>
778      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
779      * </pre>
780      *
781      * <code>optional string request_id = 37109963;</code>
782      *
783      * @return The requestId.
784      */
getRequestId()785     public java.lang.String getRequestId() {
786       java.lang.Object ref = requestId_;
787       if (!(ref instanceof java.lang.String)) {
788         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
789         java.lang.String s = bs.toStringUtf8();
790         requestId_ = s;
791         return s;
792       } else {
793         return (java.lang.String) ref;
794       }
795     }
796     /**
797      *
798      *
799      * <pre>
800      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
801      * </pre>
802      *
803      * <code>optional string request_id = 37109963;</code>
804      *
805      * @return The bytes for requestId.
806      */
getRequestIdBytes()807     public com.google.protobuf.ByteString getRequestIdBytes() {
808       java.lang.Object ref = requestId_;
809       if (ref instanceof String) {
810         com.google.protobuf.ByteString b =
811             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
812         requestId_ = b;
813         return b;
814       } else {
815         return (com.google.protobuf.ByteString) ref;
816       }
817     }
818     /**
819      *
820      *
821      * <pre>
822      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
823      * </pre>
824      *
825      * <code>optional string request_id = 37109963;</code>
826      *
827      * @param value The requestId to set.
828      * @return This builder for chaining.
829      */
setRequestId(java.lang.String value)830     public Builder setRequestId(java.lang.String value) {
831       if (value == null) {
832         throw new NullPointerException();
833       }
834       requestId_ = value;
835       bitField0_ |= 0x00000002;
836       onChanged();
837       return this;
838     }
839     /**
840      *
841      *
842      * <pre>
843      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
844      * </pre>
845      *
846      * <code>optional string request_id = 37109963;</code>
847      *
848      * @return This builder for chaining.
849      */
clearRequestId()850     public Builder clearRequestId() {
851       requestId_ = getDefaultInstance().getRequestId();
852       bitField0_ = (bitField0_ & ~0x00000002);
853       onChanged();
854       return this;
855     }
856     /**
857      *
858      *
859      * <pre>
860      * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
861      * </pre>
862      *
863      * <code>optional string request_id = 37109963;</code>
864      *
865      * @param value The bytes for requestId to set.
866      * @return This builder for chaining.
867      */
setRequestIdBytes(com.google.protobuf.ByteString value)868     public Builder setRequestIdBytes(com.google.protobuf.ByteString value) {
869       if (value == null) {
870         throw new NullPointerException();
871       }
872       checkByteStringIsUtf8(value);
873       requestId_ = value;
874       bitField0_ |= 0x00000002;
875       onChanged();
876       return this;
877     }
878 
879     private java.lang.Object urlMap_ = "";
880     /**
881      *
882      *
883      * <pre>
884      * Name of the UrlMap resource to delete.
885      * </pre>
886      *
887      * <code>string url_map = 367020684 [(.google.api.field_behavior) = REQUIRED];</code>
888      *
889      * @return The urlMap.
890      */
getUrlMap()891     public java.lang.String getUrlMap() {
892       java.lang.Object ref = urlMap_;
893       if (!(ref instanceof java.lang.String)) {
894         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
895         java.lang.String s = bs.toStringUtf8();
896         urlMap_ = s;
897         return s;
898       } else {
899         return (java.lang.String) ref;
900       }
901     }
902     /**
903      *
904      *
905      * <pre>
906      * Name of the UrlMap resource to delete.
907      * </pre>
908      *
909      * <code>string url_map = 367020684 [(.google.api.field_behavior) = REQUIRED];</code>
910      *
911      * @return The bytes for urlMap.
912      */
getUrlMapBytes()913     public com.google.protobuf.ByteString getUrlMapBytes() {
914       java.lang.Object ref = urlMap_;
915       if (ref instanceof String) {
916         com.google.protobuf.ByteString b =
917             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
918         urlMap_ = b;
919         return b;
920       } else {
921         return (com.google.protobuf.ByteString) ref;
922       }
923     }
924     /**
925      *
926      *
927      * <pre>
928      * Name of the UrlMap resource to delete.
929      * </pre>
930      *
931      * <code>string url_map = 367020684 [(.google.api.field_behavior) = REQUIRED];</code>
932      *
933      * @param value The urlMap to set.
934      * @return This builder for chaining.
935      */
setUrlMap(java.lang.String value)936     public Builder setUrlMap(java.lang.String value) {
937       if (value == null) {
938         throw new NullPointerException();
939       }
940       urlMap_ = value;
941       bitField0_ |= 0x00000004;
942       onChanged();
943       return this;
944     }
945     /**
946      *
947      *
948      * <pre>
949      * Name of the UrlMap resource to delete.
950      * </pre>
951      *
952      * <code>string url_map = 367020684 [(.google.api.field_behavior) = REQUIRED];</code>
953      *
954      * @return This builder for chaining.
955      */
clearUrlMap()956     public Builder clearUrlMap() {
957       urlMap_ = getDefaultInstance().getUrlMap();
958       bitField0_ = (bitField0_ & ~0x00000004);
959       onChanged();
960       return this;
961     }
962     /**
963      *
964      *
965      * <pre>
966      * Name of the UrlMap resource to delete.
967      * </pre>
968      *
969      * <code>string url_map = 367020684 [(.google.api.field_behavior) = REQUIRED];</code>
970      *
971      * @param value The bytes for urlMap to set.
972      * @return This builder for chaining.
973      */
setUrlMapBytes(com.google.protobuf.ByteString value)974     public Builder setUrlMapBytes(com.google.protobuf.ByteString value) {
975       if (value == null) {
976         throw new NullPointerException();
977       }
978       checkByteStringIsUtf8(value);
979       urlMap_ = value;
980       bitField0_ |= 0x00000004;
981       onChanged();
982       return this;
983     }
984 
985     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)986     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
987       return super.setUnknownFields(unknownFields);
988     }
989 
990     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)991     public final Builder mergeUnknownFields(
992         final com.google.protobuf.UnknownFieldSet unknownFields) {
993       return super.mergeUnknownFields(unknownFields);
994     }
995 
996     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DeleteUrlMapRequest)
997   }
998 
999   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DeleteUrlMapRequest)
1000   private static final com.google.cloud.compute.v1.DeleteUrlMapRequest DEFAULT_INSTANCE;
1001 
1002   static {
1003     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DeleteUrlMapRequest();
1004   }
1005 
getDefaultInstance()1006   public static com.google.cloud.compute.v1.DeleteUrlMapRequest getDefaultInstance() {
1007     return DEFAULT_INSTANCE;
1008   }
1009 
1010   private static final com.google.protobuf.Parser<DeleteUrlMapRequest> PARSER =
1011       new com.google.protobuf.AbstractParser<DeleteUrlMapRequest>() {
1012         @java.lang.Override
1013         public DeleteUrlMapRequest parsePartialFrom(
1014             com.google.protobuf.CodedInputStream input,
1015             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1016             throws com.google.protobuf.InvalidProtocolBufferException {
1017           Builder builder = newBuilder();
1018           try {
1019             builder.mergeFrom(input, extensionRegistry);
1020           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1021             throw e.setUnfinishedMessage(builder.buildPartial());
1022           } catch (com.google.protobuf.UninitializedMessageException e) {
1023             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1024           } catch (java.io.IOException e) {
1025             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1026                 .setUnfinishedMessage(builder.buildPartial());
1027           }
1028           return builder.buildPartial();
1029         }
1030       };
1031 
parser()1032   public static com.google.protobuf.Parser<DeleteUrlMapRequest> parser() {
1033     return PARSER;
1034   }
1035 
1036   @java.lang.Override
getParserForType()1037   public com.google.protobuf.Parser<DeleteUrlMapRequest> getParserForType() {
1038     return PARSER;
1039   }
1040 
1041   @java.lang.Override
getDefaultInstanceForType()1042   public com.google.cloud.compute.v1.DeleteUrlMapRequest getDefaultInstanceForType() {
1043     return DEFAULT_INSTANCE;
1044   }
1045 }
1046