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