• 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/vmmigration/v1/vmmigration.proto
18 
19 package com.google.cloud.vmmigration.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * MigratingVm describes the VM that will be migrated from a Source environment
26  * and its replication state.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.vmmigration.v1.MigratingVm}
30  */
31 public final class MigratingVm extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.MigratingVm)
34     MigratingVmOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use MigratingVm.newBuilder() to construct.
MigratingVm(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private MigratingVm(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
MigratingVm()41   private MigratingVm() {
42     name_ = "";
43     sourceVmId_ = "";
44     displayName_ = "";
45     description_ = "";
46     state_ = 0;
47     group_ = "";
48     recentCloneJobs_ = java.util.Collections.emptyList();
49     recentCutoverJobs_ = java.util.Collections.emptyList();
50   }
51 
52   @java.lang.Override
53   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)54   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
55     return new MigratingVm();
56   }
57 
58   @java.lang.Override
getUnknownFields()59   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
60     return this.unknownFields;
61   }
62 
getDescriptor()63   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
64     return com.google.cloud.vmmigration.v1.VmMigrationProto
65         .internal_static_google_cloud_vmmigration_v1_MigratingVm_descriptor;
66   }
67 
68   @SuppressWarnings({"rawtypes"})
69   @java.lang.Override
internalGetMapField(int number)70   protected com.google.protobuf.MapField internalGetMapField(int number) {
71     switch (number) {
72       case 16:
73         return internalGetLabels();
74       default:
75         throw new RuntimeException("Invalid map field number: " + number);
76     }
77   }
78 
79   @java.lang.Override
80   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()81       internalGetFieldAccessorTable() {
82     return com.google.cloud.vmmigration.v1.VmMigrationProto
83         .internal_static_google_cloud_vmmigration_v1_MigratingVm_fieldAccessorTable
84         .ensureFieldAccessorsInitialized(
85             com.google.cloud.vmmigration.v1.MigratingVm.class,
86             com.google.cloud.vmmigration.v1.MigratingVm.Builder.class);
87   }
88 
89   /**
90    *
91    *
92    * <pre>
93    * The possible values of the state/health of source VM.
94    * </pre>
95    *
96    * Protobuf enum {@code google.cloud.vmmigration.v1.MigratingVm.State}
97    */
98   public enum State implements com.google.protobuf.ProtocolMessageEnum {
99     /**
100      *
101      *
102      * <pre>
103      * The state was not sampled by the health checks yet.
104      * </pre>
105      *
106      * <code>STATE_UNSPECIFIED = 0;</code>
107      */
108     STATE_UNSPECIFIED(0),
109     /**
110      *
111      *
112      * <pre>
113      * The VM in the source is being verified.
114      * </pre>
115      *
116      * <code>PENDING = 1;</code>
117      */
118     PENDING(1),
119     /**
120      *
121      *
122      * <pre>
123      * The source VM was verified, and it's ready to start replication.
124      * </pre>
125      *
126      * <code>READY = 2;</code>
127      */
128     READY(2),
129     /**
130      *
131      *
132      * <pre>
133      * Migration is going through the first sync cycle.
134      * </pre>
135      *
136      * <code>FIRST_SYNC = 3;</code>
137      */
138     FIRST_SYNC(3),
139     /**
140      *
141      *
142      * <pre>
143      * The replication is active, and it's running or scheduled to run.
144      * </pre>
145      *
146      * <code>ACTIVE = 4;</code>
147      */
148     ACTIVE(4),
149     /**
150      *
151      *
152      * <pre>
153      * The source VM is being turned off, and a final replication is currently
154      * running.
155      * </pre>
156      *
157      * <code>CUTTING_OVER = 7;</code>
158      */
159     CUTTING_OVER(7),
160     /**
161      *
162      *
163      * <pre>
164      * The source VM was stopped and replicated. The replication is currently
165      * paused.
166      * </pre>
167      *
168      * <code>CUTOVER = 8;</code>
169      */
170     CUTOVER(8),
171     /**
172      *
173      *
174      * <pre>
175      * A cutover job is active and replication cycle is running the final sync.
176      * </pre>
177      *
178      * <code>FINAL_SYNC = 9;</code>
179      */
180     FINAL_SYNC(9),
181     /**
182      *
183      *
184      * <pre>
185      * The replication was paused by the user and no cycles are scheduled to
186      * run.
187      * </pre>
188      *
189      * <code>PAUSED = 10;</code>
190      */
191     PAUSED(10),
192     /**
193      *
194      *
195      * <pre>
196      * The migrating VM is being finalized and migration resources are being
197      * removed.
198      * </pre>
199      *
200      * <code>FINALIZING = 11;</code>
201      */
202     FINALIZING(11),
203     /**
204      *
205      *
206      * <pre>
207      * The replication process is done. The migrating VM is finalized and no
208      * longer consumes billable resources.
209      * </pre>
210      *
211      * <code>FINALIZED = 12;</code>
212      */
213     FINALIZED(12),
214     /**
215      *
216      *
217      * <pre>
218      * The replication process encountered an unrecoverable error and was
219      * aborted.
220      * </pre>
221      *
222      * <code>ERROR = 13;</code>
223      */
224     ERROR(13),
225     UNRECOGNIZED(-1),
226     ;
227 
228     /**
229      *
230      *
231      * <pre>
232      * The state was not sampled by the health checks yet.
233      * </pre>
234      *
235      * <code>STATE_UNSPECIFIED = 0;</code>
236      */
237     public static final int STATE_UNSPECIFIED_VALUE = 0;
238     /**
239      *
240      *
241      * <pre>
242      * The VM in the source is being verified.
243      * </pre>
244      *
245      * <code>PENDING = 1;</code>
246      */
247     public static final int PENDING_VALUE = 1;
248     /**
249      *
250      *
251      * <pre>
252      * The source VM was verified, and it's ready to start replication.
253      * </pre>
254      *
255      * <code>READY = 2;</code>
256      */
257     public static final int READY_VALUE = 2;
258     /**
259      *
260      *
261      * <pre>
262      * Migration is going through the first sync cycle.
263      * </pre>
264      *
265      * <code>FIRST_SYNC = 3;</code>
266      */
267     public static final int FIRST_SYNC_VALUE = 3;
268     /**
269      *
270      *
271      * <pre>
272      * The replication is active, and it's running or scheduled to run.
273      * </pre>
274      *
275      * <code>ACTIVE = 4;</code>
276      */
277     public static final int ACTIVE_VALUE = 4;
278     /**
279      *
280      *
281      * <pre>
282      * The source VM is being turned off, and a final replication is currently
283      * running.
284      * </pre>
285      *
286      * <code>CUTTING_OVER = 7;</code>
287      */
288     public static final int CUTTING_OVER_VALUE = 7;
289     /**
290      *
291      *
292      * <pre>
293      * The source VM was stopped and replicated. The replication is currently
294      * paused.
295      * </pre>
296      *
297      * <code>CUTOVER = 8;</code>
298      */
299     public static final int CUTOVER_VALUE = 8;
300     /**
301      *
302      *
303      * <pre>
304      * A cutover job is active and replication cycle is running the final sync.
305      * </pre>
306      *
307      * <code>FINAL_SYNC = 9;</code>
308      */
309     public static final int FINAL_SYNC_VALUE = 9;
310     /**
311      *
312      *
313      * <pre>
314      * The replication was paused by the user and no cycles are scheduled to
315      * run.
316      * </pre>
317      *
318      * <code>PAUSED = 10;</code>
319      */
320     public static final int PAUSED_VALUE = 10;
321     /**
322      *
323      *
324      * <pre>
325      * The migrating VM is being finalized and migration resources are being
326      * removed.
327      * </pre>
328      *
329      * <code>FINALIZING = 11;</code>
330      */
331     public static final int FINALIZING_VALUE = 11;
332     /**
333      *
334      *
335      * <pre>
336      * The replication process is done. The migrating VM is finalized and no
337      * longer consumes billable resources.
338      * </pre>
339      *
340      * <code>FINALIZED = 12;</code>
341      */
342     public static final int FINALIZED_VALUE = 12;
343     /**
344      *
345      *
346      * <pre>
347      * The replication process encountered an unrecoverable error and was
348      * aborted.
349      * </pre>
350      *
351      * <code>ERROR = 13;</code>
352      */
353     public static final int ERROR_VALUE = 13;
354 
getNumber()355     public final int getNumber() {
356       if (this == UNRECOGNIZED) {
357         throw new java.lang.IllegalArgumentException(
358             "Can't get the number of an unknown enum value.");
359       }
360       return value;
361     }
362 
363     /**
364      * @param value The numeric wire value of the corresponding enum entry.
365      * @return The enum associated with the given numeric wire value.
366      * @deprecated Use {@link #forNumber(int)} instead.
367      */
368     @java.lang.Deprecated
valueOf(int value)369     public static State valueOf(int value) {
370       return forNumber(value);
371     }
372 
373     /**
374      * @param value The numeric wire value of the corresponding enum entry.
375      * @return The enum associated with the given numeric wire value.
376      */
forNumber(int value)377     public static State forNumber(int value) {
378       switch (value) {
379         case 0:
380           return STATE_UNSPECIFIED;
381         case 1:
382           return PENDING;
383         case 2:
384           return READY;
385         case 3:
386           return FIRST_SYNC;
387         case 4:
388           return ACTIVE;
389         case 7:
390           return CUTTING_OVER;
391         case 8:
392           return CUTOVER;
393         case 9:
394           return FINAL_SYNC;
395         case 10:
396           return PAUSED;
397         case 11:
398           return FINALIZING;
399         case 12:
400           return FINALIZED;
401         case 13:
402           return ERROR;
403         default:
404           return null;
405       }
406     }
407 
internalGetValueMap()408     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
409       return internalValueMap;
410     }
411 
412     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
413         new com.google.protobuf.Internal.EnumLiteMap<State>() {
414           public State findValueByNumber(int number) {
415             return State.forNumber(number);
416           }
417         };
418 
getValueDescriptor()419     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
420       if (this == UNRECOGNIZED) {
421         throw new java.lang.IllegalStateException(
422             "Can't get the descriptor of an unrecognized enum value.");
423       }
424       return getDescriptor().getValues().get(ordinal());
425     }
426 
getDescriptorForType()427     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
428       return getDescriptor();
429     }
430 
getDescriptor()431     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
432       return com.google.cloud.vmmigration.v1.MigratingVm.getDescriptor().getEnumTypes().get(0);
433     }
434 
435     private static final State[] VALUES = values();
436 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)437     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
438       if (desc.getType() != getDescriptor()) {
439         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
440       }
441       if (desc.getIndex() == -1) {
442         return UNRECOGNIZED;
443       }
444       return VALUES[desc.getIndex()];
445     }
446 
447     private final int value;
448 
State(int value)449     private State(int value) {
450       this.value = value;
451     }
452 
453     // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.MigratingVm.State)
454   }
455 
456   private int targetVmDefaultsCase_ = 0;
457   private java.lang.Object targetVmDefaults_;
458 
459   public enum TargetVmDefaultsCase
460       implements
461           com.google.protobuf.Internal.EnumLite,
462           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
463     COMPUTE_ENGINE_TARGET_DEFAULTS(26),
464     TARGETVMDEFAULTS_NOT_SET(0);
465     private final int value;
466 
TargetVmDefaultsCase(int value)467     private TargetVmDefaultsCase(int value) {
468       this.value = value;
469     }
470     /**
471      * @param value The number of the enum to look for.
472      * @return The enum associated with the given number.
473      * @deprecated Use {@link #forNumber(int)} instead.
474      */
475     @java.lang.Deprecated
valueOf(int value)476     public static TargetVmDefaultsCase valueOf(int value) {
477       return forNumber(value);
478     }
479 
forNumber(int value)480     public static TargetVmDefaultsCase forNumber(int value) {
481       switch (value) {
482         case 26:
483           return COMPUTE_ENGINE_TARGET_DEFAULTS;
484         case 0:
485           return TARGETVMDEFAULTS_NOT_SET;
486         default:
487           return null;
488       }
489     }
490 
getNumber()491     public int getNumber() {
492       return this.value;
493     }
494   };
495 
getTargetVmDefaultsCase()496   public TargetVmDefaultsCase getTargetVmDefaultsCase() {
497     return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_);
498   }
499 
500   private int sourceVmDetailsCase_ = 0;
501   private java.lang.Object sourceVmDetails_;
502 
503   public enum SourceVmDetailsCase
504       implements
505           com.google.protobuf.Internal.EnumLite,
506           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
507     AWS_SOURCE_VM_DETAILS(29),
508     SOURCEVMDETAILS_NOT_SET(0);
509     private final int value;
510 
SourceVmDetailsCase(int value)511     private SourceVmDetailsCase(int value) {
512       this.value = value;
513     }
514     /**
515      * @param value The number of the enum to look for.
516      * @return The enum associated with the given number.
517      * @deprecated Use {@link #forNumber(int)} instead.
518      */
519     @java.lang.Deprecated
valueOf(int value)520     public static SourceVmDetailsCase valueOf(int value) {
521       return forNumber(value);
522     }
523 
forNumber(int value)524     public static SourceVmDetailsCase forNumber(int value) {
525       switch (value) {
526         case 29:
527           return AWS_SOURCE_VM_DETAILS;
528         case 0:
529           return SOURCEVMDETAILS_NOT_SET;
530         default:
531           return null;
532       }
533     }
534 
getNumber()535     public int getNumber() {
536       return this.value;
537     }
538   };
539 
getSourceVmDetailsCase()540   public SourceVmDetailsCase getSourceVmDetailsCase() {
541     return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_);
542   }
543 
544   public static final int COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER = 26;
545   /**
546    *
547    *
548    * <pre>
549    * Details of the target VM in Compute Engine.
550    * </pre>
551    *
552    * <code>
553    * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
554    * </code>
555    *
556    * @return Whether the computeEngineTargetDefaults field is set.
557    */
558   @java.lang.Override
hasComputeEngineTargetDefaults()559   public boolean hasComputeEngineTargetDefaults() {
560     return targetVmDefaultsCase_ == 26;
561   }
562   /**
563    *
564    *
565    * <pre>
566    * Details of the target VM in Compute Engine.
567    * </pre>
568    *
569    * <code>
570    * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
571    * </code>
572    *
573    * @return The computeEngineTargetDefaults.
574    */
575   @java.lang.Override
576   public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
getComputeEngineTargetDefaults()577       getComputeEngineTargetDefaults() {
578     if (targetVmDefaultsCase_ == 26) {
579       return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
580     }
581     return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
582   }
583   /**
584    *
585    *
586    * <pre>
587    * Details of the target VM in Compute Engine.
588    * </pre>
589    *
590    * <code>
591    * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
592    * </code>
593    */
594   @java.lang.Override
595   public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder
getComputeEngineTargetDefaultsOrBuilder()596       getComputeEngineTargetDefaultsOrBuilder() {
597     if (targetVmDefaultsCase_ == 26) {
598       return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
599     }
600     return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
601   }
602 
603   public static final int AWS_SOURCE_VM_DETAILS_FIELD_NUMBER = 29;
604   /**
605    *
606    *
607    * <pre>
608    * Output only. Details of the VM from an AWS source.
609    * </pre>
610    *
611    * <code>
612    * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
613    * </code>
614    *
615    * @return Whether the awsSourceVmDetails field is set.
616    */
617   @java.lang.Override
hasAwsSourceVmDetails()618   public boolean hasAwsSourceVmDetails() {
619     return sourceVmDetailsCase_ == 29;
620   }
621   /**
622    *
623    *
624    * <pre>
625    * Output only. Details of the VM from an AWS source.
626    * </pre>
627    *
628    * <code>
629    * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
630    * </code>
631    *
632    * @return The awsSourceVmDetails.
633    */
634   @java.lang.Override
getAwsSourceVmDetails()635   public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getAwsSourceVmDetails() {
636     if (sourceVmDetailsCase_ == 29) {
637       return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
638     }
639     return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
640   }
641   /**
642    *
643    *
644    * <pre>
645    * Output only. Details of the VM from an AWS source.
646    * </pre>
647    *
648    * <code>
649    * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
650    * </code>
651    */
652   @java.lang.Override
653   public com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder
getAwsSourceVmDetailsOrBuilder()654       getAwsSourceVmDetailsOrBuilder() {
655     if (sourceVmDetailsCase_ == 29) {
656       return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
657     }
658     return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
659   }
660 
661   public static final int NAME_FIELD_NUMBER = 1;
662 
663   @SuppressWarnings("serial")
664   private volatile java.lang.Object name_ = "";
665   /**
666    *
667    *
668    * <pre>
669    * Output only. The identifier of the MigratingVm.
670    * </pre>
671    *
672    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
673    *
674    * @return The name.
675    */
676   @java.lang.Override
getName()677   public java.lang.String getName() {
678     java.lang.Object ref = name_;
679     if (ref instanceof java.lang.String) {
680       return (java.lang.String) ref;
681     } else {
682       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
683       java.lang.String s = bs.toStringUtf8();
684       name_ = s;
685       return s;
686     }
687   }
688   /**
689    *
690    *
691    * <pre>
692    * Output only. The identifier of the MigratingVm.
693    * </pre>
694    *
695    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
696    *
697    * @return The bytes for name.
698    */
699   @java.lang.Override
getNameBytes()700   public com.google.protobuf.ByteString getNameBytes() {
701     java.lang.Object ref = name_;
702     if (ref instanceof java.lang.String) {
703       com.google.protobuf.ByteString b =
704           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
705       name_ = b;
706       return b;
707     } else {
708       return (com.google.protobuf.ByteString) ref;
709     }
710   }
711 
712   public static final int SOURCE_VM_ID_FIELD_NUMBER = 2;
713 
714   @SuppressWarnings("serial")
715   private volatile java.lang.Object sourceVmId_ = "";
716   /**
717    *
718    *
719    * <pre>
720    * The unique ID of the VM in the source.
721    * The VM's name in vSphere can be changed, so this is not the VM's name but
722    * rather its moRef id. This id is of the form vm-&lt;num&gt;.
723    * </pre>
724    *
725    * <code>string source_vm_id = 2;</code>
726    *
727    * @return The sourceVmId.
728    */
729   @java.lang.Override
getSourceVmId()730   public java.lang.String getSourceVmId() {
731     java.lang.Object ref = sourceVmId_;
732     if (ref instanceof java.lang.String) {
733       return (java.lang.String) ref;
734     } else {
735       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
736       java.lang.String s = bs.toStringUtf8();
737       sourceVmId_ = s;
738       return s;
739     }
740   }
741   /**
742    *
743    *
744    * <pre>
745    * The unique ID of the VM in the source.
746    * The VM's name in vSphere can be changed, so this is not the VM's name but
747    * rather its moRef id. This id is of the form vm-&lt;num&gt;.
748    * </pre>
749    *
750    * <code>string source_vm_id = 2;</code>
751    *
752    * @return The bytes for sourceVmId.
753    */
754   @java.lang.Override
getSourceVmIdBytes()755   public com.google.protobuf.ByteString getSourceVmIdBytes() {
756     java.lang.Object ref = sourceVmId_;
757     if (ref instanceof java.lang.String) {
758       com.google.protobuf.ByteString b =
759           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
760       sourceVmId_ = b;
761       return b;
762     } else {
763       return (com.google.protobuf.ByteString) ref;
764     }
765   }
766 
767   public static final int DISPLAY_NAME_FIELD_NUMBER = 18;
768 
769   @SuppressWarnings("serial")
770   private volatile java.lang.Object displayName_ = "";
771   /**
772    *
773    *
774    * <pre>
775    * The display name attached to the MigratingVm by the user.
776    * </pre>
777    *
778    * <code>string display_name = 18;</code>
779    *
780    * @return The displayName.
781    */
782   @java.lang.Override
getDisplayName()783   public java.lang.String getDisplayName() {
784     java.lang.Object ref = displayName_;
785     if (ref instanceof java.lang.String) {
786       return (java.lang.String) ref;
787     } else {
788       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
789       java.lang.String s = bs.toStringUtf8();
790       displayName_ = s;
791       return s;
792     }
793   }
794   /**
795    *
796    *
797    * <pre>
798    * The display name attached to the MigratingVm by the user.
799    * </pre>
800    *
801    * <code>string display_name = 18;</code>
802    *
803    * @return The bytes for displayName.
804    */
805   @java.lang.Override
getDisplayNameBytes()806   public com.google.protobuf.ByteString getDisplayNameBytes() {
807     java.lang.Object ref = displayName_;
808     if (ref instanceof java.lang.String) {
809       com.google.protobuf.ByteString b =
810           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
811       displayName_ = b;
812       return b;
813     } else {
814       return (com.google.protobuf.ByteString) ref;
815     }
816   }
817 
818   public static final int DESCRIPTION_FIELD_NUMBER = 3;
819 
820   @SuppressWarnings("serial")
821   private volatile java.lang.Object description_ = "";
822   /**
823    *
824    *
825    * <pre>
826    * The description attached to the migrating VM by the user.
827    * </pre>
828    *
829    * <code>string description = 3;</code>
830    *
831    * @return The description.
832    */
833   @java.lang.Override
getDescription()834   public java.lang.String getDescription() {
835     java.lang.Object ref = description_;
836     if (ref instanceof java.lang.String) {
837       return (java.lang.String) ref;
838     } else {
839       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
840       java.lang.String s = bs.toStringUtf8();
841       description_ = s;
842       return s;
843     }
844   }
845   /**
846    *
847    *
848    * <pre>
849    * The description attached to the migrating VM by the user.
850    * </pre>
851    *
852    * <code>string description = 3;</code>
853    *
854    * @return The bytes for description.
855    */
856   @java.lang.Override
getDescriptionBytes()857   public com.google.protobuf.ByteString getDescriptionBytes() {
858     java.lang.Object ref = description_;
859     if (ref instanceof java.lang.String) {
860       com.google.protobuf.ByteString b =
861           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
862       description_ = b;
863       return b;
864     } else {
865       return (com.google.protobuf.ByteString) ref;
866     }
867   }
868 
869   public static final int POLICY_FIELD_NUMBER = 8;
870   private com.google.cloud.vmmigration.v1.SchedulePolicy policy_;
871   /**
872    *
873    *
874    * <pre>
875    * The replication schedule policy.
876    * </pre>
877    *
878    * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
879    *
880    * @return Whether the policy field is set.
881    */
882   @java.lang.Override
hasPolicy()883   public boolean hasPolicy() {
884     return policy_ != null;
885   }
886   /**
887    *
888    *
889    * <pre>
890    * The replication schedule policy.
891    * </pre>
892    *
893    * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
894    *
895    * @return The policy.
896    */
897   @java.lang.Override
getPolicy()898   public com.google.cloud.vmmigration.v1.SchedulePolicy getPolicy() {
899     return policy_ == null
900         ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
901         : policy_;
902   }
903   /**
904    *
905    *
906    * <pre>
907    * The replication schedule policy.
908    * </pre>
909    *
910    * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
911    */
912   @java.lang.Override
getPolicyOrBuilder()913   public com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder getPolicyOrBuilder() {
914     return policy_ == null
915         ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
916         : policy_;
917   }
918 
919   public static final int CREATE_TIME_FIELD_NUMBER = 9;
920   private com.google.protobuf.Timestamp createTime_;
921   /**
922    *
923    *
924    * <pre>
925    * Output only. The time the migrating VM was created (this refers to this
926    * resource and not to the time it was installed in the source).
927    * </pre>
928    *
929    * <code>.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
930    * </code>
931    *
932    * @return Whether the createTime field is set.
933    */
934   @java.lang.Override
hasCreateTime()935   public boolean hasCreateTime() {
936     return createTime_ != null;
937   }
938   /**
939    *
940    *
941    * <pre>
942    * Output only. The time the migrating VM was created (this refers to this
943    * resource and not to the time it was installed in the source).
944    * </pre>
945    *
946    * <code>.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
947    * </code>
948    *
949    * @return The createTime.
950    */
951   @java.lang.Override
getCreateTime()952   public com.google.protobuf.Timestamp getCreateTime() {
953     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
954   }
955   /**
956    *
957    *
958    * <pre>
959    * Output only. The time the migrating VM was created (this refers to this
960    * resource and not to the time it was installed in the source).
961    * </pre>
962    *
963    * <code>.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
964    * </code>
965    */
966   @java.lang.Override
getCreateTimeOrBuilder()967   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
968     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
969   }
970 
971   public static final int UPDATE_TIME_FIELD_NUMBER = 10;
972   private com.google.protobuf.Timestamp updateTime_;
973   /**
974    *
975    *
976    * <pre>
977    * Output only. The last time the migrating VM resource was updated.
978    * </pre>
979    *
980    * <code>.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
981    * </code>
982    *
983    * @return Whether the updateTime field is set.
984    */
985   @java.lang.Override
hasUpdateTime()986   public boolean hasUpdateTime() {
987     return updateTime_ != null;
988   }
989   /**
990    *
991    *
992    * <pre>
993    * Output only. The last time the migrating VM resource was updated.
994    * </pre>
995    *
996    * <code>.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
997    * </code>
998    *
999    * @return The updateTime.
1000    */
1001   @java.lang.Override
getUpdateTime()1002   public com.google.protobuf.Timestamp getUpdateTime() {
1003     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
1004   }
1005   /**
1006    *
1007    *
1008    * <pre>
1009    * Output only. The last time the migrating VM resource was updated.
1010    * </pre>
1011    *
1012    * <code>.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
1013    * </code>
1014    */
1015   @java.lang.Override
getUpdateTimeOrBuilder()1016   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
1017     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
1018   }
1019 
1020   public static final int LAST_SYNC_FIELD_NUMBER = 11;
1021   private com.google.cloud.vmmigration.v1.ReplicationSync lastSync_;
1022   /**
1023    *
1024    *
1025    * <pre>
1026    * Output only. The most updated snapshot created time in the source that
1027    * finished replication.
1028    * </pre>
1029    *
1030    * <code>
1031    * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
1032    * </code>
1033    *
1034    * @return Whether the lastSync field is set.
1035    */
1036   @java.lang.Override
hasLastSync()1037   public boolean hasLastSync() {
1038     return lastSync_ != null;
1039   }
1040   /**
1041    *
1042    *
1043    * <pre>
1044    * Output only. The most updated snapshot created time in the source that
1045    * finished replication.
1046    * </pre>
1047    *
1048    * <code>
1049    * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
1050    * </code>
1051    *
1052    * @return The lastSync.
1053    */
1054   @java.lang.Override
getLastSync()1055   public com.google.cloud.vmmigration.v1.ReplicationSync getLastSync() {
1056     return lastSync_ == null
1057         ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
1058         : lastSync_;
1059   }
1060   /**
1061    *
1062    *
1063    * <pre>
1064    * Output only. The most updated snapshot created time in the source that
1065    * finished replication.
1066    * </pre>
1067    *
1068    * <code>
1069    * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
1070    * </code>
1071    */
1072   @java.lang.Override
getLastSyncOrBuilder()1073   public com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder getLastSyncOrBuilder() {
1074     return lastSync_ == null
1075         ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
1076         : lastSync_;
1077   }
1078 
1079   public static final int STATE_FIELD_NUMBER = 23;
1080   private int state_ = 0;
1081   /**
1082    *
1083    *
1084    * <pre>
1085    * Output only. State of the MigratingVm.
1086    * </pre>
1087    *
1088    * <code>
1089    * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
1090    * </code>
1091    *
1092    * @return The enum numeric value on the wire for state.
1093    */
1094   @java.lang.Override
getStateValue()1095   public int getStateValue() {
1096     return state_;
1097   }
1098   /**
1099    *
1100    *
1101    * <pre>
1102    * Output only. State of the MigratingVm.
1103    * </pre>
1104    *
1105    * <code>
1106    * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
1107    * </code>
1108    *
1109    * @return The state.
1110    */
1111   @java.lang.Override
getState()1112   public com.google.cloud.vmmigration.v1.MigratingVm.State getState() {
1113     com.google.cloud.vmmigration.v1.MigratingVm.State result =
1114         com.google.cloud.vmmigration.v1.MigratingVm.State.forNumber(state_);
1115     return result == null ? com.google.cloud.vmmigration.v1.MigratingVm.State.UNRECOGNIZED : result;
1116   }
1117 
1118   public static final int STATE_TIME_FIELD_NUMBER = 22;
1119   private com.google.protobuf.Timestamp stateTime_;
1120   /**
1121    *
1122    *
1123    * <pre>
1124    * Output only. The last time the migrating VM state was updated.
1125    * </pre>
1126    *
1127    * <code>.google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
1128    * </code>
1129    *
1130    * @return Whether the stateTime field is set.
1131    */
1132   @java.lang.Override
hasStateTime()1133   public boolean hasStateTime() {
1134     return stateTime_ != null;
1135   }
1136   /**
1137    *
1138    *
1139    * <pre>
1140    * Output only. The last time the migrating VM state was updated.
1141    * </pre>
1142    *
1143    * <code>.google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
1144    * </code>
1145    *
1146    * @return The stateTime.
1147    */
1148   @java.lang.Override
getStateTime()1149   public com.google.protobuf.Timestamp getStateTime() {
1150     return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
1151   }
1152   /**
1153    *
1154    *
1155    * <pre>
1156    * Output only. The last time the migrating VM state was updated.
1157    * </pre>
1158    *
1159    * <code>.google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
1160    * </code>
1161    */
1162   @java.lang.Override
getStateTimeOrBuilder()1163   public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() {
1164     return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
1165   }
1166 
1167   public static final int CURRENT_SYNC_INFO_FIELD_NUMBER = 13;
1168   private com.google.cloud.vmmigration.v1.ReplicationCycle currentSyncInfo_;
1169   /**
1170    *
1171    *
1172    * <pre>
1173    * Output only. The percentage progress of the current running replication
1174    * cycle.
1175    * </pre>
1176    *
1177    * <code>
1178    * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
1179    * </code>
1180    *
1181    * @return Whether the currentSyncInfo field is set.
1182    */
1183   @java.lang.Override
hasCurrentSyncInfo()1184   public boolean hasCurrentSyncInfo() {
1185     return currentSyncInfo_ != null;
1186   }
1187   /**
1188    *
1189    *
1190    * <pre>
1191    * Output only. The percentage progress of the current running replication
1192    * cycle.
1193    * </pre>
1194    *
1195    * <code>
1196    * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
1197    * </code>
1198    *
1199    * @return The currentSyncInfo.
1200    */
1201   @java.lang.Override
getCurrentSyncInfo()1202   public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() {
1203     return currentSyncInfo_ == null
1204         ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
1205         : currentSyncInfo_;
1206   }
1207   /**
1208    *
1209    *
1210    * <pre>
1211    * Output only. The percentage progress of the current running replication
1212    * cycle.
1213    * </pre>
1214    *
1215    * <code>
1216    * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
1217    * </code>
1218    */
1219   @java.lang.Override
getCurrentSyncInfoOrBuilder()1220   public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder() {
1221     return currentSyncInfo_ == null
1222         ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
1223         : currentSyncInfo_;
1224   }
1225 
1226   public static final int GROUP_FIELD_NUMBER = 15;
1227 
1228   @SuppressWarnings("serial")
1229   private volatile java.lang.Object group_ = "";
1230   /**
1231    *
1232    *
1233    * <pre>
1234    * Output only. The group this migrating vm is included in, if any. The group
1235    * is represented by the full path of the appropriate
1236    * [Group][google.cloud.vmmigration.v1.Group] resource.
1237    * </pre>
1238    *
1239    * <code>
1240    * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
1241    * </code>
1242    *
1243    * @return The group.
1244    */
1245   @java.lang.Override
getGroup()1246   public java.lang.String getGroup() {
1247     java.lang.Object ref = group_;
1248     if (ref instanceof java.lang.String) {
1249       return (java.lang.String) ref;
1250     } else {
1251       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1252       java.lang.String s = bs.toStringUtf8();
1253       group_ = s;
1254       return s;
1255     }
1256   }
1257   /**
1258    *
1259    *
1260    * <pre>
1261    * Output only. The group this migrating vm is included in, if any. The group
1262    * is represented by the full path of the appropriate
1263    * [Group][google.cloud.vmmigration.v1.Group] resource.
1264    * </pre>
1265    *
1266    * <code>
1267    * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
1268    * </code>
1269    *
1270    * @return The bytes for group.
1271    */
1272   @java.lang.Override
getGroupBytes()1273   public com.google.protobuf.ByteString getGroupBytes() {
1274     java.lang.Object ref = group_;
1275     if (ref instanceof java.lang.String) {
1276       com.google.protobuf.ByteString b =
1277           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1278       group_ = b;
1279       return b;
1280     } else {
1281       return (com.google.protobuf.ByteString) ref;
1282     }
1283   }
1284 
1285   public static final int LABELS_FIELD_NUMBER = 16;
1286 
1287   private static final class LabelsDefaultEntryHolder {
1288     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
1289         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
1290             com.google.cloud.vmmigration.v1.VmMigrationProto
1291                 .internal_static_google_cloud_vmmigration_v1_MigratingVm_LabelsEntry_descriptor,
1292             com.google.protobuf.WireFormat.FieldType.STRING,
1293             "",
1294             com.google.protobuf.WireFormat.FieldType.STRING,
1295             "");
1296   }
1297 
1298   @SuppressWarnings("serial")
1299   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
1300 
internalGetLabels()1301   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
1302     if (labels_ == null) {
1303       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
1304     }
1305     return labels_;
1306   }
1307 
getLabelsCount()1308   public int getLabelsCount() {
1309     return internalGetLabels().getMap().size();
1310   }
1311   /**
1312    *
1313    *
1314    * <pre>
1315    * The labels of the migrating VM.
1316    * </pre>
1317    *
1318    * <code>map&lt;string, string&gt; labels = 16;</code>
1319    */
1320   @java.lang.Override
containsLabels(java.lang.String key)1321   public boolean containsLabels(java.lang.String key) {
1322     if (key == null) {
1323       throw new NullPointerException("map key");
1324     }
1325     return internalGetLabels().getMap().containsKey(key);
1326   }
1327   /** Use {@link #getLabelsMap()} instead. */
1328   @java.lang.Override
1329   @java.lang.Deprecated
getLabels()1330   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
1331     return getLabelsMap();
1332   }
1333   /**
1334    *
1335    *
1336    * <pre>
1337    * The labels of the migrating VM.
1338    * </pre>
1339    *
1340    * <code>map&lt;string, string&gt; labels = 16;</code>
1341    */
1342   @java.lang.Override
getLabelsMap()1343   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
1344     return internalGetLabels().getMap();
1345   }
1346   /**
1347    *
1348    *
1349    * <pre>
1350    * The labels of the migrating VM.
1351    * </pre>
1352    *
1353    * <code>map&lt;string, string&gt; labels = 16;</code>
1354    */
1355   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)1356   public /* nullable */ java.lang.String getLabelsOrDefault(
1357       java.lang.String key,
1358       /* nullable */
1359       java.lang.String defaultValue) {
1360     if (key == null) {
1361       throw new NullPointerException("map key");
1362     }
1363     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
1364     return map.containsKey(key) ? map.get(key) : defaultValue;
1365   }
1366   /**
1367    *
1368    *
1369    * <pre>
1370    * The labels of the migrating VM.
1371    * </pre>
1372    *
1373    * <code>map&lt;string, string&gt; labels = 16;</code>
1374    */
1375   @java.lang.Override
getLabelsOrThrow(java.lang.String key)1376   public java.lang.String getLabelsOrThrow(java.lang.String key) {
1377     if (key == null) {
1378       throw new NullPointerException("map key");
1379     }
1380     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
1381     if (!map.containsKey(key)) {
1382       throw new java.lang.IllegalArgumentException();
1383     }
1384     return map.get(key);
1385   }
1386 
1387   public static final int RECENT_CLONE_JOBS_FIELD_NUMBER = 17;
1388 
1389   @SuppressWarnings("serial")
1390   private java.util.List<com.google.cloud.vmmigration.v1.CloneJob> recentCloneJobs_;
1391   /**
1392    *
1393    *
1394    * <pre>
1395    * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
1396    * performed on the migrating VM. This field holds the vm's last completed
1397    * clone job and the vm's running clone job, if one exists.
1398    * Note: To have this field populated you need to explicitly request it via
1399    * the "view" parameter of the Get/List request.
1400    * </pre>
1401    *
1402    * <code>
1403    * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
1404    * </code>
1405    */
1406   @java.lang.Override
getRecentCloneJobsList()1407   public java.util.List<com.google.cloud.vmmigration.v1.CloneJob> getRecentCloneJobsList() {
1408     return recentCloneJobs_;
1409   }
1410   /**
1411    *
1412    *
1413    * <pre>
1414    * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
1415    * performed on the migrating VM. This field holds the vm's last completed
1416    * clone job and the vm's running clone job, if one exists.
1417    * Note: To have this field populated you need to explicitly request it via
1418    * the "view" parameter of the Get/List request.
1419    * </pre>
1420    *
1421    * <code>
1422    * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
1423    * </code>
1424    */
1425   @java.lang.Override
1426   public java.util.List<? extends com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
getRecentCloneJobsOrBuilderList()1427       getRecentCloneJobsOrBuilderList() {
1428     return recentCloneJobs_;
1429   }
1430   /**
1431    *
1432    *
1433    * <pre>
1434    * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
1435    * performed on the migrating VM. This field holds the vm's last completed
1436    * clone job and the vm's running clone job, if one exists.
1437    * Note: To have this field populated you need to explicitly request it via
1438    * the "view" parameter of the Get/List request.
1439    * </pre>
1440    *
1441    * <code>
1442    * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
1443    * </code>
1444    */
1445   @java.lang.Override
getRecentCloneJobsCount()1446   public int getRecentCloneJobsCount() {
1447     return recentCloneJobs_.size();
1448   }
1449   /**
1450    *
1451    *
1452    * <pre>
1453    * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
1454    * performed on the migrating VM. This field holds the vm's last completed
1455    * clone job and the vm's running clone job, if one exists.
1456    * Note: To have this field populated you need to explicitly request it via
1457    * the "view" parameter of the Get/List request.
1458    * </pre>
1459    *
1460    * <code>
1461    * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
1462    * </code>
1463    */
1464   @java.lang.Override
getRecentCloneJobs(int index)1465   public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) {
1466     return recentCloneJobs_.get(index);
1467   }
1468   /**
1469    *
1470    *
1471    * <pre>
1472    * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
1473    * performed on the migrating VM. This field holds the vm's last completed
1474    * clone job and the vm's running clone job, if one exists.
1475    * Note: To have this field populated you need to explicitly request it via
1476    * the "view" parameter of the Get/List request.
1477    * </pre>
1478    *
1479    * <code>
1480    * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
1481    * </code>
1482    */
1483   @java.lang.Override
getRecentCloneJobsOrBuilder(int index)1484   public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder(int index) {
1485     return recentCloneJobs_.get(index);
1486   }
1487 
1488   public static final int ERROR_FIELD_NUMBER = 19;
1489   private com.google.rpc.Status error_;
1490   /**
1491    *
1492    *
1493    * <pre>
1494    * Output only. Provides details on the state of the Migrating VM in case of
1495    * an error in replication.
1496    * </pre>
1497    *
1498    * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1499    *
1500    * @return Whether the error field is set.
1501    */
1502   @java.lang.Override
hasError()1503   public boolean hasError() {
1504     return error_ != null;
1505   }
1506   /**
1507    *
1508    *
1509    * <pre>
1510    * Output only. Provides details on the state of the Migrating VM in case of
1511    * an error in replication.
1512    * </pre>
1513    *
1514    * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1515    *
1516    * @return The error.
1517    */
1518   @java.lang.Override
getError()1519   public com.google.rpc.Status getError() {
1520     return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
1521   }
1522   /**
1523    *
1524    *
1525    * <pre>
1526    * Output only. Provides details on the state of the Migrating VM in case of
1527    * an error in replication.
1528    * </pre>
1529    *
1530    * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1531    */
1532   @java.lang.Override
getErrorOrBuilder()1533   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
1534     return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
1535   }
1536 
1537   public static final int RECENT_CUTOVER_JOBS_FIELD_NUMBER = 20;
1538 
1539   @SuppressWarnings("serial")
1540   private java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> recentCutoverJobs_;
1541   /**
1542    *
1543    *
1544    * <pre>
1545    * Output only. The recent cutover jobs performed on the migrating VM.
1546    * This field holds the vm's last completed cutover job and the vm's
1547    * running cutover job, if one exists.
1548    * Note: To have this field populated you need to explicitly request it via
1549    * the "view" parameter of the Get/List request.
1550    * </pre>
1551    *
1552    * <code>
1553    * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
1554    * </code>
1555    */
1556   @java.lang.Override
getRecentCutoverJobsList()1557   public java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> getRecentCutoverJobsList() {
1558     return recentCutoverJobs_;
1559   }
1560   /**
1561    *
1562    *
1563    * <pre>
1564    * Output only. The recent cutover jobs performed on the migrating VM.
1565    * This field holds the vm's last completed cutover job and the vm's
1566    * running cutover job, if one exists.
1567    * Note: To have this field populated you need to explicitly request it via
1568    * the "view" parameter of the Get/List request.
1569    * </pre>
1570    *
1571    * <code>
1572    * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
1573    * </code>
1574    */
1575   @java.lang.Override
1576   public java.util.List<? extends com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
getRecentCutoverJobsOrBuilderList()1577       getRecentCutoverJobsOrBuilderList() {
1578     return recentCutoverJobs_;
1579   }
1580   /**
1581    *
1582    *
1583    * <pre>
1584    * Output only. The recent cutover jobs performed on the migrating VM.
1585    * This field holds the vm's last completed cutover job and the vm's
1586    * running cutover job, if one exists.
1587    * Note: To have this field populated you need to explicitly request it via
1588    * the "view" parameter of the Get/List request.
1589    * </pre>
1590    *
1591    * <code>
1592    * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
1593    * </code>
1594    */
1595   @java.lang.Override
getRecentCutoverJobsCount()1596   public int getRecentCutoverJobsCount() {
1597     return recentCutoverJobs_.size();
1598   }
1599   /**
1600    *
1601    *
1602    * <pre>
1603    * Output only. The recent cutover jobs performed on the migrating VM.
1604    * This field holds the vm's last completed cutover job and the vm's
1605    * running cutover job, if one exists.
1606    * Note: To have this field populated you need to explicitly request it via
1607    * the "view" parameter of the Get/List request.
1608    * </pre>
1609    *
1610    * <code>
1611    * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
1612    * </code>
1613    */
1614   @java.lang.Override
getRecentCutoverJobs(int index)1615   public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) {
1616     return recentCutoverJobs_.get(index);
1617   }
1618   /**
1619    *
1620    *
1621    * <pre>
1622    * Output only. The recent cutover jobs performed on the migrating VM.
1623    * This field holds the vm's last completed cutover job and the vm's
1624    * running cutover job, if one exists.
1625    * Note: To have this field populated you need to explicitly request it via
1626    * the "view" parameter of the Get/List request.
1627    * </pre>
1628    *
1629    * <code>
1630    * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
1631    * </code>
1632    */
1633   @java.lang.Override
getRecentCutoverJobsOrBuilder( int index)1634   public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder(
1635       int index) {
1636     return recentCutoverJobs_.get(index);
1637   }
1638 
1639   private byte memoizedIsInitialized = -1;
1640 
1641   @java.lang.Override
isInitialized()1642   public final boolean isInitialized() {
1643     byte isInitialized = memoizedIsInitialized;
1644     if (isInitialized == 1) return true;
1645     if (isInitialized == 0) return false;
1646 
1647     memoizedIsInitialized = 1;
1648     return true;
1649   }
1650 
1651   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1652   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1653     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1654       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1655     }
1656     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVmId_)) {
1657       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceVmId_);
1658     }
1659     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1660       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
1661     }
1662     if (policy_ != null) {
1663       output.writeMessage(8, getPolicy());
1664     }
1665     if (createTime_ != null) {
1666       output.writeMessage(9, getCreateTime());
1667     }
1668     if (updateTime_ != null) {
1669       output.writeMessage(10, getUpdateTime());
1670     }
1671     if (lastSync_ != null) {
1672       output.writeMessage(11, getLastSync());
1673     }
1674     if (currentSyncInfo_ != null) {
1675       output.writeMessage(13, getCurrentSyncInfo());
1676     }
1677     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) {
1678       com.google.protobuf.GeneratedMessageV3.writeString(output, 15, group_);
1679     }
1680     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
1681         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 16);
1682     for (int i = 0; i < recentCloneJobs_.size(); i++) {
1683       output.writeMessage(17, recentCloneJobs_.get(i));
1684     }
1685     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
1686       com.google.protobuf.GeneratedMessageV3.writeString(output, 18, displayName_);
1687     }
1688     if (error_ != null) {
1689       output.writeMessage(19, getError());
1690     }
1691     for (int i = 0; i < recentCutoverJobs_.size(); i++) {
1692       output.writeMessage(20, recentCutoverJobs_.get(i));
1693     }
1694     if (stateTime_ != null) {
1695       output.writeMessage(22, getStateTime());
1696     }
1697     if (state_ != com.google.cloud.vmmigration.v1.MigratingVm.State.STATE_UNSPECIFIED.getNumber()) {
1698       output.writeEnum(23, state_);
1699     }
1700     if (targetVmDefaultsCase_ == 26) {
1701       output.writeMessage(
1702           26, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_);
1703     }
1704     if (sourceVmDetailsCase_ == 29) {
1705       output.writeMessage(
1706           29, (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_);
1707     }
1708     getUnknownFields().writeTo(output);
1709   }
1710 
1711   @java.lang.Override
getSerializedSize()1712   public int getSerializedSize() {
1713     int size = memoizedSize;
1714     if (size != -1) return size;
1715 
1716     size = 0;
1717     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1718       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1719     }
1720     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVmId_)) {
1721       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceVmId_);
1722     }
1723     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1724       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
1725     }
1726     if (policy_ != null) {
1727       size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPolicy());
1728     }
1729     if (createTime_ != null) {
1730       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime());
1731     }
1732     if (updateTime_ != null) {
1733       size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime());
1734     }
1735     if (lastSync_ != null) {
1736       size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastSync());
1737     }
1738     if (currentSyncInfo_ != null) {
1739       size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCurrentSyncInfo());
1740     }
1741     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) {
1742       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, group_);
1743     }
1744     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1745         internalGetLabels().getMap().entrySet()) {
1746       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1747           LabelsDefaultEntryHolder.defaultEntry
1748               .newBuilderForType()
1749               .setKey(entry.getKey())
1750               .setValue(entry.getValue())
1751               .build();
1752       size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, labels__);
1753     }
1754     for (int i = 0; i < recentCloneJobs_.size(); i++) {
1755       size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, recentCloneJobs_.get(i));
1756     }
1757     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
1758       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, displayName_);
1759     }
1760     if (error_ != null) {
1761       size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getError());
1762     }
1763     for (int i = 0; i < recentCutoverJobs_.size(); i++) {
1764       size +=
1765           com.google.protobuf.CodedOutputStream.computeMessageSize(20, recentCutoverJobs_.get(i));
1766     }
1767     if (stateTime_ != null) {
1768       size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getStateTime());
1769     }
1770     if (state_ != com.google.cloud.vmmigration.v1.MigratingVm.State.STATE_UNSPECIFIED.getNumber()) {
1771       size += com.google.protobuf.CodedOutputStream.computeEnumSize(23, state_);
1772     }
1773     if (targetVmDefaultsCase_ == 26) {
1774       size +=
1775           com.google.protobuf.CodedOutputStream.computeMessageSize(
1776               26, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_);
1777     }
1778     if (sourceVmDetailsCase_ == 29) {
1779       size +=
1780           com.google.protobuf.CodedOutputStream.computeMessageSize(
1781               29, (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_);
1782     }
1783     size += getUnknownFields().getSerializedSize();
1784     memoizedSize = size;
1785     return size;
1786   }
1787 
1788   @java.lang.Override
equals(final java.lang.Object obj)1789   public boolean equals(final java.lang.Object obj) {
1790     if (obj == this) {
1791       return true;
1792     }
1793     if (!(obj instanceof com.google.cloud.vmmigration.v1.MigratingVm)) {
1794       return super.equals(obj);
1795     }
1796     com.google.cloud.vmmigration.v1.MigratingVm other =
1797         (com.google.cloud.vmmigration.v1.MigratingVm) obj;
1798 
1799     if (!getName().equals(other.getName())) return false;
1800     if (!getSourceVmId().equals(other.getSourceVmId())) return false;
1801     if (!getDisplayName().equals(other.getDisplayName())) return false;
1802     if (!getDescription().equals(other.getDescription())) return false;
1803     if (hasPolicy() != other.hasPolicy()) return false;
1804     if (hasPolicy()) {
1805       if (!getPolicy().equals(other.getPolicy())) return false;
1806     }
1807     if (hasCreateTime() != other.hasCreateTime()) return false;
1808     if (hasCreateTime()) {
1809       if (!getCreateTime().equals(other.getCreateTime())) return false;
1810     }
1811     if (hasUpdateTime() != other.hasUpdateTime()) return false;
1812     if (hasUpdateTime()) {
1813       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
1814     }
1815     if (hasLastSync() != other.hasLastSync()) return false;
1816     if (hasLastSync()) {
1817       if (!getLastSync().equals(other.getLastSync())) return false;
1818     }
1819     if (state_ != other.state_) return false;
1820     if (hasStateTime() != other.hasStateTime()) return false;
1821     if (hasStateTime()) {
1822       if (!getStateTime().equals(other.getStateTime())) return false;
1823     }
1824     if (hasCurrentSyncInfo() != other.hasCurrentSyncInfo()) return false;
1825     if (hasCurrentSyncInfo()) {
1826       if (!getCurrentSyncInfo().equals(other.getCurrentSyncInfo())) return false;
1827     }
1828     if (!getGroup().equals(other.getGroup())) return false;
1829     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
1830     if (!getRecentCloneJobsList().equals(other.getRecentCloneJobsList())) return false;
1831     if (hasError() != other.hasError()) return false;
1832     if (hasError()) {
1833       if (!getError().equals(other.getError())) return false;
1834     }
1835     if (!getRecentCutoverJobsList().equals(other.getRecentCutoverJobsList())) return false;
1836     if (!getTargetVmDefaultsCase().equals(other.getTargetVmDefaultsCase())) return false;
1837     switch (targetVmDefaultsCase_) {
1838       case 26:
1839         if (!getComputeEngineTargetDefaults().equals(other.getComputeEngineTargetDefaults()))
1840           return false;
1841         break;
1842       case 0:
1843       default:
1844     }
1845     if (!getSourceVmDetailsCase().equals(other.getSourceVmDetailsCase())) return false;
1846     switch (sourceVmDetailsCase_) {
1847       case 29:
1848         if (!getAwsSourceVmDetails().equals(other.getAwsSourceVmDetails())) return false;
1849         break;
1850       case 0:
1851       default:
1852     }
1853     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1854     return true;
1855   }
1856 
1857   @java.lang.Override
hashCode()1858   public int hashCode() {
1859     if (memoizedHashCode != 0) {
1860       return memoizedHashCode;
1861     }
1862     int hash = 41;
1863     hash = (19 * hash) + getDescriptor().hashCode();
1864     hash = (37 * hash) + NAME_FIELD_NUMBER;
1865     hash = (53 * hash) + getName().hashCode();
1866     hash = (37 * hash) + SOURCE_VM_ID_FIELD_NUMBER;
1867     hash = (53 * hash) + getSourceVmId().hashCode();
1868     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
1869     hash = (53 * hash) + getDisplayName().hashCode();
1870     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1871     hash = (53 * hash) + getDescription().hashCode();
1872     if (hasPolicy()) {
1873       hash = (37 * hash) + POLICY_FIELD_NUMBER;
1874       hash = (53 * hash) + getPolicy().hashCode();
1875     }
1876     if (hasCreateTime()) {
1877       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1878       hash = (53 * hash) + getCreateTime().hashCode();
1879     }
1880     if (hasUpdateTime()) {
1881       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
1882       hash = (53 * hash) + getUpdateTime().hashCode();
1883     }
1884     if (hasLastSync()) {
1885       hash = (37 * hash) + LAST_SYNC_FIELD_NUMBER;
1886       hash = (53 * hash) + getLastSync().hashCode();
1887     }
1888     hash = (37 * hash) + STATE_FIELD_NUMBER;
1889     hash = (53 * hash) + state_;
1890     if (hasStateTime()) {
1891       hash = (37 * hash) + STATE_TIME_FIELD_NUMBER;
1892       hash = (53 * hash) + getStateTime().hashCode();
1893     }
1894     if (hasCurrentSyncInfo()) {
1895       hash = (37 * hash) + CURRENT_SYNC_INFO_FIELD_NUMBER;
1896       hash = (53 * hash) + getCurrentSyncInfo().hashCode();
1897     }
1898     hash = (37 * hash) + GROUP_FIELD_NUMBER;
1899     hash = (53 * hash) + getGroup().hashCode();
1900     if (!internalGetLabels().getMap().isEmpty()) {
1901       hash = (37 * hash) + LABELS_FIELD_NUMBER;
1902       hash = (53 * hash) + internalGetLabels().hashCode();
1903     }
1904     if (getRecentCloneJobsCount() > 0) {
1905       hash = (37 * hash) + RECENT_CLONE_JOBS_FIELD_NUMBER;
1906       hash = (53 * hash) + getRecentCloneJobsList().hashCode();
1907     }
1908     if (hasError()) {
1909       hash = (37 * hash) + ERROR_FIELD_NUMBER;
1910       hash = (53 * hash) + getError().hashCode();
1911     }
1912     if (getRecentCutoverJobsCount() > 0) {
1913       hash = (37 * hash) + RECENT_CUTOVER_JOBS_FIELD_NUMBER;
1914       hash = (53 * hash) + getRecentCutoverJobsList().hashCode();
1915     }
1916     switch (targetVmDefaultsCase_) {
1917       case 26:
1918         hash = (37 * hash) + COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER;
1919         hash = (53 * hash) + getComputeEngineTargetDefaults().hashCode();
1920         break;
1921       case 0:
1922       default:
1923     }
1924     switch (sourceVmDetailsCase_) {
1925       case 29:
1926         hash = (37 * hash) + AWS_SOURCE_VM_DETAILS_FIELD_NUMBER;
1927         hash = (53 * hash) + getAwsSourceVmDetails().hashCode();
1928         break;
1929       case 0:
1930       default:
1931     }
1932     hash = (29 * hash) + getUnknownFields().hashCode();
1933     memoizedHashCode = hash;
1934     return hash;
1935   }
1936 
parseFrom(java.nio.ByteBuffer data)1937   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(java.nio.ByteBuffer data)
1938       throws com.google.protobuf.InvalidProtocolBufferException {
1939     return PARSER.parseFrom(data);
1940   }
1941 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1942   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
1943       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1944       throws com.google.protobuf.InvalidProtocolBufferException {
1945     return PARSER.parseFrom(data, extensionRegistry);
1946   }
1947 
parseFrom( com.google.protobuf.ByteString data)1948   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
1949       com.google.protobuf.ByteString data)
1950       throws com.google.protobuf.InvalidProtocolBufferException {
1951     return PARSER.parseFrom(data);
1952   }
1953 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1954   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
1955       com.google.protobuf.ByteString data,
1956       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1957       throws com.google.protobuf.InvalidProtocolBufferException {
1958     return PARSER.parseFrom(data, extensionRegistry);
1959   }
1960 
parseFrom(byte[] data)1961   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(byte[] data)
1962       throws com.google.protobuf.InvalidProtocolBufferException {
1963     return PARSER.parseFrom(data);
1964   }
1965 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1966   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
1967       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1968       throws com.google.protobuf.InvalidProtocolBufferException {
1969     return PARSER.parseFrom(data, extensionRegistry);
1970   }
1971 
parseFrom(java.io.InputStream input)1972   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(java.io.InputStream input)
1973       throws java.io.IOException {
1974     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1975   }
1976 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1977   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
1978       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1979       throws java.io.IOException {
1980     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1981         PARSER, input, extensionRegistry);
1982   }
1983 
parseDelimitedFrom( java.io.InputStream input)1984   public static com.google.cloud.vmmigration.v1.MigratingVm parseDelimitedFrom(
1985       java.io.InputStream input) throws java.io.IOException {
1986     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1987   }
1988 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1989   public static com.google.cloud.vmmigration.v1.MigratingVm parseDelimitedFrom(
1990       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1991       throws java.io.IOException {
1992     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1993         PARSER, input, extensionRegistry);
1994   }
1995 
parseFrom( com.google.protobuf.CodedInputStream input)1996   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
1997       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1998     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1999   }
2000 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2001   public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
2002       com.google.protobuf.CodedInputStream input,
2003       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2004       throws java.io.IOException {
2005     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2006         PARSER, input, extensionRegistry);
2007   }
2008 
2009   @java.lang.Override
newBuilderForType()2010   public Builder newBuilderForType() {
2011     return newBuilder();
2012   }
2013 
newBuilder()2014   public static Builder newBuilder() {
2015     return DEFAULT_INSTANCE.toBuilder();
2016   }
2017 
newBuilder(com.google.cloud.vmmigration.v1.MigratingVm prototype)2018   public static Builder newBuilder(com.google.cloud.vmmigration.v1.MigratingVm prototype) {
2019     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2020   }
2021 
2022   @java.lang.Override
toBuilder()2023   public Builder toBuilder() {
2024     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2025   }
2026 
2027   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2028   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2029     Builder builder = new Builder(parent);
2030     return builder;
2031   }
2032   /**
2033    *
2034    *
2035    * <pre>
2036    * MigratingVm describes the VM that will be migrated from a Source environment
2037    * and its replication state.
2038    * </pre>
2039    *
2040    * Protobuf type {@code google.cloud.vmmigration.v1.MigratingVm}
2041    */
2042   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2043       implements
2044       // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.MigratingVm)
2045       com.google.cloud.vmmigration.v1.MigratingVmOrBuilder {
getDescriptor()2046     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2047       return com.google.cloud.vmmigration.v1.VmMigrationProto
2048           .internal_static_google_cloud_vmmigration_v1_MigratingVm_descriptor;
2049     }
2050 
2051     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)2052     protected com.google.protobuf.MapField internalGetMapField(int number) {
2053       switch (number) {
2054         case 16:
2055           return internalGetLabels();
2056         default:
2057           throw new RuntimeException("Invalid map field number: " + number);
2058       }
2059     }
2060 
2061     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)2062     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
2063       switch (number) {
2064         case 16:
2065           return internalGetMutableLabels();
2066         default:
2067           throw new RuntimeException("Invalid map field number: " + number);
2068       }
2069     }
2070 
2071     @java.lang.Override
2072     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2073         internalGetFieldAccessorTable() {
2074       return com.google.cloud.vmmigration.v1.VmMigrationProto
2075           .internal_static_google_cloud_vmmigration_v1_MigratingVm_fieldAccessorTable
2076           .ensureFieldAccessorsInitialized(
2077               com.google.cloud.vmmigration.v1.MigratingVm.class,
2078               com.google.cloud.vmmigration.v1.MigratingVm.Builder.class);
2079     }
2080 
2081     // Construct using com.google.cloud.vmmigration.v1.MigratingVm.newBuilder()
Builder()2082     private Builder() {}
2083 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2084     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2085       super(parent);
2086     }
2087 
2088     @java.lang.Override
clear()2089     public Builder clear() {
2090       super.clear();
2091       bitField0_ = 0;
2092       if (computeEngineTargetDefaultsBuilder_ != null) {
2093         computeEngineTargetDefaultsBuilder_.clear();
2094       }
2095       if (awsSourceVmDetailsBuilder_ != null) {
2096         awsSourceVmDetailsBuilder_.clear();
2097       }
2098       name_ = "";
2099       sourceVmId_ = "";
2100       displayName_ = "";
2101       description_ = "";
2102       policy_ = null;
2103       if (policyBuilder_ != null) {
2104         policyBuilder_.dispose();
2105         policyBuilder_ = null;
2106       }
2107       createTime_ = null;
2108       if (createTimeBuilder_ != null) {
2109         createTimeBuilder_.dispose();
2110         createTimeBuilder_ = null;
2111       }
2112       updateTime_ = null;
2113       if (updateTimeBuilder_ != null) {
2114         updateTimeBuilder_.dispose();
2115         updateTimeBuilder_ = null;
2116       }
2117       lastSync_ = null;
2118       if (lastSyncBuilder_ != null) {
2119         lastSyncBuilder_.dispose();
2120         lastSyncBuilder_ = null;
2121       }
2122       state_ = 0;
2123       stateTime_ = null;
2124       if (stateTimeBuilder_ != null) {
2125         stateTimeBuilder_.dispose();
2126         stateTimeBuilder_ = null;
2127       }
2128       currentSyncInfo_ = null;
2129       if (currentSyncInfoBuilder_ != null) {
2130         currentSyncInfoBuilder_.dispose();
2131         currentSyncInfoBuilder_ = null;
2132       }
2133       group_ = "";
2134       internalGetMutableLabels().clear();
2135       if (recentCloneJobsBuilder_ == null) {
2136         recentCloneJobs_ = java.util.Collections.emptyList();
2137       } else {
2138         recentCloneJobs_ = null;
2139         recentCloneJobsBuilder_.clear();
2140       }
2141       bitField0_ = (bitField0_ & ~0x00008000);
2142       error_ = null;
2143       if (errorBuilder_ != null) {
2144         errorBuilder_.dispose();
2145         errorBuilder_ = null;
2146       }
2147       if (recentCutoverJobsBuilder_ == null) {
2148         recentCutoverJobs_ = java.util.Collections.emptyList();
2149       } else {
2150         recentCutoverJobs_ = null;
2151         recentCutoverJobsBuilder_.clear();
2152       }
2153       bitField0_ = (bitField0_ & ~0x00020000);
2154       targetVmDefaultsCase_ = 0;
2155       targetVmDefaults_ = null;
2156       sourceVmDetailsCase_ = 0;
2157       sourceVmDetails_ = null;
2158       return this;
2159     }
2160 
2161     @java.lang.Override
getDescriptorForType()2162     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2163       return com.google.cloud.vmmigration.v1.VmMigrationProto
2164           .internal_static_google_cloud_vmmigration_v1_MigratingVm_descriptor;
2165     }
2166 
2167     @java.lang.Override
getDefaultInstanceForType()2168     public com.google.cloud.vmmigration.v1.MigratingVm getDefaultInstanceForType() {
2169       return com.google.cloud.vmmigration.v1.MigratingVm.getDefaultInstance();
2170     }
2171 
2172     @java.lang.Override
build()2173     public com.google.cloud.vmmigration.v1.MigratingVm build() {
2174       com.google.cloud.vmmigration.v1.MigratingVm result = buildPartial();
2175       if (!result.isInitialized()) {
2176         throw newUninitializedMessageException(result);
2177       }
2178       return result;
2179     }
2180 
2181     @java.lang.Override
buildPartial()2182     public com.google.cloud.vmmigration.v1.MigratingVm buildPartial() {
2183       com.google.cloud.vmmigration.v1.MigratingVm result =
2184           new com.google.cloud.vmmigration.v1.MigratingVm(this);
2185       buildPartialRepeatedFields(result);
2186       if (bitField0_ != 0) {
2187         buildPartial0(result);
2188       }
2189       buildPartialOneofs(result);
2190       onBuilt();
2191       return result;
2192     }
2193 
buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.MigratingVm result)2194     private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.MigratingVm result) {
2195       if (recentCloneJobsBuilder_ == null) {
2196         if (((bitField0_ & 0x00008000) != 0)) {
2197           recentCloneJobs_ = java.util.Collections.unmodifiableList(recentCloneJobs_);
2198           bitField0_ = (bitField0_ & ~0x00008000);
2199         }
2200         result.recentCloneJobs_ = recentCloneJobs_;
2201       } else {
2202         result.recentCloneJobs_ = recentCloneJobsBuilder_.build();
2203       }
2204       if (recentCutoverJobsBuilder_ == null) {
2205         if (((bitField0_ & 0x00020000) != 0)) {
2206           recentCutoverJobs_ = java.util.Collections.unmodifiableList(recentCutoverJobs_);
2207           bitField0_ = (bitField0_ & ~0x00020000);
2208         }
2209         result.recentCutoverJobs_ = recentCutoverJobs_;
2210       } else {
2211         result.recentCutoverJobs_ = recentCutoverJobsBuilder_.build();
2212       }
2213     }
2214 
buildPartial0(com.google.cloud.vmmigration.v1.MigratingVm result)2215     private void buildPartial0(com.google.cloud.vmmigration.v1.MigratingVm result) {
2216       int from_bitField0_ = bitField0_;
2217       if (((from_bitField0_ & 0x00000004) != 0)) {
2218         result.name_ = name_;
2219       }
2220       if (((from_bitField0_ & 0x00000008) != 0)) {
2221         result.sourceVmId_ = sourceVmId_;
2222       }
2223       if (((from_bitField0_ & 0x00000010) != 0)) {
2224         result.displayName_ = displayName_;
2225       }
2226       if (((from_bitField0_ & 0x00000020) != 0)) {
2227         result.description_ = description_;
2228       }
2229       if (((from_bitField0_ & 0x00000040) != 0)) {
2230         result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build();
2231       }
2232       if (((from_bitField0_ & 0x00000080) != 0)) {
2233         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
2234       }
2235       if (((from_bitField0_ & 0x00000100) != 0)) {
2236         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
2237       }
2238       if (((from_bitField0_ & 0x00000200) != 0)) {
2239         result.lastSync_ = lastSyncBuilder_ == null ? lastSync_ : lastSyncBuilder_.build();
2240       }
2241       if (((from_bitField0_ & 0x00000400) != 0)) {
2242         result.state_ = state_;
2243       }
2244       if (((from_bitField0_ & 0x00000800) != 0)) {
2245         result.stateTime_ = stateTimeBuilder_ == null ? stateTime_ : stateTimeBuilder_.build();
2246       }
2247       if (((from_bitField0_ & 0x00001000) != 0)) {
2248         result.currentSyncInfo_ =
2249             currentSyncInfoBuilder_ == null ? currentSyncInfo_ : currentSyncInfoBuilder_.build();
2250       }
2251       if (((from_bitField0_ & 0x00002000) != 0)) {
2252         result.group_ = group_;
2253       }
2254       if (((from_bitField0_ & 0x00004000) != 0)) {
2255         result.labels_ = internalGetLabels();
2256         result.labels_.makeImmutable();
2257       }
2258       if (((from_bitField0_ & 0x00010000) != 0)) {
2259         result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
2260       }
2261     }
2262 
buildPartialOneofs(com.google.cloud.vmmigration.v1.MigratingVm result)2263     private void buildPartialOneofs(com.google.cloud.vmmigration.v1.MigratingVm result) {
2264       result.targetVmDefaultsCase_ = targetVmDefaultsCase_;
2265       result.targetVmDefaults_ = this.targetVmDefaults_;
2266       if (targetVmDefaultsCase_ == 26 && computeEngineTargetDefaultsBuilder_ != null) {
2267         result.targetVmDefaults_ = computeEngineTargetDefaultsBuilder_.build();
2268       }
2269       result.sourceVmDetailsCase_ = sourceVmDetailsCase_;
2270       result.sourceVmDetails_ = this.sourceVmDetails_;
2271       if (sourceVmDetailsCase_ == 29 && awsSourceVmDetailsBuilder_ != null) {
2272         result.sourceVmDetails_ = awsSourceVmDetailsBuilder_.build();
2273       }
2274     }
2275 
2276     @java.lang.Override
clone()2277     public Builder clone() {
2278       return super.clone();
2279     }
2280 
2281     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2282     public Builder setField(
2283         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2284       return super.setField(field, value);
2285     }
2286 
2287     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2288     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2289       return super.clearField(field);
2290     }
2291 
2292     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2293     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2294       return super.clearOneof(oneof);
2295     }
2296 
2297     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2298     public Builder setRepeatedField(
2299         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
2300       return super.setRepeatedField(field, index, value);
2301     }
2302 
2303     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2304     public Builder addRepeatedField(
2305         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2306       return super.addRepeatedField(field, value);
2307     }
2308 
2309     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2310     public Builder mergeFrom(com.google.protobuf.Message other) {
2311       if (other instanceof com.google.cloud.vmmigration.v1.MigratingVm) {
2312         return mergeFrom((com.google.cloud.vmmigration.v1.MigratingVm) other);
2313       } else {
2314         super.mergeFrom(other);
2315         return this;
2316       }
2317     }
2318 
mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other)2319     public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) {
2320       if (other == com.google.cloud.vmmigration.v1.MigratingVm.getDefaultInstance()) return this;
2321       if (!other.getName().isEmpty()) {
2322         name_ = other.name_;
2323         bitField0_ |= 0x00000004;
2324         onChanged();
2325       }
2326       if (!other.getSourceVmId().isEmpty()) {
2327         sourceVmId_ = other.sourceVmId_;
2328         bitField0_ |= 0x00000008;
2329         onChanged();
2330       }
2331       if (!other.getDisplayName().isEmpty()) {
2332         displayName_ = other.displayName_;
2333         bitField0_ |= 0x00000010;
2334         onChanged();
2335       }
2336       if (!other.getDescription().isEmpty()) {
2337         description_ = other.description_;
2338         bitField0_ |= 0x00000020;
2339         onChanged();
2340       }
2341       if (other.hasPolicy()) {
2342         mergePolicy(other.getPolicy());
2343       }
2344       if (other.hasCreateTime()) {
2345         mergeCreateTime(other.getCreateTime());
2346       }
2347       if (other.hasUpdateTime()) {
2348         mergeUpdateTime(other.getUpdateTime());
2349       }
2350       if (other.hasLastSync()) {
2351         mergeLastSync(other.getLastSync());
2352       }
2353       if (other.state_ != 0) {
2354         setStateValue(other.getStateValue());
2355       }
2356       if (other.hasStateTime()) {
2357         mergeStateTime(other.getStateTime());
2358       }
2359       if (other.hasCurrentSyncInfo()) {
2360         mergeCurrentSyncInfo(other.getCurrentSyncInfo());
2361       }
2362       if (!other.getGroup().isEmpty()) {
2363         group_ = other.group_;
2364         bitField0_ |= 0x00002000;
2365         onChanged();
2366       }
2367       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
2368       bitField0_ |= 0x00004000;
2369       if (recentCloneJobsBuilder_ == null) {
2370         if (!other.recentCloneJobs_.isEmpty()) {
2371           if (recentCloneJobs_.isEmpty()) {
2372             recentCloneJobs_ = other.recentCloneJobs_;
2373             bitField0_ = (bitField0_ & ~0x00008000);
2374           } else {
2375             ensureRecentCloneJobsIsMutable();
2376             recentCloneJobs_.addAll(other.recentCloneJobs_);
2377           }
2378           onChanged();
2379         }
2380       } else {
2381         if (!other.recentCloneJobs_.isEmpty()) {
2382           if (recentCloneJobsBuilder_.isEmpty()) {
2383             recentCloneJobsBuilder_.dispose();
2384             recentCloneJobsBuilder_ = null;
2385             recentCloneJobs_ = other.recentCloneJobs_;
2386             bitField0_ = (bitField0_ & ~0x00008000);
2387             recentCloneJobsBuilder_ =
2388                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2389                     ? getRecentCloneJobsFieldBuilder()
2390                     : null;
2391           } else {
2392             recentCloneJobsBuilder_.addAllMessages(other.recentCloneJobs_);
2393           }
2394         }
2395       }
2396       if (other.hasError()) {
2397         mergeError(other.getError());
2398       }
2399       if (recentCutoverJobsBuilder_ == null) {
2400         if (!other.recentCutoverJobs_.isEmpty()) {
2401           if (recentCutoverJobs_.isEmpty()) {
2402             recentCutoverJobs_ = other.recentCutoverJobs_;
2403             bitField0_ = (bitField0_ & ~0x00020000);
2404           } else {
2405             ensureRecentCutoverJobsIsMutable();
2406             recentCutoverJobs_.addAll(other.recentCutoverJobs_);
2407           }
2408           onChanged();
2409         }
2410       } else {
2411         if (!other.recentCutoverJobs_.isEmpty()) {
2412           if (recentCutoverJobsBuilder_.isEmpty()) {
2413             recentCutoverJobsBuilder_.dispose();
2414             recentCutoverJobsBuilder_ = null;
2415             recentCutoverJobs_ = other.recentCutoverJobs_;
2416             bitField0_ = (bitField0_ & ~0x00020000);
2417             recentCutoverJobsBuilder_ =
2418                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2419                     ? getRecentCutoverJobsFieldBuilder()
2420                     : null;
2421           } else {
2422             recentCutoverJobsBuilder_.addAllMessages(other.recentCutoverJobs_);
2423           }
2424         }
2425       }
2426       switch (other.getTargetVmDefaultsCase()) {
2427         case COMPUTE_ENGINE_TARGET_DEFAULTS:
2428           {
2429             mergeComputeEngineTargetDefaults(other.getComputeEngineTargetDefaults());
2430             break;
2431           }
2432         case TARGETVMDEFAULTS_NOT_SET:
2433           {
2434             break;
2435           }
2436       }
2437       switch (other.getSourceVmDetailsCase()) {
2438         case AWS_SOURCE_VM_DETAILS:
2439           {
2440             mergeAwsSourceVmDetails(other.getAwsSourceVmDetails());
2441             break;
2442           }
2443         case SOURCEVMDETAILS_NOT_SET:
2444           {
2445             break;
2446           }
2447       }
2448       this.mergeUnknownFields(other.getUnknownFields());
2449       onChanged();
2450       return this;
2451     }
2452 
2453     @java.lang.Override
isInitialized()2454     public final boolean isInitialized() {
2455       return true;
2456     }
2457 
2458     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2459     public Builder mergeFrom(
2460         com.google.protobuf.CodedInputStream input,
2461         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2462         throws java.io.IOException {
2463       if (extensionRegistry == null) {
2464         throw new java.lang.NullPointerException();
2465       }
2466       try {
2467         boolean done = false;
2468         while (!done) {
2469           int tag = input.readTag();
2470           switch (tag) {
2471             case 0:
2472               done = true;
2473               break;
2474             case 10:
2475               {
2476                 name_ = input.readStringRequireUtf8();
2477                 bitField0_ |= 0x00000004;
2478                 break;
2479               } // case 10
2480             case 18:
2481               {
2482                 sourceVmId_ = input.readStringRequireUtf8();
2483                 bitField0_ |= 0x00000008;
2484                 break;
2485               } // case 18
2486             case 26:
2487               {
2488                 description_ = input.readStringRequireUtf8();
2489                 bitField0_ |= 0x00000020;
2490                 break;
2491               } // case 26
2492             case 66:
2493               {
2494                 input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
2495                 bitField0_ |= 0x00000040;
2496                 break;
2497               } // case 66
2498             case 74:
2499               {
2500                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
2501                 bitField0_ |= 0x00000080;
2502                 break;
2503               } // case 74
2504             case 82:
2505               {
2506                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
2507                 bitField0_ |= 0x00000100;
2508                 break;
2509               } // case 82
2510             case 90:
2511               {
2512                 input.readMessage(getLastSyncFieldBuilder().getBuilder(), extensionRegistry);
2513                 bitField0_ |= 0x00000200;
2514                 break;
2515               } // case 90
2516             case 106:
2517               {
2518                 input.readMessage(getCurrentSyncInfoFieldBuilder().getBuilder(), extensionRegistry);
2519                 bitField0_ |= 0x00001000;
2520                 break;
2521               } // case 106
2522             case 122:
2523               {
2524                 group_ = input.readStringRequireUtf8();
2525                 bitField0_ |= 0x00002000;
2526                 break;
2527               } // case 122
2528             case 130:
2529               {
2530                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
2531                     input.readMessage(
2532                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
2533                         extensionRegistry);
2534                 internalGetMutableLabels()
2535                     .getMutableMap()
2536                     .put(labels__.getKey(), labels__.getValue());
2537                 bitField0_ |= 0x00004000;
2538                 break;
2539               } // case 130
2540             case 138:
2541               {
2542                 com.google.cloud.vmmigration.v1.CloneJob m =
2543                     input.readMessage(
2544                         com.google.cloud.vmmigration.v1.CloneJob.parser(), extensionRegistry);
2545                 if (recentCloneJobsBuilder_ == null) {
2546                   ensureRecentCloneJobsIsMutable();
2547                   recentCloneJobs_.add(m);
2548                 } else {
2549                   recentCloneJobsBuilder_.addMessage(m);
2550                 }
2551                 break;
2552               } // case 138
2553             case 146:
2554               {
2555                 displayName_ = input.readStringRequireUtf8();
2556                 bitField0_ |= 0x00000010;
2557                 break;
2558               } // case 146
2559             case 154:
2560               {
2561                 input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
2562                 bitField0_ |= 0x00010000;
2563                 break;
2564               } // case 154
2565             case 162:
2566               {
2567                 com.google.cloud.vmmigration.v1.CutoverJob m =
2568                     input.readMessage(
2569                         com.google.cloud.vmmigration.v1.CutoverJob.parser(), extensionRegistry);
2570                 if (recentCutoverJobsBuilder_ == null) {
2571                   ensureRecentCutoverJobsIsMutable();
2572                   recentCutoverJobs_.add(m);
2573                 } else {
2574                   recentCutoverJobsBuilder_.addMessage(m);
2575                 }
2576                 break;
2577               } // case 162
2578             case 178:
2579               {
2580                 input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry);
2581                 bitField0_ |= 0x00000800;
2582                 break;
2583               } // case 178
2584             case 184:
2585               {
2586                 state_ = input.readEnum();
2587                 bitField0_ |= 0x00000400;
2588                 break;
2589               } // case 184
2590             case 210:
2591               {
2592                 input.readMessage(
2593                     getComputeEngineTargetDefaultsFieldBuilder().getBuilder(), extensionRegistry);
2594                 targetVmDefaultsCase_ = 26;
2595                 break;
2596               } // case 210
2597             case 234:
2598               {
2599                 input.readMessage(
2600                     getAwsSourceVmDetailsFieldBuilder().getBuilder(), extensionRegistry);
2601                 sourceVmDetailsCase_ = 29;
2602                 break;
2603               } // case 234
2604             default:
2605               {
2606                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2607                   done = true; // was an endgroup tag
2608                 }
2609                 break;
2610               } // default:
2611           } // switch (tag)
2612         } // while (!done)
2613       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2614         throw e.unwrapIOException();
2615       } finally {
2616         onChanged();
2617       } // finally
2618       return this;
2619     }
2620 
2621     private int targetVmDefaultsCase_ = 0;
2622     private java.lang.Object targetVmDefaults_;
2623 
getTargetVmDefaultsCase()2624     public TargetVmDefaultsCase getTargetVmDefaultsCase() {
2625       return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_);
2626     }
2627 
clearTargetVmDefaults()2628     public Builder clearTargetVmDefaults() {
2629       targetVmDefaultsCase_ = 0;
2630       targetVmDefaults_ = null;
2631       onChanged();
2632       return this;
2633     }
2634 
2635     private int sourceVmDetailsCase_ = 0;
2636     private java.lang.Object sourceVmDetails_;
2637 
getSourceVmDetailsCase()2638     public SourceVmDetailsCase getSourceVmDetailsCase() {
2639       return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_);
2640     }
2641 
clearSourceVmDetails()2642     public Builder clearSourceVmDetails() {
2643       sourceVmDetailsCase_ = 0;
2644       sourceVmDetails_ = null;
2645       onChanged();
2646       return this;
2647     }
2648 
2649     private int bitField0_;
2650 
2651     private com.google.protobuf.SingleFieldBuilderV3<
2652             com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults,
2653             com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder,
2654             com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>
2655         computeEngineTargetDefaultsBuilder_;
2656     /**
2657      *
2658      *
2659      * <pre>
2660      * Details of the target VM in Compute Engine.
2661      * </pre>
2662      *
2663      * <code>
2664      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2665      * </code>
2666      *
2667      * @return Whether the computeEngineTargetDefaults field is set.
2668      */
2669     @java.lang.Override
hasComputeEngineTargetDefaults()2670     public boolean hasComputeEngineTargetDefaults() {
2671       return targetVmDefaultsCase_ == 26;
2672     }
2673     /**
2674      *
2675      *
2676      * <pre>
2677      * Details of the target VM in Compute Engine.
2678      * </pre>
2679      *
2680      * <code>
2681      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2682      * </code>
2683      *
2684      * @return The computeEngineTargetDefaults.
2685      */
2686     @java.lang.Override
2687     public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
getComputeEngineTargetDefaults()2688         getComputeEngineTargetDefaults() {
2689       if (computeEngineTargetDefaultsBuilder_ == null) {
2690         if (targetVmDefaultsCase_ == 26) {
2691           return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
2692         }
2693         return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
2694       } else {
2695         if (targetVmDefaultsCase_ == 26) {
2696           return computeEngineTargetDefaultsBuilder_.getMessage();
2697         }
2698         return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
2699       }
2700     }
2701     /**
2702      *
2703      *
2704      * <pre>
2705      * Details of the target VM in Compute Engine.
2706      * </pre>
2707      *
2708      * <code>
2709      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2710      * </code>
2711      */
setComputeEngineTargetDefaults( com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value)2712     public Builder setComputeEngineTargetDefaults(
2713         com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) {
2714       if (computeEngineTargetDefaultsBuilder_ == null) {
2715         if (value == null) {
2716           throw new NullPointerException();
2717         }
2718         targetVmDefaults_ = value;
2719         onChanged();
2720       } else {
2721         computeEngineTargetDefaultsBuilder_.setMessage(value);
2722       }
2723       targetVmDefaultsCase_ = 26;
2724       return this;
2725     }
2726     /**
2727      *
2728      *
2729      * <pre>
2730      * Details of the target VM in Compute Engine.
2731      * </pre>
2732      *
2733      * <code>
2734      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2735      * </code>
2736      */
setComputeEngineTargetDefaults( com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder builderForValue)2737     public Builder setComputeEngineTargetDefaults(
2738         com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder builderForValue) {
2739       if (computeEngineTargetDefaultsBuilder_ == null) {
2740         targetVmDefaults_ = builderForValue.build();
2741         onChanged();
2742       } else {
2743         computeEngineTargetDefaultsBuilder_.setMessage(builderForValue.build());
2744       }
2745       targetVmDefaultsCase_ = 26;
2746       return this;
2747     }
2748     /**
2749      *
2750      *
2751      * <pre>
2752      * Details of the target VM in Compute Engine.
2753      * </pre>
2754      *
2755      * <code>
2756      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2757      * </code>
2758      */
mergeComputeEngineTargetDefaults( com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value)2759     public Builder mergeComputeEngineTargetDefaults(
2760         com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) {
2761       if (computeEngineTargetDefaultsBuilder_ == null) {
2762         if (targetVmDefaultsCase_ == 26
2763             && targetVmDefaults_
2764                 != com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
2765                     .getDefaultInstance()) {
2766           targetVmDefaults_ =
2767               com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.newBuilder(
2768                       (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults)
2769                           targetVmDefaults_)
2770                   .mergeFrom(value)
2771                   .buildPartial();
2772         } else {
2773           targetVmDefaults_ = value;
2774         }
2775         onChanged();
2776       } else {
2777         if (targetVmDefaultsCase_ == 26) {
2778           computeEngineTargetDefaultsBuilder_.mergeFrom(value);
2779         } else {
2780           computeEngineTargetDefaultsBuilder_.setMessage(value);
2781         }
2782       }
2783       targetVmDefaultsCase_ = 26;
2784       return this;
2785     }
2786     /**
2787      *
2788      *
2789      * <pre>
2790      * Details of the target VM in Compute Engine.
2791      * </pre>
2792      *
2793      * <code>
2794      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2795      * </code>
2796      */
clearComputeEngineTargetDefaults()2797     public Builder clearComputeEngineTargetDefaults() {
2798       if (computeEngineTargetDefaultsBuilder_ == null) {
2799         if (targetVmDefaultsCase_ == 26) {
2800           targetVmDefaultsCase_ = 0;
2801           targetVmDefaults_ = null;
2802           onChanged();
2803         }
2804       } else {
2805         if (targetVmDefaultsCase_ == 26) {
2806           targetVmDefaultsCase_ = 0;
2807           targetVmDefaults_ = null;
2808         }
2809         computeEngineTargetDefaultsBuilder_.clear();
2810       }
2811       return this;
2812     }
2813     /**
2814      *
2815      *
2816      * <pre>
2817      * Details of the target VM in Compute Engine.
2818      * </pre>
2819      *
2820      * <code>
2821      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2822      * </code>
2823      */
2824     public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder
getComputeEngineTargetDefaultsBuilder()2825         getComputeEngineTargetDefaultsBuilder() {
2826       return getComputeEngineTargetDefaultsFieldBuilder().getBuilder();
2827     }
2828     /**
2829      *
2830      *
2831      * <pre>
2832      * Details of the target VM in Compute Engine.
2833      * </pre>
2834      *
2835      * <code>
2836      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2837      * </code>
2838      */
2839     @java.lang.Override
2840     public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder
getComputeEngineTargetDefaultsOrBuilder()2841         getComputeEngineTargetDefaultsOrBuilder() {
2842       if ((targetVmDefaultsCase_ == 26) && (computeEngineTargetDefaultsBuilder_ != null)) {
2843         return computeEngineTargetDefaultsBuilder_.getMessageOrBuilder();
2844       } else {
2845         if (targetVmDefaultsCase_ == 26) {
2846           return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
2847         }
2848         return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
2849       }
2850     }
2851     /**
2852      *
2853      *
2854      * <pre>
2855      * Details of the target VM in Compute Engine.
2856      * </pre>
2857      *
2858      * <code>
2859      * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
2860      * </code>
2861      */
2862     private com.google.protobuf.SingleFieldBuilderV3<
2863             com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults,
2864             com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder,
2865             com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>
getComputeEngineTargetDefaultsFieldBuilder()2866         getComputeEngineTargetDefaultsFieldBuilder() {
2867       if (computeEngineTargetDefaultsBuilder_ == null) {
2868         if (!(targetVmDefaultsCase_ == 26)) {
2869           targetVmDefaults_ =
2870               com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
2871         }
2872         computeEngineTargetDefaultsBuilder_ =
2873             new com.google.protobuf.SingleFieldBuilderV3<
2874                 com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults,
2875                 com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder,
2876                 com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>(
2877                 (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_,
2878                 getParentForChildren(),
2879                 isClean());
2880         targetVmDefaults_ = null;
2881       }
2882       targetVmDefaultsCase_ = 26;
2883       onChanged();
2884       return computeEngineTargetDefaultsBuilder_;
2885     }
2886 
2887     private com.google.protobuf.SingleFieldBuilderV3<
2888             com.google.cloud.vmmigration.v1.AwsSourceVmDetails,
2889             com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder,
2890             com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder>
2891         awsSourceVmDetailsBuilder_;
2892     /**
2893      *
2894      *
2895      * <pre>
2896      * Output only. Details of the VM from an AWS source.
2897      * </pre>
2898      *
2899      * <code>
2900      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
2901      * </code>
2902      *
2903      * @return Whether the awsSourceVmDetails field is set.
2904      */
2905     @java.lang.Override
hasAwsSourceVmDetails()2906     public boolean hasAwsSourceVmDetails() {
2907       return sourceVmDetailsCase_ == 29;
2908     }
2909     /**
2910      *
2911      *
2912      * <pre>
2913      * Output only. Details of the VM from an AWS source.
2914      * </pre>
2915      *
2916      * <code>
2917      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
2918      * </code>
2919      *
2920      * @return The awsSourceVmDetails.
2921      */
2922     @java.lang.Override
getAwsSourceVmDetails()2923     public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getAwsSourceVmDetails() {
2924       if (awsSourceVmDetailsBuilder_ == null) {
2925         if (sourceVmDetailsCase_ == 29) {
2926           return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
2927         }
2928         return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
2929       } else {
2930         if (sourceVmDetailsCase_ == 29) {
2931           return awsSourceVmDetailsBuilder_.getMessage();
2932         }
2933         return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
2934       }
2935     }
2936     /**
2937      *
2938      *
2939      * <pre>
2940      * Output only. Details of the VM from an AWS source.
2941      * </pre>
2942      *
2943      * <code>
2944      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
2945      * </code>
2946      */
setAwsSourceVmDetails(com.google.cloud.vmmigration.v1.AwsSourceVmDetails value)2947     public Builder setAwsSourceVmDetails(com.google.cloud.vmmigration.v1.AwsSourceVmDetails value) {
2948       if (awsSourceVmDetailsBuilder_ == null) {
2949         if (value == null) {
2950           throw new NullPointerException();
2951         }
2952         sourceVmDetails_ = value;
2953         onChanged();
2954       } else {
2955         awsSourceVmDetailsBuilder_.setMessage(value);
2956       }
2957       sourceVmDetailsCase_ = 29;
2958       return this;
2959     }
2960     /**
2961      *
2962      *
2963      * <pre>
2964      * Output only. Details of the VM from an AWS source.
2965      * </pre>
2966      *
2967      * <code>
2968      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
2969      * </code>
2970      */
setAwsSourceVmDetails( com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder builderForValue)2971     public Builder setAwsSourceVmDetails(
2972         com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder builderForValue) {
2973       if (awsSourceVmDetailsBuilder_ == null) {
2974         sourceVmDetails_ = builderForValue.build();
2975         onChanged();
2976       } else {
2977         awsSourceVmDetailsBuilder_.setMessage(builderForValue.build());
2978       }
2979       sourceVmDetailsCase_ = 29;
2980       return this;
2981     }
2982     /**
2983      *
2984      *
2985      * <pre>
2986      * Output only. Details of the VM from an AWS source.
2987      * </pre>
2988      *
2989      * <code>
2990      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
2991      * </code>
2992      */
mergeAwsSourceVmDetails( com.google.cloud.vmmigration.v1.AwsSourceVmDetails value)2993     public Builder mergeAwsSourceVmDetails(
2994         com.google.cloud.vmmigration.v1.AwsSourceVmDetails value) {
2995       if (awsSourceVmDetailsBuilder_ == null) {
2996         if (sourceVmDetailsCase_ == 29
2997             && sourceVmDetails_
2998                 != com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance()) {
2999           sourceVmDetails_ =
3000               com.google.cloud.vmmigration.v1.AwsSourceVmDetails.newBuilder(
3001                       (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_)
3002                   .mergeFrom(value)
3003                   .buildPartial();
3004         } else {
3005           sourceVmDetails_ = value;
3006         }
3007         onChanged();
3008       } else {
3009         if (sourceVmDetailsCase_ == 29) {
3010           awsSourceVmDetailsBuilder_.mergeFrom(value);
3011         } else {
3012           awsSourceVmDetailsBuilder_.setMessage(value);
3013         }
3014       }
3015       sourceVmDetailsCase_ = 29;
3016       return this;
3017     }
3018     /**
3019      *
3020      *
3021      * <pre>
3022      * Output only. Details of the VM from an AWS source.
3023      * </pre>
3024      *
3025      * <code>
3026      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
3027      * </code>
3028      */
clearAwsSourceVmDetails()3029     public Builder clearAwsSourceVmDetails() {
3030       if (awsSourceVmDetailsBuilder_ == null) {
3031         if (sourceVmDetailsCase_ == 29) {
3032           sourceVmDetailsCase_ = 0;
3033           sourceVmDetails_ = null;
3034           onChanged();
3035         }
3036       } else {
3037         if (sourceVmDetailsCase_ == 29) {
3038           sourceVmDetailsCase_ = 0;
3039           sourceVmDetails_ = null;
3040         }
3041         awsSourceVmDetailsBuilder_.clear();
3042       }
3043       return this;
3044     }
3045     /**
3046      *
3047      *
3048      * <pre>
3049      * Output only. Details of the VM from an AWS source.
3050      * </pre>
3051      *
3052      * <code>
3053      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
3054      * </code>
3055      */
3056     public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder
getAwsSourceVmDetailsBuilder()3057         getAwsSourceVmDetailsBuilder() {
3058       return getAwsSourceVmDetailsFieldBuilder().getBuilder();
3059     }
3060     /**
3061      *
3062      *
3063      * <pre>
3064      * Output only. Details of the VM from an AWS source.
3065      * </pre>
3066      *
3067      * <code>
3068      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
3069      * </code>
3070      */
3071     @java.lang.Override
3072     public com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder
getAwsSourceVmDetailsOrBuilder()3073         getAwsSourceVmDetailsOrBuilder() {
3074       if ((sourceVmDetailsCase_ == 29) && (awsSourceVmDetailsBuilder_ != null)) {
3075         return awsSourceVmDetailsBuilder_.getMessageOrBuilder();
3076       } else {
3077         if (sourceVmDetailsCase_ == 29) {
3078           return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
3079         }
3080         return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
3081       }
3082     }
3083     /**
3084      *
3085      *
3086      * <pre>
3087      * Output only. Details of the VM from an AWS source.
3088      * </pre>
3089      *
3090      * <code>
3091      * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
3092      * </code>
3093      */
3094     private com.google.protobuf.SingleFieldBuilderV3<
3095             com.google.cloud.vmmigration.v1.AwsSourceVmDetails,
3096             com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder,
3097             com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder>
getAwsSourceVmDetailsFieldBuilder()3098         getAwsSourceVmDetailsFieldBuilder() {
3099       if (awsSourceVmDetailsBuilder_ == null) {
3100         if (!(sourceVmDetailsCase_ == 29)) {
3101           sourceVmDetails_ =
3102               com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
3103         }
3104         awsSourceVmDetailsBuilder_ =
3105             new com.google.protobuf.SingleFieldBuilderV3<
3106                 com.google.cloud.vmmigration.v1.AwsSourceVmDetails,
3107                 com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder,
3108                 com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder>(
3109                 (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_,
3110                 getParentForChildren(),
3111                 isClean());
3112         sourceVmDetails_ = null;
3113       }
3114       sourceVmDetailsCase_ = 29;
3115       onChanged();
3116       return awsSourceVmDetailsBuilder_;
3117     }
3118 
3119     private java.lang.Object name_ = "";
3120     /**
3121      *
3122      *
3123      * <pre>
3124      * Output only. The identifier of the MigratingVm.
3125      * </pre>
3126      *
3127      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3128      *
3129      * @return The name.
3130      */
getName()3131     public java.lang.String getName() {
3132       java.lang.Object ref = name_;
3133       if (!(ref instanceof java.lang.String)) {
3134         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3135         java.lang.String s = bs.toStringUtf8();
3136         name_ = s;
3137         return s;
3138       } else {
3139         return (java.lang.String) ref;
3140       }
3141     }
3142     /**
3143      *
3144      *
3145      * <pre>
3146      * Output only. The identifier of the MigratingVm.
3147      * </pre>
3148      *
3149      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3150      *
3151      * @return The bytes for name.
3152      */
getNameBytes()3153     public com.google.protobuf.ByteString getNameBytes() {
3154       java.lang.Object ref = name_;
3155       if (ref instanceof String) {
3156         com.google.protobuf.ByteString b =
3157             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3158         name_ = b;
3159         return b;
3160       } else {
3161         return (com.google.protobuf.ByteString) ref;
3162       }
3163     }
3164     /**
3165      *
3166      *
3167      * <pre>
3168      * Output only. The identifier of the MigratingVm.
3169      * </pre>
3170      *
3171      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3172      *
3173      * @param value The name to set.
3174      * @return This builder for chaining.
3175      */
setName(java.lang.String value)3176     public Builder setName(java.lang.String value) {
3177       if (value == null) {
3178         throw new NullPointerException();
3179       }
3180       name_ = value;
3181       bitField0_ |= 0x00000004;
3182       onChanged();
3183       return this;
3184     }
3185     /**
3186      *
3187      *
3188      * <pre>
3189      * Output only. The identifier of the MigratingVm.
3190      * </pre>
3191      *
3192      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3193      *
3194      * @return This builder for chaining.
3195      */
clearName()3196     public Builder clearName() {
3197       name_ = getDefaultInstance().getName();
3198       bitField0_ = (bitField0_ & ~0x00000004);
3199       onChanged();
3200       return this;
3201     }
3202     /**
3203      *
3204      *
3205      * <pre>
3206      * Output only. The identifier of the MigratingVm.
3207      * </pre>
3208      *
3209      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3210      *
3211      * @param value The bytes for name to set.
3212      * @return This builder for chaining.
3213      */
setNameBytes(com.google.protobuf.ByteString value)3214     public Builder setNameBytes(com.google.protobuf.ByteString value) {
3215       if (value == null) {
3216         throw new NullPointerException();
3217       }
3218       checkByteStringIsUtf8(value);
3219       name_ = value;
3220       bitField0_ |= 0x00000004;
3221       onChanged();
3222       return this;
3223     }
3224 
3225     private java.lang.Object sourceVmId_ = "";
3226     /**
3227      *
3228      *
3229      * <pre>
3230      * The unique ID of the VM in the source.
3231      * The VM's name in vSphere can be changed, so this is not the VM's name but
3232      * rather its moRef id. This id is of the form vm-&lt;num&gt;.
3233      * </pre>
3234      *
3235      * <code>string source_vm_id = 2;</code>
3236      *
3237      * @return The sourceVmId.
3238      */
getSourceVmId()3239     public java.lang.String getSourceVmId() {
3240       java.lang.Object ref = sourceVmId_;
3241       if (!(ref instanceof java.lang.String)) {
3242         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3243         java.lang.String s = bs.toStringUtf8();
3244         sourceVmId_ = s;
3245         return s;
3246       } else {
3247         return (java.lang.String) ref;
3248       }
3249     }
3250     /**
3251      *
3252      *
3253      * <pre>
3254      * The unique ID of the VM in the source.
3255      * The VM's name in vSphere can be changed, so this is not the VM's name but
3256      * rather its moRef id. This id is of the form vm-&lt;num&gt;.
3257      * </pre>
3258      *
3259      * <code>string source_vm_id = 2;</code>
3260      *
3261      * @return The bytes for sourceVmId.
3262      */
getSourceVmIdBytes()3263     public com.google.protobuf.ByteString getSourceVmIdBytes() {
3264       java.lang.Object ref = sourceVmId_;
3265       if (ref instanceof String) {
3266         com.google.protobuf.ByteString b =
3267             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3268         sourceVmId_ = b;
3269         return b;
3270       } else {
3271         return (com.google.protobuf.ByteString) ref;
3272       }
3273     }
3274     /**
3275      *
3276      *
3277      * <pre>
3278      * The unique ID of the VM in the source.
3279      * The VM's name in vSphere can be changed, so this is not the VM's name but
3280      * rather its moRef id. This id is of the form vm-&lt;num&gt;.
3281      * </pre>
3282      *
3283      * <code>string source_vm_id = 2;</code>
3284      *
3285      * @param value The sourceVmId to set.
3286      * @return This builder for chaining.
3287      */
setSourceVmId(java.lang.String value)3288     public Builder setSourceVmId(java.lang.String value) {
3289       if (value == null) {
3290         throw new NullPointerException();
3291       }
3292       sourceVmId_ = value;
3293       bitField0_ |= 0x00000008;
3294       onChanged();
3295       return this;
3296     }
3297     /**
3298      *
3299      *
3300      * <pre>
3301      * The unique ID of the VM in the source.
3302      * The VM's name in vSphere can be changed, so this is not the VM's name but
3303      * rather its moRef id. This id is of the form vm-&lt;num&gt;.
3304      * </pre>
3305      *
3306      * <code>string source_vm_id = 2;</code>
3307      *
3308      * @return This builder for chaining.
3309      */
clearSourceVmId()3310     public Builder clearSourceVmId() {
3311       sourceVmId_ = getDefaultInstance().getSourceVmId();
3312       bitField0_ = (bitField0_ & ~0x00000008);
3313       onChanged();
3314       return this;
3315     }
3316     /**
3317      *
3318      *
3319      * <pre>
3320      * The unique ID of the VM in the source.
3321      * The VM's name in vSphere can be changed, so this is not the VM's name but
3322      * rather its moRef id. This id is of the form vm-&lt;num&gt;.
3323      * </pre>
3324      *
3325      * <code>string source_vm_id = 2;</code>
3326      *
3327      * @param value The bytes for sourceVmId to set.
3328      * @return This builder for chaining.
3329      */
setSourceVmIdBytes(com.google.protobuf.ByteString value)3330     public Builder setSourceVmIdBytes(com.google.protobuf.ByteString value) {
3331       if (value == null) {
3332         throw new NullPointerException();
3333       }
3334       checkByteStringIsUtf8(value);
3335       sourceVmId_ = value;
3336       bitField0_ |= 0x00000008;
3337       onChanged();
3338       return this;
3339     }
3340 
3341     private java.lang.Object displayName_ = "";
3342     /**
3343      *
3344      *
3345      * <pre>
3346      * The display name attached to the MigratingVm by the user.
3347      * </pre>
3348      *
3349      * <code>string display_name = 18;</code>
3350      *
3351      * @return The displayName.
3352      */
getDisplayName()3353     public java.lang.String getDisplayName() {
3354       java.lang.Object ref = displayName_;
3355       if (!(ref instanceof java.lang.String)) {
3356         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3357         java.lang.String s = bs.toStringUtf8();
3358         displayName_ = s;
3359         return s;
3360       } else {
3361         return (java.lang.String) ref;
3362       }
3363     }
3364     /**
3365      *
3366      *
3367      * <pre>
3368      * The display name attached to the MigratingVm by the user.
3369      * </pre>
3370      *
3371      * <code>string display_name = 18;</code>
3372      *
3373      * @return The bytes for displayName.
3374      */
getDisplayNameBytes()3375     public com.google.protobuf.ByteString getDisplayNameBytes() {
3376       java.lang.Object ref = displayName_;
3377       if (ref instanceof String) {
3378         com.google.protobuf.ByteString b =
3379             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3380         displayName_ = b;
3381         return b;
3382       } else {
3383         return (com.google.protobuf.ByteString) ref;
3384       }
3385     }
3386     /**
3387      *
3388      *
3389      * <pre>
3390      * The display name attached to the MigratingVm by the user.
3391      * </pre>
3392      *
3393      * <code>string display_name = 18;</code>
3394      *
3395      * @param value The displayName to set.
3396      * @return This builder for chaining.
3397      */
setDisplayName(java.lang.String value)3398     public Builder setDisplayName(java.lang.String value) {
3399       if (value == null) {
3400         throw new NullPointerException();
3401       }
3402       displayName_ = value;
3403       bitField0_ |= 0x00000010;
3404       onChanged();
3405       return this;
3406     }
3407     /**
3408      *
3409      *
3410      * <pre>
3411      * The display name attached to the MigratingVm by the user.
3412      * </pre>
3413      *
3414      * <code>string display_name = 18;</code>
3415      *
3416      * @return This builder for chaining.
3417      */
clearDisplayName()3418     public Builder clearDisplayName() {
3419       displayName_ = getDefaultInstance().getDisplayName();
3420       bitField0_ = (bitField0_ & ~0x00000010);
3421       onChanged();
3422       return this;
3423     }
3424     /**
3425      *
3426      *
3427      * <pre>
3428      * The display name attached to the MigratingVm by the user.
3429      * </pre>
3430      *
3431      * <code>string display_name = 18;</code>
3432      *
3433      * @param value The bytes for displayName to set.
3434      * @return This builder for chaining.
3435      */
setDisplayNameBytes(com.google.protobuf.ByteString value)3436     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
3437       if (value == null) {
3438         throw new NullPointerException();
3439       }
3440       checkByteStringIsUtf8(value);
3441       displayName_ = value;
3442       bitField0_ |= 0x00000010;
3443       onChanged();
3444       return this;
3445     }
3446 
3447     private java.lang.Object description_ = "";
3448     /**
3449      *
3450      *
3451      * <pre>
3452      * The description attached to the migrating VM by the user.
3453      * </pre>
3454      *
3455      * <code>string description = 3;</code>
3456      *
3457      * @return The description.
3458      */
getDescription()3459     public java.lang.String getDescription() {
3460       java.lang.Object ref = description_;
3461       if (!(ref instanceof java.lang.String)) {
3462         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3463         java.lang.String s = bs.toStringUtf8();
3464         description_ = s;
3465         return s;
3466       } else {
3467         return (java.lang.String) ref;
3468       }
3469     }
3470     /**
3471      *
3472      *
3473      * <pre>
3474      * The description attached to the migrating VM by the user.
3475      * </pre>
3476      *
3477      * <code>string description = 3;</code>
3478      *
3479      * @return The bytes for description.
3480      */
getDescriptionBytes()3481     public com.google.protobuf.ByteString getDescriptionBytes() {
3482       java.lang.Object ref = description_;
3483       if (ref instanceof String) {
3484         com.google.protobuf.ByteString b =
3485             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3486         description_ = b;
3487         return b;
3488       } else {
3489         return (com.google.protobuf.ByteString) ref;
3490       }
3491     }
3492     /**
3493      *
3494      *
3495      * <pre>
3496      * The description attached to the migrating VM by the user.
3497      * </pre>
3498      *
3499      * <code>string description = 3;</code>
3500      *
3501      * @param value The description to set.
3502      * @return This builder for chaining.
3503      */
setDescription(java.lang.String value)3504     public Builder setDescription(java.lang.String value) {
3505       if (value == null) {
3506         throw new NullPointerException();
3507       }
3508       description_ = value;
3509       bitField0_ |= 0x00000020;
3510       onChanged();
3511       return this;
3512     }
3513     /**
3514      *
3515      *
3516      * <pre>
3517      * The description attached to the migrating VM by the user.
3518      * </pre>
3519      *
3520      * <code>string description = 3;</code>
3521      *
3522      * @return This builder for chaining.
3523      */
clearDescription()3524     public Builder clearDescription() {
3525       description_ = getDefaultInstance().getDescription();
3526       bitField0_ = (bitField0_ & ~0x00000020);
3527       onChanged();
3528       return this;
3529     }
3530     /**
3531      *
3532      *
3533      * <pre>
3534      * The description attached to the migrating VM by the user.
3535      * </pre>
3536      *
3537      * <code>string description = 3;</code>
3538      *
3539      * @param value The bytes for description to set.
3540      * @return This builder for chaining.
3541      */
setDescriptionBytes(com.google.protobuf.ByteString value)3542     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
3543       if (value == null) {
3544         throw new NullPointerException();
3545       }
3546       checkByteStringIsUtf8(value);
3547       description_ = value;
3548       bitField0_ |= 0x00000020;
3549       onChanged();
3550       return this;
3551     }
3552 
3553     private com.google.cloud.vmmigration.v1.SchedulePolicy policy_;
3554     private com.google.protobuf.SingleFieldBuilderV3<
3555             com.google.cloud.vmmigration.v1.SchedulePolicy,
3556             com.google.cloud.vmmigration.v1.SchedulePolicy.Builder,
3557             com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder>
3558         policyBuilder_;
3559     /**
3560      *
3561      *
3562      * <pre>
3563      * The replication schedule policy.
3564      * </pre>
3565      *
3566      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3567      *
3568      * @return Whether the policy field is set.
3569      */
hasPolicy()3570     public boolean hasPolicy() {
3571       return ((bitField0_ & 0x00000040) != 0);
3572     }
3573     /**
3574      *
3575      *
3576      * <pre>
3577      * The replication schedule policy.
3578      * </pre>
3579      *
3580      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3581      *
3582      * @return The policy.
3583      */
getPolicy()3584     public com.google.cloud.vmmigration.v1.SchedulePolicy getPolicy() {
3585       if (policyBuilder_ == null) {
3586         return policy_ == null
3587             ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
3588             : policy_;
3589       } else {
3590         return policyBuilder_.getMessage();
3591       }
3592     }
3593     /**
3594      *
3595      *
3596      * <pre>
3597      * The replication schedule policy.
3598      * </pre>
3599      *
3600      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3601      */
setPolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value)3602     public Builder setPolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) {
3603       if (policyBuilder_ == null) {
3604         if (value == null) {
3605           throw new NullPointerException();
3606         }
3607         policy_ = value;
3608       } else {
3609         policyBuilder_.setMessage(value);
3610       }
3611       bitField0_ |= 0x00000040;
3612       onChanged();
3613       return this;
3614     }
3615     /**
3616      *
3617      *
3618      * <pre>
3619      * The replication schedule policy.
3620      * </pre>
3621      *
3622      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3623      */
setPolicy( com.google.cloud.vmmigration.v1.SchedulePolicy.Builder builderForValue)3624     public Builder setPolicy(
3625         com.google.cloud.vmmigration.v1.SchedulePolicy.Builder builderForValue) {
3626       if (policyBuilder_ == null) {
3627         policy_ = builderForValue.build();
3628       } else {
3629         policyBuilder_.setMessage(builderForValue.build());
3630       }
3631       bitField0_ |= 0x00000040;
3632       onChanged();
3633       return this;
3634     }
3635     /**
3636      *
3637      *
3638      * <pre>
3639      * The replication schedule policy.
3640      * </pre>
3641      *
3642      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3643      */
mergePolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value)3644     public Builder mergePolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) {
3645       if (policyBuilder_ == null) {
3646         if (((bitField0_ & 0x00000040) != 0)
3647             && policy_ != null
3648             && policy_ != com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()) {
3649           getPolicyBuilder().mergeFrom(value);
3650         } else {
3651           policy_ = value;
3652         }
3653       } else {
3654         policyBuilder_.mergeFrom(value);
3655       }
3656       bitField0_ |= 0x00000040;
3657       onChanged();
3658       return this;
3659     }
3660     /**
3661      *
3662      *
3663      * <pre>
3664      * The replication schedule policy.
3665      * </pre>
3666      *
3667      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3668      */
clearPolicy()3669     public Builder clearPolicy() {
3670       bitField0_ = (bitField0_ & ~0x00000040);
3671       policy_ = null;
3672       if (policyBuilder_ != null) {
3673         policyBuilder_.dispose();
3674         policyBuilder_ = null;
3675       }
3676       onChanged();
3677       return this;
3678     }
3679     /**
3680      *
3681      *
3682      * <pre>
3683      * The replication schedule policy.
3684      * </pre>
3685      *
3686      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3687      */
getPolicyBuilder()3688     public com.google.cloud.vmmigration.v1.SchedulePolicy.Builder getPolicyBuilder() {
3689       bitField0_ |= 0x00000040;
3690       onChanged();
3691       return getPolicyFieldBuilder().getBuilder();
3692     }
3693     /**
3694      *
3695      *
3696      * <pre>
3697      * The replication schedule policy.
3698      * </pre>
3699      *
3700      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3701      */
getPolicyOrBuilder()3702     public com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder getPolicyOrBuilder() {
3703       if (policyBuilder_ != null) {
3704         return policyBuilder_.getMessageOrBuilder();
3705       } else {
3706         return policy_ == null
3707             ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
3708             : policy_;
3709       }
3710     }
3711     /**
3712      *
3713      *
3714      * <pre>
3715      * The replication schedule policy.
3716      * </pre>
3717      *
3718      * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
3719      */
3720     private com.google.protobuf.SingleFieldBuilderV3<
3721             com.google.cloud.vmmigration.v1.SchedulePolicy,
3722             com.google.cloud.vmmigration.v1.SchedulePolicy.Builder,
3723             com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder>
getPolicyFieldBuilder()3724         getPolicyFieldBuilder() {
3725       if (policyBuilder_ == null) {
3726         policyBuilder_ =
3727             new com.google.protobuf.SingleFieldBuilderV3<
3728                 com.google.cloud.vmmigration.v1.SchedulePolicy,
3729                 com.google.cloud.vmmigration.v1.SchedulePolicy.Builder,
3730                 com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder>(
3731                 getPolicy(), getParentForChildren(), isClean());
3732         policy_ = null;
3733       }
3734       return policyBuilder_;
3735     }
3736 
3737     private com.google.protobuf.Timestamp createTime_;
3738     private com.google.protobuf.SingleFieldBuilderV3<
3739             com.google.protobuf.Timestamp,
3740             com.google.protobuf.Timestamp.Builder,
3741             com.google.protobuf.TimestampOrBuilder>
3742         createTimeBuilder_;
3743     /**
3744      *
3745      *
3746      * <pre>
3747      * Output only. The time the migrating VM was created (this refers to this
3748      * resource and not to the time it was installed in the source).
3749      * </pre>
3750      *
3751      * <code>
3752      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3753      * </code>
3754      *
3755      * @return Whether the createTime field is set.
3756      */
hasCreateTime()3757     public boolean hasCreateTime() {
3758       return ((bitField0_ & 0x00000080) != 0);
3759     }
3760     /**
3761      *
3762      *
3763      * <pre>
3764      * Output only. The time the migrating VM was created (this refers to this
3765      * resource and not to the time it was installed in the source).
3766      * </pre>
3767      *
3768      * <code>
3769      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3770      * </code>
3771      *
3772      * @return The createTime.
3773      */
getCreateTime()3774     public com.google.protobuf.Timestamp getCreateTime() {
3775       if (createTimeBuilder_ == null) {
3776         return createTime_ == null
3777             ? com.google.protobuf.Timestamp.getDefaultInstance()
3778             : createTime_;
3779       } else {
3780         return createTimeBuilder_.getMessage();
3781       }
3782     }
3783     /**
3784      *
3785      *
3786      * <pre>
3787      * Output only. The time the migrating VM was created (this refers to this
3788      * resource and not to the time it was installed in the source).
3789      * </pre>
3790      *
3791      * <code>
3792      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3793      * </code>
3794      */
setCreateTime(com.google.protobuf.Timestamp value)3795     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
3796       if (createTimeBuilder_ == null) {
3797         if (value == null) {
3798           throw new NullPointerException();
3799         }
3800         createTime_ = value;
3801       } else {
3802         createTimeBuilder_.setMessage(value);
3803       }
3804       bitField0_ |= 0x00000080;
3805       onChanged();
3806       return this;
3807     }
3808     /**
3809      *
3810      *
3811      * <pre>
3812      * Output only. The time the migrating VM was created (this refers to this
3813      * resource and not to the time it was installed in the source).
3814      * </pre>
3815      *
3816      * <code>
3817      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3818      * </code>
3819      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3820     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3821       if (createTimeBuilder_ == null) {
3822         createTime_ = builderForValue.build();
3823       } else {
3824         createTimeBuilder_.setMessage(builderForValue.build());
3825       }
3826       bitField0_ |= 0x00000080;
3827       onChanged();
3828       return this;
3829     }
3830     /**
3831      *
3832      *
3833      * <pre>
3834      * Output only. The time the migrating VM was created (this refers to this
3835      * resource and not to the time it was installed in the source).
3836      * </pre>
3837      *
3838      * <code>
3839      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3840      * </code>
3841      */
mergeCreateTime(com.google.protobuf.Timestamp value)3842     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
3843       if (createTimeBuilder_ == null) {
3844         if (((bitField0_ & 0x00000080) != 0)
3845             && createTime_ != null
3846             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3847           getCreateTimeBuilder().mergeFrom(value);
3848         } else {
3849           createTime_ = value;
3850         }
3851       } else {
3852         createTimeBuilder_.mergeFrom(value);
3853       }
3854       bitField0_ |= 0x00000080;
3855       onChanged();
3856       return this;
3857     }
3858     /**
3859      *
3860      *
3861      * <pre>
3862      * Output only. The time the migrating VM was created (this refers to this
3863      * resource and not to the time it was installed in the source).
3864      * </pre>
3865      *
3866      * <code>
3867      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3868      * </code>
3869      */
clearCreateTime()3870     public Builder clearCreateTime() {
3871       bitField0_ = (bitField0_ & ~0x00000080);
3872       createTime_ = null;
3873       if (createTimeBuilder_ != null) {
3874         createTimeBuilder_.dispose();
3875         createTimeBuilder_ = null;
3876       }
3877       onChanged();
3878       return this;
3879     }
3880     /**
3881      *
3882      *
3883      * <pre>
3884      * Output only. The time the migrating VM was created (this refers to this
3885      * resource and not to the time it was installed in the source).
3886      * </pre>
3887      *
3888      * <code>
3889      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3890      * </code>
3891      */
getCreateTimeBuilder()3892     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
3893       bitField0_ |= 0x00000080;
3894       onChanged();
3895       return getCreateTimeFieldBuilder().getBuilder();
3896     }
3897     /**
3898      *
3899      *
3900      * <pre>
3901      * Output only. The time the migrating VM was created (this refers to this
3902      * resource and not to the time it was installed in the source).
3903      * </pre>
3904      *
3905      * <code>
3906      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3907      * </code>
3908      */
getCreateTimeOrBuilder()3909     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
3910       if (createTimeBuilder_ != null) {
3911         return createTimeBuilder_.getMessageOrBuilder();
3912       } else {
3913         return createTime_ == null
3914             ? com.google.protobuf.Timestamp.getDefaultInstance()
3915             : createTime_;
3916       }
3917     }
3918     /**
3919      *
3920      *
3921      * <pre>
3922      * Output only. The time the migrating VM was created (this refers to this
3923      * resource and not to the time it was installed in the source).
3924      * </pre>
3925      *
3926      * <code>
3927      * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
3928      * </code>
3929      */
3930     private com.google.protobuf.SingleFieldBuilderV3<
3931             com.google.protobuf.Timestamp,
3932             com.google.protobuf.Timestamp.Builder,
3933             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()3934         getCreateTimeFieldBuilder() {
3935       if (createTimeBuilder_ == null) {
3936         createTimeBuilder_ =
3937             new com.google.protobuf.SingleFieldBuilderV3<
3938                 com.google.protobuf.Timestamp,
3939                 com.google.protobuf.Timestamp.Builder,
3940                 com.google.protobuf.TimestampOrBuilder>(
3941                 getCreateTime(), getParentForChildren(), isClean());
3942         createTime_ = null;
3943       }
3944       return createTimeBuilder_;
3945     }
3946 
3947     private com.google.protobuf.Timestamp updateTime_;
3948     private com.google.protobuf.SingleFieldBuilderV3<
3949             com.google.protobuf.Timestamp,
3950             com.google.protobuf.Timestamp.Builder,
3951             com.google.protobuf.TimestampOrBuilder>
3952         updateTimeBuilder_;
3953     /**
3954      *
3955      *
3956      * <pre>
3957      * Output only. The last time the migrating VM resource was updated.
3958      * </pre>
3959      *
3960      * <code>
3961      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3962      * </code>
3963      *
3964      * @return Whether the updateTime field is set.
3965      */
hasUpdateTime()3966     public boolean hasUpdateTime() {
3967       return ((bitField0_ & 0x00000100) != 0);
3968     }
3969     /**
3970      *
3971      *
3972      * <pre>
3973      * Output only. The last time the migrating VM resource was updated.
3974      * </pre>
3975      *
3976      * <code>
3977      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3978      * </code>
3979      *
3980      * @return The updateTime.
3981      */
getUpdateTime()3982     public com.google.protobuf.Timestamp getUpdateTime() {
3983       if (updateTimeBuilder_ == null) {
3984         return updateTime_ == null
3985             ? com.google.protobuf.Timestamp.getDefaultInstance()
3986             : updateTime_;
3987       } else {
3988         return updateTimeBuilder_.getMessage();
3989       }
3990     }
3991     /**
3992      *
3993      *
3994      * <pre>
3995      * Output only. The last time the migrating VM resource was updated.
3996      * </pre>
3997      *
3998      * <code>
3999      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
4000      * </code>
4001      */
setUpdateTime(com.google.protobuf.Timestamp value)4002     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
4003       if (updateTimeBuilder_ == null) {
4004         if (value == null) {
4005           throw new NullPointerException();
4006         }
4007         updateTime_ = value;
4008       } else {
4009         updateTimeBuilder_.setMessage(value);
4010       }
4011       bitField0_ |= 0x00000100;
4012       onChanged();
4013       return this;
4014     }
4015     /**
4016      *
4017      *
4018      * <pre>
4019      * Output only. The last time the migrating VM resource was updated.
4020      * </pre>
4021      *
4022      * <code>
4023      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
4024      * </code>
4025      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)4026     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
4027       if (updateTimeBuilder_ == null) {
4028         updateTime_ = builderForValue.build();
4029       } else {
4030         updateTimeBuilder_.setMessage(builderForValue.build());
4031       }
4032       bitField0_ |= 0x00000100;
4033       onChanged();
4034       return this;
4035     }
4036     /**
4037      *
4038      *
4039      * <pre>
4040      * Output only. The last time the migrating VM resource was updated.
4041      * </pre>
4042      *
4043      * <code>
4044      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
4045      * </code>
4046      */
mergeUpdateTime(com.google.protobuf.Timestamp value)4047     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
4048       if (updateTimeBuilder_ == null) {
4049         if (((bitField0_ & 0x00000100) != 0)
4050             && updateTime_ != null
4051             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
4052           getUpdateTimeBuilder().mergeFrom(value);
4053         } else {
4054           updateTime_ = value;
4055         }
4056       } else {
4057         updateTimeBuilder_.mergeFrom(value);
4058       }
4059       bitField0_ |= 0x00000100;
4060       onChanged();
4061       return this;
4062     }
4063     /**
4064      *
4065      *
4066      * <pre>
4067      * Output only. The last time the migrating VM resource was updated.
4068      * </pre>
4069      *
4070      * <code>
4071      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
4072      * </code>
4073      */
clearUpdateTime()4074     public Builder clearUpdateTime() {
4075       bitField0_ = (bitField0_ & ~0x00000100);
4076       updateTime_ = null;
4077       if (updateTimeBuilder_ != null) {
4078         updateTimeBuilder_.dispose();
4079         updateTimeBuilder_ = null;
4080       }
4081       onChanged();
4082       return this;
4083     }
4084     /**
4085      *
4086      *
4087      * <pre>
4088      * Output only. The last time the migrating VM resource was updated.
4089      * </pre>
4090      *
4091      * <code>
4092      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
4093      * </code>
4094      */
getUpdateTimeBuilder()4095     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
4096       bitField0_ |= 0x00000100;
4097       onChanged();
4098       return getUpdateTimeFieldBuilder().getBuilder();
4099     }
4100     /**
4101      *
4102      *
4103      * <pre>
4104      * Output only. The last time the migrating VM resource was updated.
4105      * </pre>
4106      *
4107      * <code>
4108      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
4109      * </code>
4110      */
getUpdateTimeOrBuilder()4111     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
4112       if (updateTimeBuilder_ != null) {
4113         return updateTimeBuilder_.getMessageOrBuilder();
4114       } else {
4115         return updateTime_ == null
4116             ? com.google.protobuf.Timestamp.getDefaultInstance()
4117             : updateTime_;
4118       }
4119     }
4120     /**
4121      *
4122      *
4123      * <pre>
4124      * Output only. The last time the migrating VM resource was updated.
4125      * </pre>
4126      *
4127      * <code>
4128      * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
4129      * </code>
4130      */
4131     private com.google.protobuf.SingleFieldBuilderV3<
4132             com.google.protobuf.Timestamp,
4133             com.google.protobuf.Timestamp.Builder,
4134             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()4135         getUpdateTimeFieldBuilder() {
4136       if (updateTimeBuilder_ == null) {
4137         updateTimeBuilder_ =
4138             new com.google.protobuf.SingleFieldBuilderV3<
4139                 com.google.protobuf.Timestamp,
4140                 com.google.protobuf.Timestamp.Builder,
4141                 com.google.protobuf.TimestampOrBuilder>(
4142                 getUpdateTime(), getParentForChildren(), isClean());
4143         updateTime_ = null;
4144       }
4145       return updateTimeBuilder_;
4146     }
4147 
4148     private com.google.cloud.vmmigration.v1.ReplicationSync lastSync_;
4149     private com.google.protobuf.SingleFieldBuilderV3<
4150             com.google.cloud.vmmigration.v1.ReplicationSync,
4151             com.google.cloud.vmmigration.v1.ReplicationSync.Builder,
4152             com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder>
4153         lastSyncBuilder_;
4154     /**
4155      *
4156      *
4157      * <pre>
4158      * Output only. The most updated snapshot created time in the source that
4159      * finished replication.
4160      * </pre>
4161      *
4162      * <code>
4163      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4164      * </code>
4165      *
4166      * @return Whether the lastSync field is set.
4167      */
hasLastSync()4168     public boolean hasLastSync() {
4169       return ((bitField0_ & 0x00000200) != 0);
4170     }
4171     /**
4172      *
4173      *
4174      * <pre>
4175      * Output only. The most updated snapshot created time in the source that
4176      * finished replication.
4177      * </pre>
4178      *
4179      * <code>
4180      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4181      * </code>
4182      *
4183      * @return The lastSync.
4184      */
getLastSync()4185     public com.google.cloud.vmmigration.v1.ReplicationSync getLastSync() {
4186       if (lastSyncBuilder_ == null) {
4187         return lastSync_ == null
4188             ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
4189             : lastSync_;
4190       } else {
4191         return lastSyncBuilder_.getMessage();
4192       }
4193     }
4194     /**
4195      *
4196      *
4197      * <pre>
4198      * Output only. The most updated snapshot created time in the source that
4199      * finished replication.
4200      * </pre>
4201      *
4202      * <code>
4203      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4204      * </code>
4205      */
setLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value)4206     public Builder setLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value) {
4207       if (lastSyncBuilder_ == null) {
4208         if (value == null) {
4209           throw new NullPointerException();
4210         }
4211         lastSync_ = value;
4212       } else {
4213         lastSyncBuilder_.setMessage(value);
4214       }
4215       bitField0_ |= 0x00000200;
4216       onChanged();
4217       return this;
4218     }
4219     /**
4220      *
4221      *
4222      * <pre>
4223      * Output only. The most updated snapshot created time in the source that
4224      * finished replication.
4225      * </pre>
4226      *
4227      * <code>
4228      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4229      * </code>
4230      */
setLastSync( com.google.cloud.vmmigration.v1.ReplicationSync.Builder builderForValue)4231     public Builder setLastSync(
4232         com.google.cloud.vmmigration.v1.ReplicationSync.Builder builderForValue) {
4233       if (lastSyncBuilder_ == null) {
4234         lastSync_ = builderForValue.build();
4235       } else {
4236         lastSyncBuilder_.setMessage(builderForValue.build());
4237       }
4238       bitField0_ |= 0x00000200;
4239       onChanged();
4240       return this;
4241     }
4242     /**
4243      *
4244      *
4245      * <pre>
4246      * Output only. The most updated snapshot created time in the source that
4247      * finished replication.
4248      * </pre>
4249      *
4250      * <code>
4251      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4252      * </code>
4253      */
mergeLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value)4254     public Builder mergeLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value) {
4255       if (lastSyncBuilder_ == null) {
4256         if (((bitField0_ & 0x00000200) != 0)
4257             && lastSync_ != null
4258             && lastSync_ != com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()) {
4259           getLastSyncBuilder().mergeFrom(value);
4260         } else {
4261           lastSync_ = value;
4262         }
4263       } else {
4264         lastSyncBuilder_.mergeFrom(value);
4265       }
4266       bitField0_ |= 0x00000200;
4267       onChanged();
4268       return this;
4269     }
4270     /**
4271      *
4272      *
4273      * <pre>
4274      * Output only. The most updated snapshot created time in the source that
4275      * finished replication.
4276      * </pre>
4277      *
4278      * <code>
4279      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4280      * </code>
4281      */
clearLastSync()4282     public Builder clearLastSync() {
4283       bitField0_ = (bitField0_ & ~0x00000200);
4284       lastSync_ = null;
4285       if (lastSyncBuilder_ != null) {
4286         lastSyncBuilder_.dispose();
4287         lastSyncBuilder_ = null;
4288       }
4289       onChanged();
4290       return this;
4291     }
4292     /**
4293      *
4294      *
4295      * <pre>
4296      * Output only. The most updated snapshot created time in the source that
4297      * finished replication.
4298      * </pre>
4299      *
4300      * <code>
4301      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4302      * </code>
4303      */
getLastSyncBuilder()4304     public com.google.cloud.vmmigration.v1.ReplicationSync.Builder getLastSyncBuilder() {
4305       bitField0_ |= 0x00000200;
4306       onChanged();
4307       return getLastSyncFieldBuilder().getBuilder();
4308     }
4309     /**
4310      *
4311      *
4312      * <pre>
4313      * Output only. The most updated snapshot created time in the source that
4314      * finished replication.
4315      * </pre>
4316      *
4317      * <code>
4318      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4319      * </code>
4320      */
getLastSyncOrBuilder()4321     public com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder getLastSyncOrBuilder() {
4322       if (lastSyncBuilder_ != null) {
4323         return lastSyncBuilder_.getMessageOrBuilder();
4324       } else {
4325         return lastSync_ == null
4326             ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
4327             : lastSync_;
4328       }
4329     }
4330     /**
4331      *
4332      *
4333      * <pre>
4334      * Output only. The most updated snapshot created time in the source that
4335      * finished replication.
4336      * </pre>
4337      *
4338      * <code>
4339      * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
4340      * </code>
4341      */
4342     private com.google.protobuf.SingleFieldBuilderV3<
4343             com.google.cloud.vmmigration.v1.ReplicationSync,
4344             com.google.cloud.vmmigration.v1.ReplicationSync.Builder,
4345             com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder>
getLastSyncFieldBuilder()4346         getLastSyncFieldBuilder() {
4347       if (lastSyncBuilder_ == null) {
4348         lastSyncBuilder_ =
4349             new com.google.protobuf.SingleFieldBuilderV3<
4350                 com.google.cloud.vmmigration.v1.ReplicationSync,
4351                 com.google.cloud.vmmigration.v1.ReplicationSync.Builder,
4352                 com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder>(
4353                 getLastSync(), getParentForChildren(), isClean());
4354         lastSync_ = null;
4355       }
4356       return lastSyncBuilder_;
4357     }
4358 
4359     private int state_ = 0;
4360     /**
4361      *
4362      *
4363      * <pre>
4364      * Output only. State of the MigratingVm.
4365      * </pre>
4366      *
4367      * <code>
4368      * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
4369      * </code>
4370      *
4371      * @return The enum numeric value on the wire for state.
4372      */
4373     @java.lang.Override
getStateValue()4374     public int getStateValue() {
4375       return state_;
4376     }
4377     /**
4378      *
4379      *
4380      * <pre>
4381      * Output only. State of the MigratingVm.
4382      * </pre>
4383      *
4384      * <code>
4385      * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
4386      * </code>
4387      *
4388      * @param value The enum numeric value on the wire for state to set.
4389      * @return This builder for chaining.
4390      */
setStateValue(int value)4391     public Builder setStateValue(int value) {
4392       state_ = value;
4393       bitField0_ |= 0x00000400;
4394       onChanged();
4395       return this;
4396     }
4397     /**
4398      *
4399      *
4400      * <pre>
4401      * Output only. State of the MigratingVm.
4402      * </pre>
4403      *
4404      * <code>
4405      * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
4406      * </code>
4407      *
4408      * @return The state.
4409      */
4410     @java.lang.Override
getState()4411     public com.google.cloud.vmmigration.v1.MigratingVm.State getState() {
4412       com.google.cloud.vmmigration.v1.MigratingVm.State result =
4413           com.google.cloud.vmmigration.v1.MigratingVm.State.forNumber(state_);
4414       return result == null
4415           ? com.google.cloud.vmmigration.v1.MigratingVm.State.UNRECOGNIZED
4416           : result;
4417     }
4418     /**
4419      *
4420      *
4421      * <pre>
4422      * Output only. State of the MigratingVm.
4423      * </pre>
4424      *
4425      * <code>
4426      * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
4427      * </code>
4428      *
4429      * @param value The state to set.
4430      * @return This builder for chaining.
4431      */
setState(com.google.cloud.vmmigration.v1.MigratingVm.State value)4432     public Builder setState(com.google.cloud.vmmigration.v1.MigratingVm.State value) {
4433       if (value == null) {
4434         throw new NullPointerException();
4435       }
4436       bitField0_ |= 0x00000400;
4437       state_ = value.getNumber();
4438       onChanged();
4439       return this;
4440     }
4441     /**
4442      *
4443      *
4444      * <pre>
4445      * Output only. State of the MigratingVm.
4446      * </pre>
4447      *
4448      * <code>
4449      * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
4450      * </code>
4451      *
4452      * @return This builder for chaining.
4453      */
clearState()4454     public Builder clearState() {
4455       bitField0_ = (bitField0_ & ~0x00000400);
4456       state_ = 0;
4457       onChanged();
4458       return this;
4459     }
4460 
4461     private com.google.protobuf.Timestamp stateTime_;
4462     private com.google.protobuf.SingleFieldBuilderV3<
4463             com.google.protobuf.Timestamp,
4464             com.google.protobuf.Timestamp.Builder,
4465             com.google.protobuf.TimestampOrBuilder>
4466         stateTimeBuilder_;
4467     /**
4468      *
4469      *
4470      * <pre>
4471      * Output only. The last time the migrating VM state was updated.
4472      * </pre>
4473      *
4474      * <code>
4475      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4476      * </code>
4477      *
4478      * @return Whether the stateTime field is set.
4479      */
hasStateTime()4480     public boolean hasStateTime() {
4481       return ((bitField0_ & 0x00000800) != 0);
4482     }
4483     /**
4484      *
4485      *
4486      * <pre>
4487      * Output only. The last time the migrating VM state was updated.
4488      * </pre>
4489      *
4490      * <code>
4491      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4492      * </code>
4493      *
4494      * @return The stateTime.
4495      */
getStateTime()4496     public com.google.protobuf.Timestamp getStateTime() {
4497       if (stateTimeBuilder_ == null) {
4498         return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
4499       } else {
4500         return stateTimeBuilder_.getMessage();
4501       }
4502     }
4503     /**
4504      *
4505      *
4506      * <pre>
4507      * Output only. The last time the migrating VM state was updated.
4508      * </pre>
4509      *
4510      * <code>
4511      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4512      * </code>
4513      */
setStateTime(com.google.protobuf.Timestamp value)4514     public Builder setStateTime(com.google.protobuf.Timestamp value) {
4515       if (stateTimeBuilder_ == null) {
4516         if (value == null) {
4517           throw new NullPointerException();
4518         }
4519         stateTime_ = value;
4520       } else {
4521         stateTimeBuilder_.setMessage(value);
4522       }
4523       bitField0_ |= 0x00000800;
4524       onChanged();
4525       return this;
4526     }
4527     /**
4528      *
4529      *
4530      * <pre>
4531      * Output only. The last time the migrating VM state was updated.
4532      * </pre>
4533      *
4534      * <code>
4535      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4536      * </code>
4537      */
setStateTime(com.google.protobuf.Timestamp.Builder builderForValue)4538     public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
4539       if (stateTimeBuilder_ == null) {
4540         stateTime_ = builderForValue.build();
4541       } else {
4542         stateTimeBuilder_.setMessage(builderForValue.build());
4543       }
4544       bitField0_ |= 0x00000800;
4545       onChanged();
4546       return this;
4547     }
4548     /**
4549      *
4550      *
4551      * <pre>
4552      * Output only. The last time the migrating VM state was updated.
4553      * </pre>
4554      *
4555      * <code>
4556      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4557      * </code>
4558      */
mergeStateTime(com.google.protobuf.Timestamp value)4559     public Builder mergeStateTime(com.google.protobuf.Timestamp value) {
4560       if (stateTimeBuilder_ == null) {
4561         if (((bitField0_ & 0x00000800) != 0)
4562             && stateTime_ != null
4563             && stateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
4564           getStateTimeBuilder().mergeFrom(value);
4565         } else {
4566           stateTime_ = value;
4567         }
4568       } else {
4569         stateTimeBuilder_.mergeFrom(value);
4570       }
4571       bitField0_ |= 0x00000800;
4572       onChanged();
4573       return this;
4574     }
4575     /**
4576      *
4577      *
4578      * <pre>
4579      * Output only. The last time the migrating VM state was updated.
4580      * </pre>
4581      *
4582      * <code>
4583      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4584      * </code>
4585      */
clearStateTime()4586     public Builder clearStateTime() {
4587       bitField0_ = (bitField0_ & ~0x00000800);
4588       stateTime_ = null;
4589       if (stateTimeBuilder_ != null) {
4590         stateTimeBuilder_.dispose();
4591         stateTimeBuilder_ = null;
4592       }
4593       onChanged();
4594       return this;
4595     }
4596     /**
4597      *
4598      *
4599      * <pre>
4600      * Output only. The last time the migrating VM state was updated.
4601      * </pre>
4602      *
4603      * <code>
4604      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4605      * </code>
4606      */
getStateTimeBuilder()4607     public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() {
4608       bitField0_ |= 0x00000800;
4609       onChanged();
4610       return getStateTimeFieldBuilder().getBuilder();
4611     }
4612     /**
4613      *
4614      *
4615      * <pre>
4616      * Output only. The last time the migrating VM state was updated.
4617      * </pre>
4618      *
4619      * <code>
4620      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4621      * </code>
4622      */
getStateTimeOrBuilder()4623     public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() {
4624       if (stateTimeBuilder_ != null) {
4625         return stateTimeBuilder_.getMessageOrBuilder();
4626       } else {
4627         return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
4628       }
4629     }
4630     /**
4631      *
4632      *
4633      * <pre>
4634      * Output only. The last time the migrating VM state was updated.
4635      * </pre>
4636      *
4637      * <code>
4638      * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
4639      * </code>
4640      */
4641     private com.google.protobuf.SingleFieldBuilderV3<
4642             com.google.protobuf.Timestamp,
4643             com.google.protobuf.Timestamp.Builder,
4644             com.google.protobuf.TimestampOrBuilder>
getStateTimeFieldBuilder()4645         getStateTimeFieldBuilder() {
4646       if (stateTimeBuilder_ == null) {
4647         stateTimeBuilder_ =
4648             new com.google.protobuf.SingleFieldBuilderV3<
4649                 com.google.protobuf.Timestamp,
4650                 com.google.protobuf.Timestamp.Builder,
4651                 com.google.protobuf.TimestampOrBuilder>(
4652                 getStateTime(), getParentForChildren(), isClean());
4653         stateTime_ = null;
4654       }
4655       return stateTimeBuilder_;
4656     }
4657 
4658     private com.google.cloud.vmmigration.v1.ReplicationCycle currentSyncInfo_;
4659     private com.google.protobuf.SingleFieldBuilderV3<
4660             com.google.cloud.vmmigration.v1.ReplicationCycle,
4661             com.google.cloud.vmmigration.v1.ReplicationCycle.Builder,
4662             com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>
4663         currentSyncInfoBuilder_;
4664     /**
4665      *
4666      *
4667      * <pre>
4668      * Output only. The percentage progress of the current running replication
4669      * cycle.
4670      * </pre>
4671      *
4672      * <code>
4673      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4674      * </code>
4675      *
4676      * @return Whether the currentSyncInfo field is set.
4677      */
hasCurrentSyncInfo()4678     public boolean hasCurrentSyncInfo() {
4679       return ((bitField0_ & 0x00001000) != 0);
4680     }
4681     /**
4682      *
4683      *
4684      * <pre>
4685      * Output only. The percentage progress of the current running replication
4686      * cycle.
4687      * </pre>
4688      *
4689      * <code>
4690      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4691      * </code>
4692      *
4693      * @return The currentSyncInfo.
4694      */
getCurrentSyncInfo()4695     public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() {
4696       if (currentSyncInfoBuilder_ == null) {
4697         return currentSyncInfo_ == null
4698             ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
4699             : currentSyncInfo_;
4700       } else {
4701         return currentSyncInfoBuilder_.getMessage();
4702       }
4703     }
4704     /**
4705      *
4706      *
4707      * <pre>
4708      * Output only. The percentage progress of the current running replication
4709      * cycle.
4710      * </pre>
4711      *
4712      * <code>
4713      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4714      * </code>
4715      */
setCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value)4716     public Builder setCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) {
4717       if (currentSyncInfoBuilder_ == null) {
4718         if (value == null) {
4719           throw new NullPointerException();
4720         }
4721         currentSyncInfo_ = value;
4722       } else {
4723         currentSyncInfoBuilder_.setMessage(value);
4724       }
4725       bitField0_ |= 0x00001000;
4726       onChanged();
4727       return this;
4728     }
4729     /**
4730      *
4731      *
4732      * <pre>
4733      * Output only. The percentage progress of the current running replication
4734      * cycle.
4735      * </pre>
4736      *
4737      * <code>
4738      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4739      * </code>
4740      */
setCurrentSyncInfo( com.google.cloud.vmmigration.v1.ReplicationCycle.Builder builderForValue)4741     public Builder setCurrentSyncInfo(
4742         com.google.cloud.vmmigration.v1.ReplicationCycle.Builder builderForValue) {
4743       if (currentSyncInfoBuilder_ == null) {
4744         currentSyncInfo_ = builderForValue.build();
4745       } else {
4746         currentSyncInfoBuilder_.setMessage(builderForValue.build());
4747       }
4748       bitField0_ |= 0x00001000;
4749       onChanged();
4750       return this;
4751     }
4752     /**
4753      *
4754      *
4755      * <pre>
4756      * Output only. The percentage progress of the current running replication
4757      * cycle.
4758      * </pre>
4759      *
4760      * <code>
4761      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4762      * </code>
4763      */
mergeCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value)4764     public Builder mergeCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) {
4765       if (currentSyncInfoBuilder_ == null) {
4766         if (((bitField0_ & 0x00001000) != 0)
4767             && currentSyncInfo_ != null
4768             && currentSyncInfo_
4769                 != com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()) {
4770           getCurrentSyncInfoBuilder().mergeFrom(value);
4771         } else {
4772           currentSyncInfo_ = value;
4773         }
4774       } else {
4775         currentSyncInfoBuilder_.mergeFrom(value);
4776       }
4777       bitField0_ |= 0x00001000;
4778       onChanged();
4779       return this;
4780     }
4781     /**
4782      *
4783      *
4784      * <pre>
4785      * Output only. The percentage progress of the current running replication
4786      * cycle.
4787      * </pre>
4788      *
4789      * <code>
4790      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4791      * </code>
4792      */
clearCurrentSyncInfo()4793     public Builder clearCurrentSyncInfo() {
4794       bitField0_ = (bitField0_ & ~0x00001000);
4795       currentSyncInfo_ = null;
4796       if (currentSyncInfoBuilder_ != null) {
4797         currentSyncInfoBuilder_.dispose();
4798         currentSyncInfoBuilder_ = null;
4799       }
4800       onChanged();
4801       return this;
4802     }
4803     /**
4804      *
4805      *
4806      * <pre>
4807      * Output only. The percentage progress of the current running replication
4808      * cycle.
4809      * </pre>
4810      *
4811      * <code>
4812      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4813      * </code>
4814      */
getCurrentSyncInfoBuilder()4815     public com.google.cloud.vmmigration.v1.ReplicationCycle.Builder getCurrentSyncInfoBuilder() {
4816       bitField0_ |= 0x00001000;
4817       onChanged();
4818       return getCurrentSyncInfoFieldBuilder().getBuilder();
4819     }
4820     /**
4821      *
4822      *
4823      * <pre>
4824      * Output only. The percentage progress of the current running replication
4825      * cycle.
4826      * </pre>
4827      *
4828      * <code>
4829      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4830      * </code>
4831      */
getCurrentSyncInfoOrBuilder()4832     public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder() {
4833       if (currentSyncInfoBuilder_ != null) {
4834         return currentSyncInfoBuilder_.getMessageOrBuilder();
4835       } else {
4836         return currentSyncInfo_ == null
4837             ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
4838             : currentSyncInfo_;
4839       }
4840     }
4841     /**
4842      *
4843      *
4844      * <pre>
4845      * Output only. The percentage progress of the current running replication
4846      * cycle.
4847      * </pre>
4848      *
4849      * <code>
4850      * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4851      * </code>
4852      */
4853     private com.google.protobuf.SingleFieldBuilderV3<
4854             com.google.cloud.vmmigration.v1.ReplicationCycle,
4855             com.google.cloud.vmmigration.v1.ReplicationCycle.Builder,
4856             com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>
getCurrentSyncInfoFieldBuilder()4857         getCurrentSyncInfoFieldBuilder() {
4858       if (currentSyncInfoBuilder_ == null) {
4859         currentSyncInfoBuilder_ =
4860             new com.google.protobuf.SingleFieldBuilderV3<
4861                 com.google.cloud.vmmigration.v1.ReplicationCycle,
4862                 com.google.cloud.vmmigration.v1.ReplicationCycle.Builder,
4863                 com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>(
4864                 getCurrentSyncInfo(), getParentForChildren(), isClean());
4865         currentSyncInfo_ = null;
4866       }
4867       return currentSyncInfoBuilder_;
4868     }
4869 
4870     private java.lang.Object group_ = "";
4871     /**
4872      *
4873      *
4874      * <pre>
4875      * Output only. The group this migrating vm is included in, if any. The group
4876      * is represented by the full path of the appropriate
4877      * [Group][google.cloud.vmmigration.v1.Group] resource.
4878      * </pre>
4879      *
4880      * <code>
4881      * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4882      * </code>
4883      *
4884      * @return The group.
4885      */
getGroup()4886     public java.lang.String getGroup() {
4887       java.lang.Object ref = group_;
4888       if (!(ref instanceof java.lang.String)) {
4889         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4890         java.lang.String s = bs.toStringUtf8();
4891         group_ = s;
4892         return s;
4893       } else {
4894         return (java.lang.String) ref;
4895       }
4896     }
4897     /**
4898      *
4899      *
4900      * <pre>
4901      * Output only. The group this migrating vm is included in, if any. The group
4902      * is represented by the full path of the appropriate
4903      * [Group][google.cloud.vmmigration.v1.Group] resource.
4904      * </pre>
4905      *
4906      * <code>
4907      * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4908      * </code>
4909      *
4910      * @return The bytes for group.
4911      */
getGroupBytes()4912     public com.google.protobuf.ByteString getGroupBytes() {
4913       java.lang.Object ref = group_;
4914       if (ref instanceof String) {
4915         com.google.protobuf.ByteString b =
4916             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4917         group_ = b;
4918         return b;
4919       } else {
4920         return (com.google.protobuf.ByteString) ref;
4921       }
4922     }
4923     /**
4924      *
4925      *
4926      * <pre>
4927      * Output only. The group this migrating vm is included in, if any. The group
4928      * is represented by the full path of the appropriate
4929      * [Group][google.cloud.vmmigration.v1.Group] resource.
4930      * </pre>
4931      *
4932      * <code>
4933      * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4934      * </code>
4935      *
4936      * @param value The group to set.
4937      * @return This builder for chaining.
4938      */
setGroup(java.lang.String value)4939     public Builder setGroup(java.lang.String value) {
4940       if (value == null) {
4941         throw new NullPointerException();
4942       }
4943       group_ = value;
4944       bitField0_ |= 0x00002000;
4945       onChanged();
4946       return this;
4947     }
4948     /**
4949      *
4950      *
4951      * <pre>
4952      * Output only. The group this migrating vm is included in, if any. The group
4953      * is represented by the full path of the appropriate
4954      * [Group][google.cloud.vmmigration.v1.Group] resource.
4955      * </pre>
4956      *
4957      * <code>
4958      * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4959      * </code>
4960      *
4961      * @return This builder for chaining.
4962      */
clearGroup()4963     public Builder clearGroup() {
4964       group_ = getDefaultInstance().getGroup();
4965       bitField0_ = (bitField0_ & ~0x00002000);
4966       onChanged();
4967       return this;
4968     }
4969     /**
4970      *
4971      *
4972      * <pre>
4973      * Output only. The group this migrating vm is included in, if any. The group
4974      * is represented by the full path of the appropriate
4975      * [Group][google.cloud.vmmigration.v1.Group] resource.
4976      * </pre>
4977      *
4978      * <code>
4979      * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4980      * </code>
4981      *
4982      * @param value The bytes for group to set.
4983      * @return This builder for chaining.
4984      */
setGroupBytes(com.google.protobuf.ByteString value)4985     public Builder setGroupBytes(com.google.protobuf.ByteString value) {
4986       if (value == null) {
4987         throw new NullPointerException();
4988       }
4989       checkByteStringIsUtf8(value);
4990       group_ = value;
4991       bitField0_ |= 0x00002000;
4992       onChanged();
4993       return this;
4994     }
4995 
4996     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
4997 
internalGetLabels()4998     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
4999       if (labels_ == null) {
5000         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
5001       }
5002       return labels_;
5003     }
5004 
5005     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()5006         internalGetMutableLabels() {
5007       if (labels_ == null) {
5008         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
5009       }
5010       if (!labels_.isMutable()) {
5011         labels_ = labels_.copy();
5012       }
5013       bitField0_ |= 0x00004000;
5014       onChanged();
5015       return labels_;
5016     }
5017 
getLabelsCount()5018     public int getLabelsCount() {
5019       return internalGetLabels().getMap().size();
5020     }
5021     /**
5022      *
5023      *
5024      * <pre>
5025      * The labels of the migrating VM.
5026      * </pre>
5027      *
5028      * <code>map&lt;string, string&gt; labels = 16;</code>
5029      */
5030     @java.lang.Override
containsLabels(java.lang.String key)5031     public boolean containsLabels(java.lang.String key) {
5032       if (key == null) {
5033         throw new NullPointerException("map key");
5034       }
5035       return internalGetLabels().getMap().containsKey(key);
5036     }
5037     /** Use {@link #getLabelsMap()} instead. */
5038     @java.lang.Override
5039     @java.lang.Deprecated
getLabels()5040     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
5041       return getLabelsMap();
5042     }
5043     /**
5044      *
5045      *
5046      * <pre>
5047      * The labels of the migrating VM.
5048      * </pre>
5049      *
5050      * <code>map&lt;string, string&gt; labels = 16;</code>
5051      */
5052     @java.lang.Override
getLabelsMap()5053     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
5054       return internalGetLabels().getMap();
5055     }
5056     /**
5057      *
5058      *
5059      * <pre>
5060      * The labels of the migrating VM.
5061      * </pre>
5062      *
5063      * <code>map&lt;string, string&gt; labels = 16;</code>
5064      */
5065     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)5066     public /* nullable */ java.lang.String getLabelsOrDefault(
5067         java.lang.String key,
5068         /* nullable */
5069         java.lang.String defaultValue) {
5070       if (key == null) {
5071         throw new NullPointerException("map key");
5072       }
5073       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
5074       return map.containsKey(key) ? map.get(key) : defaultValue;
5075     }
5076     /**
5077      *
5078      *
5079      * <pre>
5080      * The labels of the migrating VM.
5081      * </pre>
5082      *
5083      * <code>map&lt;string, string&gt; labels = 16;</code>
5084      */
5085     @java.lang.Override
getLabelsOrThrow(java.lang.String key)5086     public java.lang.String getLabelsOrThrow(java.lang.String key) {
5087       if (key == null) {
5088         throw new NullPointerException("map key");
5089       }
5090       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
5091       if (!map.containsKey(key)) {
5092         throw new java.lang.IllegalArgumentException();
5093       }
5094       return map.get(key);
5095     }
5096 
clearLabels()5097     public Builder clearLabels() {
5098       bitField0_ = (bitField0_ & ~0x00004000);
5099       internalGetMutableLabels().getMutableMap().clear();
5100       return this;
5101     }
5102     /**
5103      *
5104      *
5105      * <pre>
5106      * The labels of the migrating VM.
5107      * </pre>
5108      *
5109      * <code>map&lt;string, string&gt; labels = 16;</code>
5110      */
removeLabels(java.lang.String key)5111     public Builder removeLabels(java.lang.String key) {
5112       if (key == null) {
5113         throw new NullPointerException("map key");
5114       }
5115       internalGetMutableLabels().getMutableMap().remove(key);
5116       return this;
5117     }
5118     /** Use alternate mutation accessors instead. */
5119     @java.lang.Deprecated
getMutableLabels()5120     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
5121       bitField0_ |= 0x00004000;
5122       return internalGetMutableLabels().getMutableMap();
5123     }
5124     /**
5125      *
5126      *
5127      * <pre>
5128      * The labels of the migrating VM.
5129      * </pre>
5130      *
5131      * <code>map&lt;string, string&gt; labels = 16;</code>
5132      */
putLabels(java.lang.String key, java.lang.String value)5133     public Builder putLabels(java.lang.String key, java.lang.String value) {
5134       if (key == null) {
5135         throw new NullPointerException("map key");
5136       }
5137       if (value == null) {
5138         throw new NullPointerException("map value");
5139       }
5140       internalGetMutableLabels().getMutableMap().put(key, value);
5141       bitField0_ |= 0x00004000;
5142       return this;
5143     }
5144     /**
5145      *
5146      *
5147      * <pre>
5148      * The labels of the migrating VM.
5149      * </pre>
5150      *
5151      * <code>map&lt;string, string&gt; labels = 16;</code>
5152      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)5153     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
5154       internalGetMutableLabels().getMutableMap().putAll(values);
5155       bitField0_ |= 0x00004000;
5156       return this;
5157     }
5158 
5159     private java.util.List<com.google.cloud.vmmigration.v1.CloneJob> recentCloneJobs_ =
5160         java.util.Collections.emptyList();
5161 
ensureRecentCloneJobsIsMutable()5162     private void ensureRecentCloneJobsIsMutable() {
5163       if (!((bitField0_ & 0x00008000) != 0)) {
5164         recentCloneJobs_ =
5165             new java.util.ArrayList<com.google.cloud.vmmigration.v1.CloneJob>(recentCloneJobs_);
5166         bitField0_ |= 0x00008000;
5167       }
5168     }
5169 
5170     private com.google.protobuf.RepeatedFieldBuilderV3<
5171             com.google.cloud.vmmigration.v1.CloneJob,
5172             com.google.cloud.vmmigration.v1.CloneJob.Builder,
5173             com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
5174         recentCloneJobsBuilder_;
5175 
5176     /**
5177      *
5178      *
5179      * <pre>
5180      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5181      * performed on the migrating VM. This field holds the vm's last completed
5182      * clone job and the vm's running clone job, if one exists.
5183      * Note: To have this field populated you need to explicitly request it via
5184      * the "view" parameter of the Get/List request.
5185      * </pre>
5186      *
5187      * <code>
5188      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5189      * </code>
5190      */
getRecentCloneJobsList()5191     public java.util.List<com.google.cloud.vmmigration.v1.CloneJob> getRecentCloneJobsList() {
5192       if (recentCloneJobsBuilder_ == null) {
5193         return java.util.Collections.unmodifiableList(recentCloneJobs_);
5194       } else {
5195         return recentCloneJobsBuilder_.getMessageList();
5196       }
5197     }
5198     /**
5199      *
5200      *
5201      * <pre>
5202      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5203      * performed on the migrating VM. This field holds the vm's last completed
5204      * clone job and the vm's running clone job, if one exists.
5205      * Note: To have this field populated you need to explicitly request it via
5206      * the "view" parameter of the Get/List request.
5207      * </pre>
5208      *
5209      * <code>
5210      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5211      * </code>
5212      */
getRecentCloneJobsCount()5213     public int getRecentCloneJobsCount() {
5214       if (recentCloneJobsBuilder_ == null) {
5215         return recentCloneJobs_.size();
5216       } else {
5217         return recentCloneJobsBuilder_.getCount();
5218       }
5219     }
5220     /**
5221      *
5222      *
5223      * <pre>
5224      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5225      * performed on the migrating VM. This field holds the vm's last completed
5226      * clone job and the vm's running clone job, if one exists.
5227      * Note: To have this field populated you need to explicitly request it via
5228      * the "view" parameter of the Get/List request.
5229      * </pre>
5230      *
5231      * <code>
5232      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5233      * </code>
5234      */
getRecentCloneJobs(int index)5235     public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) {
5236       if (recentCloneJobsBuilder_ == null) {
5237         return recentCloneJobs_.get(index);
5238       } else {
5239         return recentCloneJobsBuilder_.getMessage(index);
5240       }
5241     }
5242     /**
5243      *
5244      *
5245      * <pre>
5246      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5247      * performed on the migrating VM. This field holds the vm's last completed
5248      * clone job and the vm's running clone job, if one exists.
5249      * Note: To have this field populated you need to explicitly request it via
5250      * the "view" parameter of the Get/List request.
5251      * </pre>
5252      *
5253      * <code>
5254      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5255      * </code>
5256      */
setRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value)5257     public Builder setRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) {
5258       if (recentCloneJobsBuilder_ == null) {
5259         if (value == null) {
5260           throw new NullPointerException();
5261         }
5262         ensureRecentCloneJobsIsMutable();
5263         recentCloneJobs_.set(index, value);
5264         onChanged();
5265       } else {
5266         recentCloneJobsBuilder_.setMessage(index, value);
5267       }
5268       return this;
5269     }
5270     /**
5271      *
5272      *
5273      * <pre>
5274      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5275      * performed on the migrating VM. This field holds the vm's last completed
5276      * clone job and the vm's running clone job, if one exists.
5277      * Note: To have this field populated you need to explicitly request it via
5278      * the "view" parameter of the Get/List request.
5279      * </pre>
5280      *
5281      * <code>
5282      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5283      * </code>
5284      */
setRecentCloneJobs( int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue)5285     public Builder setRecentCloneJobs(
5286         int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) {
5287       if (recentCloneJobsBuilder_ == null) {
5288         ensureRecentCloneJobsIsMutable();
5289         recentCloneJobs_.set(index, builderForValue.build());
5290         onChanged();
5291       } else {
5292         recentCloneJobsBuilder_.setMessage(index, builderForValue.build());
5293       }
5294       return this;
5295     }
5296     /**
5297      *
5298      *
5299      * <pre>
5300      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5301      * performed on the migrating VM. This field holds the vm's last completed
5302      * clone job and the vm's running clone job, if one exists.
5303      * Note: To have this field populated you need to explicitly request it via
5304      * the "view" parameter of the Get/List request.
5305      * </pre>
5306      *
5307      * <code>
5308      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5309      * </code>
5310      */
addRecentCloneJobs(com.google.cloud.vmmigration.v1.CloneJob value)5311     public Builder addRecentCloneJobs(com.google.cloud.vmmigration.v1.CloneJob value) {
5312       if (recentCloneJobsBuilder_ == null) {
5313         if (value == null) {
5314           throw new NullPointerException();
5315         }
5316         ensureRecentCloneJobsIsMutable();
5317         recentCloneJobs_.add(value);
5318         onChanged();
5319       } else {
5320         recentCloneJobsBuilder_.addMessage(value);
5321       }
5322       return this;
5323     }
5324     /**
5325      *
5326      *
5327      * <pre>
5328      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5329      * performed on the migrating VM. This field holds the vm's last completed
5330      * clone job and the vm's running clone job, if one exists.
5331      * Note: To have this field populated you need to explicitly request it via
5332      * the "view" parameter of the Get/List request.
5333      * </pre>
5334      *
5335      * <code>
5336      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5337      * </code>
5338      */
addRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value)5339     public Builder addRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) {
5340       if (recentCloneJobsBuilder_ == null) {
5341         if (value == null) {
5342           throw new NullPointerException();
5343         }
5344         ensureRecentCloneJobsIsMutable();
5345         recentCloneJobs_.add(index, value);
5346         onChanged();
5347       } else {
5348         recentCloneJobsBuilder_.addMessage(index, value);
5349       }
5350       return this;
5351     }
5352     /**
5353      *
5354      *
5355      * <pre>
5356      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5357      * performed on the migrating VM. This field holds the vm's last completed
5358      * clone job and the vm's running clone job, if one exists.
5359      * Note: To have this field populated you need to explicitly request it via
5360      * the "view" parameter of the Get/List request.
5361      * </pre>
5362      *
5363      * <code>
5364      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5365      * </code>
5366      */
addRecentCloneJobs( com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue)5367     public Builder addRecentCloneJobs(
5368         com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) {
5369       if (recentCloneJobsBuilder_ == null) {
5370         ensureRecentCloneJobsIsMutable();
5371         recentCloneJobs_.add(builderForValue.build());
5372         onChanged();
5373       } else {
5374         recentCloneJobsBuilder_.addMessage(builderForValue.build());
5375       }
5376       return this;
5377     }
5378     /**
5379      *
5380      *
5381      * <pre>
5382      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5383      * performed on the migrating VM. This field holds the vm's last completed
5384      * clone job and the vm's running clone job, if one exists.
5385      * Note: To have this field populated you need to explicitly request it via
5386      * the "view" parameter of the Get/List request.
5387      * </pre>
5388      *
5389      * <code>
5390      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5391      * </code>
5392      */
addRecentCloneJobs( int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue)5393     public Builder addRecentCloneJobs(
5394         int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) {
5395       if (recentCloneJobsBuilder_ == null) {
5396         ensureRecentCloneJobsIsMutable();
5397         recentCloneJobs_.add(index, builderForValue.build());
5398         onChanged();
5399       } else {
5400         recentCloneJobsBuilder_.addMessage(index, builderForValue.build());
5401       }
5402       return this;
5403     }
5404     /**
5405      *
5406      *
5407      * <pre>
5408      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5409      * performed on the migrating VM. This field holds the vm's last completed
5410      * clone job and the vm's running clone job, if one exists.
5411      * Note: To have this field populated you need to explicitly request it via
5412      * the "view" parameter of the Get/List request.
5413      * </pre>
5414      *
5415      * <code>
5416      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5417      * </code>
5418      */
addAllRecentCloneJobs( java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.CloneJob> values)5419     public Builder addAllRecentCloneJobs(
5420         java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.CloneJob> values) {
5421       if (recentCloneJobsBuilder_ == null) {
5422         ensureRecentCloneJobsIsMutable();
5423         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCloneJobs_);
5424         onChanged();
5425       } else {
5426         recentCloneJobsBuilder_.addAllMessages(values);
5427       }
5428       return this;
5429     }
5430     /**
5431      *
5432      *
5433      * <pre>
5434      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5435      * performed on the migrating VM. This field holds the vm's last completed
5436      * clone job and the vm's running clone job, if one exists.
5437      * Note: To have this field populated you need to explicitly request it via
5438      * the "view" parameter of the Get/List request.
5439      * </pre>
5440      *
5441      * <code>
5442      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5443      * </code>
5444      */
clearRecentCloneJobs()5445     public Builder clearRecentCloneJobs() {
5446       if (recentCloneJobsBuilder_ == null) {
5447         recentCloneJobs_ = java.util.Collections.emptyList();
5448         bitField0_ = (bitField0_ & ~0x00008000);
5449         onChanged();
5450       } else {
5451         recentCloneJobsBuilder_.clear();
5452       }
5453       return this;
5454     }
5455     /**
5456      *
5457      *
5458      * <pre>
5459      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5460      * performed on the migrating VM. This field holds the vm's last completed
5461      * clone job and the vm's running clone job, if one exists.
5462      * Note: To have this field populated you need to explicitly request it via
5463      * the "view" parameter of the Get/List request.
5464      * </pre>
5465      *
5466      * <code>
5467      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5468      * </code>
5469      */
removeRecentCloneJobs(int index)5470     public Builder removeRecentCloneJobs(int index) {
5471       if (recentCloneJobsBuilder_ == null) {
5472         ensureRecentCloneJobsIsMutable();
5473         recentCloneJobs_.remove(index);
5474         onChanged();
5475       } else {
5476         recentCloneJobsBuilder_.remove(index);
5477       }
5478       return this;
5479     }
5480     /**
5481      *
5482      *
5483      * <pre>
5484      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5485      * performed on the migrating VM. This field holds the vm's last completed
5486      * clone job and the vm's running clone job, if one exists.
5487      * Note: To have this field populated you need to explicitly request it via
5488      * the "view" parameter of the Get/List request.
5489      * </pre>
5490      *
5491      * <code>
5492      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5493      * </code>
5494      */
getRecentCloneJobsBuilder(int index)5495     public com.google.cloud.vmmigration.v1.CloneJob.Builder getRecentCloneJobsBuilder(int index) {
5496       return getRecentCloneJobsFieldBuilder().getBuilder(index);
5497     }
5498     /**
5499      *
5500      *
5501      * <pre>
5502      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5503      * performed on the migrating VM. This field holds the vm's last completed
5504      * clone job and the vm's running clone job, if one exists.
5505      * Note: To have this field populated you need to explicitly request it via
5506      * the "view" parameter of the Get/List request.
5507      * </pre>
5508      *
5509      * <code>
5510      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5511      * </code>
5512      */
getRecentCloneJobsOrBuilder( int index)5513     public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder(
5514         int index) {
5515       if (recentCloneJobsBuilder_ == null) {
5516         return recentCloneJobs_.get(index);
5517       } else {
5518         return recentCloneJobsBuilder_.getMessageOrBuilder(index);
5519       }
5520     }
5521     /**
5522      *
5523      *
5524      * <pre>
5525      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5526      * performed on the migrating VM. This field holds the vm's last completed
5527      * clone job and the vm's running clone job, if one exists.
5528      * Note: To have this field populated you need to explicitly request it via
5529      * the "view" parameter of the Get/List request.
5530      * </pre>
5531      *
5532      * <code>
5533      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5534      * </code>
5535      */
5536     public java.util.List<? extends com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
getRecentCloneJobsOrBuilderList()5537         getRecentCloneJobsOrBuilderList() {
5538       if (recentCloneJobsBuilder_ != null) {
5539         return recentCloneJobsBuilder_.getMessageOrBuilderList();
5540       } else {
5541         return java.util.Collections.unmodifiableList(recentCloneJobs_);
5542       }
5543     }
5544     /**
5545      *
5546      *
5547      * <pre>
5548      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5549      * performed on the migrating VM. This field holds the vm's last completed
5550      * clone job and the vm's running clone job, if one exists.
5551      * Note: To have this field populated you need to explicitly request it via
5552      * the "view" parameter of the Get/List request.
5553      * </pre>
5554      *
5555      * <code>
5556      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5557      * </code>
5558      */
addRecentCloneJobsBuilder()5559     public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder() {
5560       return getRecentCloneJobsFieldBuilder()
5561           .addBuilder(com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance());
5562     }
5563     /**
5564      *
5565      *
5566      * <pre>
5567      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5568      * performed on the migrating VM. This field holds the vm's last completed
5569      * clone job and the vm's running clone job, if one exists.
5570      * Note: To have this field populated you need to explicitly request it via
5571      * the "view" parameter of the Get/List request.
5572      * </pre>
5573      *
5574      * <code>
5575      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5576      * </code>
5577      */
addRecentCloneJobsBuilder(int index)5578     public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder(int index) {
5579       return getRecentCloneJobsFieldBuilder()
5580           .addBuilder(index, com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance());
5581     }
5582     /**
5583      *
5584      *
5585      * <pre>
5586      * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
5587      * performed on the migrating VM. This field holds the vm's last completed
5588      * clone job and the vm's running clone job, if one exists.
5589      * Note: To have this field populated you need to explicitly request it via
5590      * the "view" parameter of the Get/List request.
5591      * </pre>
5592      *
5593      * <code>
5594      * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
5595      * </code>
5596      */
5597     public java.util.List<com.google.cloud.vmmigration.v1.CloneJob.Builder>
getRecentCloneJobsBuilderList()5598         getRecentCloneJobsBuilderList() {
5599       return getRecentCloneJobsFieldBuilder().getBuilderList();
5600     }
5601 
5602     private com.google.protobuf.RepeatedFieldBuilderV3<
5603             com.google.cloud.vmmigration.v1.CloneJob,
5604             com.google.cloud.vmmigration.v1.CloneJob.Builder,
5605             com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
getRecentCloneJobsFieldBuilder()5606         getRecentCloneJobsFieldBuilder() {
5607       if (recentCloneJobsBuilder_ == null) {
5608         recentCloneJobsBuilder_ =
5609             new com.google.protobuf.RepeatedFieldBuilderV3<
5610                 com.google.cloud.vmmigration.v1.CloneJob,
5611                 com.google.cloud.vmmigration.v1.CloneJob.Builder,
5612                 com.google.cloud.vmmigration.v1.CloneJobOrBuilder>(
5613                 recentCloneJobs_,
5614                 ((bitField0_ & 0x00008000) != 0),
5615                 getParentForChildren(),
5616                 isClean());
5617         recentCloneJobs_ = null;
5618       }
5619       return recentCloneJobsBuilder_;
5620     }
5621 
5622     private com.google.rpc.Status error_;
5623     private com.google.protobuf.SingleFieldBuilderV3<
5624             com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
5625         errorBuilder_;
5626     /**
5627      *
5628      *
5629      * <pre>
5630      * Output only. Provides details on the state of the Migrating VM in case of
5631      * an error in replication.
5632      * </pre>
5633      *
5634      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5635      *
5636      * @return Whether the error field is set.
5637      */
hasError()5638     public boolean hasError() {
5639       return ((bitField0_ & 0x00010000) != 0);
5640     }
5641     /**
5642      *
5643      *
5644      * <pre>
5645      * Output only. Provides details on the state of the Migrating VM in case of
5646      * an error in replication.
5647      * </pre>
5648      *
5649      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5650      *
5651      * @return The error.
5652      */
getError()5653     public com.google.rpc.Status getError() {
5654       if (errorBuilder_ == null) {
5655         return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
5656       } else {
5657         return errorBuilder_.getMessage();
5658       }
5659     }
5660     /**
5661      *
5662      *
5663      * <pre>
5664      * Output only. Provides details on the state of the Migrating VM in case of
5665      * an error in replication.
5666      * </pre>
5667      *
5668      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5669      */
setError(com.google.rpc.Status value)5670     public Builder setError(com.google.rpc.Status value) {
5671       if (errorBuilder_ == null) {
5672         if (value == null) {
5673           throw new NullPointerException();
5674         }
5675         error_ = value;
5676       } else {
5677         errorBuilder_.setMessage(value);
5678       }
5679       bitField0_ |= 0x00010000;
5680       onChanged();
5681       return this;
5682     }
5683     /**
5684      *
5685      *
5686      * <pre>
5687      * Output only. Provides details on the state of the Migrating VM in case of
5688      * an error in replication.
5689      * </pre>
5690      *
5691      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5692      */
setError(com.google.rpc.Status.Builder builderForValue)5693     public Builder setError(com.google.rpc.Status.Builder builderForValue) {
5694       if (errorBuilder_ == null) {
5695         error_ = builderForValue.build();
5696       } else {
5697         errorBuilder_.setMessage(builderForValue.build());
5698       }
5699       bitField0_ |= 0x00010000;
5700       onChanged();
5701       return this;
5702     }
5703     /**
5704      *
5705      *
5706      * <pre>
5707      * Output only. Provides details on the state of the Migrating VM in case of
5708      * an error in replication.
5709      * </pre>
5710      *
5711      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5712      */
mergeError(com.google.rpc.Status value)5713     public Builder mergeError(com.google.rpc.Status value) {
5714       if (errorBuilder_ == null) {
5715         if (((bitField0_ & 0x00010000) != 0)
5716             && error_ != null
5717             && error_ != com.google.rpc.Status.getDefaultInstance()) {
5718           getErrorBuilder().mergeFrom(value);
5719         } else {
5720           error_ = value;
5721         }
5722       } else {
5723         errorBuilder_.mergeFrom(value);
5724       }
5725       bitField0_ |= 0x00010000;
5726       onChanged();
5727       return this;
5728     }
5729     /**
5730      *
5731      *
5732      * <pre>
5733      * Output only. Provides details on the state of the Migrating VM in case of
5734      * an error in replication.
5735      * </pre>
5736      *
5737      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5738      */
clearError()5739     public Builder clearError() {
5740       bitField0_ = (bitField0_ & ~0x00010000);
5741       error_ = null;
5742       if (errorBuilder_ != null) {
5743         errorBuilder_.dispose();
5744         errorBuilder_ = null;
5745       }
5746       onChanged();
5747       return this;
5748     }
5749     /**
5750      *
5751      *
5752      * <pre>
5753      * Output only. Provides details on the state of the Migrating VM in case of
5754      * an error in replication.
5755      * </pre>
5756      *
5757      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5758      */
getErrorBuilder()5759     public com.google.rpc.Status.Builder getErrorBuilder() {
5760       bitField0_ |= 0x00010000;
5761       onChanged();
5762       return getErrorFieldBuilder().getBuilder();
5763     }
5764     /**
5765      *
5766      *
5767      * <pre>
5768      * Output only. Provides details on the state of the Migrating VM in case of
5769      * an error in replication.
5770      * </pre>
5771      *
5772      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5773      */
getErrorOrBuilder()5774     public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
5775       if (errorBuilder_ != null) {
5776         return errorBuilder_.getMessageOrBuilder();
5777       } else {
5778         return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
5779       }
5780     }
5781     /**
5782      *
5783      *
5784      * <pre>
5785      * Output only. Provides details on the state of the Migrating VM in case of
5786      * an error in replication.
5787      * </pre>
5788      *
5789      * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
5790      */
5791     private com.google.protobuf.SingleFieldBuilderV3<
5792             com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getErrorFieldBuilder()5793         getErrorFieldBuilder() {
5794       if (errorBuilder_ == null) {
5795         errorBuilder_ =
5796             new com.google.protobuf.SingleFieldBuilderV3<
5797                 com.google.rpc.Status,
5798                 com.google.rpc.Status.Builder,
5799                 com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
5800         error_ = null;
5801       }
5802       return errorBuilder_;
5803     }
5804 
5805     private java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> recentCutoverJobs_ =
5806         java.util.Collections.emptyList();
5807 
ensureRecentCutoverJobsIsMutable()5808     private void ensureRecentCutoverJobsIsMutable() {
5809       if (!((bitField0_ & 0x00020000) != 0)) {
5810         recentCutoverJobs_ =
5811             new java.util.ArrayList<com.google.cloud.vmmigration.v1.CutoverJob>(recentCutoverJobs_);
5812         bitField0_ |= 0x00020000;
5813       }
5814     }
5815 
5816     private com.google.protobuf.RepeatedFieldBuilderV3<
5817             com.google.cloud.vmmigration.v1.CutoverJob,
5818             com.google.cloud.vmmigration.v1.CutoverJob.Builder,
5819             com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
5820         recentCutoverJobsBuilder_;
5821 
5822     /**
5823      *
5824      *
5825      * <pre>
5826      * Output only. The recent cutover jobs performed on the migrating VM.
5827      * This field holds the vm's last completed cutover job and the vm's
5828      * running cutover job, if one exists.
5829      * Note: To have this field populated you need to explicitly request it via
5830      * the "view" parameter of the Get/List request.
5831      * </pre>
5832      *
5833      * <code>
5834      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
5835      * </code>
5836      */
getRecentCutoverJobsList()5837     public java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> getRecentCutoverJobsList() {
5838       if (recentCutoverJobsBuilder_ == null) {
5839         return java.util.Collections.unmodifiableList(recentCutoverJobs_);
5840       } else {
5841         return recentCutoverJobsBuilder_.getMessageList();
5842       }
5843     }
5844     /**
5845      *
5846      *
5847      * <pre>
5848      * Output only. The recent cutover jobs performed on the migrating VM.
5849      * This field holds the vm's last completed cutover job and the vm's
5850      * running cutover job, if one exists.
5851      * Note: To have this field populated you need to explicitly request it via
5852      * the "view" parameter of the Get/List request.
5853      * </pre>
5854      *
5855      * <code>
5856      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
5857      * </code>
5858      */
getRecentCutoverJobsCount()5859     public int getRecentCutoverJobsCount() {
5860       if (recentCutoverJobsBuilder_ == null) {
5861         return recentCutoverJobs_.size();
5862       } else {
5863         return recentCutoverJobsBuilder_.getCount();
5864       }
5865     }
5866     /**
5867      *
5868      *
5869      * <pre>
5870      * Output only. The recent cutover jobs performed on the migrating VM.
5871      * This field holds the vm's last completed cutover job and the vm's
5872      * running cutover job, if one exists.
5873      * Note: To have this field populated you need to explicitly request it via
5874      * the "view" parameter of the Get/List request.
5875      * </pre>
5876      *
5877      * <code>
5878      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
5879      * </code>
5880      */
getRecentCutoverJobs(int index)5881     public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) {
5882       if (recentCutoverJobsBuilder_ == null) {
5883         return recentCutoverJobs_.get(index);
5884       } else {
5885         return recentCutoverJobsBuilder_.getMessage(index);
5886       }
5887     }
5888     /**
5889      *
5890      *
5891      * <pre>
5892      * Output only. The recent cutover jobs performed on the migrating VM.
5893      * This field holds the vm's last completed cutover job and the vm's
5894      * running cutover job, if one exists.
5895      * Note: To have this field populated you need to explicitly request it via
5896      * the "view" parameter of the Get/List request.
5897      * </pre>
5898      *
5899      * <code>
5900      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
5901      * </code>
5902      */
setRecentCutoverJobs( int index, com.google.cloud.vmmigration.v1.CutoverJob value)5903     public Builder setRecentCutoverJobs(
5904         int index, com.google.cloud.vmmigration.v1.CutoverJob value) {
5905       if (recentCutoverJobsBuilder_ == null) {
5906         if (value == null) {
5907           throw new NullPointerException();
5908         }
5909         ensureRecentCutoverJobsIsMutable();
5910         recentCutoverJobs_.set(index, value);
5911         onChanged();
5912       } else {
5913         recentCutoverJobsBuilder_.setMessage(index, value);
5914       }
5915       return this;
5916     }
5917     /**
5918      *
5919      *
5920      * <pre>
5921      * Output only. The recent cutover jobs performed on the migrating VM.
5922      * This field holds the vm's last completed cutover job and the vm's
5923      * running cutover job, if one exists.
5924      * Note: To have this field populated you need to explicitly request it via
5925      * the "view" parameter of the Get/List request.
5926      * </pre>
5927      *
5928      * <code>
5929      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
5930      * </code>
5931      */
setRecentCutoverJobs( int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue)5932     public Builder setRecentCutoverJobs(
5933         int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) {
5934       if (recentCutoverJobsBuilder_ == null) {
5935         ensureRecentCutoverJobsIsMutable();
5936         recentCutoverJobs_.set(index, builderForValue.build());
5937         onChanged();
5938       } else {
5939         recentCutoverJobsBuilder_.setMessage(index, builderForValue.build());
5940       }
5941       return this;
5942     }
5943     /**
5944      *
5945      *
5946      * <pre>
5947      * Output only. The recent cutover jobs performed on the migrating VM.
5948      * This field holds the vm's last completed cutover job and the vm's
5949      * running cutover job, if one exists.
5950      * Note: To have this field populated you need to explicitly request it via
5951      * the "view" parameter of the Get/List request.
5952      * </pre>
5953      *
5954      * <code>
5955      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
5956      * </code>
5957      */
addRecentCutoverJobs(com.google.cloud.vmmigration.v1.CutoverJob value)5958     public Builder addRecentCutoverJobs(com.google.cloud.vmmigration.v1.CutoverJob value) {
5959       if (recentCutoverJobsBuilder_ == null) {
5960         if (value == null) {
5961           throw new NullPointerException();
5962         }
5963         ensureRecentCutoverJobsIsMutable();
5964         recentCutoverJobs_.add(value);
5965         onChanged();
5966       } else {
5967         recentCutoverJobsBuilder_.addMessage(value);
5968       }
5969       return this;
5970     }
5971     /**
5972      *
5973      *
5974      * <pre>
5975      * Output only. The recent cutover jobs performed on the migrating VM.
5976      * This field holds the vm's last completed cutover job and the vm's
5977      * running cutover job, if one exists.
5978      * Note: To have this field populated you need to explicitly request it via
5979      * the "view" parameter of the Get/List request.
5980      * </pre>
5981      *
5982      * <code>
5983      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
5984      * </code>
5985      */
addRecentCutoverJobs( int index, com.google.cloud.vmmigration.v1.CutoverJob value)5986     public Builder addRecentCutoverJobs(
5987         int index, com.google.cloud.vmmigration.v1.CutoverJob value) {
5988       if (recentCutoverJobsBuilder_ == null) {
5989         if (value == null) {
5990           throw new NullPointerException();
5991         }
5992         ensureRecentCutoverJobsIsMutable();
5993         recentCutoverJobs_.add(index, value);
5994         onChanged();
5995       } else {
5996         recentCutoverJobsBuilder_.addMessage(index, value);
5997       }
5998       return this;
5999     }
6000     /**
6001      *
6002      *
6003      * <pre>
6004      * Output only. The recent cutover jobs performed on the migrating VM.
6005      * This field holds the vm's last completed cutover job and the vm's
6006      * running cutover job, if one exists.
6007      * Note: To have this field populated you need to explicitly request it via
6008      * the "view" parameter of the Get/List request.
6009      * </pre>
6010      *
6011      * <code>
6012      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6013      * </code>
6014      */
addRecentCutoverJobs( com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue)6015     public Builder addRecentCutoverJobs(
6016         com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) {
6017       if (recentCutoverJobsBuilder_ == null) {
6018         ensureRecentCutoverJobsIsMutable();
6019         recentCutoverJobs_.add(builderForValue.build());
6020         onChanged();
6021       } else {
6022         recentCutoverJobsBuilder_.addMessage(builderForValue.build());
6023       }
6024       return this;
6025     }
6026     /**
6027      *
6028      *
6029      * <pre>
6030      * Output only. The recent cutover jobs performed on the migrating VM.
6031      * This field holds the vm's last completed cutover job and the vm's
6032      * running cutover job, if one exists.
6033      * Note: To have this field populated you need to explicitly request it via
6034      * the "view" parameter of the Get/List request.
6035      * </pre>
6036      *
6037      * <code>
6038      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6039      * </code>
6040      */
addRecentCutoverJobs( int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue)6041     public Builder addRecentCutoverJobs(
6042         int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) {
6043       if (recentCutoverJobsBuilder_ == null) {
6044         ensureRecentCutoverJobsIsMutable();
6045         recentCutoverJobs_.add(index, builderForValue.build());
6046         onChanged();
6047       } else {
6048         recentCutoverJobsBuilder_.addMessage(index, builderForValue.build());
6049       }
6050       return this;
6051     }
6052     /**
6053      *
6054      *
6055      * <pre>
6056      * Output only. The recent cutover jobs performed on the migrating VM.
6057      * This field holds the vm's last completed cutover job and the vm's
6058      * running cutover job, if one exists.
6059      * Note: To have this field populated you need to explicitly request it via
6060      * the "view" parameter of the Get/List request.
6061      * </pre>
6062      *
6063      * <code>
6064      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6065      * </code>
6066      */
addAllRecentCutoverJobs( java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.CutoverJob> values)6067     public Builder addAllRecentCutoverJobs(
6068         java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.CutoverJob> values) {
6069       if (recentCutoverJobsBuilder_ == null) {
6070         ensureRecentCutoverJobsIsMutable();
6071         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCutoverJobs_);
6072         onChanged();
6073       } else {
6074         recentCutoverJobsBuilder_.addAllMessages(values);
6075       }
6076       return this;
6077     }
6078     /**
6079      *
6080      *
6081      * <pre>
6082      * Output only. The recent cutover jobs performed on the migrating VM.
6083      * This field holds the vm's last completed cutover job and the vm's
6084      * running cutover job, if one exists.
6085      * Note: To have this field populated you need to explicitly request it via
6086      * the "view" parameter of the Get/List request.
6087      * </pre>
6088      *
6089      * <code>
6090      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6091      * </code>
6092      */
clearRecentCutoverJobs()6093     public Builder clearRecentCutoverJobs() {
6094       if (recentCutoverJobsBuilder_ == null) {
6095         recentCutoverJobs_ = java.util.Collections.emptyList();
6096         bitField0_ = (bitField0_ & ~0x00020000);
6097         onChanged();
6098       } else {
6099         recentCutoverJobsBuilder_.clear();
6100       }
6101       return this;
6102     }
6103     /**
6104      *
6105      *
6106      * <pre>
6107      * Output only. The recent cutover jobs performed on the migrating VM.
6108      * This field holds the vm's last completed cutover job and the vm's
6109      * running cutover job, if one exists.
6110      * Note: To have this field populated you need to explicitly request it via
6111      * the "view" parameter of the Get/List request.
6112      * </pre>
6113      *
6114      * <code>
6115      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6116      * </code>
6117      */
removeRecentCutoverJobs(int index)6118     public Builder removeRecentCutoverJobs(int index) {
6119       if (recentCutoverJobsBuilder_ == null) {
6120         ensureRecentCutoverJobsIsMutable();
6121         recentCutoverJobs_.remove(index);
6122         onChanged();
6123       } else {
6124         recentCutoverJobsBuilder_.remove(index);
6125       }
6126       return this;
6127     }
6128     /**
6129      *
6130      *
6131      * <pre>
6132      * Output only. The recent cutover jobs performed on the migrating VM.
6133      * This field holds the vm's last completed cutover job and the vm's
6134      * running cutover job, if one exists.
6135      * Note: To have this field populated you need to explicitly request it via
6136      * the "view" parameter of the Get/List request.
6137      * </pre>
6138      *
6139      * <code>
6140      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6141      * </code>
6142      */
getRecentCutoverJobsBuilder( int index)6143     public com.google.cloud.vmmigration.v1.CutoverJob.Builder getRecentCutoverJobsBuilder(
6144         int index) {
6145       return getRecentCutoverJobsFieldBuilder().getBuilder(index);
6146     }
6147     /**
6148      *
6149      *
6150      * <pre>
6151      * Output only. The recent cutover jobs performed on the migrating VM.
6152      * This field holds the vm's last completed cutover job and the vm's
6153      * running cutover job, if one exists.
6154      * Note: To have this field populated you need to explicitly request it via
6155      * the "view" parameter of the Get/List request.
6156      * </pre>
6157      *
6158      * <code>
6159      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6160      * </code>
6161      */
getRecentCutoverJobsOrBuilder( int index)6162     public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder(
6163         int index) {
6164       if (recentCutoverJobsBuilder_ == null) {
6165         return recentCutoverJobs_.get(index);
6166       } else {
6167         return recentCutoverJobsBuilder_.getMessageOrBuilder(index);
6168       }
6169     }
6170     /**
6171      *
6172      *
6173      * <pre>
6174      * Output only. The recent cutover jobs performed on the migrating VM.
6175      * This field holds the vm's last completed cutover job and the vm's
6176      * running cutover job, if one exists.
6177      * Note: To have this field populated you need to explicitly request it via
6178      * the "view" parameter of the Get/List request.
6179      * </pre>
6180      *
6181      * <code>
6182      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6183      * </code>
6184      */
6185     public java.util.List<? extends com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
getRecentCutoverJobsOrBuilderList()6186         getRecentCutoverJobsOrBuilderList() {
6187       if (recentCutoverJobsBuilder_ != null) {
6188         return recentCutoverJobsBuilder_.getMessageOrBuilderList();
6189       } else {
6190         return java.util.Collections.unmodifiableList(recentCutoverJobs_);
6191       }
6192     }
6193     /**
6194      *
6195      *
6196      * <pre>
6197      * Output only. The recent cutover jobs performed on the migrating VM.
6198      * This field holds the vm's last completed cutover job and the vm's
6199      * running cutover job, if one exists.
6200      * Note: To have this field populated you need to explicitly request it via
6201      * the "view" parameter of the Get/List request.
6202      * </pre>
6203      *
6204      * <code>
6205      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6206      * </code>
6207      */
addRecentCutoverJobsBuilder()6208     public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder() {
6209       return getRecentCutoverJobsFieldBuilder()
6210           .addBuilder(com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance());
6211     }
6212     /**
6213      *
6214      *
6215      * <pre>
6216      * Output only. The recent cutover jobs performed on the migrating VM.
6217      * This field holds the vm's last completed cutover job and the vm's
6218      * running cutover job, if one exists.
6219      * Note: To have this field populated you need to explicitly request it via
6220      * the "view" parameter of the Get/List request.
6221      * </pre>
6222      *
6223      * <code>
6224      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6225      * </code>
6226      */
addRecentCutoverJobsBuilder( int index)6227     public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder(
6228         int index) {
6229       return getRecentCutoverJobsFieldBuilder()
6230           .addBuilder(index, com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance());
6231     }
6232     /**
6233      *
6234      *
6235      * <pre>
6236      * Output only. The recent cutover jobs performed on the migrating VM.
6237      * This field holds the vm's last completed cutover job and the vm's
6238      * running cutover job, if one exists.
6239      * Note: To have this field populated you need to explicitly request it via
6240      * the "view" parameter of the Get/List request.
6241      * </pre>
6242      *
6243      * <code>
6244      * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
6245      * </code>
6246      */
6247     public java.util.List<com.google.cloud.vmmigration.v1.CutoverJob.Builder>
getRecentCutoverJobsBuilderList()6248         getRecentCutoverJobsBuilderList() {
6249       return getRecentCutoverJobsFieldBuilder().getBuilderList();
6250     }
6251 
6252     private com.google.protobuf.RepeatedFieldBuilderV3<
6253             com.google.cloud.vmmigration.v1.CutoverJob,
6254             com.google.cloud.vmmigration.v1.CutoverJob.Builder,
6255             com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
getRecentCutoverJobsFieldBuilder()6256         getRecentCutoverJobsFieldBuilder() {
6257       if (recentCutoverJobsBuilder_ == null) {
6258         recentCutoverJobsBuilder_ =
6259             new com.google.protobuf.RepeatedFieldBuilderV3<
6260                 com.google.cloud.vmmigration.v1.CutoverJob,
6261                 com.google.cloud.vmmigration.v1.CutoverJob.Builder,
6262                 com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>(
6263                 recentCutoverJobs_,
6264                 ((bitField0_ & 0x00020000) != 0),
6265                 getParentForChildren(),
6266                 isClean());
6267         recentCutoverJobs_ = null;
6268       }
6269       return recentCutoverJobsBuilder_;
6270     }
6271 
6272     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)6273     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
6274       return super.setUnknownFields(unknownFields);
6275     }
6276 
6277     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)6278     public final Builder mergeUnknownFields(
6279         final com.google.protobuf.UnknownFieldSet unknownFields) {
6280       return super.mergeUnknownFields(unknownFields);
6281     }
6282 
6283     // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.MigratingVm)
6284   }
6285 
6286   // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.MigratingVm)
6287   private static final com.google.cloud.vmmigration.v1.MigratingVm DEFAULT_INSTANCE;
6288 
6289   static {
6290     DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.MigratingVm();
6291   }
6292 
getDefaultInstance()6293   public static com.google.cloud.vmmigration.v1.MigratingVm getDefaultInstance() {
6294     return DEFAULT_INSTANCE;
6295   }
6296 
6297   private static final com.google.protobuf.Parser<MigratingVm> PARSER =
6298       new com.google.protobuf.AbstractParser<MigratingVm>() {
6299         @java.lang.Override
6300         public MigratingVm parsePartialFrom(
6301             com.google.protobuf.CodedInputStream input,
6302             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6303             throws com.google.protobuf.InvalidProtocolBufferException {
6304           Builder builder = newBuilder();
6305           try {
6306             builder.mergeFrom(input, extensionRegistry);
6307           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6308             throw e.setUnfinishedMessage(builder.buildPartial());
6309           } catch (com.google.protobuf.UninitializedMessageException e) {
6310             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
6311           } catch (java.io.IOException e) {
6312             throw new com.google.protobuf.InvalidProtocolBufferException(e)
6313                 .setUnfinishedMessage(builder.buildPartial());
6314           }
6315           return builder.buildPartial();
6316         }
6317       };
6318 
parser()6319   public static com.google.protobuf.Parser<MigratingVm> parser() {
6320     return PARSER;
6321   }
6322 
6323   @java.lang.Override
getParserForType()6324   public com.google.protobuf.Parser<MigratingVm> getParserForType() {
6325     return PARSER;
6326   }
6327 
6328   @java.lang.Override
getDefaultInstanceForType()6329   public com.google.cloud.vmmigration.v1.MigratingVm getDefaultInstanceForType() {
6330     return DEFAULT_INSTANCE;
6331   }
6332 }
6333