• 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  * Response message for 'ListGroups' request.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.vmmigration.v1.ListGroupsResponse}
29  */
30 public final class ListGroupsResponse extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListGroupsResponse)
33     ListGroupsResponseOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ListGroupsResponse.newBuilder() to construct.
ListGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ListGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ListGroupsResponse()40   private ListGroupsResponse() {
41     groups_ = java.util.Collections.emptyList();
42     nextPageToken_ = "";
43     unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new ListGroupsResponse();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.vmmigration.v1.VmMigrationProto
59         .internal_static_google_cloud_vmmigration_v1_ListGroupsResponse_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.vmmigration.v1.VmMigrationProto
66         .internal_static_google_cloud_vmmigration_v1_ListGroupsResponse_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.vmmigration.v1.ListGroupsResponse.class,
69             com.google.cloud.vmmigration.v1.ListGroupsResponse.Builder.class);
70   }
71 
72   public static final int GROUPS_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private java.util.List<com.google.cloud.vmmigration.v1.Group> groups_;
76   /**
77    *
78    *
79    * <pre>
80    * Output only. The list of groups response.
81    * </pre>
82    *
83    * <code>
84    * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
85    * </code>
86    */
87   @java.lang.Override
getGroupsList()88   public java.util.List<com.google.cloud.vmmigration.v1.Group> getGroupsList() {
89     return groups_;
90   }
91   /**
92    *
93    *
94    * <pre>
95    * Output only. The list of groups response.
96    * </pre>
97    *
98    * <code>
99    * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
100    * </code>
101    */
102   @java.lang.Override
103   public java.util.List<? extends com.google.cloud.vmmigration.v1.GroupOrBuilder>
getGroupsOrBuilderList()104       getGroupsOrBuilderList() {
105     return groups_;
106   }
107   /**
108    *
109    *
110    * <pre>
111    * Output only. The list of groups response.
112    * </pre>
113    *
114    * <code>
115    * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
116    * </code>
117    */
118   @java.lang.Override
getGroupsCount()119   public int getGroupsCount() {
120     return groups_.size();
121   }
122   /**
123    *
124    *
125    * <pre>
126    * Output only. The list of groups response.
127    * </pre>
128    *
129    * <code>
130    * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
131    * </code>
132    */
133   @java.lang.Override
getGroups(int index)134   public com.google.cloud.vmmigration.v1.Group getGroups(int index) {
135     return groups_.get(index);
136   }
137   /**
138    *
139    *
140    * <pre>
141    * Output only. The list of groups response.
142    * </pre>
143    *
144    * <code>
145    * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
146    * </code>
147    */
148   @java.lang.Override
getGroupsOrBuilder(int index)149   public com.google.cloud.vmmigration.v1.GroupOrBuilder getGroupsOrBuilder(int index) {
150     return groups_.get(index);
151   }
152 
153   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
154 
155   @SuppressWarnings("serial")
156   private volatile java.lang.Object nextPageToken_ = "";
157   /**
158    *
159    *
160    * <pre>
161    * Output only. A token, which can be sent as `page_token` to retrieve the
162    * next page. If this field is omitted, there are no subsequent pages.
163    * </pre>
164    *
165    * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
166    *
167    * @return The nextPageToken.
168    */
169   @java.lang.Override
getNextPageToken()170   public java.lang.String getNextPageToken() {
171     java.lang.Object ref = nextPageToken_;
172     if (ref instanceof java.lang.String) {
173       return (java.lang.String) ref;
174     } else {
175       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
176       java.lang.String s = bs.toStringUtf8();
177       nextPageToken_ = s;
178       return s;
179     }
180   }
181   /**
182    *
183    *
184    * <pre>
185    * Output only. A token, which can be sent as `page_token` to retrieve the
186    * next page. If this field is omitted, there are no subsequent pages.
187    * </pre>
188    *
189    * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
190    *
191    * @return The bytes for nextPageToken.
192    */
193   @java.lang.Override
getNextPageTokenBytes()194   public com.google.protobuf.ByteString getNextPageTokenBytes() {
195     java.lang.Object ref = nextPageToken_;
196     if (ref instanceof java.lang.String) {
197       com.google.protobuf.ByteString b =
198           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
199       nextPageToken_ = b;
200       return b;
201     } else {
202       return (com.google.protobuf.ByteString) ref;
203     }
204   }
205 
206   public static final int UNREACHABLE_FIELD_NUMBER = 3;
207 
208   @SuppressWarnings("serial")
209   private com.google.protobuf.LazyStringList unreachable_;
210   /**
211    *
212    *
213    * <pre>
214    * Output only. Locations that could not be reached.
215    * </pre>
216    *
217    * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
218    *
219    * @return A list containing the unreachable.
220    */
getUnreachableList()221   public com.google.protobuf.ProtocolStringList getUnreachableList() {
222     return unreachable_;
223   }
224   /**
225    *
226    *
227    * <pre>
228    * Output only. Locations that could not be reached.
229    * </pre>
230    *
231    * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
232    *
233    * @return The count of unreachable.
234    */
getUnreachableCount()235   public int getUnreachableCount() {
236     return unreachable_.size();
237   }
238   /**
239    *
240    *
241    * <pre>
242    * Output only. Locations that could not be reached.
243    * </pre>
244    *
245    * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
246    *
247    * @param index The index of the element to return.
248    * @return The unreachable at the given index.
249    */
getUnreachable(int index)250   public java.lang.String getUnreachable(int index) {
251     return unreachable_.get(index);
252   }
253   /**
254    *
255    *
256    * <pre>
257    * Output only. Locations that could not be reached.
258    * </pre>
259    *
260    * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
261    *
262    * @param index The index of the value to return.
263    * @return The bytes of the unreachable at the given index.
264    */
getUnreachableBytes(int index)265   public com.google.protobuf.ByteString getUnreachableBytes(int index) {
266     return unreachable_.getByteString(index);
267   }
268 
269   private byte memoizedIsInitialized = -1;
270 
271   @java.lang.Override
isInitialized()272   public final boolean isInitialized() {
273     byte isInitialized = memoizedIsInitialized;
274     if (isInitialized == 1) return true;
275     if (isInitialized == 0) return false;
276 
277     memoizedIsInitialized = 1;
278     return true;
279   }
280 
281   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)282   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
283     for (int i = 0; i < groups_.size(); i++) {
284       output.writeMessage(1, groups_.get(i));
285     }
286     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
287       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
288     }
289     for (int i = 0; i < unreachable_.size(); i++) {
290       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i));
291     }
292     getUnknownFields().writeTo(output);
293   }
294 
295   @java.lang.Override
getSerializedSize()296   public int getSerializedSize() {
297     int size = memoizedSize;
298     if (size != -1) return size;
299 
300     size = 0;
301     for (int i = 0; i < groups_.size(); i++) {
302       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groups_.get(i));
303     }
304     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
305       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
306     }
307     {
308       int dataSize = 0;
309       for (int i = 0; i < unreachable_.size(); i++) {
310         dataSize += computeStringSizeNoTag(unreachable_.getRaw(i));
311       }
312       size += dataSize;
313       size += 1 * getUnreachableList().size();
314     }
315     size += getUnknownFields().getSerializedSize();
316     memoizedSize = size;
317     return size;
318   }
319 
320   @java.lang.Override
equals(final java.lang.Object obj)321   public boolean equals(final java.lang.Object obj) {
322     if (obj == this) {
323       return true;
324     }
325     if (!(obj instanceof com.google.cloud.vmmigration.v1.ListGroupsResponse)) {
326       return super.equals(obj);
327     }
328     com.google.cloud.vmmigration.v1.ListGroupsResponse other =
329         (com.google.cloud.vmmigration.v1.ListGroupsResponse) obj;
330 
331     if (!getGroupsList().equals(other.getGroupsList())) return false;
332     if (!getNextPageToken().equals(other.getNextPageToken())) return false;
333     if (!getUnreachableList().equals(other.getUnreachableList())) return false;
334     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
335     return true;
336   }
337 
338   @java.lang.Override
hashCode()339   public int hashCode() {
340     if (memoizedHashCode != 0) {
341       return memoizedHashCode;
342     }
343     int hash = 41;
344     hash = (19 * hash) + getDescriptor().hashCode();
345     if (getGroupsCount() > 0) {
346       hash = (37 * hash) + GROUPS_FIELD_NUMBER;
347       hash = (53 * hash) + getGroupsList().hashCode();
348     }
349     hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
350     hash = (53 * hash) + getNextPageToken().hashCode();
351     if (getUnreachableCount() > 0) {
352       hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER;
353       hash = (53 * hash) + getUnreachableList().hashCode();
354     }
355     hash = (29 * hash) + getUnknownFields().hashCode();
356     memoizedHashCode = hash;
357     return hash;
358   }
359 
parseFrom( java.nio.ByteBuffer data)360   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
361       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
362     return PARSER.parseFrom(data);
363   }
364 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)365   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
366       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
367       throws com.google.protobuf.InvalidProtocolBufferException {
368     return PARSER.parseFrom(data, extensionRegistry);
369   }
370 
parseFrom( com.google.protobuf.ByteString data)371   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
372       com.google.protobuf.ByteString data)
373       throws com.google.protobuf.InvalidProtocolBufferException {
374     return PARSER.parseFrom(data);
375   }
376 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)377   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
378       com.google.protobuf.ByteString data,
379       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
380       throws com.google.protobuf.InvalidProtocolBufferException {
381     return PARSER.parseFrom(data, extensionRegistry);
382   }
383 
parseFrom(byte[] data)384   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(byte[] data)
385       throws com.google.protobuf.InvalidProtocolBufferException {
386     return PARSER.parseFrom(data);
387   }
388 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)389   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
390       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
391       throws com.google.protobuf.InvalidProtocolBufferException {
392     return PARSER.parseFrom(data, extensionRegistry);
393   }
394 
parseFrom( java.io.InputStream input)395   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
396       java.io.InputStream input) throws java.io.IOException {
397     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
398   }
399 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)400   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
401       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
402       throws java.io.IOException {
403     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
404         PARSER, input, extensionRegistry);
405   }
406 
parseDelimitedFrom( java.io.InputStream input)407   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseDelimitedFrom(
408       java.io.InputStream input) throws java.io.IOException {
409     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
410   }
411 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)412   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseDelimitedFrom(
413       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
414       throws java.io.IOException {
415     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
416         PARSER, input, extensionRegistry);
417   }
418 
parseFrom( com.google.protobuf.CodedInputStream input)419   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
420       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
421     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
422   }
423 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)424   public static com.google.cloud.vmmigration.v1.ListGroupsResponse parseFrom(
425       com.google.protobuf.CodedInputStream input,
426       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
427       throws java.io.IOException {
428     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
429         PARSER, input, extensionRegistry);
430   }
431 
432   @java.lang.Override
newBuilderForType()433   public Builder newBuilderForType() {
434     return newBuilder();
435   }
436 
newBuilder()437   public static Builder newBuilder() {
438     return DEFAULT_INSTANCE.toBuilder();
439   }
440 
newBuilder(com.google.cloud.vmmigration.v1.ListGroupsResponse prototype)441   public static Builder newBuilder(com.google.cloud.vmmigration.v1.ListGroupsResponse prototype) {
442     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
443   }
444 
445   @java.lang.Override
toBuilder()446   public Builder toBuilder() {
447     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
448   }
449 
450   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)451   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
452     Builder builder = new Builder(parent);
453     return builder;
454   }
455   /**
456    *
457    *
458    * <pre>
459    * Response message for 'ListGroups' request.
460    * </pre>
461    *
462    * Protobuf type {@code google.cloud.vmmigration.v1.ListGroupsResponse}
463    */
464   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
465       implements
466       // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListGroupsResponse)
467       com.google.cloud.vmmigration.v1.ListGroupsResponseOrBuilder {
getDescriptor()468     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
469       return com.google.cloud.vmmigration.v1.VmMigrationProto
470           .internal_static_google_cloud_vmmigration_v1_ListGroupsResponse_descriptor;
471     }
472 
473     @java.lang.Override
474     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()475         internalGetFieldAccessorTable() {
476       return com.google.cloud.vmmigration.v1.VmMigrationProto
477           .internal_static_google_cloud_vmmigration_v1_ListGroupsResponse_fieldAccessorTable
478           .ensureFieldAccessorsInitialized(
479               com.google.cloud.vmmigration.v1.ListGroupsResponse.class,
480               com.google.cloud.vmmigration.v1.ListGroupsResponse.Builder.class);
481     }
482 
483     // Construct using com.google.cloud.vmmigration.v1.ListGroupsResponse.newBuilder()
Builder()484     private Builder() {}
485 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)486     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
487       super(parent);
488     }
489 
490     @java.lang.Override
clear()491     public Builder clear() {
492       super.clear();
493       bitField0_ = 0;
494       if (groupsBuilder_ == null) {
495         groups_ = java.util.Collections.emptyList();
496       } else {
497         groups_ = null;
498         groupsBuilder_.clear();
499       }
500       bitField0_ = (bitField0_ & ~0x00000001);
501       nextPageToken_ = "";
502       unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
503       bitField0_ = (bitField0_ & ~0x00000004);
504       return this;
505     }
506 
507     @java.lang.Override
getDescriptorForType()508     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
509       return com.google.cloud.vmmigration.v1.VmMigrationProto
510           .internal_static_google_cloud_vmmigration_v1_ListGroupsResponse_descriptor;
511     }
512 
513     @java.lang.Override
getDefaultInstanceForType()514     public com.google.cloud.vmmigration.v1.ListGroupsResponse getDefaultInstanceForType() {
515       return com.google.cloud.vmmigration.v1.ListGroupsResponse.getDefaultInstance();
516     }
517 
518     @java.lang.Override
build()519     public com.google.cloud.vmmigration.v1.ListGroupsResponse build() {
520       com.google.cloud.vmmigration.v1.ListGroupsResponse result = buildPartial();
521       if (!result.isInitialized()) {
522         throw newUninitializedMessageException(result);
523       }
524       return result;
525     }
526 
527     @java.lang.Override
buildPartial()528     public com.google.cloud.vmmigration.v1.ListGroupsResponse buildPartial() {
529       com.google.cloud.vmmigration.v1.ListGroupsResponse result =
530           new com.google.cloud.vmmigration.v1.ListGroupsResponse(this);
531       buildPartialRepeatedFields(result);
532       if (bitField0_ != 0) {
533         buildPartial0(result);
534       }
535       onBuilt();
536       return result;
537     }
538 
buildPartialRepeatedFields( com.google.cloud.vmmigration.v1.ListGroupsResponse result)539     private void buildPartialRepeatedFields(
540         com.google.cloud.vmmigration.v1.ListGroupsResponse result) {
541       if (groupsBuilder_ == null) {
542         if (((bitField0_ & 0x00000001) != 0)) {
543           groups_ = java.util.Collections.unmodifiableList(groups_);
544           bitField0_ = (bitField0_ & ~0x00000001);
545         }
546         result.groups_ = groups_;
547       } else {
548         result.groups_ = groupsBuilder_.build();
549       }
550       if (((bitField0_ & 0x00000004) != 0)) {
551         unreachable_ = unreachable_.getUnmodifiableView();
552         bitField0_ = (bitField0_ & ~0x00000004);
553       }
554       result.unreachable_ = unreachable_;
555     }
556 
buildPartial0(com.google.cloud.vmmigration.v1.ListGroupsResponse result)557     private void buildPartial0(com.google.cloud.vmmigration.v1.ListGroupsResponse result) {
558       int from_bitField0_ = bitField0_;
559       if (((from_bitField0_ & 0x00000002) != 0)) {
560         result.nextPageToken_ = nextPageToken_;
561       }
562     }
563 
564     @java.lang.Override
clone()565     public Builder clone() {
566       return super.clone();
567     }
568 
569     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)570     public Builder setField(
571         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
572       return super.setField(field, value);
573     }
574 
575     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)576     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
577       return super.clearField(field);
578     }
579 
580     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)581     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
582       return super.clearOneof(oneof);
583     }
584 
585     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)586     public Builder setRepeatedField(
587         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
588       return super.setRepeatedField(field, index, value);
589     }
590 
591     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)592     public Builder addRepeatedField(
593         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
594       return super.addRepeatedField(field, value);
595     }
596 
597     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)598     public Builder mergeFrom(com.google.protobuf.Message other) {
599       if (other instanceof com.google.cloud.vmmigration.v1.ListGroupsResponse) {
600         return mergeFrom((com.google.cloud.vmmigration.v1.ListGroupsResponse) other);
601       } else {
602         super.mergeFrom(other);
603         return this;
604       }
605     }
606 
mergeFrom(com.google.cloud.vmmigration.v1.ListGroupsResponse other)607     public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListGroupsResponse other) {
608       if (other == com.google.cloud.vmmigration.v1.ListGroupsResponse.getDefaultInstance())
609         return this;
610       if (groupsBuilder_ == null) {
611         if (!other.groups_.isEmpty()) {
612           if (groups_.isEmpty()) {
613             groups_ = other.groups_;
614             bitField0_ = (bitField0_ & ~0x00000001);
615           } else {
616             ensureGroupsIsMutable();
617             groups_.addAll(other.groups_);
618           }
619           onChanged();
620         }
621       } else {
622         if (!other.groups_.isEmpty()) {
623           if (groupsBuilder_.isEmpty()) {
624             groupsBuilder_.dispose();
625             groupsBuilder_ = null;
626             groups_ = other.groups_;
627             bitField0_ = (bitField0_ & ~0x00000001);
628             groupsBuilder_ =
629                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
630                     ? getGroupsFieldBuilder()
631                     : null;
632           } else {
633             groupsBuilder_.addAllMessages(other.groups_);
634           }
635         }
636       }
637       if (!other.getNextPageToken().isEmpty()) {
638         nextPageToken_ = other.nextPageToken_;
639         bitField0_ |= 0x00000002;
640         onChanged();
641       }
642       if (!other.unreachable_.isEmpty()) {
643         if (unreachable_.isEmpty()) {
644           unreachable_ = other.unreachable_;
645           bitField0_ = (bitField0_ & ~0x00000004);
646         } else {
647           ensureUnreachableIsMutable();
648           unreachable_.addAll(other.unreachable_);
649         }
650         onChanged();
651       }
652       this.mergeUnknownFields(other.getUnknownFields());
653       onChanged();
654       return this;
655     }
656 
657     @java.lang.Override
isInitialized()658     public final boolean isInitialized() {
659       return true;
660     }
661 
662     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)663     public Builder mergeFrom(
664         com.google.protobuf.CodedInputStream input,
665         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
666         throws java.io.IOException {
667       if (extensionRegistry == null) {
668         throw new java.lang.NullPointerException();
669       }
670       try {
671         boolean done = false;
672         while (!done) {
673           int tag = input.readTag();
674           switch (tag) {
675             case 0:
676               done = true;
677               break;
678             case 10:
679               {
680                 com.google.cloud.vmmigration.v1.Group m =
681                     input.readMessage(
682                         com.google.cloud.vmmigration.v1.Group.parser(), extensionRegistry);
683                 if (groupsBuilder_ == null) {
684                   ensureGroupsIsMutable();
685                   groups_.add(m);
686                 } else {
687                   groupsBuilder_.addMessage(m);
688                 }
689                 break;
690               } // case 10
691             case 18:
692               {
693                 nextPageToken_ = input.readStringRequireUtf8();
694                 bitField0_ |= 0x00000002;
695                 break;
696               } // case 18
697             case 26:
698               {
699                 java.lang.String s = input.readStringRequireUtf8();
700                 ensureUnreachableIsMutable();
701                 unreachable_.add(s);
702                 break;
703               } // case 26
704             default:
705               {
706                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
707                   done = true; // was an endgroup tag
708                 }
709                 break;
710               } // default:
711           } // switch (tag)
712         } // while (!done)
713       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
714         throw e.unwrapIOException();
715       } finally {
716         onChanged();
717       } // finally
718       return this;
719     }
720 
721     private int bitField0_;
722 
723     private java.util.List<com.google.cloud.vmmigration.v1.Group> groups_ =
724         java.util.Collections.emptyList();
725 
ensureGroupsIsMutable()726     private void ensureGroupsIsMutable() {
727       if (!((bitField0_ & 0x00000001) != 0)) {
728         groups_ = new java.util.ArrayList<com.google.cloud.vmmigration.v1.Group>(groups_);
729         bitField0_ |= 0x00000001;
730       }
731     }
732 
733     private com.google.protobuf.RepeatedFieldBuilderV3<
734             com.google.cloud.vmmigration.v1.Group,
735             com.google.cloud.vmmigration.v1.Group.Builder,
736             com.google.cloud.vmmigration.v1.GroupOrBuilder>
737         groupsBuilder_;
738 
739     /**
740      *
741      *
742      * <pre>
743      * Output only. The list of groups response.
744      * </pre>
745      *
746      * <code>
747      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
748      * </code>
749      */
getGroupsList()750     public java.util.List<com.google.cloud.vmmigration.v1.Group> getGroupsList() {
751       if (groupsBuilder_ == null) {
752         return java.util.Collections.unmodifiableList(groups_);
753       } else {
754         return groupsBuilder_.getMessageList();
755       }
756     }
757     /**
758      *
759      *
760      * <pre>
761      * Output only. The list of groups response.
762      * </pre>
763      *
764      * <code>
765      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
766      * </code>
767      */
getGroupsCount()768     public int getGroupsCount() {
769       if (groupsBuilder_ == null) {
770         return groups_.size();
771       } else {
772         return groupsBuilder_.getCount();
773       }
774     }
775     /**
776      *
777      *
778      * <pre>
779      * Output only. The list of groups response.
780      * </pre>
781      *
782      * <code>
783      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
784      * </code>
785      */
getGroups(int index)786     public com.google.cloud.vmmigration.v1.Group getGroups(int index) {
787       if (groupsBuilder_ == null) {
788         return groups_.get(index);
789       } else {
790         return groupsBuilder_.getMessage(index);
791       }
792     }
793     /**
794      *
795      *
796      * <pre>
797      * Output only. The list of groups response.
798      * </pre>
799      *
800      * <code>
801      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
802      * </code>
803      */
setGroups(int index, com.google.cloud.vmmigration.v1.Group value)804     public Builder setGroups(int index, com.google.cloud.vmmigration.v1.Group value) {
805       if (groupsBuilder_ == null) {
806         if (value == null) {
807           throw new NullPointerException();
808         }
809         ensureGroupsIsMutable();
810         groups_.set(index, value);
811         onChanged();
812       } else {
813         groupsBuilder_.setMessage(index, value);
814       }
815       return this;
816     }
817     /**
818      *
819      *
820      * <pre>
821      * Output only. The list of groups response.
822      * </pre>
823      *
824      * <code>
825      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
826      * </code>
827      */
setGroups( int index, com.google.cloud.vmmigration.v1.Group.Builder builderForValue)828     public Builder setGroups(
829         int index, com.google.cloud.vmmigration.v1.Group.Builder builderForValue) {
830       if (groupsBuilder_ == null) {
831         ensureGroupsIsMutable();
832         groups_.set(index, builderForValue.build());
833         onChanged();
834       } else {
835         groupsBuilder_.setMessage(index, builderForValue.build());
836       }
837       return this;
838     }
839     /**
840      *
841      *
842      * <pre>
843      * Output only. The list of groups response.
844      * </pre>
845      *
846      * <code>
847      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
848      * </code>
849      */
addGroups(com.google.cloud.vmmigration.v1.Group value)850     public Builder addGroups(com.google.cloud.vmmigration.v1.Group value) {
851       if (groupsBuilder_ == null) {
852         if (value == null) {
853           throw new NullPointerException();
854         }
855         ensureGroupsIsMutable();
856         groups_.add(value);
857         onChanged();
858       } else {
859         groupsBuilder_.addMessage(value);
860       }
861       return this;
862     }
863     /**
864      *
865      *
866      * <pre>
867      * Output only. The list of groups response.
868      * </pre>
869      *
870      * <code>
871      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
872      * </code>
873      */
addGroups(int index, com.google.cloud.vmmigration.v1.Group value)874     public Builder addGroups(int index, com.google.cloud.vmmigration.v1.Group value) {
875       if (groupsBuilder_ == null) {
876         if (value == null) {
877           throw new NullPointerException();
878         }
879         ensureGroupsIsMutable();
880         groups_.add(index, value);
881         onChanged();
882       } else {
883         groupsBuilder_.addMessage(index, value);
884       }
885       return this;
886     }
887     /**
888      *
889      *
890      * <pre>
891      * Output only. The list of groups response.
892      * </pre>
893      *
894      * <code>
895      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
896      * </code>
897      */
addGroups(com.google.cloud.vmmigration.v1.Group.Builder builderForValue)898     public Builder addGroups(com.google.cloud.vmmigration.v1.Group.Builder builderForValue) {
899       if (groupsBuilder_ == null) {
900         ensureGroupsIsMutable();
901         groups_.add(builderForValue.build());
902         onChanged();
903       } else {
904         groupsBuilder_.addMessage(builderForValue.build());
905       }
906       return this;
907     }
908     /**
909      *
910      *
911      * <pre>
912      * Output only. The list of groups response.
913      * </pre>
914      *
915      * <code>
916      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
917      * </code>
918      */
addGroups( int index, com.google.cloud.vmmigration.v1.Group.Builder builderForValue)919     public Builder addGroups(
920         int index, com.google.cloud.vmmigration.v1.Group.Builder builderForValue) {
921       if (groupsBuilder_ == null) {
922         ensureGroupsIsMutable();
923         groups_.add(index, builderForValue.build());
924         onChanged();
925       } else {
926         groupsBuilder_.addMessage(index, builderForValue.build());
927       }
928       return this;
929     }
930     /**
931      *
932      *
933      * <pre>
934      * Output only. The list of groups response.
935      * </pre>
936      *
937      * <code>
938      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
939      * </code>
940      */
addAllGroups( java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.Group> values)941     public Builder addAllGroups(
942         java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.Group> values) {
943       if (groupsBuilder_ == null) {
944         ensureGroupsIsMutable();
945         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groups_);
946         onChanged();
947       } else {
948         groupsBuilder_.addAllMessages(values);
949       }
950       return this;
951     }
952     /**
953      *
954      *
955      * <pre>
956      * Output only. The list of groups response.
957      * </pre>
958      *
959      * <code>
960      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
961      * </code>
962      */
clearGroups()963     public Builder clearGroups() {
964       if (groupsBuilder_ == null) {
965         groups_ = java.util.Collections.emptyList();
966         bitField0_ = (bitField0_ & ~0x00000001);
967         onChanged();
968       } else {
969         groupsBuilder_.clear();
970       }
971       return this;
972     }
973     /**
974      *
975      *
976      * <pre>
977      * Output only. The list of groups response.
978      * </pre>
979      *
980      * <code>
981      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
982      * </code>
983      */
removeGroups(int index)984     public Builder removeGroups(int index) {
985       if (groupsBuilder_ == null) {
986         ensureGroupsIsMutable();
987         groups_.remove(index);
988         onChanged();
989       } else {
990         groupsBuilder_.remove(index);
991       }
992       return this;
993     }
994     /**
995      *
996      *
997      * <pre>
998      * Output only. The list of groups response.
999      * </pre>
1000      *
1001      * <code>
1002      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
1003      * </code>
1004      */
getGroupsBuilder(int index)1005     public com.google.cloud.vmmigration.v1.Group.Builder getGroupsBuilder(int index) {
1006       return getGroupsFieldBuilder().getBuilder(index);
1007     }
1008     /**
1009      *
1010      *
1011      * <pre>
1012      * Output only. The list of groups response.
1013      * </pre>
1014      *
1015      * <code>
1016      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
1017      * </code>
1018      */
getGroupsOrBuilder(int index)1019     public com.google.cloud.vmmigration.v1.GroupOrBuilder getGroupsOrBuilder(int index) {
1020       if (groupsBuilder_ == null) {
1021         return groups_.get(index);
1022       } else {
1023         return groupsBuilder_.getMessageOrBuilder(index);
1024       }
1025     }
1026     /**
1027      *
1028      *
1029      * <pre>
1030      * Output only. The list of groups response.
1031      * </pre>
1032      *
1033      * <code>
1034      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
1035      * </code>
1036      */
1037     public java.util.List<? extends com.google.cloud.vmmigration.v1.GroupOrBuilder>
getGroupsOrBuilderList()1038         getGroupsOrBuilderList() {
1039       if (groupsBuilder_ != null) {
1040         return groupsBuilder_.getMessageOrBuilderList();
1041       } else {
1042         return java.util.Collections.unmodifiableList(groups_);
1043       }
1044     }
1045     /**
1046      *
1047      *
1048      * <pre>
1049      * Output only. The list of groups response.
1050      * </pre>
1051      *
1052      * <code>
1053      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
1054      * </code>
1055      */
addGroupsBuilder()1056     public com.google.cloud.vmmigration.v1.Group.Builder addGroupsBuilder() {
1057       return getGroupsFieldBuilder()
1058           .addBuilder(com.google.cloud.vmmigration.v1.Group.getDefaultInstance());
1059     }
1060     /**
1061      *
1062      *
1063      * <pre>
1064      * Output only. The list of groups response.
1065      * </pre>
1066      *
1067      * <code>
1068      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
1069      * </code>
1070      */
addGroupsBuilder(int index)1071     public com.google.cloud.vmmigration.v1.Group.Builder addGroupsBuilder(int index) {
1072       return getGroupsFieldBuilder()
1073           .addBuilder(index, com.google.cloud.vmmigration.v1.Group.getDefaultInstance());
1074     }
1075     /**
1076      *
1077      *
1078      * <pre>
1079      * Output only. The list of groups response.
1080      * </pre>
1081      *
1082      * <code>
1083      * repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
1084      * </code>
1085      */
getGroupsBuilderList()1086     public java.util.List<com.google.cloud.vmmigration.v1.Group.Builder> getGroupsBuilderList() {
1087       return getGroupsFieldBuilder().getBuilderList();
1088     }
1089 
1090     private com.google.protobuf.RepeatedFieldBuilderV3<
1091             com.google.cloud.vmmigration.v1.Group,
1092             com.google.cloud.vmmigration.v1.Group.Builder,
1093             com.google.cloud.vmmigration.v1.GroupOrBuilder>
getGroupsFieldBuilder()1094         getGroupsFieldBuilder() {
1095       if (groupsBuilder_ == null) {
1096         groupsBuilder_ =
1097             new com.google.protobuf.RepeatedFieldBuilderV3<
1098                 com.google.cloud.vmmigration.v1.Group,
1099                 com.google.cloud.vmmigration.v1.Group.Builder,
1100                 com.google.cloud.vmmigration.v1.GroupOrBuilder>(
1101                 groups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
1102         groups_ = null;
1103       }
1104       return groupsBuilder_;
1105     }
1106 
1107     private java.lang.Object nextPageToken_ = "";
1108     /**
1109      *
1110      *
1111      * <pre>
1112      * Output only. A token, which can be sent as `page_token` to retrieve the
1113      * next page. If this field is omitted, there are no subsequent pages.
1114      * </pre>
1115      *
1116      * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1117      *
1118      * @return The nextPageToken.
1119      */
getNextPageToken()1120     public java.lang.String getNextPageToken() {
1121       java.lang.Object ref = nextPageToken_;
1122       if (!(ref instanceof java.lang.String)) {
1123         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1124         java.lang.String s = bs.toStringUtf8();
1125         nextPageToken_ = s;
1126         return s;
1127       } else {
1128         return (java.lang.String) ref;
1129       }
1130     }
1131     /**
1132      *
1133      *
1134      * <pre>
1135      * Output only. A token, which can be sent as `page_token` to retrieve the
1136      * next page. If this field is omitted, there are no subsequent pages.
1137      * </pre>
1138      *
1139      * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1140      *
1141      * @return The bytes for nextPageToken.
1142      */
getNextPageTokenBytes()1143     public com.google.protobuf.ByteString getNextPageTokenBytes() {
1144       java.lang.Object ref = nextPageToken_;
1145       if (ref instanceof String) {
1146         com.google.protobuf.ByteString b =
1147             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1148         nextPageToken_ = b;
1149         return b;
1150       } else {
1151         return (com.google.protobuf.ByteString) ref;
1152       }
1153     }
1154     /**
1155      *
1156      *
1157      * <pre>
1158      * Output only. A token, which can be sent as `page_token` to retrieve the
1159      * next page. If this field is omitted, there are no subsequent pages.
1160      * </pre>
1161      *
1162      * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1163      *
1164      * @param value The nextPageToken to set.
1165      * @return This builder for chaining.
1166      */
setNextPageToken(java.lang.String value)1167     public Builder setNextPageToken(java.lang.String value) {
1168       if (value == null) {
1169         throw new NullPointerException();
1170       }
1171       nextPageToken_ = value;
1172       bitField0_ |= 0x00000002;
1173       onChanged();
1174       return this;
1175     }
1176     /**
1177      *
1178      *
1179      * <pre>
1180      * Output only. A token, which can be sent as `page_token` to retrieve the
1181      * next page. If this field is omitted, there are no subsequent pages.
1182      * </pre>
1183      *
1184      * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1185      *
1186      * @return This builder for chaining.
1187      */
clearNextPageToken()1188     public Builder clearNextPageToken() {
1189       nextPageToken_ = getDefaultInstance().getNextPageToken();
1190       bitField0_ = (bitField0_ & ~0x00000002);
1191       onChanged();
1192       return this;
1193     }
1194     /**
1195      *
1196      *
1197      * <pre>
1198      * Output only. A token, which can be sent as `page_token` to retrieve the
1199      * next page. If this field is omitted, there are no subsequent pages.
1200      * </pre>
1201      *
1202      * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1203      *
1204      * @param value The bytes for nextPageToken to set.
1205      * @return This builder for chaining.
1206      */
setNextPageTokenBytes(com.google.protobuf.ByteString value)1207     public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
1208       if (value == null) {
1209         throw new NullPointerException();
1210       }
1211       checkByteStringIsUtf8(value);
1212       nextPageToken_ = value;
1213       bitField0_ |= 0x00000002;
1214       onChanged();
1215       return this;
1216     }
1217 
1218     private com.google.protobuf.LazyStringList unreachable_ =
1219         com.google.protobuf.LazyStringArrayList.EMPTY;
1220 
ensureUnreachableIsMutable()1221     private void ensureUnreachableIsMutable() {
1222       if (!((bitField0_ & 0x00000004) != 0)) {
1223         unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_);
1224         bitField0_ |= 0x00000004;
1225       }
1226     }
1227     /**
1228      *
1229      *
1230      * <pre>
1231      * Output only. Locations that could not be reached.
1232      * </pre>
1233      *
1234      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1235      *
1236      * @return A list containing the unreachable.
1237      */
getUnreachableList()1238     public com.google.protobuf.ProtocolStringList getUnreachableList() {
1239       return unreachable_.getUnmodifiableView();
1240     }
1241     /**
1242      *
1243      *
1244      * <pre>
1245      * Output only. Locations that could not be reached.
1246      * </pre>
1247      *
1248      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1249      *
1250      * @return The count of unreachable.
1251      */
getUnreachableCount()1252     public int getUnreachableCount() {
1253       return unreachable_.size();
1254     }
1255     /**
1256      *
1257      *
1258      * <pre>
1259      * Output only. Locations that could not be reached.
1260      * </pre>
1261      *
1262      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1263      *
1264      * @param index The index of the element to return.
1265      * @return The unreachable at the given index.
1266      */
getUnreachable(int index)1267     public java.lang.String getUnreachable(int index) {
1268       return unreachable_.get(index);
1269     }
1270     /**
1271      *
1272      *
1273      * <pre>
1274      * Output only. Locations that could not be reached.
1275      * </pre>
1276      *
1277      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1278      *
1279      * @param index The index of the value to return.
1280      * @return The bytes of the unreachable at the given index.
1281      */
getUnreachableBytes(int index)1282     public com.google.protobuf.ByteString getUnreachableBytes(int index) {
1283       return unreachable_.getByteString(index);
1284     }
1285     /**
1286      *
1287      *
1288      * <pre>
1289      * Output only. Locations that could not be reached.
1290      * </pre>
1291      *
1292      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1293      *
1294      * @param index The index to set the value at.
1295      * @param value The unreachable to set.
1296      * @return This builder for chaining.
1297      */
setUnreachable(int index, java.lang.String value)1298     public Builder setUnreachable(int index, java.lang.String value) {
1299       if (value == null) {
1300         throw new NullPointerException();
1301       }
1302       ensureUnreachableIsMutable();
1303       unreachable_.set(index, value);
1304       onChanged();
1305       return this;
1306     }
1307     /**
1308      *
1309      *
1310      * <pre>
1311      * Output only. Locations that could not be reached.
1312      * </pre>
1313      *
1314      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1315      *
1316      * @param value The unreachable to add.
1317      * @return This builder for chaining.
1318      */
addUnreachable(java.lang.String value)1319     public Builder addUnreachable(java.lang.String value) {
1320       if (value == null) {
1321         throw new NullPointerException();
1322       }
1323       ensureUnreachableIsMutable();
1324       unreachable_.add(value);
1325       onChanged();
1326       return this;
1327     }
1328     /**
1329      *
1330      *
1331      * <pre>
1332      * Output only. Locations that could not be reached.
1333      * </pre>
1334      *
1335      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1336      *
1337      * @param values The unreachable to add.
1338      * @return This builder for chaining.
1339      */
addAllUnreachable(java.lang.Iterable<java.lang.String> values)1340     public Builder addAllUnreachable(java.lang.Iterable<java.lang.String> values) {
1341       ensureUnreachableIsMutable();
1342       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_);
1343       onChanged();
1344       return this;
1345     }
1346     /**
1347      *
1348      *
1349      * <pre>
1350      * Output only. Locations that could not be reached.
1351      * </pre>
1352      *
1353      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1354      *
1355      * @return This builder for chaining.
1356      */
clearUnreachable()1357     public Builder clearUnreachable() {
1358       unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1359       bitField0_ = (bitField0_ & ~0x00000004);
1360       onChanged();
1361       return this;
1362     }
1363     /**
1364      *
1365      *
1366      * <pre>
1367      * Output only. Locations that could not be reached.
1368      * </pre>
1369      *
1370      * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1371      *
1372      * @param value The bytes of the unreachable to add.
1373      * @return This builder for chaining.
1374      */
addUnreachableBytes(com.google.protobuf.ByteString value)1375     public Builder addUnreachableBytes(com.google.protobuf.ByteString value) {
1376       if (value == null) {
1377         throw new NullPointerException();
1378       }
1379       checkByteStringIsUtf8(value);
1380       ensureUnreachableIsMutable();
1381       unreachable_.add(value);
1382       onChanged();
1383       return this;
1384     }
1385 
1386     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1387     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1388       return super.setUnknownFields(unknownFields);
1389     }
1390 
1391     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1392     public final Builder mergeUnknownFields(
1393         final com.google.protobuf.UnknownFieldSet unknownFields) {
1394       return super.mergeUnknownFields(unknownFields);
1395     }
1396 
1397     // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListGroupsResponse)
1398   }
1399 
1400   // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListGroupsResponse)
1401   private static final com.google.cloud.vmmigration.v1.ListGroupsResponse DEFAULT_INSTANCE;
1402 
1403   static {
1404     DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListGroupsResponse();
1405   }
1406 
getDefaultInstance()1407   public static com.google.cloud.vmmigration.v1.ListGroupsResponse getDefaultInstance() {
1408     return DEFAULT_INSTANCE;
1409   }
1410 
1411   private static final com.google.protobuf.Parser<ListGroupsResponse> PARSER =
1412       new com.google.protobuf.AbstractParser<ListGroupsResponse>() {
1413         @java.lang.Override
1414         public ListGroupsResponse parsePartialFrom(
1415             com.google.protobuf.CodedInputStream input,
1416             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1417             throws com.google.protobuf.InvalidProtocolBufferException {
1418           Builder builder = newBuilder();
1419           try {
1420             builder.mergeFrom(input, extensionRegistry);
1421           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1422             throw e.setUnfinishedMessage(builder.buildPartial());
1423           } catch (com.google.protobuf.UninitializedMessageException e) {
1424             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1425           } catch (java.io.IOException e) {
1426             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1427                 .setUnfinishedMessage(builder.buildPartial());
1428           }
1429           return builder.buildPartial();
1430         }
1431       };
1432 
parser()1433   public static com.google.protobuf.Parser<ListGroupsResponse> parser() {
1434     return PARSER;
1435   }
1436 
1437   @java.lang.Override
getParserForType()1438   public com.google.protobuf.Parser<ListGroupsResponse> getParserForType() {
1439     return PARSER;
1440   }
1441 
1442   @java.lang.Override
getDefaultInstanceForType()1443   public com.google.cloud.vmmigration.v1.ListGroupsResponse getDefaultInstanceForType() {
1444     return DEFAULT_INSTANCE;
1445   }
1446 }
1447