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