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 'ListMigratingVms' request. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.vmmigration.v1.ListMigratingVmsResponse} 29 */ 30 public final class ListMigratingVmsResponse extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.ListMigratingVmsResponse) 33 ListMigratingVmsResponseOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use ListMigratingVmsResponse.newBuilder() to construct. ListMigratingVmsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private ListMigratingVmsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 ListMigratingVmsResponse()40 private ListMigratingVmsResponse() { 41 migratingVms_ = 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 ListMigratingVmsResponse(); 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_ListMigratingVmsResponse_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_ListMigratingVmsResponse_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse.class, 69 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse.Builder.class); 70 } 71 72 public static final int MIGRATING_VMS_FIELD_NUMBER = 1; 73 74 @SuppressWarnings("serial") 75 private java.util.List<com.google.cloud.vmmigration.v1.MigratingVm> migratingVms_; 76 /** 77 * 78 * 79 * <pre> 80 * Output only. The list of Migrating VMs response. 81 * </pre> 82 * 83 * <code> 84 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 85 * </code> 86 */ 87 @java.lang.Override getMigratingVmsList()88 public java.util.List<com.google.cloud.vmmigration.v1.MigratingVm> getMigratingVmsList() { 89 return migratingVms_; 90 } 91 /** 92 * 93 * 94 * <pre> 95 * Output only. The list of Migrating VMs response. 96 * </pre> 97 * 98 * <code> 99 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 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.MigratingVmOrBuilder> getMigratingVmsOrBuilderList()104 getMigratingVmsOrBuilderList() { 105 return migratingVms_; 106 } 107 /** 108 * 109 * 110 * <pre> 111 * Output only. The list of Migrating VMs response. 112 * </pre> 113 * 114 * <code> 115 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 116 * </code> 117 */ 118 @java.lang.Override getMigratingVmsCount()119 public int getMigratingVmsCount() { 120 return migratingVms_.size(); 121 } 122 /** 123 * 124 * 125 * <pre> 126 * Output only. The list of Migrating VMs response. 127 * </pre> 128 * 129 * <code> 130 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 131 * </code> 132 */ 133 @java.lang.Override getMigratingVms(int index)134 public com.google.cloud.vmmigration.v1.MigratingVm getMigratingVms(int index) { 135 return migratingVms_.get(index); 136 } 137 /** 138 * 139 * 140 * <pre> 141 * Output only. The list of Migrating VMs response. 142 * </pre> 143 * 144 * <code> 145 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 146 * </code> 147 */ 148 @java.lang.Override getMigratingVmsOrBuilder(int index)149 public com.google.cloud.vmmigration.v1.MigratingVmOrBuilder getMigratingVmsOrBuilder(int index) { 150 return migratingVms_.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 < migratingVms_.size(); i++) { 284 output.writeMessage(1, migratingVms_.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 < migratingVms_.size(); i++) { 302 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, migratingVms_.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.ListMigratingVmsResponse)) { 326 return super.equals(obj); 327 } 328 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse other = 329 (com.google.cloud.vmmigration.v1.ListMigratingVmsResponse) obj; 330 331 if (!getMigratingVmsList().equals(other.getMigratingVmsList())) 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 (getMigratingVmsCount() > 0) { 346 hash = (37 * hash) + MIGRATING_VMS_FIELD_NUMBER; 347 hash = (53 * hash) + getMigratingVmsList().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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse 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.ListMigratingVmsResponse prototype)441 public static Builder newBuilder( 442 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse prototype) { 443 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 444 } 445 446 @java.lang.Override toBuilder()447 public Builder toBuilder() { 448 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 449 } 450 451 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)452 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 453 Builder builder = new Builder(parent); 454 return builder; 455 } 456 /** 457 * 458 * 459 * <pre> 460 * Response message for 'ListMigratingVms' request. 461 * </pre> 462 * 463 * Protobuf type {@code google.cloud.vmmigration.v1.ListMigratingVmsResponse} 464 */ 465 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 466 implements 467 // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.ListMigratingVmsResponse) 468 com.google.cloud.vmmigration.v1.ListMigratingVmsResponseOrBuilder { getDescriptor()469 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 470 return com.google.cloud.vmmigration.v1.VmMigrationProto 471 .internal_static_google_cloud_vmmigration_v1_ListMigratingVmsResponse_descriptor; 472 } 473 474 @java.lang.Override 475 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()476 internalGetFieldAccessorTable() { 477 return com.google.cloud.vmmigration.v1.VmMigrationProto 478 .internal_static_google_cloud_vmmigration_v1_ListMigratingVmsResponse_fieldAccessorTable 479 .ensureFieldAccessorsInitialized( 480 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse.class, 481 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse.Builder.class); 482 } 483 484 // Construct using com.google.cloud.vmmigration.v1.ListMigratingVmsResponse.newBuilder() Builder()485 private Builder() {} 486 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)487 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 488 super(parent); 489 } 490 491 @java.lang.Override clear()492 public Builder clear() { 493 super.clear(); 494 bitField0_ = 0; 495 if (migratingVmsBuilder_ == null) { 496 migratingVms_ = java.util.Collections.emptyList(); 497 } else { 498 migratingVms_ = null; 499 migratingVmsBuilder_.clear(); 500 } 501 bitField0_ = (bitField0_ & ~0x00000001); 502 nextPageToken_ = ""; 503 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 504 bitField0_ = (bitField0_ & ~0x00000004); 505 return this; 506 } 507 508 @java.lang.Override getDescriptorForType()509 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 510 return com.google.cloud.vmmigration.v1.VmMigrationProto 511 .internal_static_google_cloud_vmmigration_v1_ListMigratingVmsResponse_descriptor; 512 } 513 514 @java.lang.Override getDefaultInstanceForType()515 public com.google.cloud.vmmigration.v1.ListMigratingVmsResponse getDefaultInstanceForType() { 516 return com.google.cloud.vmmigration.v1.ListMigratingVmsResponse.getDefaultInstance(); 517 } 518 519 @java.lang.Override build()520 public com.google.cloud.vmmigration.v1.ListMigratingVmsResponse build() { 521 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse result = buildPartial(); 522 if (!result.isInitialized()) { 523 throw newUninitializedMessageException(result); 524 } 525 return result; 526 } 527 528 @java.lang.Override buildPartial()529 public com.google.cloud.vmmigration.v1.ListMigratingVmsResponse buildPartial() { 530 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse result = 531 new com.google.cloud.vmmigration.v1.ListMigratingVmsResponse(this); 532 buildPartialRepeatedFields(result); 533 if (bitField0_ != 0) { 534 buildPartial0(result); 535 } 536 onBuilt(); 537 return result; 538 } 539 buildPartialRepeatedFields( com.google.cloud.vmmigration.v1.ListMigratingVmsResponse result)540 private void buildPartialRepeatedFields( 541 com.google.cloud.vmmigration.v1.ListMigratingVmsResponse result) { 542 if (migratingVmsBuilder_ == null) { 543 if (((bitField0_ & 0x00000001) != 0)) { 544 migratingVms_ = java.util.Collections.unmodifiableList(migratingVms_); 545 bitField0_ = (bitField0_ & ~0x00000001); 546 } 547 result.migratingVms_ = migratingVms_; 548 } else { 549 result.migratingVms_ = migratingVmsBuilder_.build(); 550 } 551 if (((bitField0_ & 0x00000004) != 0)) { 552 unreachable_ = unreachable_.getUnmodifiableView(); 553 bitField0_ = (bitField0_ & ~0x00000004); 554 } 555 result.unreachable_ = unreachable_; 556 } 557 buildPartial0(com.google.cloud.vmmigration.v1.ListMigratingVmsResponse result)558 private void buildPartial0(com.google.cloud.vmmigration.v1.ListMigratingVmsResponse result) { 559 int from_bitField0_ = bitField0_; 560 if (((from_bitField0_ & 0x00000002) != 0)) { 561 result.nextPageToken_ = nextPageToken_; 562 } 563 } 564 565 @java.lang.Override clone()566 public Builder clone() { 567 return super.clone(); 568 } 569 570 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)571 public Builder setField( 572 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 573 return super.setField(field, value); 574 } 575 576 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)577 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 578 return super.clearField(field); 579 } 580 581 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)582 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 583 return super.clearOneof(oneof); 584 } 585 586 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)587 public Builder setRepeatedField( 588 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 589 return super.setRepeatedField(field, index, value); 590 } 591 592 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)593 public Builder addRepeatedField( 594 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 595 return super.addRepeatedField(field, value); 596 } 597 598 @java.lang.Override mergeFrom(com.google.protobuf.Message other)599 public Builder mergeFrom(com.google.protobuf.Message other) { 600 if (other instanceof com.google.cloud.vmmigration.v1.ListMigratingVmsResponse) { 601 return mergeFrom((com.google.cloud.vmmigration.v1.ListMigratingVmsResponse) other); 602 } else { 603 super.mergeFrom(other); 604 return this; 605 } 606 } 607 mergeFrom(com.google.cloud.vmmigration.v1.ListMigratingVmsResponse other)608 public Builder mergeFrom(com.google.cloud.vmmigration.v1.ListMigratingVmsResponse other) { 609 if (other == com.google.cloud.vmmigration.v1.ListMigratingVmsResponse.getDefaultInstance()) 610 return this; 611 if (migratingVmsBuilder_ == null) { 612 if (!other.migratingVms_.isEmpty()) { 613 if (migratingVms_.isEmpty()) { 614 migratingVms_ = other.migratingVms_; 615 bitField0_ = (bitField0_ & ~0x00000001); 616 } else { 617 ensureMigratingVmsIsMutable(); 618 migratingVms_.addAll(other.migratingVms_); 619 } 620 onChanged(); 621 } 622 } else { 623 if (!other.migratingVms_.isEmpty()) { 624 if (migratingVmsBuilder_.isEmpty()) { 625 migratingVmsBuilder_.dispose(); 626 migratingVmsBuilder_ = null; 627 migratingVms_ = other.migratingVms_; 628 bitField0_ = (bitField0_ & ~0x00000001); 629 migratingVmsBuilder_ = 630 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 631 ? getMigratingVmsFieldBuilder() 632 : null; 633 } else { 634 migratingVmsBuilder_.addAllMessages(other.migratingVms_); 635 } 636 } 637 } 638 if (!other.getNextPageToken().isEmpty()) { 639 nextPageToken_ = other.nextPageToken_; 640 bitField0_ |= 0x00000002; 641 onChanged(); 642 } 643 if (!other.unreachable_.isEmpty()) { 644 if (unreachable_.isEmpty()) { 645 unreachable_ = other.unreachable_; 646 bitField0_ = (bitField0_ & ~0x00000004); 647 } else { 648 ensureUnreachableIsMutable(); 649 unreachable_.addAll(other.unreachable_); 650 } 651 onChanged(); 652 } 653 this.mergeUnknownFields(other.getUnknownFields()); 654 onChanged(); 655 return this; 656 } 657 658 @java.lang.Override isInitialized()659 public final boolean isInitialized() { 660 return true; 661 } 662 663 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)664 public Builder mergeFrom( 665 com.google.protobuf.CodedInputStream input, 666 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 667 throws java.io.IOException { 668 if (extensionRegistry == null) { 669 throw new java.lang.NullPointerException(); 670 } 671 try { 672 boolean done = false; 673 while (!done) { 674 int tag = input.readTag(); 675 switch (tag) { 676 case 0: 677 done = true; 678 break; 679 case 10: 680 { 681 com.google.cloud.vmmigration.v1.MigratingVm m = 682 input.readMessage( 683 com.google.cloud.vmmigration.v1.MigratingVm.parser(), extensionRegistry); 684 if (migratingVmsBuilder_ == null) { 685 ensureMigratingVmsIsMutable(); 686 migratingVms_.add(m); 687 } else { 688 migratingVmsBuilder_.addMessage(m); 689 } 690 break; 691 } // case 10 692 case 18: 693 { 694 nextPageToken_ = input.readStringRequireUtf8(); 695 bitField0_ |= 0x00000002; 696 break; 697 } // case 18 698 case 26: 699 { 700 java.lang.String s = input.readStringRequireUtf8(); 701 ensureUnreachableIsMutable(); 702 unreachable_.add(s); 703 break; 704 } // case 26 705 default: 706 { 707 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 708 done = true; // was an endgroup tag 709 } 710 break; 711 } // default: 712 } // switch (tag) 713 } // while (!done) 714 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 715 throw e.unwrapIOException(); 716 } finally { 717 onChanged(); 718 } // finally 719 return this; 720 } 721 722 private int bitField0_; 723 724 private java.util.List<com.google.cloud.vmmigration.v1.MigratingVm> migratingVms_ = 725 java.util.Collections.emptyList(); 726 ensureMigratingVmsIsMutable()727 private void ensureMigratingVmsIsMutable() { 728 if (!((bitField0_ & 0x00000001) != 0)) { 729 migratingVms_ = 730 new java.util.ArrayList<com.google.cloud.vmmigration.v1.MigratingVm>(migratingVms_); 731 bitField0_ |= 0x00000001; 732 } 733 } 734 735 private com.google.protobuf.RepeatedFieldBuilderV3< 736 com.google.cloud.vmmigration.v1.MigratingVm, 737 com.google.cloud.vmmigration.v1.MigratingVm.Builder, 738 com.google.cloud.vmmigration.v1.MigratingVmOrBuilder> 739 migratingVmsBuilder_; 740 741 /** 742 * 743 * 744 * <pre> 745 * Output only. The list of Migrating VMs response. 746 * </pre> 747 * 748 * <code> 749 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 750 * </code> 751 */ getMigratingVmsList()752 public java.util.List<com.google.cloud.vmmigration.v1.MigratingVm> getMigratingVmsList() { 753 if (migratingVmsBuilder_ == null) { 754 return java.util.Collections.unmodifiableList(migratingVms_); 755 } else { 756 return migratingVmsBuilder_.getMessageList(); 757 } 758 } 759 /** 760 * 761 * 762 * <pre> 763 * Output only. The list of Migrating VMs response. 764 * </pre> 765 * 766 * <code> 767 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 768 * </code> 769 */ getMigratingVmsCount()770 public int getMigratingVmsCount() { 771 if (migratingVmsBuilder_ == null) { 772 return migratingVms_.size(); 773 } else { 774 return migratingVmsBuilder_.getCount(); 775 } 776 } 777 /** 778 * 779 * 780 * <pre> 781 * Output only. The list of Migrating VMs response. 782 * </pre> 783 * 784 * <code> 785 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 786 * </code> 787 */ getMigratingVms(int index)788 public com.google.cloud.vmmigration.v1.MigratingVm getMigratingVms(int index) { 789 if (migratingVmsBuilder_ == null) { 790 return migratingVms_.get(index); 791 } else { 792 return migratingVmsBuilder_.getMessage(index); 793 } 794 } 795 /** 796 * 797 * 798 * <pre> 799 * Output only. The list of Migrating VMs response. 800 * </pre> 801 * 802 * <code> 803 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 804 * </code> 805 */ setMigratingVms(int index, com.google.cloud.vmmigration.v1.MigratingVm value)806 public Builder setMigratingVms(int index, com.google.cloud.vmmigration.v1.MigratingVm value) { 807 if (migratingVmsBuilder_ == null) { 808 if (value == null) { 809 throw new NullPointerException(); 810 } 811 ensureMigratingVmsIsMutable(); 812 migratingVms_.set(index, value); 813 onChanged(); 814 } else { 815 migratingVmsBuilder_.setMessage(index, value); 816 } 817 return this; 818 } 819 /** 820 * 821 * 822 * <pre> 823 * Output only. The list of Migrating VMs response. 824 * </pre> 825 * 826 * <code> 827 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 828 * </code> 829 */ setMigratingVms( int index, com.google.cloud.vmmigration.v1.MigratingVm.Builder builderForValue)830 public Builder setMigratingVms( 831 int index, com.google.cloud.vmmigration.v1.MigratingVm.Builder builderForValue) { 832 if (migratingVmsBuilder_ == null) { 833 ensureMigratingVmsIsMutable(); 834 migratingVms_.set(index, builderForValue.build()); 835 onChanged(); 836 } else { 837 migratingVmsBuilder_.setMessage(index, builderForValue.build()); 838 } 839 return this; 840 } 841 /** 842 * 843 * 844 * <pre> 845 * Output only. The list of Migrating VMs response. 846 * </pre> 847 * 848 * <code> 849 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 850 * </code> 851 */ addMigratingVms(com.google.cloud.vmmigration.v1.MigratingVm value)852 public Builder addMigratingVms(com.google.cloud.vmmigration.v1.MigratingVm value) { 853 if (migratingVmsBuilder_ == null) { 854 if (value == null) { 855 throw new NullPointerException(); 856 } 857 ensureMigratingVmsIsMutable(); 858 migratingVms_.add(value); 859 onChanged(); 860 } else { 861 migratingVmsBuilder_.addMessage(value); 862 } 863 return this; 864 } 865 /** 866 * 867 * 868 * <pre> 869 * Output only. The list of Migrating VMs response. 870 * </pre> 871 * 872 * <code> 873 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 874 * </code> 875 */ addMigratingVms(int index, com.google.cloud.vmmigration.v1.MigratingVm value)876 public Builder addMigratingVms(int index, com.google.cloud.vmmigration.v1.MigratingVm value) { 877 if (migratingVmsBuilder_ == null) { 878 if (value == null) { 879 throw new NullPointerException(); 880 } 881 ensureMigratingVmsIsMutable(); 882 migratingVms_.add(index, value); 883 onChanged(); 884 } else { 885 migratingVmsBuilder_.addMessage(index, value); 886 } 887 return this; 888 } 889 /** 890 * 891 * 892 * <pre> 893 * Output only. The list of Migrating VMs response. 894 * </pre> 895 * 896 * <code> 897 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 898 * </code> 899 */ addMigratingVms( com.google.cloud.vmmigration.v1.MigratingVm.Builder builderForValue)900 public Builder addMigratingVms( 901 com.google.cloud.vmmigration.v1.MigratingVm.Builder builderForValue) { 902 if (migratingVmsBuilder_ == null) { 903 ensureMigratingVmsIsMutable(); 904 migratingVms_.add(builderForValue.build()); 905 onChanged(); 906 } else { 907 migratingVmsBuilder_.addMessage(builderForValue.build()); 908 } 909 return this; 910 } 911 /** 912 * 913 * 914 * <pre> 915 * Output only. The list of Migrating VMs response. 916 * </pre> 917 * 918 * <code> 919 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 920 * </code> 921 */ addMigratingVms( int index, com.google.cloud.vmmigration.v1.MigratingVm.Builder builderForValue)922 public Builder addMigratingVms( 923 int index, com.google.cloud.vmmigration.v1.MigratingVm.Builder builderForValue) { 924 if (migratingVmsBuilder_ == null) { 925 ensureMigratingVmsIsMutable(); 926 migratingVms_.add(index, builderForValue.build()); 927 onChanged(); 928 } else { 929 migratingVmsBuilder_.addMessage(index, builderForValue.build()); 930 } 931 return this; 932 } 933 /** 934 * 935 * 936 * <pre> 937 * Output only. The list of Migrating VMs response. 938 * </pre> 939 * 940 * <code> 941 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 942 * </code> 943 */ addAllMigratingVms( java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.MigratingVm> values)944 public Builder addAllMigratingVms( 945 java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.MigratingVm> values) { 946 if (migratingVmsBuilder_ == null) { 947 ensureMigratingVmsIsMutable(); 948 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, migratingVms_); 949 onChanged(); 950 } else { 951 migratingVmsBuilder_.addAllMessages(values); 952 } 953 return this; 954 } 955 /** 956 * 957 * 958 * <pre> 959 * Output only. The list of Migrating VMs response. 960 * </pre> 961 * 962 * <code> 963 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 964 * </code> 965 */ clearMigratingVms()966 public Builder clearMigratingVms() { 967 if (migratingVmsBuilder_ == null) { 968 migratingVms_ = java.util.Collections.emptyList(); 969 bitField0_ = (bitField0_ & ~0x00000001); 970 onChanged(); 971 } else { 972 migratingVmsBuilder_.clear(); 973 } 974 return this; 975 } 976 /** 977 * 978 * 979 * <pre> 980 * Output only. The list of Migrating VMs response. 981 * </pre> 982 * 983 * <code> 984 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 985 * </code> 986 */ removeMigratingVms(int index)987 public Builder removeMigratingVms(int index) { 988 if (migratingVmsBuilder_ == null) { 989 ensureMigratingVmsIsMutable(); 990 migratingVms_.remove(index); 991 onChanged(); 992 } else { 993 migratingVmsBuilder_.remove(index); 994 } 995 return this; 996 } 997 /** 998 * 999 * 1000 * <pre> 1001 * Output only. The list of Migrating VMs response. 1002 * </pre> 1003 * 1004 * <code> 1005 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1006 * </code> 1007 */ getMigratingVmsBuilder(int index)1008 public com.google.cloud.vmmigration.v1.MigratingVm.Builder getMigratingVmsBuilder(int index) { 1009 return getMigratingVmsFieldBuilder().getBuilder(index); 1010 } 1011 /** 1012 * 1013 * 1014 * <pre> 1015 * Output only. The list of Migrating VMs response. 1016 * </pre> 1017 * 1018 * <code> 1019 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1020 * </code> 1021 */ getMigratingVmsOrBuilder( int index)1022 public com.google.cloud.vmmigration.v1.MigratingVmOrBuilder getMigratingVmsOrBuilder( 1023 int index) { 1024 if (migratingVmsBuilder_ == null) { 1025 return migratingVms_.get(index); 1026 } else { 1027 return migratingVmsBuilder_.getMessageOrBuilder(index); 1028 } 1029 } 1030 /** 1031 * 1032 * 1033 * <pre> 1034 * Output only. The list of Migrating VMs response. 1035 * </pre> 1036 * 1037 * <code> 1038 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1039 * </code> 1040 */ 1041 public java.util.List<? extends com.google.cloud.vmmigration.v1.MigratingVmOrBuilder> getMigratingVmsOrBuilderList()1042 getMigratingVmsOrBuilderList() { 1043 if (migratingVmsBuilder_ != null) { 1044 return migratingVmsBuilder_.getMessageOrBuilderList(); 1045 } else { 1046 return java.util.Collections.unmodifiableList(migratingVms_); 1047 } 1048 } 1049 /** 1050 * 1051 * 1052 * <pre> 1053 * Output only. The list of Migrating VMs response. 1054 * </pre> 1055 * 1056 * <code> 1057 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1058 * </code> 1059 */ addMigratingVmsBuilder()1060 public com.google.cloud.vmmigration.v1.MigratingVm.Builder addMigratingVmsBuilder() { 1061 return getMigratingVmsFieldBuilder() 1062 .addBuilder(com.google.cloud.vmmigration.v1.MigratingVm.getDefaultInstance()); 1063 } 1064 /** 1065 * 1066 * 1067 * <pre> 1068 * Output only. The list of Migrating VMs response. 1069 * </pre> 1070 * 1071 * <code> 1072 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1073 * </code> 1074 */ addMigratingVmsBuilder(int index)1075 public com.google.cloud.vmmigration.v1.MigratingVm.Builder addMigratingVmsBuilder(int index) { 1076 return getMigratingVmsFieldBuilder() 1077 .addBuilder(index, com.google.cloud.vmmigration.v1.MigratingVm.getDefaultInstance()); 1078 } 1079 /** 1080 * 1081 * 1082 * <pre> 1083 * Output only. The list of Migrating VMs response. 1084 * </pre> 1085 * 1086 * <code> 1087 * repeated .google.cloud.vmmigration.v1.MigratingVm migrating_vms = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1088 * </code> 1089 */ 1090 public java.util.List<com.google.cloud.vmmigration.v1.MigratingVm.Builder> getMigratingVmsBuilderList()1091 getMigratingVmsBuilderList() { 1092 return getMigratingVmsFieldBuilder().getBuilderList(); 1093 } 1094 1095 private com.google.protobuf.RepeatedFieldBuilderV3< 1096 com.google.cloud.vmmigration.v1.MigratingVm, 1097 com.google.cloud.vmmigration.v1.MigratingVm.Builder, 1098 com.google.cloud.vmmigration.v1.MigratingVmOrBuilder> getMigratingVmsFieldBuilder()1099 getMigratingVmsFieldBuilder() { 1100 if (migratingVmsBuilder_ == null) { 1101 migratingVmsBuilder_ = 1102 new com.google.protobuf.RepeatedFieldBuilderV3< 1103 com.google.cloud.vmmigration.v1.MigratingVm, 1104 com.google.cloud.vmmigration.v1.MigratingVm.Builder, 1105 com.google.cloud.vmmigration.v1.MigratingVmOrBuilder>( 1106 migratingVms_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); 1107 migratingVms_ = null; 1108 } 1109 return migratingVmsBuilder_; 1110 } 1111 1112 private java.lang.Object nextPageToken_ = ""; 1113 /** 1114 * 1115 * 1116 * <pre> 1117 * Output only. A token, which can be sent as `page_token` to retrieve the 1118 * next page. If this field is omitted, there are no subsequent pages. 1119 * </pre> 1120 * 1121 * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1122 * 1123 * @return The nextPageToken. 1124 */ getNextPageToken()1125 public java.lang.String getNextPageToken() { 1126 java.lang.Object ref = nextPageToken_; 1127 if (!(ref instanceof java.lang.String)) { 1128 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1129 java.lang.String s = bs.toStringUtf8(); 1130 nextPageToken_ = s; 1131 return s; 1132 } else { 1133 return (java.lang.String) ref; 1134 } 1135 } 1136 /** 1137 * 1138 * 1139 * <pre> 1140 * Output only. A token, which can be sent as `page_token` to retrieve the 1141 * next page. If this field is omitted, there are no subsequent pages. 1142 * </pre> 1143 * 1144 * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1145 * 1146 * @return The bytes for nextPageToken. 1147 */ getNextPageTokenBytes()1148 public com.google.protobuf.ByteString getNextPageTokenBytes() { 1149 java.lang.Object ref = nextPageToken_; 1150 if (ref instanceof String) { 1151 com.google.protobuf.ByteString b = 1152 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1153 nextPageToken_ = b; 1154 return b; 1155 } else { 1156 return (com.google.protobuf.ByteString) ref; 1157 } 1158 } 1159 /** 1160 * 1161 * 1162 * <pre> 1163 * Output only. A token, which can be sent as `page_token` to retrieve the 1164 * next page. If this field is omitted, there are no subsequent pages. 1165 * </pre> 1166 * 1167 * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1168 * 1169 * @param value The nextPageToken to set. 1170 * @return This builder for chaining. 1171 */ setNextPageToken(java.lang.String value)1172 public Builder setNextPageToken(java.lang.String value) { 1173 if (value == null) { 1174 throw new NullPointerException(); 1175 } 1176 nextPageToken_ = value; 1177 bitField0_ |= 0x00000002; 1178 onChanged(); 1179 return this; 1180 } 1181 /** 1182 * 1183 * 1184 * <pre> 1185 * Output only. A token, which can be sent as `page_token` to retrieve the 1186 * next page. If this field is omitted, there are no subsequent pages. 1187 * </pre> 1188 * 1189 * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1190 * 1191 * @return This builder for chaining. 1192 */ clearNextPageToken()1193 public Builder clearNextPageToken() { 1194 nextPageToken_ = getDefaultInstance().getNextPageToken(); 1195 bitField0_ = (bitField0_ & ~0x00000002); 1196 onChanged(); 1197 return this; 1198 } 1199 /** 1200 * 1201 * 1202 * <pre> 1203 * Output only. A token, which can be sent as `page_token` to retrieve the 1204 * next page. If this field is omitted, there are no subsequent pages. 1205 * </pre> 1206 * 1207 * <code>string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1208 * 1209 * @param value The bytes for nextPageToken to set. 1210 * @return This builder for chaining. 1211 */ setNextPageTokenBytes(com.google.protobuf.ByteString value)1212 public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 1213 if (value == null) { 1214 throw new NullPointerException(); 1215 } 1216 checkByteStringIsUtf8(value); 1217 nextPageToken_ = value; 1218 bitField0_ |= 0x00000002; 1219 onChanged(); 1220 return this; 1221 } 1222 1223 private com.google.protobuf.LazyStringList unreachable_ = 1224 com.google.protobuf.LazyStringArrayList.EMPTY; 1225 ensureUnreachableIsMutable()1226 private void ensureUnreachableIsMutable() { 1227 if (!((bitField0_ & 0x00000004) != 0)) { 1228 unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); 1229 bitField0_ |= 0x00000004; 1230 } 1231 } 1232 /** 1233 * 1234 * 1235 * <pre> 1236 * Output only. Locations that could not be reached. 1237 * </pre> 1238 * 1239 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1240 * 1241 * @return A list containing the unreachable. 1242 */ getUnreachableList()1243 public com.google.protobuf.ProtocolStringList getUnreachableList() { 1244 return unreachable_.getUnmodifiableView(); 1245 } 1246 /** 1247 * 1248 * 1249 * <pre> 1250 * Output only. Locations that could not be reached. 1251 * </pre> 1252 * 1253 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1254 * 1255 * @return The count of unreachable. 1256 */ getUnreachableCount()1257 public int getUnreachableCount() { 1258 return unreachable_.size(); 1259 } 1260 /** 1261 * 1262 * 1263 * <pre> 1264 * Output only. Locations that could not be reached. 1265 * </pre> 1266 * 1267 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1268 * 1269 * @param index The index of the element to return. 1270 * @return The unreachable at the given index. 1271 */ getUnreachable(int index)1272 public java.lang.String getUnreachable(int index) { 1273 return unreachable_.get(index); 1274 } 1275 /** 1276 * 1277 * 1278 * <pre> 1279 * Output only. Locations that could not be reached. 1280 * </pre> 1281 * 1282 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1283 * 1284 * @param index The index of the value to return. 1285 * @return The bytes of the unreachable at the given index. 1286 */ getUnreachableBytes(int index)1287 public com.google.protobuf.ByteString getUnreachableBytes(int index) { 1288 return unreachable_.getByteString(index); 1289 } 1290 /** 1291 * 1292 * 1293 * <pre> 1294 * Output only. Locations that could not be reached. 1295 * </pre> 1296 * 1297 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1298 * 1299 * @param index The index to set the value at. 1300 * @param value The unreachable to set. 1301 * @return This builder for chaining. 1302 */ setUnreachable(int index, java.lang.String value)1303 public Builder setUnreachable(int index, java.lang.String value) { 1304 if (value == null) { 1305 throw new NullPointerException(); 1306 } 1307 ensureUnreachableIsMutable(); 1308 unreachable_.set(index, value); 1309 onChanged(); 1310 return this; 1311 } 1312 /** 1313 * 1314 * 1315 * <pre> 1316 * Output only. Locations that could not be reached. 1317 * </pre> 1318 * 1319 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1320 * 1321 * @param value The unreachable to add. 1322 * @return This builder for chaining. 1323 */ addUnreachable(java.lang.String value)1324 public Builder addUnreachable(java.lang.String value) { 1325 if (value == null) { 1326 throw new NullPointerException(); 1327 } 1328 ensureUnreachableIsMutable(); 1329 unreachable_.add(value); 1330 onChanged(); 1331 return this; 1332 } 1333 /** 1334 * 1335 * 1336 * <pre> 1337 * Output only. Locations that could not be reached. 1338 * </pre> 1339 * 1340 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1341 * 1342 * @param values The unreachable to add. 1343 * @return This builder for chaining. 1344 */ addAllUnreachable(java.lang.Iterable<java.lang.String> values)1345 public Builder addAllUnreachable(java.lang.Iterable<java.lang.String> values) { 1346 ensureUnreachableIsMutable(); 1347 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); 1348 onChanged(); 1349 return this; 1350 } 1351 /** 1352 * 1353 * 1354 * <pre> 1355 * Output only. Locations that could not be reached. 1356 * </pre> 1357 * 1358 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1359 * 1360 * @return This builder for chaining. 1361 */ clearUnreachable()1362 public Builder clearUnreachable() { 1363 unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1364 bitField0_ = (bitField0_ & ~0x00000004); 1365 onChanged(); 1366 return this; 1367 } 1368 /** 1369 * 1370 * 1371 * <pre> 1372 * Output only. Locations that could not be reached. 1373 * </pre> 1374 * 1375 * <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1376 * 1377 * @param value The bytes of the unreachable to add. 1378 * @return This builder for chaining. 1379 */ addUnreachableBytes(com.google.protobuf.ByteString value)1380 public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { 1381 if (value == null) { 1382 throw new NullPointerException(); 1383 } 1384 checkByteStringIsUtf8(value); 1385 ensureUnreachableIsMutable(); 1386 unreachable_.add(value); 1387 onChanged(); 1388 return this; 1389 } 1390 1391 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1392 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1393 return super.setUnknownFields(unknownFields); 1394 } 1395 1396 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1397 public final Builder mergeUnknownFields( 1398 final com.google.protobuf.UnknownFieldSet unknownFields) { 1399 return super.mergeUnknownFields(unknownFields); 1400 } 1401 1402 // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.ListMigratingVmsResponse) 1403 } 1404 1405 // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.ListMigratingVmsResponse) 1406 private static final com.google.cloud.vmmigration.v1.ListMigratingVmsResponse DEFAULT_INSTANCE; 1407 1408 static { 1409 DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.ListMigratingVmsResponse(); 1410 } 1411 getDefaultInstance()1412 public static com.google.cloud.vmmigration.v1.ListMigratingVmsResponse getDefaultInstance() { 1413 return DEFAULT_INSTANCE; 1414 } 1415 1416 private static final com.google.protobuf.Parser<ListMigratingVmsResponse> PARSER = 1417 new com.google.protobuf.AbstractParser<ListMigratingVmsResponse>() { 1418 @java.lang.Override 1419 public ListMigratingVmsResponse parsePartialFrom( 1420 com.google.protobuf.CodedInputStream input, 1421 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1422 throws com.google.protobuf.InvalidProtocolBufferException { 1423 Builder builder = newBuilder(); 1424 try { 1425 builder.mergeFrom(input, extensionRegistry); 1426 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1427 throw e.setUnfinishedMessage(builder.buildPartial()); 1428 } catch (com.google.protobuf.UninitializedMessageException e) { 1429 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1430 } catch (java.io.IOException e) { 1431 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1432 .setUnfinishedMessage(builder.buildPartial()); 1433 } 1434 return builder.buildPartial(); 1435 } 1436 }; 1437 parser()1438 public static com.google.protobuf.Parser<ListMigratingVmsResponse> parser() { 1439 return PARSER; 1440 } 1441 1442 @java.lang.Override getParserForType()1443 public com.google.protobuf.Parser<ListMigratingVmsResponse> getParserForType() { 1444 return PARSER; 1445 } 1446 1447 @java.lang.Override getDefaultInstanceForType()1448 public com.google.cloud.vmmigration.v1.ListMigratingVmsResponse getDefaultInstanceForType() { 1449 return DEFAULT_INSTANCE; 1450 } 1451 } 1452