• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * </pre>
26  *
27  * Protobuf type {@code google.cloud.compute.v1.DiskMoveRequest}
28  */
29 public final class DiskMoveRequest extends com.google.protobuf.GeneratedMessageV3
30     implements
31     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.DiskMoveRequest)
32     DiskMoveRequestOrBuilder {
33   private static final long serialVersionUID = 0L;
34   // Use DiskMoveRequest.newBuilder() to construct.
DiskMoveRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)35   private DiskMoveRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
36     super(builder);
37   }
38 
DiskMoveRequest()39   private DiskMoveRequest() {
40     destinationZone_ = "";
41     targetDisk_ = "";
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new DiskMoveRequest();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.compute.v1.Compute
57         .internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.cloud.compute.v1.Compute
64         .internal_static_google_cloud_compute_v1_DiskMoveRequest_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.compute.v1.DiskMoveRequest.class,
67             com.google.cloud.compute.v1.DiskMoveRequest.Builder.class);
68   }
69 
70   private int bitField0_;
71   public static final int DESTINATION_ZONE_FIELD_NUMBER = 131854653;
72 
73   @SuppressWarnings("serial")
74   private volatile java.lang.Object destinationZone_ = "";
75   /**
76    *
77    *
78    * <pre>
79    * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
80    * </pre>
81    *
82    * <code>optional string destination_zone = 131854653;</code>
83    *
84    * @return Whether the destinationZone field is set.
85    */
86   @java.lang.Override
hasDestinationZone()87   public boolean hasDestinationZone() {
88     return ((bitField0_ & 0x00000001) != 0);
89   }
90   /**
91    *
92    *
93    * <pre>
94    * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
95    * </pre>
96    *
97    * <code>optional string destination_zone = 131854653;</code>
98    *
99    * @return The destinationZone.
100    */
101   @java.lang.Override
getDestinationZone()102   public java.lang.String getDestinationZone() {
103     java.lang.Object ref = destinationZone_;
104     if (ref instanceof java.lang.String) {
105       return (java.lang.String) ref;
106     } else {
107       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
108       java.lang.String s = bs.toStringUtf8();
109       destinationZone_ = s;
110       return s;
111     }
112   }
113   /**
114    *
115    *
116    * <pre>
117    * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
118    * </pre>
119    *
120    * <code>optional string destination_zone = 131854653;</code>
121    *
122    * @return The bytes for destinationZone.
123    */
124   @java.lang.Override
getDestinationZoneBytes()125   public com.google.protobuf.ByteString getDestinationZoneBytes() {
126     java.lang.Object ref = destinationZone_;
127     if (ref instanceof java.lang.String) {
128       com.google.protobuf.ByteString b =
129           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
130       destinationZone_ = b;
131       return b;
132     } else {
133       return (com.google.protobuf.ByteString) ref;
134     }
135   }
136 
137   public static final int TARGET_DISK_FIELD_NUMBER = 62433163;
138 
139   @SuppressWarnings("serial")
140   private volatile java.lang.Object targetDisk_ = "";
141   /**
142    *
143    *
144    * <pre>
145    * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
146    * </pre>
147    *
148    * <code>optional string target_disk = 62433163;</code>
149    *
150    * @return Whether the targetDisk field is set.
151    */
152   @java.lang.Override
hasTargetDisk()153   public boolean hasTargetDisk() {
154     return ((bitField0_ & 0x00000002) != 0);
155   }
156   /**
157    *
158    *
159    * <pre>
160    * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
161    * </pre>
162    *
163    * <code>optional string target_disk = 62433163;</code>
164    *
165    * @return The targetDisk.
166    */
167   @java.lang.Override
getTargetDisk()168   public java.lang.String getTargetDisk() {
169     java.lang.Object ref = targetDisk_;
170     if (ref instanceof java.lang.String) {
171       return (java.lang.String) ref;
172     } else {
173       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
174       java.lang.String s = bs.toStringUtf8();
175       targetDisk_ = s;
176       return s;
177     }
178   }
179   /**
180    *
181    *
182    * <pre>
183    * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
184    * </pre>
185    *
186    * <code>optional string target_disk = 62433163;</code>
187    *
188    * @return The bytes for targetDisk.
189    */
190   @java.lang.Override
getTargetDiskBytes()191   public com.google.protobuf.ByteString getTargetDiskBytes() {
192     java.lang.Object ref = targetDisk_;
193     if (ref instanceof java.lang.String) {
194       com.google.protobuf.ByteString b =
195           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
196       targetDisk_ = b;
197       return b;
198     } else {
199       return (com.google.protobuf.ByteString) ref;
200     }
201   }
202 
203   private byte memoizedIsInitialized = -1;
204 
205   @java.lang.Override
isInitialized()206   public final boolean isInitialized() {
207     byte isInitialized = memoizedIsInitialized;
208     if (isInitialized == 1) return true;
209     if (isInitialized == 0) return false;
210 
211     memoizedIsInitialized = 1;
212     return true;
213   }
214 
215   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)216   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
217     if (((bitField0_ & 0x00000002) != 0)) {
218       com.google.protobuf.GeneratedMessageV3.writeString(output, 62433163, targetDisk_);
219     }
220     if (((bitField0_ & 0x00000001) != 0)) {
221       com.google.protobuf.GeneratedMessageV3.writeString(output, 131854653, destinationZone_);
222     }
223     getUnknownFields().writeTo(output);
224   }
225 
226   @java.lang.Override
getSerializedSize()227   public int getSerializedSize() {
228     int size = memoizedSize;
229     if (size != -1) return size;
230 
231     size = 0;
232     if (((bitField0_ & 0x00000002) != 0)) {
233       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(62433163, targetDisk_);
234     }
235     if (((bitField0_ & 0x00000001) != 0)) {
236       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(131854653, destinationZone_);
237     }
238     size += getUnknownFields().getSerializedSize();
239     memoizedSize = size;
240     return size;
241   }
242 
243   @java.lang.Override
equals(final java.lang.Object obj)244   public boolean equals(final java.lang.Object obj) {
245     if (obj == this) {
246       return true;
247     }
248     if (!(obj instanceof com.google.cloud.compute.v1.DiskMoveRequest)) {
249       return super.equals(obj);
250     }
251     com.google.cloud.compute.v1.DiskMoveRequest other =
252         (com.google.cloud.compute.v1.DiskMoveRequest) obj;
253 
254     if (hasDestinationZone() != other.hasDestinationZone()) return false;
255     if (hasDestinationZone()) {
256       if (!getDestinationZone().equals(other.getDestinationZone())) return false;
257     }
258     if (hasTargetDisk() != other.hasTargetDisk()) return false;
259     if (hasTargetDisk()) {
260       if (!getTargetDisk().equals(other.getTargetDisk())) return false;
261     }
262     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
263     return true;
264   }
265 
266   @java.lang.Override
hashCode()267   public int hashCode() {
268     if (memoizedHashCode != 0) {
269       return memoizedHashCode;
270     }
271     int hash = 41;
272     hash = (19 * hash) + getDescriptor().hashCode();
273     if (hasDestinationZone()) {
274       hash = (37 * hash) + DESTINATION_ZONE_FIELD_NUMBER;
275       hash = (53 * hash) + getDestinationZone().hashCode();
276     }
277     if (hasTargetDisk()) {
278       hash = (37 * hash) + TARGET_DISK_FIELD_NUMBER;
279       hash = (53 * hash) + getTargetDisk().hashCode();
280     }
281     hash = (29 * hash) + getUnknownFields().hashCode();
282     memoizedHashCode = hash;
283     return hash;
284   }
285 
parseFrom(java.nio.ByteBuffer data)286   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(java.nio.ByteBuffer data)
287       throws com.google.protobuf.InvalidProtocolBufferException {
288     return PARSER.parseFrom(data);
289   }
290 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)291   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(
292       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
293       throws com.google.protobuf.InvalidProtocolBufferException {
294     return PARSER.parseFrom(data, extensionRegistry);
295   }
296 
parseFrom( com.google.protobuf.ByteString data)297   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(
298       com.google.protobuf.ByteString data)
299       throws com.google.protobuf.InvalidProtocolBufferException {
300     return PARSER.parseFrom(data);
301   }
302 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)303   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(
304       com.google.protobuf.ByteString data,
305       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
306       throws com.google.protobuf.InvalidProtocolBufferException {
307     return PARSER.parseFrom(data, extensionRegistry);
308   }
309 
parseFrom(byte[] data)310   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(byte[] data)
311       throws com.google.protobuf.InvalidProtocolBufferException {
312     return PARSER.parseFrom(data);
313   }
314 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)315   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(
316       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
317       throws com.google.protobuf.InvalidProtocolBufferException {
318     return PARSER.parseFrom(data, extensionRegistry);
319   }
320 
parseFrom(java.io.InputStream input)321   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(java.io.InputStream input)
322       throws java.io.IOException {
323     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
324   }
325 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)326   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(
327       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
328       throws java.io.IOException {
329     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
330         PARSER, input, extensionRegistry);
331   }
332 
parseDelimitedFrom( java.io.InputStream input)333   public static com.google.cloud.compute.v1.DiskMoveRequest parseDelimitedFrom(
334       java.io.InputStream input) throws java.io.IOException {
335     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
336   }
337 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)338   public static com.google.cloud.compute.v1.DiskMoveRequest parseDelimitedFrom(
339       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
340       throws java.io.IOException {
341     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
342         PARSER, input, extensionRegistry);
343   }
344 
parseFrom( com.google.protobuf.CodedInputStream input)345   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(
346       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
347     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
348   }
349 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)350   public static com.google.cloud.compute.v1.DiskMoveRequest parseFrom(
351       com.google.protobuf.CodedInputStream input,
352       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
353       throws java.io.IOException {
354     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
355         PARSER, input, extensionRegistry);
356   }
357 
358   @java.lang.Override
newBuilderForType()359   public Builder newBuilderForType() {
360     return newBuilder();
361   }
362 
newBuilder()363   public static Builder newBuilder() {
364     return DEFAULT_INSTANCE.toBuilder();
365   }
366 
newBuilder(com.google.cloud.compute.v1.DiskMoveRequest prototype)367   public static Builder newBuilder(com.google.cloud.compute.v1.DiskMoveRequest prototype) {
368     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
369   }
370 
371   @java.lang.Override
toBuilder()372   public Builder toBuilder() {
373     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
374   }
375 
376   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)377   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
378     Builder builder = new Builder(parent);
379     return builder;
380   }
381   /**
382    *
383    *
384    * <pre>
385    * </pre>
386    *
387    * Protobuf type {@code google.cloud.compute.v1.DiskMoveRequest}
388    */
389   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
390       implements
391       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.DiskMoveRequest)
392       com.google.cloud.compute.v1.DiskMoveRequestOrBuilder {
getDescriptor()393     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
394       return com.google.cloud.compute.v1.Compute
395           .internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor;
396     }
397 
398     @java.lang.Override
399     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()400         internalGetFieldAccessorTable() {
401       return com.google.cloud.compute.v1.Compute
402           .internal_static_google_cloud_compute_v1_DiskMoveRequest_fieldAccessorTable
403           .ensureFieldAccessorsInitialized(
404               com.google.cloud.compute.v1.DiskMoveRequest.class,
405               com.google.cloud.compute.v1.DiskMoveRequest.Builder.class);
406     }
407 
408     // Construct using com.google.cloud.compute.v1.DiskMoveRequest.newBuilder()
Builder()409     private Builder() {}
410 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)411     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
412       super(parent);
413     }
414 
415     @java.lang.Override
clear()416     public Builder clear() {
417       super.clear();
418       bitField0_ = 0;
419       destinationZone_ = "";
420       targetDisk_ = "";
421       return this;
422     }
423 
424     @java.lang.Override
getDescriptorForType()425     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
426       return com.google.cloud.compute.v1.Compute
427           .internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor;
428     }
429 
430     @java.lang.Override
getDefaultInstanceForType()431     public com.google.cloud.compute.v1.DiskMoveRequest getDefaultInstanceForType() {
432       return com.google.cloud.compute.v1.DiskMoveRequest.getDefaultInstance();
433     }
434 
435     @java.lang.Override
build()436     public com.google.cloud.compute.v1.DiskMoveRequest build() {
437       com.google.cloud.compute.v1.DiskMoveRequest result = buildPartial();
438       if (!result.isInitialized()) {
439         throw newUninitializedMessageException(result);
440       }
441       return result;
442     }
443 
444     @java.lang.Override
buildPartial()445     public com.google.cloud.compute.v1.DiskMoveRequest buildPartial() {
446       com.google.cloud.compute.v1.DiskMoveRequest result =
447           new com.google.cloud.compute.v1.DiskMoveRequest(this);
448       if (bitField0_ != 0) {
449         buildPartial0(result);
450       }
451       onBuilt();
452       return result;
453     }
454 
buildPartial0(com.google.cloud.compute.v1.DiskMoveRequest result)455     private void buildPartial0(com.google.cloud.compute.v1.DiskMoveRequest result) {
456       int from_bitField0_ = bitField0_;
457       int to_bitField0_ = 0;
458       if (((from_bitField0_ & 0x00000001) != 0)) {
459         result.destinationZone_ = destinationZone_;
460         to_bitField0_ |= 0x00000001;
461       }
462       if (((from_bitField0_ & 0x00000002) != 0)) {
463         result.targetDisk_ = targetDisk_;
464         to_bitField0_ |= 0x00000002;
465       }
466       result.bitField0_ |= to_bitField0_;
467     }
468 
469     @java.lang.Override
clone()470     public Builder clone() {
471       return super.clone();
472     }
473 
474     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)475     public Builder setField(
476         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
477       return super.setField(field, value);
478     }
479 
480     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)481     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
482       return super.clearField(field);
483     }
484 
485     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)486     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
487       return super.clearOneof(oneof);
488     }
489 
490     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)491     public Builder setRepeatedField(
492         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
493       return super.setRepeatedField(field, index, value);
494     }
495 
496     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)497     public Builder addRepeatedField(
498         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
499       return super.addRepeatedField(field, value);
500     }
501 
502     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)503     public Builder mergeFrom(com.google.protobuf.Message other) {
504       if (other instanceof com.google.cloud.compute.v1.DiskMoveRequest) {
505         return mergeFrom((com.google.cloud.compute.v1.DiskMoveRequest) other);
506       } else {
507         super.mergeFrom(other);
508         return this;
509       }
510     }
511 
mergeFrom(com.google.cloud.compute.v1.DiskMoveRequest other)512     public Builder mergeFrom(com.google.cloud.compute.v1.DiskMoveRequest other) {
513       if (other == com.google.cloud.compute.v1.DiskMoveRequest.getDefaultInstance()) return this;
514       if (other.hasDestinationZone()) {
515         destinationZone_ = other.destinationZone_;
516         bitField0_ |= 0x00000001;
517         onChanged();
518       }
519       if (other.hasTargetDisk()) {
520         targetDisk_ = other.targetDisk_;
521         bitField0_ |= 0x00000002;
522         onChanged();
523       }
524       this.mergeUnknownFields(other.getUnknownFields());
525       onChanged();
526       return this;
527     }
528 
529     @java.lang.Override
isInitialized()530     public final boolean isInitialized() {
531       return true;
532     }
533 
534     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)535     public Builder mergeFrom(
536         com.google.protobuf.CodedInputStream input,
537         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
538         throws java.io.IOException {
539       if (extensionRegistry == null) {
540         throw new java.lang.NullPointerException();
541       }
542       try {
543         boolean done = false;
544         while (!done) {
545           int tag = input.readTag();
546           switch (tag) {
547             case 0:
548               done = true;
549               break;
550             case 499465306:
551               {
552                 targetDisk_ = input.readStringRequireUtf8();
553                 bitField0_ |= 0x00000002;
554                 break;
555               } // case 499465306
556             case 1054837226:
557               {
558                 destinationZone_ = input.readStringRequireUtf8();
559                 bitField0_ |= 0x00000001;
560                 break;
561               } // case 1054837226
562             default:
563               {
564                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
565                   done = true; // was an endgroup tag
566                 }
567                 break;
568               } // default:
569           } // switch (tag)
570         } // while (!done)
571       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
572         throw e.unwrapIOException();
573       } finally {
574         onChanged();
575       } // finally
576       return this;
577     }
578 
579     private int bitField0_;
580 
581     private java.lang.Object destinationZone_ = "";
582     /**
583      *
584      *
585      * <pre>
586      * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
587      * </pre>
588      *
589      * <code>optional string destination_zone = 131854653;</code>
590      *
591      * @return Whether the destinationZone field is set.
592      */
hasDestinationZone()593     public boolean hasDestinationZone() {
594       return ((bitField0_ & 0x00000001) != 0);
595     }
596     /**
597      *
598      *
599      * <pre>
600      * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
601      * </pre>
602      *
603      * <code>optional string destination_zone = 131854653;</code>
604      *
605      * @return The destinationZone.
606      */
getDestinationZone()607     public java.lang.String getDestinationZone() {
608       java.lang.Object ref = destinationZone_;
609       if (!(ref instanceof java.lang.String)) {
610         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
611         java.lang.String s = bs.toStringUtf8();
612         destinationZone_ = s;
613         return s;
614       } else {
615         return (java.lang.String) ref;
616       }
617     }
618     /**
619      *
620      *
621      * <pre>
622      * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
623      * </pre>
624      *
625      * <code>optional string destination_zone = 131854653;</code>
626      *
627      * @return The bytes for destinationZone.
628      */
getDestinationZoneBytes()629     public com.google.protobuf.ByteString getDestinationZoneBytes() {
630       java.lang.Object ref = destinationZone_;
631       if (ref instanceof String) {
632         com.google.protobuf.ByteString b =
633             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
634         destinationZone_ = b;
635         return b;
636       } else {
637         return (com.google.protobuf.ByteString) ref;
638       }
639     }
640     /**
641      *
642      *
643      * <pre>
644      * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
645      * </pre>
646      *
647      * <code>optional string destination_zone = 131854653;</code>
648      *
649      * @param value The destinationZone to set.
650      * @return This builder for chaining.
651      */
setDestinationZone(java.lang.String value)652     public Builder setDestinationZone(java.lang.String value) {
653       if (value == null) {
654         throw new NullPointerException();
655       }
656       destinationZone_ = value;
657       bitField0_ |= 0x00000001;
658       onChanged();
659       return this;
660     }
661     /**
662      *
663      *
664      * <pre>
665      * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
666      * </pre>
667      *
668      * <code>optional string destination_zone = 131854653;</code>
669      *
670      * @return This builder for chaining.
671      */
clearDestinationZone()672     public Builder clearDestinationZone() {
673       destinationZone_ = getDefaultInstance().getDestinationZone();
674       bitField0_ = (bitField0_ & ~0x00000001);
675       onChanged();
676       return this;
677     }
678     /**
679      *
680      *
681      * <pre>
682      * The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone
683      * </pre>
684      *
685      * <code>optional string destination_zone = 131854653;</code>
686      *
687      * @param value The bytes for destinationZone to set.
688      * @return This builder for chaining.
689      */
setDestinationZoneBytes(com.google.protobuf.ByteString value)690     public Builder setDestinationZoneBytes(com.google.protobuf.ByteString value) {
691       if (value == null) {
692         throw new NullPointerException();
693       }
694       checkByteStringIsUtf8(value);
695       destinationZone_ = value;
696       bitField0_ |= 0x00000001;
697       onChanged();
698       return this;
699     }
700 
701     private java.lang.Object targetDisk_ = "";
702     /**
703      *
704      *
705      * <pre>
706      * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
707      * </pre>
708      *
709      * <code>optional string target_disk = 62433163;</code>
710      *
711      * @return Whether the targetDisk field is set.
712      */
hasTargetDisk()713     public boolean hasTargetDisk() {
714       return ((bitField0_ & 0x00000002) != 0);
715     }
716     /**
717      *
718      *
719      * <pre>
720      * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
721      * </pre>
722      *
723      * <code>optional string target_disk = 62433163;</code>
724      *
725      * @return The targetDisk.
726      */
getTargetDisk()727     public java.lang.String getTargetDisk() {
728       java.lang.Object ref = targetDisk_;
729       if (!(ref instanceof java.lang.String)) {
730         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
731         java.lang.String s = bs.toStringUtf8();
732         targetDisk_ = s;
733         return s;
734       } else {
735         return (java.lang.String) ref;
736       }
737     }
738     /**
739      *
740      *
741      * <pre>
742      * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
743      * </pre>
744      *
745      * <code>optional string target_disk = 62433163;</code>
746      *
747      * @return The bytes for targetDisk.
748      */
getTargetDiskBytes()749     public com.google.protobuf.ByteString getTargetDiskBytes() {
750       java.lang.Object ref = targetDisk_;
751       if (ref instanceof String) {
752         com.google.protobuf.ByteString b =
753             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
754         targetDisk_ = b;
755         return b;
756       } else {
757         return (com.google.protobuf.ByteString) ref;
758       }
759     }
760     /**
761      *
762      *
763      * <pre>
764      * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
765      * </pre>
766      *
767      * <code>optional string target_disk = 62433163;</code>
768      *
769      * @param value The targetDisk to set.
770      * @return This builder for chaining.
771      */
setTargetDisk(java.lang.String value)772     public Builder setTargetDisk(java.lang.String value) {
773       if (value == null) {
774         throw new NullPointerException();
775       }
776       targetDisk_ = value;
777       bitField0_ |= 0x00000002;
778       onChanged();
779       return this;
780     }
781     /**
782      *
783      *
784      * <pre>
785      * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
786      * </pre>
787      *
788      * <code>optional string target_disk = 62433163;</code>
789      *
790      * @return This builder for chaining.
791      */
clearTargetDisk()792     public Builder clearTargetDisk() {
793       targetDisk_ = getDefaultInstance().getTargetDisk();
794       bitField0_ = (bitField0_ & ~0x00000002);
795       onChanged();
796       return this;
797     }
798     /**
799      *
800      *
801      * <pre>
802      * The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
803      * </pre>
804      *
805      * <code>optional string target_disk = 62433163;</code>
806      *
807      * @param value The bytes for targetDisk to set.
808      * @return This builder for chaining.
809      */
setTargetDiskBytes(com.google.protobuf.ByteString value)810     public Builder setTargetDiskBytes(com.google.protobuf.ByteString value) {
811       if (value == null) {
812         throw new NullPointerException();
813       }
814       checkByteStringIsUtf8(value);
815       targetDisk_ = value;
816       bitField0_ |= 0x00000002;
817       onChanged();
818       return this;
819     }
820 
821     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)822     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
823       return super.setUnknownFields(unknownFields);
824     }
825 
826     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)827     public final Builder mergeUnknownFields(
828         final com.google.protobuf.UnknownFieldSet unknownFields) {
829       return super.mergeUnknownFields(unknownFields);
830     }
831 
832     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.DiskMoveRequest)
833   }
834 
835   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.DiskMoveRequest)
836   private static final com.google.cloud.compute.v1.DiskMoveRequest DEFAULT_INSTANCE;
837 
838   static {
839     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.DiskMoveRequest();
840   }
841 
getDefaultInstance()842   public static com.google.cloud.compute.v1.DiskMoveRequest getDefaultInstance() {
843     return DEFAULT_INSTANCE;
844   }
845 
846   private static final com.google.protobuf.Parser<DiskMoveRequest> PARSER =
847       new com.google.protobuf.AbstractParser<DiskMoveRequest>() {
848         @java.lang.Override
849         public DiskMoveRequest parsePartialFrom(
850             com.google.protobuf.CodedInputStream input,
851             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
852             throws com.google.protobuf.InvalidProtocolBufferException {
853           Builder builder = newBuilder();
854           try {
855             builder.mergeFrom(input, extensionRegistry);
856           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
857             throw e.setUnfinishedMessage(builder.buildPartial());
858           } catch (com.google.protobuf.UninitializedMessageException e) {
859             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
860           } catch (java.io.IOException e) {
861             throw new com.google.protobuf.InvalidProtocolBufferException(e)
862                 .setUnfinishedMessage(builder.buildPartial());
863           }
864           return builder.buildPartial();
865         }
866       };
867 
parser()868   public static com.google.protobuf.Parser<DiskMoveRequest> parser() {
869     return PARSER;
870   }
871 
872   @java.lang.Override
getParserForType()873   public com.google.protobuf.Parser<DiskMoveRequest> getParserForType() {
874     return PARSER;
875   }
876 
877   @java.lang.Override
getDefaultInstanceForType()878   public com.google.cloud.compute.v1.DiskMoveRequest getDefaultInstanceForType() {
879     return DEFAULT_INSTANCE;
880   }
881 }
882