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