1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/vmmigration/v1/vmmigration.proto 18 19 package com.google.cloud.vmmigration.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * DatacenterConnector message describes a connector between the Source and 26 * Google Cloud, which is installed on a vmware datacenter (an OVA vm installed 27 * by the user) to connect the Datacenter to Google Cloud and support vm 28 * migration data transfer. 29 * </pre> 30 * 31 * Protobuf type {@code google.cloud.vmmigration.v1.DatacenterConnector} 32 */ 33 public final class DatacenterConnector extends com.google.protobuf.GeneratedMessageV3 34 implements 35 // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DatacenterConnector) 36 DatacenterConnectorOrBuilder { 37 private static final long serialVersionUID = 0L; 38 // Use DatacenterConnector.newBuilder() to construct. DatacenterConnector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39 private DatacenterConnector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 40 super(builder); 41 } 42 DatacenterConnector()43 private DatacenterConnector() { 44 name_ = ""; 45 registrationId_ = ""; 46 serviceAccount_ = ""; 47 version_ = ""; 48 bucket_ = ""; 49 state_ = 0; 50 applianceInfrastructureVersion_ = ""; 51 applianceSoftwareVersion_ = ""; 52 } 53 54 @java.lang.Override 55 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)56 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 57 return new DatacenterConnector(); 58 } 59 60 @java.lang.Override getUnknownFields()61 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 62 return this.unknownFields; 63 } 64 getDescriptor()65 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 66 return com.google.cloud.vmmigration.v1.VmMigrationProto 67 .internal_static_google_cloud_vmmigration_v1_DatacenterConnector_descriptor; 68 } 69 70 @java.lang.Override 71 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()72 internalGetFieldAccessorTable() { 73 return com.google.cloud.vmmigration.v1.VmMigrationProto 74 .internal_static_google_cloud_vmmigration_v1_DatacenterConnector_fieldAccessorTable 75 .ensureFieldAccessorsInitialized( 76 com.google.cloud.vmmigration.v1.DatacenterConnector.class, 77 com.google.cloud.vmmigration.v1.DatacenterConnector.Builder.class); 78 } 79 80 /** 81 * 82 * 83 * <pre> 84 * The possible values of the state. 85 * </pre> 86 * 87 * Protobuf enum {@code google.cloud.vmmigration.v1.DatacenterConnector.State} 88 */ 89 public enum State implements com.google.protobuf.ProtocolMessageEnum { 90 /** 91 * 92 * 93 * <pre> 94 * The state is unknown. This is used for API compatibility only and is not 95 * used by the system. 96 * </pre> 97 * 98 * <code>STATE_UNSPECIFIED = 0;</code> 99 */ 100 STATE_UNSPECIFIED(0), 101 /** 102 * 103 * 104 * <pre> 105 * The state was not sampled by the health checks yet. 106 * </pre> 107 * 108 * <code>PENDING = 1;</code> 109 */ 110 PENDING(1), 111 /** 112 * 113 * 114 * <pre> 115 * The source was sampled by health checks and is not available. 116 * </pre> 117 * 118 * <code>OFFLINE = 2;</code> 119 */ 120 OFFLINE(2), 121 /** 122 * 123 * 124 * <pre> 125 * The source is available but might not be usable yet due to unvalidated 126 * credentials or another reason. The credentials referred to are the ones 127 * to the Source. The error message will contain further details. 128 * </pre> 129 * 130 * <code>FAILED = 3;</code> 131 */ 132 FAILED(3), 133 /** 134 * 135 * 136 * <pre> 137 * The source exists and its credentials were verified. 138 * </pre> 139 * 140 * <code>ACTIVE = 4;</code> 141 */ 142 ACTIVE(4), 143 UNRECOGNIZED(-1), 144 ; 145 146 /** 147 * 148 * 149 * <pre> 150 * The state is unknown. This is used for API compatibility only and is not 151 * used by the system. 152 * </pre> 153 * 154 * <code>STATE_UNSPECIFIED = 0;</code> 155 */ 156 public static final int STATE_UNSPECIFIED_VALUE = 0; 157 /** 158 * 159 * 160 * <pre> 161 * The state was not sampled by the health checks yet. 162 * </pre> 163 * 164 * <code>PENDING = 1;</code> 165 */ 166 public static final int PENDING_VALUE = 1; 167 /** 168 * 169 * 170 * <pre> 171 * The source was sampled by health checks and is not available. 172 * </pre> 173 * 174 * <code>OFFLINE = 2;</code> 175 */ 176 public static final int OFFLINE_VALUE = 2; 177 /** 178 * 179 * 180 * <pre> 181 * The source is available but might not be usable yet due to unvalidated 182 * credentials or another reason. The credentials referred to are the ones 183 * to the Source. The error message will contain further details. 184 * </pre> 185 * 186 * <code>FAILED = 3;</code> 187 */ 188 public static final int FAILED_VALUE = 3; 189 /** 190 * 191 * 192 * <pre> 193 * The source exists and its credentials were verified. 194 * </pre> 195 * 196 * <code>ACTIVE = 4;</code> 197 */ 198 public static final int ACTIVE_VALUE = 4; 199 getNumber()200 public final int getNumber() { 201 if (this == UNRECOGNIZED) { 202 throw new java.lang.IllegalArgumentException( 203 "Can't get the number of an unknown enum value."); 204 } 205 return value; 206 } 207 208 /** 209 * @param value The numeric wire value of the corresponding enum entry. 210 * @return The enum associated with the given numeric wire value. 211 * @deprecated Use {@link #forNumber(int)} instead. 212 */ 213 @java.lang.Deprecated valueOf(int value)214 public static State valueOf(int value) { 215 return forNumber(value); 216 } 217 218 /** 219 * @param value The numeric wire value of the corresponding enum entry. 220 * @return The enum associated with the given numeric wire value. 221 */ forNumber(int value)222 public static State forNumber(int value) { 223 switch (value) { 224 case 0: 225 return STATE_UNSPECIFIED; 226 case 1: 227 return PENDING; 228 case 2: 229 return OFFLINE; 230 case 3: 231 return FAILED; 232 case 4: 233 return ACTIVE; 234 default: 235 return null; 236 } 237 } 238 internalGetValueMap()239 public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { 240 return internalValueMap; 241 } 242 243 private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = 244 new com.google.protobuf.Internal.EnumLiteMap<State>() { 245 public State findValueByNumber(int number) { 246 return State.forNumber(number); 247 } 248 }; 249 getValueDescriptor()250 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 251 if (this == UNRECOGNIZED) { 252 throw new java.lang.IllegalStateException( 253 "Can't get the descriptor of an unrecognized enum value."); 254 } 255 return getDescriptor().getValues().get(ordinal()); 256 } 257 getDescriptorForType()258 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 259 return getDescriptor(); 260 } 261 getDescriptor()262 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 263 return com.google.cloud.vmmigration.v1.DatacenterConnector.getDescriptor() 264 .getEnumTypes() 265 .get(0); 266 } 267 268 private static final State[] VALUES = values(); 269 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)270 public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 271 if (desc.getType() != getDescriptor()) { 272 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 273 } 274 if (desc.getIndex() == -1) { 275 return UNRECOGNIZED; 276 } 277 return VALUES[desc.getIndex()]; 278 } 279 280 private final int value; 281 State(int value)282 private State(int value) { 283 this.value = value; 284 } 285 286 // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.DatacenterConnector.State) 287 } 288 289 public static final int CREATE_TIME_FIELD_NUMBER = 1; 290 private com.google.protobuf.Timestamp createTime_; 291 /** 292 * 293 * 294 * <pre> 295 * Output only. The time the connector was created (as an API call, not when 296 * it was actually installed). 297 * </pre> 298 * 299 * <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 300 * </code> 301 * 302 * @return Whether the createTime field is set. 303 */ 304 @java.lang.Override hasCreateTime()305 public boolean hasCreateTime() { 306 return createTime_ != null; 307 } 308 /** 309 * 310 * 311 * <pre> 312 * Output only. The time the connector was created (as an API call, not when 313 * it was actually installed). 314 * </pre> 315 * 316 * <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 317 * </code> 318 * 319 * @return The createTime. 320 */ 321 @java.lang.Override getCreateTime()322 public com.google.protobuf.Timestamp getCreateTime() { 323 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 324 } 325 /** 326 * 327 * 328 * <pre> 329 * Output only. The time the connector was created (as an API call, not when 330 * it was actually installed). 331 * </pre> 332 * 333 * <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 334 * </code> 335 */ 336 @java.lang.Override getCreateTimeOrBuilder()337 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 338 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 339 } 340 341 public static final int UPDATE_TIME_FIELD_NUMBER = 2; 342 private com.google.protobuf.Timestamp updateTime_; 343 /** 344 * 345 * 346 * <pre> 347 * Output only. The last time the connector was updated with an API call. 348 * </pre> 349 * 350 * <code>.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 351 * </code> 352 * 353 * @return Whether the updateTime field is set. 354 */ 355 @java.lang.Override hasUpdateTime()356 public boolean hasUpdateTime() { 357 return updateTime_ != null; 358 } 359 /** 360 * 361 * 362 * <pre> 363 * Output only. The last time the connector was updated with an API call. 364 * </pre> 365 * 366 * <code>.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 367 * </code> 368 * 369 * @return The updateTime. 370 */ 371 @java.lang.Override getUpdateTime()372 public com.google.protobuf.Timestamp getUpdateTime() { 373 return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; 374 } 375 /** 376 * 377 * 378 * <pre> 379 * Output only. The last time the connector was updated with an API call. 380 * </pre> 381 * 382 * <code>.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 383 * </code> 384 */ 385 @java.lang.Override getUpdateTimeOrBuilder()386 public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 387 return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; 388 } 389 390 public static final int NAME_FIELD_NUMBER = 3; 391 392 @SuppressWarnings("serial") 393 private volatile java.lang.Object name_ = ""; 394 /** 395 * 396 * 397 * <pre> 398 * Output only. The connector's name. 399 * </pre> 400 * 401 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 402 * 403 * @return The name. 404 */ 405 @java.lang.Override getName()406 public java.lang.String getName() { 407 java.lang.Object ref = name_; 408 if (ref instanceof java.lang.String) { 409 return (java.lang.String) ref; 410 } else { 411 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 412 java.lang.String s = bs.toStringUtf8(); 413 name_ = s; 414 return s; 415 } 416 } 417 /** 418 * 419 * 420 * <pre> 421 * Output only. The connector's name. 422 * </pre> 423 * 424 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 425 * 426 * @return The bytes for name. 427 */ 428 @java.lang.Override getNameBytes()429 public com.google.protobuf.ByteString getNameBytes() { 430 java.lang.Object ref = name_; 431 if (ref instanceof java.lang.String) { 432 com.google.protobuf.ByteString b = 433 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 434 name_ = b; 435 return b; 436 } else { 437 return (com.google.protobuf.ByteString) ref; 438 } 439 } 440 441 public static final int REGISTRATION_ID_FIELD_NUMBER = 12; 442 443 @SuppressWarnings("serial") 444 private volatile java.lang.Object registrationId_ = ""; 445 /** 446 * 447 * 448 * <pre> 449 * Immutable. A unique key for this connector. This key is internal to the OVA 450 * connector and is supplied with its creation during the registration process 451 * and can not be modified. 452 * </pre> 453 * 454 * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code> 455 * 456 * @return The registrationId. 457 */ 458 @java.lang.Override getRegistrationId()459 public java.lang.String getRegistrationId() { 460 java.lang.Object ref = registrationId_; 461 if (ref instanceof java.lang.String) { 462 return (java.lang.String) ref; 463 } else { 464 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 465 java.lang.String s = bs.toStringUtf8(); 466 registrationId_ = s; 467 return s; 468 } 469 } 470 /** 471 * 472 * 473 * <pre> 474 * Immutable. A unique key for this connector. This key is internal to the OVA 475 * connector and is supplied with its creation during the registration process 476 * and can not be modified. 477 * </pre> 478 * 479 * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code> 480 * 481 * @return The bytes for registrationId. 482 */ 483 @java.lang.Override getRegistrationIdBytes()484 public com.google.protobuf.ByteString getRegistrationIdBytes() { 485 java.lang.Object ref = registrationId_; 486 if (ref instanceof java.lang.String) { 487 com.google.protobuf.ByteString b = 488 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 489 registrationId_ = b; 490 return b; 491 } else { 492 return (com.google.protobuf.ByteString) ref; 493 } 494 } 495 496 public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; 497 498 @SuppressWarnings("serial") 499 private volatile java.lang.Object serviceAccount_ = ""; 500 /** 501 * 502 * 503 * <pre> 504 * The service account to use in the connector when communicating with the 505 * cloud. 506 * </pre> 507 * 508 * <code>string service_account = 5;</code> 509 * 510 * @return The serviceAccount. 511 */ 512 @java.lang.Override getServiceAccount()513 public java.lang.String getServiceAccount() { 514 java.lang.Object ref = serviceAccount_; 515 if (ref instanceof java.lang.String) { 516 return (java.lang.String) ref; 517 } else { 518 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 519 java.lang.String s = bs.toStringUtf8(); 520 serviceAccount_ = s; 521 return s; 522 } 523 } 524 /** 525 * 526 * 527 * <pre> 528 * The service account to use in the connector when communicating with the 529 * cloud. 530 * </pre> 531 * 532 * <code>string service_account = 5;</code> 533 * 534 * @return The bytes for serviceAccount. 535 */ 536 @java.lang.Override getServiceAccountBytes()537 public com.google.protobuf.ByteString getServiceAccountBytes() { 538 java.lang.Object ref = serviceAccount_; 539 if (ref instanceof java.lang.String) { 540 com.google.protobuf.ByteString b = 541 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 542 serviceAccount_ = b; 543 return b; 544 } else { 545 return (com.google.protobuf.ByteString) ref; 546 } 547 } 548 549 public static final int VERSION_FIELD_NUMBER = 6; 550 551 @SuppressWarnings("serial") 552 private volatile java.lang.Object version_ = ""; 553 /** 554 * 555 * 556 * <pre> 557 * The version running in the DatacenterConnector. This is supplied by the OVA 558 * connector during the registration process and can not be modified. 559 * </pre> 560 * 561 * <code>string version = 6;</code> 562 * 563 * @return The version. 564 */ 565 @java.lang.Override getVersion()566 public java.lang.String getVersion() { 567 java.lang.Object ref = version_; 568 if (ref instanceof java.lang.String) { 569 return (java.lang.String) ref; 570 } else { 571 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 572 java.lang.String s = bs.toStringUtf8(); 573 version_ = s; 574 return s; 575 } 576 } 577 /** 578 * 579 * 580 * <pre> 581 * The version running in the DatacenterConnector. This is supplied by the OVA 582 * connector during the registration process and can not be modified. 583 * </pre> 584 * 585 * <code>string version = 6;</code> 586 * 587 * @return The bytes for version. 588 */ 589 @java.lang.Override getVersionBytes()590 public com.google.protobuf.ByteString getVersionBytes() { 591 java.lang.Object ref = version_; 592 if (ref instanceof java.lang.String) { 593 com.google.protobuf.ByteString b = 594 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 595 version_ = b; 596 return b; 597 } else { 598 return (com.google.protobuf.ByteString) ref; 599 } 600 } 601 602 public static final int BUCKET_FIELD_NUMBER = 10; 603 604 @SuppressWarnings("serial") 605 private volatile java.lang.Object bucket_ = ""; 606 /** 607 * 608 * 609 * <pre> 610 * Output only. The communication channel between the datacenter connector and 611 * Google Cloud. 612 * </pre> 613 * 614 * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 615 * 616 * @return The bucket. 617 */ 618 @java.lang.Override getBucket()619 public java.lang.String getBucket() { 620 java.lang.Object ref = bucket_; 621 if (ref instanceof java.lang.String) { 622 return (java.lang.String) ref; 623 } else { 624 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 625 java.lang.String s = bs.toStringUtf8(); 626 bucket_ = s; 627 return s; 628 } 629 } 630 /** 631 * 632 * 633 * <pre> 634 * Output only. The communication channel between the datacenter connector and 635 * Google Cloud. 636 * </pre> 637 * 638 * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 639 * 640 * @return The bytes for bucket. 641 */ 642 @java.lang.Override getBucketBytes()643 public com.google.protobuf.ByteString getBucketBytes() { 644 java.lang.Object ref = bucket_; 645 if (ref instanceof java.lang.String) { 646 com.google.protobuf.ByteString b = 647 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 648 bucket_ = b; 649 return b; 650 } else { 651 return (com.google.protobuf.ByteString) ref; 652 } 653 } 654 655 public static final int STATE_FIELD_NUMBER = 7; 656 private int state_ = 0; 657 /** 658 * 659 * 660 * <pre> 661 * Output only. State of the DatacenterConnector, as determined by the health 662 * checks. 663 * </pre> 664 * 665 * <code> 666 * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 667 * </code> 668 * 669 * @return The enum numeric value on the wire for state. 670 */ 671 @java.lang.Override getStateValue()672 public int getStateValue() { 673 return state_; 674 } 675 /** 676 * 677 * 678 * <pre> 679 * Output only. State of the DatacenterConnector, as determined by the health 680 * checks. 681 * </pre> 682 * 683 * <code> 684 * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 685 * </code> 686 * 687 * @return The state. 688 */ 689 @java.lang.Override getState()690 public com.google.cloud.vmmigration.v1.DatacenterConnector.State getState() { 691 com.google.cloud.vmmigration.v1.DatacenterConnector.State result = 692 com.google.cloud.vmmigration.v1.DatacenterConnector.State.forNumber(state_); 693 return result == null 694 ? com.google.cloud.vmmigration.v1.DatacenterConnector.State.UNRECOGNIZED 695 : result; 696 } 697 698 public static final int STATE_TIME_FIELD_NUMBER = 8; 699 private com.google.protobuf.Timestamp stateTime_; 700 /** 701 * 702 * 703 * <pre> 704 * Output only. The time the state was last set. 705 * </pre> 706 * 707 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 708 * </code> 709 * 710 * @return Whether the stateTime field is set. 711 */ 712 @java.lang.Override hasStateTime()713 public boolean hasStateTime() { 714 return stateTime_ != null; 715 } 716 /** 717 * 718 * 719 * <pre> 720 * Output only. The time the state was last set. 721 * </pre> 722 * 723 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 724 * </code> 725 * 726 * @return The stateTime. 727 */ 728 @java.lang.Override getStateTime()729 public com.google.protobuf.Timestamp getStateTime() { 730 return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; 731 } 732 /** 733 * 734 * 735 * <pre> 736 * Output only. The time the state was last set. 737 * </pre> 738 * 739 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 740 * </code> 741 */ 742 @java.lang.Override getStateTimeOrBuilder()743 public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { 744 return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; 745 } 746 747 public static final int ERROR_FIELD_NUMBER = 11; 748 private com.google.rpc.Status error_; 749 /** 750 * 751 * 752 * <pre> 753 * Output only. Provides details on the state of the Datacenter Connector in 754 * case of an error. 755 * </pre> 756 * 757 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 758 * 759 * @return Whether the error field is set. 760 */ 761 @java.lang.Override hasError()762 public boolean hasError() { 763 return error_ != null; 764 } 765 /** 766 * 767 * 768 * <pre> 769 * Output only. Provides details on the state of the Datacenter Connector in 770 * case of an error. 771 * </pre> 772 * 773 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 774 * 775 * @return The error. 776 */ 777 @java.lang.Override getError()778 public com.google.rpc.Status getError() { 779 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; 780 } 781 /** 782 * 783 * 784 * <pre> 785 * Output only. Provides details on the state of the Datacenter Connector in 786 * case of an error. 787 * </pre> 788 * 789 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 790 */ 791 @java.lang.Override getErrorOrBuilder()792 public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { 793 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; 794 } 795 796 public static final int APPLIANCE_INFRASTRUCTURE_VERSION_FIELD_NUMBER = 13; 797 798 @SuppressWarnings("serial") 799 private volatile java.lang.Object applianceInfrastructureVersion_ = ""; 800 /** 801 * 802 * 803 * <pre> 804 * Output only. Appliance OVA version. 805 * This is the OVA which is manually installed by the user and contains the 806 * infrastructure for the automatically updatable components on the appliance. 807 * </pre> 808 * 809 * <code> 810 * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 811 * </code> 812 * 813 * @return The applianceInfrastructureVersion. 814 */ 815 @java.lang.Override getApplianceInfrastructureVersion()816 public java.lang.String getApplianceInfrastructureVersion() { 817 java.lang.Object ref = applianceInfrastructureVersion_; 818 if (ref instanceof java.lang.String) { 819 return (java.lang.String) ref; 820 } else { 821 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 822 java.lang.String s = bs.toStringUtf8(); 823 applianceInfrastructureVersion_ = s; 824 return s; 825 } 826 } 827 /** 828 * 829 * 830 * <pre> 831 * Output only. Appliance OVA version. 832 * This is the OVA which is manually installed by the user and contains the 833 * infrastructure for the automatically updatable components on the appliance. 834 * </pre> 835 * 836 * <code> 837 * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 838 * </code> 839 * 840 * @return The bytes for applianceInfrastructureVersion. 841 */ 842 @java.lang.Override getApplianceInfrastructureVersionBytes()843 public com.google.protobuf.ByteString getApplianceInfrastructureVersionBytes() { 844 java.lang.Object ref = applianceInfrastructureVersion_; 845 if (ref instanceof java.lang.String) { 846 com.google.protobuf.ByteString b = 847 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 848 applianceInfrastructureVersion_ = b; 849 return b; 850 } else { 851 return (com.google.protobuf.ByteString) ref; 852 } 853 } 854 855 public static final int APPLIANCE_SOFTWARE_VERSION_FIELD_NUMBER = 14; 856 857 @SuppressWarnings("serial") 858 private volatile java.lang.Object applianceSoftwareVersion_ = ""; 859 /** 860 * 861 * 862 * <pre> 863 * Output only. Appliance last installed update bundle version. 864 * This is the version of the automatically updatable components on the 865 * appliance. 866 * </pre> 867 * 868 * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 869 * </code> 870 * 871 * @return The applianceSoftwareVersion. 872 */ 873 @java.lang.Override getApplianceSoftwareVersion()874 public java.lang.String getApplianceSoftwareVersion() { 875 java.lang.Object ref = applianceSoftwareVersion_; 876 if (ref instanceof java.lang.String) { 877 return (java.lang.String) ref; 878 } else { 879 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 880 java.lang.String s = bs.toStringUtf8(); 881 applianceSoftwareVersion_ = s; 882 return s; 883 } 884 } 885 /** 886 * 887 * 888 * <pre> 889 * Output only. Appliance last installed update bundle version. 890 * This is the version of the automatically updatable components on the 891 * appliance. 892 * </pre> 893 * 894 * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 895 * </code> 896 * 897 * @return The bytes for applianceSoftwareVersion. 898 */ 899 @java.lang.Override getApplianceSoftwareVersionBytes()900 public com.google.protobuf.ByteString getApplianceSoftwareVersionBytes() { 901 java.lang.Object ref = applianceSoftwareVersion_; 902 if (ref instanceof java.lang.String) { 903 com.google.protobuf.ByteString b = 904 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 905 applianceSoftwareVersion_ = b; 906 return b; 907 } else { 908 return (com.google.protobuf.ByteString) ref; 909 } 910 } 911 912 public static final int AVAILABLE_VERSIONS_FIELD_NUMBER = 15; 913 private com.google.cloud.vmmigration.v1.AvailableUpdates availableVersions_; 914 /** 915 * 916 * 917 * <pre> 918 * Output only. The available versions for updating this appliance. 919 * </pre> 920 * 921 * <code> 922 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 923 * </code> 924 * 925 * @return Whether the availableVersions field is set. 926 */ 927 @java.lang.Override hasAvailableVersions()928 public boolean hasAvailableVersions() { 929 return availableVersions_ != null; 930 } 931 /** 932 * 933 * 934 * <pre> 935 * Output only. The available versions for updating this appliance. 936 * </pre> 937 * 938 * <code> 939 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 940 * </code> 941 * 942 * @return The availableVersions. 943 */ 944 @java.lang.Override getAvailableVersions()945 public com.google.cloud.vmmigration.v1.AvailableUpdates getAvailableVersions() { 946 return availableVersions_ == null 947 ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance() 948 : availableVersions_; 949 } 950 /** 951 * 952 * 953 * <pre> 954 * Output only. The available versions for updating this appliance. 955 * </pre> 956 * 957 * <code> 958 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 959 * </code> 960 */ 961 @java.lang.Override getAvailableVersionsOrBuilder()962 public com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder getAvailableVersionsOrBuilder() { 963 return availableVersions_ == null 964 ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance() 965 : availableVersions_; 966 } 967 968 public static final int UPGRADE_STATUS_FIELD_NUMBER = 16; 969 private com.google.cloud.vmmigration.v1.UpgradeStatus upgradeStatus_; 970 /** 971 * 972 * 973 * <pre> 974 * Output only. The status of the current / last upgradeAppliance operation. 975 * </pre> 976 * 977 * <code> 978 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 979 * </code> 980 * 981 * @return Whether the upgradeStatus field is set. 982 */ 983 @java.lang.Override hasUpgradeStatus()984 public boolean hasUpgradeStatus() { 985 return upgradeStatus_ != null; 986 } 987 /** 988 * 989 * 990 * <pre> 991 * Output only. The status of the current / last upgradeAppliance operation. 992 * </pre> 993 * 994 * <code> 995 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 996 * </code> 997 * 998 * @return The upgradeStatus. 999 */ 1000 @java.lang.Override getUpgradeStatus()1001 public com.google.cloud.vmmigration.v1.UpgradeStatus getUpgradeStatus() { 1002 return upgradeStatus_ == null 1003 ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance() 1004 : upgradeStatus_; 1005 } 1006 /** 1007 * 1008 * 1009 * <pre> 1010 * Output only. The status of the current / last upgradeAppliance operation. 1011 * </pre> 1012 * 1013 * <code> 1014 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1015 * </code> 1016 */ 1017 @java.lang.Override getUpgradeStatusOrBuilder()1018 public com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder getUpgradeStatusOrBuilder() { 1019 return upgradeStatus_ == null 1020 ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance() 1021 : upgradeStatus_; 1022 } 1023 1024 private byte memoizedIsInitialized = -1; 1025 1026 @java.lang.Override isInitialized()1027 public final boolean isInitialized() { 1028 byte isInitialized = memoizedIsInitialized; 1029 if (isInitialized == 1) return true; 1030 if (isInitialized == 0) return false; 1031 1032 memoizedIsInitialized = 1; 1033 return true; 1034 } 1035 1036 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1037 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1038 if (createTime_ != null) { 1039 output.writeMessage(1, getCreateTime()); 1040 } 1041 if (updateTime_ != null) { 1042 output.writeMessage(2, getUpdateTime()); 1043 } 1044 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1045 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); 1046 } 1047 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 1048 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_); 1049 } 1050 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { 1051 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); 1052 } 1053 if (state_ 1054 != com.google.cloud.vmmigration.v1.DatacenterConnector.State.STATE_UNSPECIFIED 1055 .getNumber()) { 1056 output.writeEnum(7, state_); 1057 } 1058 if (stateTime_ != null) { 1059 output.writeMessage(8, getStateTime()); 1060 } 1061 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { 1062 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, bucket_); 1063 } 1064 if (error_ != null) { 1065 output.writeMessage(11, getError()); 1066 } 1067 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) { 1068 com.google.protobuf.GeneratedMessageV3.writeString(output, 12, registrationId_); 1069 } 1070 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceInfrastructureVersion_)) { 1071 com.google.protobuf.GeneratedMessageV3.writeString( 1072 output, 13, applianceInfrastructureVersion_); 1073 } 1074 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceSoftwareVersion_)) { 1075 com.google.protobuf.GeneratedMessageV3.writeString(output, 14, applianceSoftwareVersion_); 1076 } 1077 if (availableVersions_ != null) { 1078 output.writeMessage(15, getAvailableVersions()); 1079 } 1080 if (upgradeStatus_ != null) { 1081 output.writeMessage(16, getUpgradeStatus()); 1082 } 1083 getUnknownFields().writeTo(output); 1084 } 1085 1086 @java.lang.Override getSerializedSize()1087 public int getSerializedSize() { 1088 int size = memoizedSize; 1089 if (size != -1) return size; 1090 1091 size = 0; 1092 if (createTime_ != null) { 1093 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); 1094 } 1095 if (updateTime_ != null) { 1096 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); 1097 } 1098 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1099 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); 1100 } 1101 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { 1102 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_); 1103 } 1104 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { 1105 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); 1106 } 1107 if (state_ 1108 != com.google.cloud.vmmigration.v1.DatacenterConnector.State.STATE_UNSPECIFIED 1109 .getNumber()) { 1110 size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); 1111 } 1112 if (stateTime_ != null) { 1113 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStateTime()); 1114 } 1115 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { 1116 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, bucket_); 1117 } 1118 if (error_ != null) { 1119 size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getError()); 1120 } 1121 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) { 1122 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, registrationId_); 1123 } 1124 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceInfrastructureVersion_)) { 1125 size += 1126 com.google.protobuf.GeneratedMessageV3.computeStringSize( 1127 13, applianceInfrastructureVersion_); 1128 } 1129 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceSoftwareVersion_)) { 1130 size += 1131 com.google.protobuf.GeneratedMessageV3.computeStringSize(14, applianceSoftwareVersion_); 1132 } 1133 if (availableVersions_ != null) { 1134 size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getAvailableVersions()); 1135 } 1136 if (upgradeStatus_ != null) { 1137 size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpgradeStatus()); 1138 } 1139 size += getUnknownFields().getSerializedSize(); 1140 memoizedSize = size; 1141 return size; 1142 } 1143 1144 @java.lang.Override equals(final java.lang.Object obj)1145 public boolean equals(final java.lang.Object obj) { 1146 if (obj == this) { 1147 return true; 1148 } 1149 if (!(obj instanceof com.google.cloud.vmmigration.v1.DatacenterConnector)) { 1150 return super.equals(obj); 1151 } 1152 com.google.cloud.vmmigration.v1.DatacenterConnector other = 1153 (com.google.cloud.vmmigration.v1.DatacenterConnector) obj; 1154 1155 if (hasCreateTime() != other.hasCreateTime()) return false; 1156 if (hasCreateTime()) { 1157 if (!getCreateTime().equals(other.getCreateTime())) return false; 1158 } 1159 if (hasUpdateTime() != other.hasUpdateTime()) return false; 1160 if (hasUpdateTime()) { 1161 if (!getUpdateTime().equals(other.getUpdateTime())) return false; 1162 } 1163 if (!getName().equals(other.getName())) return false; 1164 if (!getRegistrationId().equals(other.getRegistrationId())) return false; 1165 if (!getServiceAccount().equals(other.getServiceAccount())) return false; 1166 if (!getVersion().equals(other.getVersion())) return false; 1167 if (!getBucket().equals(other.getBucket())) return false; 1168 if (state_ != other.state_) return false; 1169 if (hasStateTime() != other.hasStateTime()) return false; 1170 if (hasStateTime()) { 1171 if (!getStateTime().equals(other.getStateTime())) return false; 1172 } 1173 if (hasError() != other.hasError()) return false; 1174 if (hasError()) { 1175 if (!getError().equals(other.getError())) return false; 1176 } 1177 if (!getApplianceInfrastructureVersion().equals(other.getApplianceInfrastructureVersion())) 1178 return false; 1179 if (!getApplianceSoftwareVersion().equals(other.getApplianceSoftwareVersion())) return false; 1180 if (hasAvailableVersions() != other.hasAvailableVersions()) return false; 1181 if (hasAvailableVersions()) { 1182 if (!getAvailableVersions().equals(other.getAvailableVersions())) return false; 1183 } 1184 if (hasUpgradeStatus() != other.hasUpgradeStatus()) return false; 1185 if (hasUpgradeStatus()) { 1186 if (!getUpgradeStatus().equals(other.getUpgradeStatus())) return false; 1187 } 1188 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1189 return true; 1190 } 1191 1192 @java.lang.Override hashCode()1193 public int hashCode() { 1194 if (memoizedHashCode != 0) { 1195 return memoizedHashCode; 1196 } 1197 int hash = 41; 1198 hash = (19 * hash) + getDescriptor().hashCode(); 1199 if (hasCreateTime()) { 1200 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 1201 hash = (53 * hash) + getCreateTime().hashCode(); 1202 } 1203 if (hasUpdateTime()) { 1204 hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; 1205 hash = (53 * hash) + getUpdateTime().hashCode(); 1206 } 1207 hash = (37 * hash) + NAME_FIELD_NUMBER; 1208 hash = (53 * hash) + getName().hashCode(); 1209 hash = (37 * hash) + REGISTRATION_ID_FIELD_NUMBER; 1210 hash = (53 * hash) + getRegistrationId().hashCode(); 1211 hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; 1212 hash = (53 * hash) + getServiceAccount().hashCode(); 1213 hash = (37 * hash) + VERSION_FIELD_NUMBER; 1214 hash = (53 * hash) + getVersion().hashCode(); 1215 hash = (37 * hash) + BUCKET_FIELD_NUMBER; 1216 hash = (53 * hash) + getBucket().hashCode(); 1217 hash = (37 * hash) + STATE_FIELD_NUMBER; 1218 hash = (53 * hash) + state_; 1219 if (hasStateTime()) { 1220 hash = (37 * hash) + STATE_TIME_FIELD_NUMBER; 1221 hash = (53 * hash) + getStateTime().hashCode(); 1222 } 1223 if (hasError()) { 1224 hash = (37 * hash) + ERROR_FIELD_NUMBER; 1225 hash = (53 * hash) + getError().hashCode(); 1226 } 1227 hash = (37 * hash) + APPLIANCE_INFRASTRUCTURE_VERSION_FIELD_NUMBER; 1228 hash = (53 * hash) + getApplianceInfrastructureVersion().hashCode(); 1229 hash = (37 * hash) + APPLIANCE_SOFTWARE_VERSION_FIELD_NUMBER; 1230 hash = (53 * hash) + getApplianceSoftwareVersion().hashCode(); 1231 if (hasAvailableVersions()) { 1232 hash = (37 * hash) + AVAILABLE_VERSIONS_FIELD_NUMBER; 1233 hash = (53 * hash) + getAvailableVersions().hashCode(); 1234 } 1235 if (hasUpgradeStatus()) { 1236 hash = (37 * hash) + UPGRADE_STATUS_FIELD_NUMBER; 1237 hash = (53 * hash) + getUpgradeStatus().hashCode(); 1238 } 1239 hash = (29 * hash) + getUnknownFields().hashCode(); 1240 memoizedHashCode = hash; 1241 return hash; 1242 } 1243 parseFrom( java.nio.ByteBuffer data)1244 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1245 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 1246 return PARSER.parseFrom(data); 1247 } 1248 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1249 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1250 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1251 throws com.google.protobuf.InvalidProtocolBufferException { 1252 return PARSER.parseFrom(data, extensionRegistry); 1253 } 1254 parseFrom( com.google.protobuf.ByteString data)1255 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1256 com.google.protobuf.ByteString data) 1257 throws com.google.protobuf.InvalidProtocolBufferException { 1258 return PARSER.parseFrom(data); 1259 } 1260 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1261 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1262 com.google.protobuf.ByteString data, 1263 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1264 throws com.google.protobuf.InvalidProtocolBufferException { 1265 return PARSER.parseFrom(data, extensionRegistry); 1266 } 1267 parseFrom(byte[] data)1268 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom(byte[] data) 1269 throws com.google.protobuf.InvalidProtocolBufferException { 1270 return PARSER.parseFrom(data); 1271 } 1272 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1273 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1274 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1275 throws com.google.protobuf.InvalidProtocolBufferException { 1276 return PARSER.parseFrom(data, extensionRegistry); 1277 } 1278 parseFrom( java.io.InputStream input)1279 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1280 java.io.InputStream input) throws java.io.IOException { 1281 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1282 } 1283 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1284 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1285 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1286 throws java.io.IOException { 1287 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1288 PARSER, input, extensionRegistry); 1289 } 1290 parseDelimitedFrom( java.io.InputStream input)1291 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseDelimitedFrom( 1292 java.io.InputStream input) throws java.io.IOException { 1293 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1294 } 1295 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1296 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseDelimitedFrom( 1297 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1298 throws java.io.IOException { 1299 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1300 PARSER, input, extensionRegistry); 1301 } 1302 parseFrom( com.google.protobuf.CodedInputStream input)1303 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1304 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1305 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1306 } 1307 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1308 public static com.google.cloud.vmmigration.v1.DatacenterConnector parseFrom( 1309 com.google.protobuf.CodedInputStream input, 1310 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1311 throws java.io.IOException { 1312 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1313 PARSER, input, extensionRegistry); 1314 } 1315 1316 @java.lang.Override newBuilderForType()1317 public Builder newBuilderForType() { 1318 return newBuilder(); 1319 } 1320 newBuilder()1321 public static Builder newBuilder() { 1322 return DEFAULT_INSTANCE.toBuilder(); 1323 } 1324 newBuilder(com.google.cloud.vmmigration.v1.DatacenterConnector prototype)1325 public static Builder newBuilder(com.google.cloud.vmmigration.v1.DatacenterConnector prototype) { 1326 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1327 } 1328 1329 @java.lang.Override toBuilder()1330 public Builder toBuilder() { 1331 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1332 } 1333 1334 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1335 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1336 Builder builder = new Builder(parent); 1337 return builder; 1338 } 1339 /** 1340 * 1341 * 1342 * <pre> 1343 * DatacenterConnector message describes a connector between the Source and 1344 * Google Cloud, which is installed on a vmware datacenter (an OVA vm installed 1345 * by the user) to connect the Datacenter to Google Cloud and support vm 1346 * migration data transfer. 1347 * </pre> 1348 * 1349 * Protobuf type {@code google.cloud.vmmigration.v1.DatacenterConnector} 1350 */ 1351 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1352 implements 1353 // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DatacenterConnector) 1354 com.google.cloud.vmmigration.v1.DatacenterConnectorOrBuilder { getDescriptor()1355 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1356 return com.google.cloud.vmmigration.v1.VmMigrationProto 1357 .internal_static_google_cloud_vmmigration_v1_DatacenterConnector_descriptor; 1358 } 1359 1360 @java.lang.Override 1361 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1362 internalGetFieldAccessorTable() { 1363 return com.google.cloud.vmmigration.v1.VmMigrationProto 1364 .internal_static_google_cloud_vmmigration_v1_DatacenterConnector_fieldAccessorTable 1365 .ensureFieldAccessorsInitialized( 1366 com.google.cloud.vmmigration.v1.DatacenterConnector.class, 1367 com.google.cloud.vmmigration.v1.DatacenterConnector.Builder.class); 1368 } 1369 1370 // Construct using com.google.cloud.vmmigration.v1.DatacenterConnector.newBuilder() Builder()1371 private Builder() {} 1372 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1373 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1374 super(parent); 1375 } 1376 1377 @java.lang.Override clear()1378 public Builder clear() { 1379 super.clear(); 1380 bitField0_ = 0; 1381 createTime_ = null; 1382 if (createTimeBuilder_ != null) { 1383 createTimeBuilder_.dispose(); 1384 createTimeBuilder_ = null; 1385 } 1386 updateTime_ = null; 1387 if (updateTimeBuilder_ != null) { 1388 updateTimeBuilder_.dispose(); 1389 updateTimeBuilder_ = null; 1390 } 1391 name_ = ""; 1392 registrationId_ = ""; 1393 serviceAccount_ = ""; 1394 version_ = ""; 1395 bucket_ = ""; 1396 state_ = 0; 1397 stateTime_ = null; 1398 if (stateTimeBuilder_ != null) { 1399 stateTimeBuilder_.dispose(); 1400 stateTimeBuilder_ = null; 1401 } 1402 error_ = null; 1403 if (errorBuilder_ != null) { 1404 errorBuilder_.dispose(); 1405 errorBuilder_ = null; 1406 } 1407 applianceInfrastructureVersion_ = ""; 1408 applianceSoftwareVersion_ = ""; 1409 availableVersions_ = null; 1410 if (availableVersionsBuilder_ != null) { 1411 availableVersionsBuilder_.dispose(); 1412 availableVersionsBuilder_ = null; 1413 } 1414 upgradeStatus_ = null; 1415 if (upgradeStatusBuilder_ != null) { 1416 upgradeStatusBuilder_.dispose(); 1417 upgradeStatusBuilder_ = null; 1418 } 1419 return this; 1420 } 1421 1422 @java.lang.Override getDescriptorForType()1423 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1424 return com.google.cloud.vmmigration.v1.VmMigrationProto 1425 .internal_static_google_cloud_vmmigration_v1_DatacenterConnector_descriptor; 1426 } 1427 1428 @java.lang.Override getDefaultInstanceForType()1429 public com.google.cloud.vmmigration.v1.DatacenterConnector getDefaultInstanceForType() { 1430 return com.google.cloud.vmmigration.v1.DatacenterConnector.getDefaultInstance(); 1431 } 1432 1433 @java.lang.Override build()1434 public com.google.cloud.vmmigration.v1.DatacenterConnector build() { 1435 com.google.cloud.vmmigration.v1.DatacenterConnector result = buildPartial(); 1436 if (!result.isInitialized()) { 1437 throw newUninitializedMessageException(result); 1438 } 1439 return result; 1440 } 1441 1442 @java.lang.Override buildPartial()1443 public com.google.cloud.vmmigration.v1.DatacenterConnector buildPartial() { 1444 com.google.cloud.vmmigration.v1.DatacenterConnector result = 1445 new com.google.cloud.vmmigration.v1.DatacenterConnector(this); 1446 if (bitField0_ != 0) { 1447 buildPartial0(result); 1448 } 1449 onBuilt(); 1450 return result; 1451 } 1452 buildPartial0(com.google.cloud.vmmigration.v1.DatacenterConnector result)1453 private void buildPartial0(com.google.cloud.vmmigration.v1.DatacenterConnector result) { 1454 int from_bitField0_ = bitField0_; 1455 if (((from_bitField0_ & 0x00000001) != 0)) { 1456 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 1457 } 1458 if (((from_bitField0_ & 0x00000002) != 0)) { 1459 result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); 1460 } 1461 if (((from_bitField0_ & 0x00000004) != 0)) { 1462 result.name_ = name_; 1463 } 1464 if (((from_bitField0_ & 0x00000008) != 0)) { 1465 result.registrationId_ = registrationId_; 1466 } 1467 if (((from_bitField0_ & 0x00000010) != 0)) { 1468 result.serviceAccount_ = serviceAccount_; 1469 } 1470 if (((from_bitField0_ & 0x00000020) != 0)) { 1471 result.version_ = version_; 1472 } 1473 if (((from_bitField0_ & 0x00000040) != 0)) { 1474 result.bucket_ = bucket_; 1475 } 1476 if (((from_bitField0_ & 0x00000080) != 0)) { 1477 result.state_ = state_; 1478 } 1479 if (((from_bitField0_ & 0x00000100) != 0)) { 1480 result.stateTime_ = stateTimeBuilder_ == null ? stateTime_ : stateTimeBuilder_.build(); 1481 } 1482 if (((from_bitField0_ & 0x00000200) != 0)) { 1483 result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); 1484 } 1485 if (((from_bitField0_ & 0x00000400) != 0)) { 1486 result.applianceInfrastructureVersion_ = applianceInfrastructureVersion_; 1487 } 1488 if (((from_bitField0_ & 0x00000800) != 0)) { 1489 result.applianceSoftwareVersion_ = applianceSoftwareVersion_; 1490 } 1491 if (((from_bitField0_ & 0x00001000) != 0)) { 1492 result.availableVersions_ = 1493 availableVersionsBuilder_ == null 1494 ? availableVersions_ 1495 : availableVersionsBuilder_.build(); 1496 } 1497 if (((from_bitField0_ & 0x00002000) != 0)) { 1498 result.upgradeStatus_ = 1499 upgradeStatusBuilder_ == null ? upgradeStatus_ : upgradeStatusBuilder_.build(); 1500 } 1501 } 1502 1503 @java.lang.Override clone()1504 public Builder clone() { 1505 return super.clone(); 1506 } 1507 1508 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1509 public Builder setField( 1510 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1511 return super.setField(field, value); 1512 } 1513 1514 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1515 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1516 return super.clearField(field); 1517 } 1518 1519 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1520 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1521 return super.clearOneof(oneof); 1522 } 1523 1524 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1525 public Builder setRepeatedField( 1526 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1527 return super.setRepeatedField(field, index, value); 1528 } 1529 1530 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1531 public Builder addRepeatedField( 1532 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1533 return super.addRepeatedField(field, value); 1534 } 1535 1536 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1537 public Builder mergeFrom(com.google.protobuf.Message other) { 1538 if (other instanceof com.google.cloud.vmmigration.v1.DatacenterConnector) { 1539 return mergeFrom((com.google.cloud.vmmigration.v1.DatacenterConnector) other); 1540 } else { 1541 super.mergeFrom(other); 1542 return this; 1543 } 1544 } 1545 mergeFrom(com.google.cloud.vmmigration.v1.DatacenterConnector other)1546 public Builder mergeFrom(com.google.cloud.vmmigration.v1.DatacenterConnector other) { 1547 if (other == com.google.cloud.vmmigration.v1.DatacenterConnector.getDefaultInstance()) 1548 return this; 1549 if (other.hasCreateTime()) { 1550 mergeCreateTime(other.getCreateTime()); 1551 } 1552 if (other.hasUpdateTime()) { 1553 mergeUpdateTime(other.getUpdateTime()); 1554 } 1555 if (!other.getName().isEmpty()) { 1556 name_ = other.name_; 1557 bitField0_ |= 0x00000004; 1558 onChanged(); 1559 } 1560 if (!other.getRegistrationId().isEmpty()) { 1561 registrationId_ = other.registrationId_; 1562 bitField0_ |= 0x00000008; 1563 onChanged(); 1564 } 1565 if (!other.getServiceAccount().isEmpty()) { 1566 serviceAccount_ = other.serviceAccount_; 1567 bitField0_ |= 0x00000010; 1568 onChanged(); 1569 } 1570 if (!other.getVersion().isEmpty()) { 1571 version_ = other.version_; 1572 bitField0_ |= 0x00000020; 1573 onChanged(); 1574 } 1575 if (!other.getBucket().isEmpty()) { 1576 bucket_ = other.bucket_; 1577 bitField0_ |= 0x00000040; 1578 onChanged(); 1579 } 1580 if (other.state_ != 0) { 1581 setStateValue(other.getStateValue()); 1582 } 1583 if (other.hasStateTime()) { 1584 mergeStateTime(other.getStateTime()); 1585 } 1586 if (other.hasError()) { 1587 mergeError(other.getError()); 1588 } 1589 if (!other.getApplianceInfrastructureVersion().isEmpty()) { 1590 applianceInfrastructureVersion_ = other.applianceInfrastructureVersion_; 1591 bitField0_ |= 0x00000400; 1592 onChanged(); 1593 } 1594 if (!other.getApplianceSoftwareVersion().isEmpty()) { 1595 applianceSoftwareVersion_ = other.applianceSoftwareVersion_; 1596 bitField0_ |= 0x00000800; 1597 onChanged(); 1598 } 1599 if (other.hasAvailableVersions()) { 1600 mergeAvailableVersions(other.getAvailableVersions()); 1601 } 1602 if (other.hasUpgradeStatus()) { 1603 mergeUpgradeStatus(other.getUpgradeStatus()); 1604 } 1605 this.mergeUnknownFields(other.getUnknownFields()); 1606 onChanged(); 1607 return this; 1608 } 1609 1610 @java.lang.Override isInitialized()1611 public final boolean isInitialized() { 1612 return true; 1613 } 1614 1615 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1616 public Builder mergeFrom( 1617 com.google.protobuf.CodedInputStream input, 1618 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1619 throws java.io.IOException { 1620 if (extensionRegistry == null) { 1621 throw new java.lang.NullPointerException(); 1622 } 1623 try { 1624 boolean done = false; 1625 while (!done) { 1626 int tag = input.readTag(); 1627 switch (tag) { 1628 case 0: 1629 done = true; 1630 break; 1631 case 10: 1632 { 1633 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 1634 bitField0_ |= 0x00000001; 1635 break; 1636 } // case 10 1637 case 18: 1638 { 1639 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); 1640 bitField0_ |= 0x00000002; 1641 break; 1642 } // case 18 1643 case 26: 1644 { 1645 name_ = input.readStringRequireUtf8(); 1646 bitField0_ |= 0x00000004; 1647 break; 1648 } // case 26 1649 case 42: 1650 { 1651 serviceAccount_ = input.readStringRequireUtf8(); 1652 bitField0_ |= 0x00000010; 1653 break; 1654 } // case 42 1655 case 50: 1656 { 1657 version_ = input.readStringRequireUtf8(); 1658 bitField0_ |= 0x00000020; 1659 break; 1660 } // case 50 1661 case 56: 1662 { 1663 state_ = input.readEnum(); 1664 bitField0_ |= 0x00000080; 1665 break; 1666 } // case 56 1667 case 66: 1668 { 1669 input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); 1670 bitField0_ |= 0x00000100; 1671 break; 1672 } // case 66 1673 case 82: 1674 { 1675 bucket_ = input.readStringRequireUtf8(); 1676 bitField0_ |= 0x00000040; 1677 break; 1678 } // case 82 1679 case 90: 1680 { 1681 input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); 1682 bitField0_ |= 0x00000200; 1683 break; 1684 } // case 90 1685 case 98: 1686 { 1687 registrationId_ = input.readStringRequireUtf8(); 1688 bitField0_ |= 0x00000008; 1689 break; 1690 } // case 98 1691 case 106: 1692 { 1693 applianceInfrastructureVersion_ = input.readStringRequireUtf8(); 1694 bitField0_ |= 0x00000400; 1695 break; 1696 } // case 106 1697 case 114: 1698 { 1699 applianceSoftwareVersion_ = input.readStringRequireUtf8(); 1700 bitField0_ |= 0x00000800; 1701 break; 1702 } // case 114 1703 case 122: 1704 { 1705 input.readMessage( 1706 getAvailableVersionsFieldBuilder().getBuilder(), extensionRegistry); 1707 bitField0_ |= 0x00001000; 1708 break; 1709 } // case 122 1710 case 130: 1711 { 1712 input.readMessage(getUpgradeStatusFieldBuilder().getBuilder(), extensionRegistry); 1713 bitField0_ |= 0x00002000; 1714 break; 1715 } // case 130 1716 default: 1717 { 1718 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1719 done = true; // was an endgroup tag 1720 } 1721 break; 1722 } // default: 1723 } // switch (tag) 1724 } // while (!done) 1725 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1726 throw e.unwrapIOException(); 1727 } finally { 1728 onChanged(); 1729 } // finally 1730 return this; 1731 } 1732 1733 private int bitField0_; 1734 1735 private com.google.protobuf.Timestamp createTime_; 1736 private com.google.protobuf.SingleFieldBuilderV3< 1737 com.google.protobuf.Timestamp, 1738 com.google.protobuf.Timestamp.Builder, 1739 com.google.protobuf.TimestampOrBuilder> 1740 createTimeBuilder_; 1741 /** 1742 * 1743 * 1744 * <pre> 1745 * Output only. The time the connector was created (as an API call, not when 1746 * it was actually installed). 1747 * </pre> 1748 * 1749 * <code> 1750 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1751 * </code> 1752 * 1753 * @return Whether the createTime field is set. 1754 */ hasCreateTime()1755 public boolean hasCreateTime() { 1756 return ((bitField0_ & 0x00000001) != 0); 1757 } 1758 /** 1759 * 1760 * 1761 * <pre> 1762 * Output only. The time the connector was created (as an API call, not when 1763 * it was actually installed). 1764 * </pre> 1765 * 1766 * <code> 1767 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1768 * </code> 1769 * 1770 * @return The createTime. 1771 */ getCreateTime()1772 public com.google.protobuf.Timestamp getCreateTime() { 1773 if (createTimeBuilder_ == null) { 1774 return createTime_ == null 1775 ? com.google.protobuf.Timestamp.getDefaultInstance() 1776 : createTime_; 1777 } else { 1778 return createTimeBuilder_.getMessage(); 1779 } 1780 } 1781 /** 1782 * 1783 * 1784 * <pre> 1785 * Output only. The time the connector was created (as an API call, not when 1786 * it was actually installed). 1787 * </pre> 1788 * 1789 * <code> 1790 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1791 * </code> 1792 */ setCreateTime(com.google.protobuf.Timestamp value)1793 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 1794 if (createTimeBuilder_ == null) { 1795 if (value == null) { 1796 throw new NullPointerException(); 1797 } 1798 createTime_ = value; 1799 } else { 1800 createTimeBuilder_.setMessage(value); 1801 } 1802 bitField0_ |= 0x00000001; 1803 onChanged(); 1804 return this; 1805 } 1806 /** 1807 * 1808 * 1809 * <pre> 1810 * Output only. The time the connector was created (as an API call, not when 1811 * it was actually installed). 1812 * </pre> 1813 * 1814 * <code> 1815 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1816 * </code> 1817 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1818 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1819 if (createTimeBuilder_ == null) { 1820 createTime_ = builderForValue.build(); 1821 } else { 1822 createTimeBuilder_.setMessage(builderForValue.build()); 1823 } 1824 bitField0_ |= 0x00000001; 1825 onChanged(); 1826 return this; 1827 } 1828 /** 1829 * 1830 * 1831 * <pre> 1832 * Output only. The time the connector was created (as an API call, not when 1833 * it was actually installed). 1834 * </pre> 1835 * 1836 * <code> 1837 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1838 * </code> 1839 */ mergeCreateTime(com.google.protobuf.Timestamp value)1840 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 1841 if (createTimeBuilder_ == null) { 1842 if (((bitField0_ & 0x00000001) != 0) 1843 && createTime_ != null 1844 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1845 getCreateTimeBuilder().mergeFrom(value); 1846 } else { 1847 createTime_ = value; 1848 } 1849 } else { 1850 createTimeBuilder_.mergeFrom(value); 1851 } 1852 bitField0_ |= 0x00000001; 1853 onChanged(); 1854 return this; 1855 } 1856 /** 1857 * 1858 * 1859 * <pre> 1860 * Output only. The time the connector was created (as an API call, not when 1861 * it was actually installed). 1862 * </pre> 1863 * 1864 * <code> 1865 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1866 * </code> 1867 */ clearCreateTime()1868 public Builder clearCreateTime() { 1869 bitField0_ = (bitField0_ & ~0x00000001); 1870 createTime_ = null; 1871 if (createTimeBuilder_ != null) { 1872 createTimeBuilder_.dispose(); 1873 createTimeBuilder_ = null; 1874 } 1875 onChanged(); 1876 return this; 1877 } 1878 /** 1879 * 1880 * 1881 * <pre> 1882 * Output only. The time the connector was created (as an API call, not when 1883 * it was actually installed). 1884 * </pre> 1885 * 1886 * <code> 1887 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1888 * </code> 1889 */ getCreateTimeBuilder()1890 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 1891 bitField0_ |= 0x00000001; 1892 onChanged(); 1893 return getCreateTimeFieldBuilder().getBuilder(); 1894 } 1895 /** 1896 * 1897 * 1898 * <pre> 1899 * Output only. The time the connector was created (as an API call, not when 1900 * it was actually installed). 1901 * </pre> 1902 * 1903 * <code> 1904 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1905 * </code> 1906 */ getCreateTimeOrBuilder()1907 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 1908 if (createTimeBuilder_ != null) { 1909 return createTimeBuilder_.getMessageOrBuilder(); 1910 } else { 1911 return createTime_ == null 1912 ? com.google.protobuf.Timestamp.getDefaultInstance() 1913 : createTime_; 1914 } 1915 } 1916 /** 1917 * 1918 * 1919 * <pre> 1920 * Output only. The time the connector was created (as an API call, not when 1921 * it was actually installed). 1922 * </pre> 1923 * 1924 * <code> 1925 * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1926 * </code> 1927 */ 1928 private com.google.protobuf.SingleFieldBuilderV3< 1929 com.google.protobuf.Timestamp, 1930 com.google.protobuf.Timestamp.Builder, 1931 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()1932 getCreateTimeFieldBuilder() { 1933 if (createTimeBuilder_ == null) { 1934 createTimeBuilder_ = 1935 new com.google.protobuf.SingleFieldBuilderV3< 1936 com.google.protobuf.Timestamp, 1937 com.google.protobuf.Timestamp.Builder, 1938 com.google.protobuf.TimestampOrBuilder>( 1939 getCreateTime(), getParentForChildren(), isClean()); 1940 createTime_ = null; 1941 } 1942 return createTimeBuilder_; 1943 } 1944 1945 private com.google.protobuf.Timestamp updateTime_; 1946 private com.google.protobuf.SingleFieldBuilderV3< 1947 com.google.protobuf.Timestamp, 1948 com.google.protobuf.Timestamp.Builder, 1949 com.google.protobuf.TimestampOrBuilder> 1950 updateTimeBuilder_; 1951 /** 1952 * 1953 * 1954 * <pre> 1955 * Output only. The last time the connector was updated with an API call. 1956 * </pre> 1957 * 1958 * <code> 1959 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1960 * </code> 1961 * 1962 * @return Whether the updateTime field is set. 1963 */ hasUpdateTime()1964 public boolean hasUpdateTime() { 1965 return ((bitField0_ & 0x00000002) != 0); 1966 } 1967 /** 1968 * 1969 * 1970 * <pre> 1971 * Output only. The last time the connector was updated with an API call. 1972 * </pre> 1973 * 1974 * <code> 1975 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1976 * </code> 1977 * 1978 * @return The updateTime. 1979 */ getUpdateTime()1980 public com.google.protobuf.Timestamp getUpdateTime() { 1981 if (updateTimeBuilder_ == null) { 1982 return updateTime_ == null 1983 ? com.google.protobuf.Timestamp.getDefaultInstance() 1984 : updateTime_; 1985 } else { 1986 return updateTimeBuilder_.getMessage(); 1987 } 1988 } 1989 /** 1990 * 1991 * 1992 * <pre> 1993 * Output only. The last time the connector was updated with an API call. 1994 * </pre> 1995 * 1996 * <code> 1997 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1998 * </code> 1999 */ setUpdateTime(com.google.protobuf.Timestamp value)2000 public Builder setUpdateTime(com.google.protobuf.Timestamp value) { 2001 if (updateTimeBuilder_ == null) { 2002 if (value == null) { 2003 throw new NullPointerException(); 2004 } 2005 updateTime_ = value; 2006 } else { 2007 updateTimeBuilder_.setMessage(value); 2008 } 2009 bitField0_ |= 0x00000002; 2010 onChanged(); 2011 return this; 2012 } 2013 /** 2014 * 2015 * 2016 * <pre> 2017 * Output only. The last time the connector was updated with an API call. 2018 * </pre> 2019 * 2020 * <code> 2021 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2022 * </code> 2023 */ setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)2024 public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 2025 if (updateTimeBuilder_ == null) { 2026 updateTime_ = builderForValue.build(); 2027 } else { 2028 updateTimeBuilder_.setMessage(builderForValue.build()); 2029 } 2030 bitField0_ |= 0x00000002; 2031 onChanged(); 2032 return this; 2033 } 2034 /** 2035 * 2036 * 2037 * <pre> 2038 * Output only. The last time the connector was updated with an API call. 2039 * </pre> 2040 * 2041 * <code> 2042 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2043 * </code> 2044 */ mergeUpdateTime(com.google.protobuf.Timestamp value)2045 public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { 2046 if (updateTimeBuilder_ == null) { 2047 if (((bitField0_ & 0x00000002) != 0) 2048 && updateTime_ != null 2049 && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 2050 getUpdateTimeBuilder().mergeFrom(value); 2051 } else { 2052 updateTime_ = value; 2053 } 2054 } else { 2055 updateTimeBuilder_.mergeFrom(value); 2056 } 2057 bitField0_ |= 0x00000002; 2058 onChanged(); 2059 return this; 2060 } 2061 /** 2062 * 2063 * 2064 * <pre> 2065 * Output only. The last time the connector was updated with an API call. 2066 * </pre> 2067 * 2068 * <code> 2069 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2070 * </code> 2071 */ clearUpdateTime()2072 public Builder clearUpdateTime() { 2073 bitField0_ = (bitField0_ & ~0x00000002); 2074 updateTime_ = null; 2075 if (updateTimeBuilder_ != null) { 2076 updateTimeBuilder_.dispose(); 2077 updateTimeBuilder_ = null; 2078 } 2079 onChanged(); 2080 return this; 2081 } 2082 /** 2083 * 2084 * 2085 * <pre> 2086 * Output only. The last time the connector was updated with an API call. 2087 * </pre> 2088 * 2089 * <code> 2090 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2091 * </code> 2092 */ getUpdateTimeBuilder()2093 public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { 2094 bitField0_ |= 0x00000002; 2095 onChanged(); 2096 return getUpdateTimeFieldBuilder().getBuilder(); 2097 } 2098 /** 2099 * 2100 * 2101 * <pre> 2102 * Output only. The last time the connector was updated with an API call. 2103 * </pre> 2104 * 2105 * <code> 2106 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2107 * </code> 2108 */ getUpdateTimeOrBuilder()2109 public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 2110 if (updateTimeBuilder_ != null) { 2111 return updateTimeBuilder_.getMessageOrBuilder(); 2112 } else { 2113 return updateTime_ == null 2114 ? com.google.protobuf.Timestamp.getDefaultInstance() 2115 : updateTime_; 2116 } 2117 } 2118 /** 2119 * 2120 * 2121 * <pre> 2122 * Output only. The last time the connector was updated with an API call. 2123 * </pre> 2124 * 2125 * <code> 2126 * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2127 * </code> 2128 */ 2129 private com.google.protobuf.SingleFieldBuilderV3< 2130 com.google.protobuf.Timestamp, 2131 com.google.protobuf.Timestamp.Builder, 2132 com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder()2133 getUpdateTimeFieldBuilder() { 2134 if (updateTimeBuilder_ == null) { 2135 updateTimeBuilder_ = 2136 new com.google.protobuf.SingleFieldBuilderV3< 2137 com.google.protobuf.Timestamp, 2138 com.google.protobuf.Timestamp.Builder, 2139 com.google.protobuf.TimestampOrBuilder>( 2140 getUpdateTime(), getParentForChildren(), isClean()); 2141 updateTime_ = null; 2142 } 2143 return updateTimeBuilder_; 2144 } 2145 2146 private java.lang.Object name_ = ""; 2147 /** 2148 * 2149 * 2150 * <pre> 2151 * Output only. The connector's name. 2152 * </pre> 2153 * 2154 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2155 * 2156 * @return The name. 2157 */ getName()2158 public java.lang.String getName() { 2159 java.lang.Object ref = name_; 2160 if (!(ref instanceof java.lang.String)) { 2161 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2162 java.lang.String s = bs.toStringUtf8(); 2163 name_ = s; 2164 return s; 2165 } else { 2166 return (java.lang.String) ref; 2167 } 2168 } 2169 /** 2170 * 2171 * 2172 * <pre> 2173 * Output only. The connector's name. 2174 * </pre> 2175 * 2176 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2177 * 2178 * @return The bytes for name. 2179 */ getNameBytes()2180 public com.google.protobuf.ByteString getNameBytes() { 2181 java.lang.Object ref = name_; 2182 if (ref instanceof String) { 2183 com.google.protobuf.ByteString b = 2184 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2185 name_ = b; 2186 return b; 2187 } else { 2188 return (com.google.protobuf.ByteString) ref; 2189 } 2190 } 2191 /** 2192 * 2193 * 2194 * <pre> 2195 * Output only. The connector's name. 2196 * </pre> 2197 * 2198 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2199 * 2200 * @param value The name to set. 2201 * @return This builder for chaining. 2202 */ setName(java.lang.String value)2203 public Builder setName(java.lang.String value) { 2204 if (value == null) { 2205 throw new NullPointerException(); 2206 } 2207 name_ = value; 2208 bitField0_ |= 0x00000004; 2209 onChanged(); 2210 return this; 2211 } 2212 /** 2213 * 2214 * 2215 * <pre> 2216 * Output only. The connector's name. 2217 * </pre> 2218 * 2219 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2220 * 2221 * @return This builder for chaining. 2222 */ clearName()2223 public Builder clearName() { 2224 name_ = getDefaultInstance().getName(); 2225 bitField0_ = (bitField0_ & ~0x00000004); 2226 onChanged(); 2227 return this; 2228 } 2229 /** 2230 * 2231 * 2232 * <pre> 2233 * Output only. The connector's name. 2234 * </pre> 2235 * 2236 * <code>string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2237 * 2238 * @param value The bytes for name to set. 2239 * @return This builder for chaining. 2240 */ setNameBytes(com.google.protobuf.ByteString value)2241 public Builder setNameBytes(com.google.protobuf.ByteString value) { 2242 if (value == null) { 2243 throw new NullPointerException(); 2244 } 2245 checkByteStringIsUtf8(value); 2246 name_ = value; 2247 bitField0_ |= 0x00000004; 2248 onChanged(); 2249 return this; 2250 } 2251 2252 private java.lang.Object registrationId_ = ""; 2253 /** 2254 * 2255 * 2256 * <pre> 2257 * Immutable. A unique key for this connector. This key is internal to the OVA 2258 * connector and is supplied with its creation during the registration process 2259 * and can not be modified. 2260 * </pre> 2261 * 2262 * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code> 2263 * 2264 * @return The registrationId. 2265 */ getRegistrationId()2266 public java.lang.String getRegistrationId() { 2267 java.lang.Object ref = registrationId_; 2268 if (!(ref instanceof java.lang.String)) { 2269 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2270 java.lang.String s = bs.toStringUtf8(); 2271 registrationId_ = s; 2272 return s; 2273 } else { 2274 return (java.lang.String) ref; 2275 } 2276 } 2277 /** 2278 * 2279 * 2280 * <pre> 2281 * Immutable. A unique key for this connector. This key is internal to the OVA 2282 * connector and is supplied with its creation during the registration process 2283 * and can not be modified. 2284 * </pre> 2285 * 2286 * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code> 2287 * 2288 * @return The bytes for registrationId. 2289 */ getRegistrationIdBytes()2290 public com.google.protobuf.ByteString getRegistrationIdBytes() { 2291 java.lang.Object ref = registrationId_; 2292 if (ref instanceof String) { 2293 com.google.protobuf.ByteString b = 2294 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2295 registrationId_ = b; 2296 return b; 2297 } else { 2298 return (com.google.protobuf.ByteString) ref; 2299 } 2300 } 2301 /** 2302 * 2303 * 2304 * <pre> 2305 * Immutable. A unique key for this connector. This key is internal to the OVA 2306 * connector and is supplied with its creation during the registration process 2307 * and can not be modified. 2308 * </pre> 2309 * 2310 * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code> 2311 * 2312 * @param value The registrationId to set. 2313 * @return This builder for chaining. 2314 */ setRegistrationId(java.lang.String value)2315 public Builder setRegistrationId(java.lang.String value) { 2316 if (value == null) { 2317 throw new NullPointerException(); 2318 } 2319 registrationId_ = value; 2320 bitField0_ |= 0x00000008; 2321 onChanged(); 2322 return this; 2323 } 2324 /** 2325 * 2326 * 2327 * <pre> 2328 * Immutable. A unique key for this connector. This key is internal to the OVA 2329 * connector and is supplied with its creation during the registration process 2330 * and can not be modified. 2331 * </pre> 2332 * 2333 * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code> 2334 * 2335 * @return This builder for chaining. 2336 */ clearRegistrationId()2337 public Builder clearRegistrationId() { 2338 registrationId_ = getDefaultInstance().getRegistrationId(); 2339 bitField0_ = (bitField0_ & ~0x00000008); 2340 onChanged(); 2341 return this; 2342 } 2343 /** 2344 * 2345 * 2346 * <pre> 2347 * Immutable. A unique key for this connector. This key is internal to the OVA 2348 * connector and is supplied with its creation during the registration process 2349 * and can not be modified. 2350 * </pre> 2351 * 2352 * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code> 2353 * 2354 * @param value The bytes for registrationId to set. 2355 * @return This builder for chaining. 2356 */ setRegistrationIdBytes(com.google.protobuf.ByteString value)2357 public Builder setRegistrationIdBytes(com.google.protobuf.ByteString value) { 2358 if (value == null) { 2359 throw new NullPointerException(); 2360 } 2361 checkByteStringIsUtf8(value); 2362 registrationId_ = value; 2363 bitField0_ |= 0x00000008; 2364 onChanged(); 2365 return this; 2366 } 2367 2368 private java.lang.Object serviceAccount_ = ""; 2369 /** 2370 * 2371 * 2372 * <pre> 2373 * The service account to use in the connector when communicating with the 2374 * cloud. 2375 * </pre> 2376 * 2377 * <code>string service_account = 5;</code> 2378 * 2379 * @return The serviceAccount. 2380 */ getServiceAccount()2381 public java.lang.String getServiceAccount() { 2382 java.lang.Object ref = serviceAccount_; 2383 if (!(ref instanceof java.lang.String)) { 2384 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2385 java.lang.String s = bs.toStringUtf8(); 2386 serviceAccount_ = s; 2387 return s; 2388 } else { 2389 return (java.lang.String) ref; 2390 } 2391 } 2392 /** 2393 * 2394 * 2395 * <pre> 2396 * The service account to use in the connector when communicating with the 2397 * cloud. 2398 * </pre> 2399 * 2400 * <code>string service_account = 5;</code> 2401 * 2402 * @return The bytes for serviceAccount. 2403 */ getServiceAccountBytes()2404 public com.google.protobuf.ByteString getServiceAccountBytes() { 2405 java.lang.Object ref = serviceAccount_; 2406 if (ref instanceof String) { 2407 com.google.protobuf.ByteString b = 2408 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2409 serviceAccount_ = b; 2410 return b; 2411 } else { 2412 return (com.google.protobuf.ByteString) ref; 2413 } 2414 } 2415 /** 2416 * 2417 * 2418 * <pre> 2419 * The service account to use in the connector when communicating with the 2420 * cloud. 2421 * </pre> 2422 * 2423 * <code>string service_account = 5;</code> 2424 * 2425 * @param value The serviceAccount to set. 2426 * @return This builder for chaining. 2427 */ setServiceAccount(java.lang.String value)2428 public Builder setServiceAccount(java.lang.String value) { 2429 if (value == null) { 2430 throw new NullPointerException(); 2431 } 2432 serviceAccount_ = value; 2433 bitField0_ |= 0x00000010; 2434 onChanged(); 2435 return this; 2436 } 2437 /** 2438 * 2439 * 2440 * <pre> 2441 * The service account to use in the connector when communicating with the 2442 * cloud. 2443 * </pre> 2444 * 2445 * <code>string service_account = 5;</code> 2446 * 2447 * @return This builder for chaining. 2448 */ clearServiceAccount()2449 public Builder clearServiceAccount() { 2450 serviceAccount_ = getDefaultInstance().getServiceAccount(); 2451 bitField0_ = (bitField0_ & ~0x00000010); 2452 onChanged(); 2453 return this; 2454 } 2455 /** 2456 * 2457 * 2458 * <pre> 2459 * The service account to use in the connector when communicating with the 2460 * cloud. 2461 * </pre> 2462 * 2463 * <code>string service_account = 5;</code> 2464 * 2465 * @param value The bytes for serviceAccount to set. 2466 * @return This builder for chaining. 2467 */ setServiceAccountBytes(com.google.protobuf.ByteString value)2468 public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { 2469 if (value == null) { 2470 throw new NullPointerException(); 2471 } 2472 checkByteStringIsUtf8(value); 2473 serviceAccount_ = value; 2474 bitField0_ |= 0x00000010; 2475 onChanged(); 2476 return this; 2477 } 2478 2479 private java.lang.Object version_ = ""; 2480 /** 2481 * 2482 * 2483 * <pre> 2484 * The version running in the DatacenterConnector. This is supplied by the OVA 2485 * connector during the registration process and can not be modified. 2486 * </pre> 2487 * 2488 * <code>string version = 6;</code> 2489 * 2490 * @return The version. 2491 */ getVersion()2492 public java.lang.String getVersion() { 2493 java.lang.Object ref = version_; 2494 if (!(ref instanceof java.lang.String)) { 2495 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2496 java.lang.String s = bs.toStringUtf8(); 2497 version_ = s; 2498 return s; 2499 } else { 2500 return (java.lang.String) ref; 2501 } 2502 } 2503 /** 2504 * 2505 * 2506 * <pre> 2507 * The version running in the DatacenterConnector. This is supplied by the OVA 2508 * connector during the registration process and can not be modified. 2509 * </pre> 2510 * 2511 * <code>string version = 6;</code> 2512 * 2513 * @return The bytes for version. 2514 */ getVersionBytes()2515 public com.google.protobuf.ByteString getVersionBytes() { 2516 java.lang.Object ref = version_; 2517 if (ref instanceof String) { 2518 com.google.protobuf.ByteString b = 2519 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2520 version_ = b; 2521 return b; 2522 } else { 2523 return (com.google.protobuf.ByteString) ref; 2524 } 2525 } 2526 /** 2527 * 2528 * 2529 * <pre> 2530 * The version running in the DatacenterConnector. This is supplied by the OVA 2531 * connector during the registration process and can not be modified. 2532 * </pre> 2533 * 2534 * <code>string version = 6;</code> 2535 * 2536 * @param value The version to set. 2537 * @return This builder for chaining. 2538 */ setVersion(java.lang.String value)2539 public Builder setVersion(java.lang.String value) { 2540 if (value == null) { 2541 throw new NullPointerException(); 2542 } 2543 version_ = value; 2544 bitField0_ |= 0x00000020; 2545 onChanged(); 2546 return this; 2547 } 2548 /** 2549 * 2550 * 2551 * <pre> 2552 * The version running in the DatacenterConnector. This is supplied by the OVA 2553 * connector during the registration process and can not be modified. 2554 * </pre> 2555 * 2556 * <code>string version = 6;</code> 2557 * 2558 * @return This builder for chaining. 2559 */ clearVersion()2560 public Builder clearVersion() { 2561 version_ = getDefaultInstance().getVersion(); 2562 bitField0_ = (bitField0_ & ~0x00000020); 2563 onChanged(); 2564 return this; 2565 } 2566 /** 2567 * 2568 * 2569 * <pre> 2570 * The version running in the DatacenterConnector. This is supplied by the OVA 2571 * connector during the registration process and can not be modified. 2572 * </pre> 2573 * 2574 * <code>string version = 6;</code> 2575 * 2576 * @param value The bytes for version to set. 2577 * @return This builder for chaining. 2578 */ setVersionBytes(com.google.protobuf.ByteString value)2579 public Builder setVersionBytes(com.google.protobuf.ByteString value) { 2580 if (value == null) { 2581 throw new NullPointerException(); 2582 } 2583 checkByteStringIsUtf8(value); 2584 version_ = value; 2585 bitField0_ |= 0x00000020; 2586 onChanged(); 2587 return this; 2588 } 2589 2590 private java.lang.Object bucket_ = ""; 2591 /** 2592 * 2593 * 2594 * <pre> 2595 * Output only. The communication channel between the datacenter connector and 2596 * Google Cloud. 2597 * </pre> 2598 * 2599 * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2600 * 2601 * @return The bucket. 2602 */ getBucket()2603 public java.lang.String getBucket() { 2604 java.lang.Object ref = bucket_; 2605 if (!(ref instanceof java.lang.String)) { 2606 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2607 java.lang.String s = bs.toStringUtf8(); 2608 bucket_ = s; 2609 return s; 2610 } else { 2611 return (java.lang.String) ref; 2612 } 2613 } 2614 /** 2615 * 2616 * 2617 * <pre> 2618 * Output only. The communication channel between the datacenter connector and 2619 * Google Cloud. 2620 * </pre> 2621 * 2622 * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2623 * 2624 * @return The bytes for bucket. 2625 */ getBucketBytes()2626 public com.google.protobuf.ByteString getBucketBytes() { 2627 java.lang.Object ref = bucket_; 2628 if (ref instanceof String) { 2629 com.google.protobuf.ByteString b = 2630 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2631 bucket_ = b; 2632 return b; 2633 } else { 2634 return (com.google.protobuf.ByteString) ref; 2635 } 2636 } 2637 /** 2638 * 2639 * 2640 * <pre> 2641 * Output only. The communication channel between the datacenter connector and 2642 * Google Cloud. 2643 * </pre> 2644 * 2645 * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2646 * 2647 * @param value The bucket to set. 2648 * @return This builder for chaining. 2649 */ setBucket(java.lang.String value)2650 public Builder setBucket(java.lang.String value) { 2651 if (value == null) { 2652 throw new NullPointerException(); 2653 } 2654 bucket_ = value; 2655 bitField0_ |= 0x00000040; 2656 onChanged(); 2657 return this; 2658 } 2659 /** 2660 * 2661 * 2662 * <pre> 2663 * Output only. The communication channel between the datacenter connector and 2664 * Google Cloud. 2665 * </pre> 2666 * 2667 * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2668 * 2669 * @return This builder for chaining. 2670 */ clearBucket()2671 public Builder clearBucket() { 2672 bucket_ = getDefaultInstance().getBucket(); 2673 bitField0_ = (bitField0_ & ~0x00000040); 2674 onChanged(); 2675 return this; 2676 } 2677 /** 2678 * 2679 * 2680 * <pre> 2681 * Output only. The communication channel between the datacenter connector and 2682 * Google Cloud. 2683 * </pre> 2684 * 2685 * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2686 * 2687 * @param value The bytes for bucket to set. 2688 * @return This builder for chaining. 2689 */ setBucketBytes(com.google.protobuf.ByteString value)2690 public Builder setBucketBytes(com.google.protobuf.ByteString value) { 2691 if (value == null) { 2692 throw new NullPointerException(); 2693 } 2694 checkByteStringIsUtf8(value); 2695 bucket_ = value; 2696 bitField0_ |= 0x00000040; 2697 onChanged(); 2698 return this; 2699 } 2700 2701 private int state_ = 0; 2702 /** 2703 * 2704 * 2705 * <pre> 2706 * Output only. State of the DatacenterConnector, as determined by the health 2707 * checks. 2708 * </pre> 2709 * 2710 * <code> 2711 * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2712 * </code> 2713 * 2714 * @return The enum numeric value on the wire for state. 2715 */ 2716 @java.lang.Override getStateValue()2717 public int getStateValue() { 2718 return state_; 2719 } 2720 /** 2721 * 2722 * 2723 * <pre> 2724 * Output only. State of the DatacenterConnector, as determined by the health 2725 * checks. 2726 * </pre> 2727 * 2728 * <code> 2729 * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2730 * </code> 2731 * 2732 * @param value The enum numeric value on the wire for state to set. 2733 * @return This builder for chaining. 2734 */ setStateValue(int value)2735 public Builder setStateValue(int value) { 2736 state_ = value; 2737 bitField0_ |= 0x00000080; 2738 onChanged(); 2739 return this; 2740 } 2741 /** 2742 * 2743 * 2744 * <pre> 2745 * Output only. State of the DatacenterConnector, as determined by the health 2746 * checks. 2747 * </pre> 2748 * 2749 * <code> 2750 * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2751 * </code> 2752 * 2753 * @return The state. 2754 */ 2755 @java.lang.Override getState()2756 public com.google.cloud.vmmigration.v1.DatacenterConnector.State getState() { 2757 com.google.cloud.vmmigration.v1.DatacenterConnector.State result = 2758 com.google.cloud.vmmigration.v1.DatacenterConnector.State.forNumber(state_); 2759 return result == null 2760 ? com.google.cloud.vmmigration.v1.DatacenterConnector.State.UNRECOGNIZED 2761 : result; 2762 } 2763 /** 2764 * 2765 * 2766 * <pre> 2767 * Output only. State of the DatacenterConnector, as determined by the health 2768 * checks. 2769 * </pre> 2770 * 2771 * <code> 2772 * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2773 * </code> 2774 * 2775 * @param value The state to set. 2776 * @return This builder for chaining. 2777 */ setState(com.google.cloud.vmmigration.v1.DatacenterConnector.State value)2778 public Builder setState(com.google.cloud.vmmigration.v1.DatacenterConnector.State value) { 2779 if (value == null) { 2780 throw new NullPointerException(); 2781 } 2782 bitField0_ |= 0x00000080; 2783 state_ = value.getNumber(); 2784 onChanged(); 2785 return this; 2786 } 2787 /** 2788 * 2789 * 2790 * <pre> 2791 * Output only. State of the DatacenterConnector, as determined by the health 2792 * checks. 2793 * </pre> 2794 * 2795 * <code> 2796 * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2797 * </code> 2798 * 2799 * @return This builder for chaining. 2800 */ clearState()2801 public Builder clearState() { 2802 bitField0_ = (bitField0_ & ~0x00000080); 2803 state_ = 0; 2804 onChanged(); 2805 return this; 2806 } 2807 2808 private com.google.protobuf.Timestamp stateTime_; 2809 private com.google.protobuf.SingleFieldBuilderV3< 2810 com.google.protobuf.Timestamp, 2811 com.google.protobuf.Timestamp.Builder, 2812 com.google.protobuf.TimestampOrBuilder> 2813 stateTimeBuilder_; 2814 /** 2815 * 2816 * 2817 * <pre> 2818 * Output only. The time the state was last set. 2819 * </pre> 2820 * 2821 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2822 * </code> 2823 * 2824 * @return Whether the stateTime field is set. 2825 */ hasStateTime()2826 public boolean hasStateTime() { 2827 return ((bitField0_ & 0x00000100) != 0); 2828 } 2829 /** 2830 * 2831 * 2832 * <pre> 2833 * Output only. The time the state was last set. 2834 * </pre> 2835 * 2836 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2837 * </code> 2838 * 2839 * @return The stateTime. 2840 */ getStateTime()2841 public com.google.protobuf.Timestamp getStateTime() { 2842 if (stateTimeBuilder_ == null) { 2843 return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; 2844 } else { 2845 return stateTimeBuilder_.getMessage(); 2846 } 2847 } 2848 /** 2849 * 2850 * 2851 * <pre> 2852 * Output only. The time the state was last set. 2853 * </pre> 2854 * 2855 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2856 * </code> 2857 */ setStateTime(com.google.protobuf.Timestamp value)2858 public Builder setStateTime(com.google.protobuf.Timestamp value) { 2859 if (stateTimeBuilder_ == null) { 2860 if (value == null) { 2861 throw new NullPointerException(); 2862 } 2863 stateTime_ = value; 2864 } else { 2865 stateTimeBuilder_.setMessage(value); 2866 } 2867 bitField0_ |= 0x00000100; 2868 onChanged(); 2869 return this; 2870 } 2871 /** 2872 * 2873 * 2874 * <pre> 2875 * Output only. The time the state was last set. 2876 * </pre> 2877 * 2878 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2879 * </code> 2880 */ setStateTime(com.google.protobuf.Timestamp.Builder builderForValue)2881 public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 2882 if (stateTimeBuilder_ == null) { 2883 stateTime_ = builderForValue.build(); 2884 } else { 2885 stateTimeBuilder_.setMessage(builderForValue.build()); 2886 } 2887 bitField0_ |= 0x00000100; 2888 onChanged(); 2889 return this; 2890 } 2891 /** 2892 * 2893 * 2894 * <pre> 2895 * Output only. The time the state was last set. 2896 * </pre> 2897 * 2898 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2899 * </code> 2900 */ mergeStateTime(com.google.protobuf.Timestamp value)2901 public Builder mergeStateTime(com.google.protobuf.Timestamp value) { 2902 if (stateTimeBuilder_ == null) { 2903 if (((bitField0_ & 0x00000100) != 0) 2904 && stateTime_ != null 2905 && stateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 2906 getStateTimeBuilder().mergeFrom(value); 2907 } else { 2908 stateTime_ = value; 2909 } 2910 } else { 2911 stateTimeBuilder_.mergeFrom(value); 2912 } 2913 bitField0_ |= 0x00000100; 2914 onChanged(); 2915 return this; 2916 } 2917 /** 2918 * 2919 * 2920 * <pre> 2921 * Output only. The time the state was last set. 2922 * </pre> 2923 * 2924 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2925 * </code> 2926 */ clearStateTime()2927 public Builder clearStateTime() { 2928 bitField0_ = (bitField0_ & ~0x00000100); 2929 stateTime_ = null; 2930 if (stateTimeBuilder_ != null) { 2931 stateTimeBuilder_.dispose(); 2932 stateTimeBuilder_ = null; 2933 } 2934 onChanged(); 2935 return this; 2936 } 2937 /** 2938 * 2939 * 2940 * <pre> 2941 * Output only. The time the state was last set. 2942 * </pre> 2943 * 2944 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2945 * </code> 2946 */ getStateTimeBuilder()2947 public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { 2948 bitField0_ |= 0x00000100; 2949 onChanged(); 2950 return getStateTimeFieldBuilder().getBuilder(); 2951 } 2952 /** 2953 * 2954 * 2955 * <pre> 2956 * Output only. The time the state was last set. 2957 * </pre> 2958 * 2959 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2960 * </code> 2961 */ getStateTimeOrBuilder()2962 public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { 2963 if (stateTimeBuilder_ != null) { 2964 return stateTimeBuilder_.getMessageOrBuilder(); 2965 } else { 2966 return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; 2967 } 2968 } 2969 /** 2970 * 2971 * 2972 * <pre> 2973 * Output only. The time the state was last set. 2974 * </pre> 2975 * 2976 * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2977 * </code> 2978 */ 2979 private com.google.protobuf.SingleFieldBuilderV3< 2980 com.google.protobuf.Timestamp, 2981 com.google.protobuf.Timestamp.Builder, 2982 com.google.protobuf.TimestampOrBuilder> getStateTimeFieldBuilder()2983 getStateTimeFieldBuilder() { 2984 if (stateTimeBuilder_ == null) { 2985 stateTimeBuilder_ = 2986 new com.google.protobuf.SingleFieldBuilderV3< 2987 com.google.protobuf.Timestamp, 2988 com.google.protobuf.Timestamp.Builder, 2989 com.google.protobuf.TimestampOrBuilder>( 2990 getStateTime(), getParentForChildren(), isClean()); 2991 stateTime_ = null; 2992 } 2993 return stateTimeBuilder_; 2994 } 2995 2996 private com.google.rpc.Status error_; 2997 private com.google.protobuf.SingleFieldBuilderV3< 2998 com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 2999 errorBuilder_; 3000 /** 3001 * 3002 * 3003 * <pre> 3004 * Output only. Provides details on the state of the Datacenter Connector in 3005 * case of an error. 3006 * </pre> 3007 * 3008 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3009 * 3010 * @return Whether the error field is set. 3011 */ hasError()3012 public boolean hasError() { 3013 return ((bitField0_ & 0x00000200) != 0); 3014 } 3015 /** 3016 * 3017 * 3018 * <pre> 3019 * Output only. Provides details on the state of the Datacenter Connector in 3020 * case of an error. 3021 * </pre> 3022 * 3023 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3024 * 3025 * @return The error. 3026 */ getError()3027 public com.google.rpc.Status getError() { 3028 if (errorBuilder_ == null) { 3029 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; 3030 } else { 3031 return errorBuilder_.getMessage(); 3032 } 3033 } 3034 /** 3035 * 3036 * 3037 * <pre> 3038 * Output only. Provides details on the state of the Datacenter Connector in 3039 * case of an error. 3040 * </pre> 3041 * 3042 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3043 */ setError(com.google.rpc.Status value)3044 public Builder setError(com.google.rpc.Status value) { 3045 if (errorBuilder_ == null) { 3046 if (value == null) { 3047 throw new NullPointerException(); 3048 } 3049 error_ = value; 3050 } else { 3051 errorBuilder_.setMessage(value); 3052 } 3053 bitField0_ |= 0x00000200; 3054 onChanged(); 3055 return this; 3056 } 3057 /** 3058 * 3059 * 3060 * <pre> 3061 * Output only. Provides details on the state of the Datacenter Connector in 3062 * case of an error. 3063 * </pre> 3064 * 3065 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3066 */ setError(com.google.rpc.Status.Builder builderForValue)3067 public Builder setError(com.google.rpc.Status.Builder builderForValue) { 3068 if (errorBuilder_ == null) { 3069 error_ = builderForValue.build(); 3070 } else { 3071 errorBuilder_.setMessage(builderForValue.build()); 3072 } 3073 bitField0_ |= 0x00000200; 3074 onChanged(); 3075 return this; 3076 } 3077 /** 3078 * 3079 * 3080 * <pre> 3081 * Output only. Provides details on the state of the Datacenter Connector in 3082 * case of an error. 3083 * </pre> 3084 * 3085 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3086 */ mergeError(com.google.rpc.Status value)3087 public Builder mergeError(com.google.rpc.Status value) { 3088 if (errorBuilder_ == null) { 3089 if (((bitField0_ & 0x00000200) != 0) 3090 && error_ != null 3091 && error_ != com.google.rpc.Status.getDefaultInstance()) { 3092 getErrorBuilder().mergeFrom(value); 3093 } else { 3094 error_ = value; 3095 } 3096 } else { 3097 errorBuilder_.mergeFrom(value); 3098 } 3099 bitField0_ |= 0x00000200; 3100 onChanged(); 3101 return this; 3102 } 3103 /** 3104 * 3105 * 3106 * <pre> 3107 * Output only. Provides details on the state of the Datacenter Connector in 3108 * case of an error. 3109 * </pre> 3110 * 3111 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3112 */ clearError()3113 public Builder clearError() { 3114 bitField0_ = (bitField0_ & ~0x00000200); 3115 error_ = null; 3116 if (errorBuilder_ != null) { 3117 errorBuilder_.dispose(); 3118 errorBuilder_ = null; 3119 } 3120 onChanged(); 3121 return this; 3122 } 3123 /** 3124 * 3125 * 3126 * <pre> 3127 * Output only. Provides details on the state of the Datacenter Connector in 3128 * case of an error. 3129 * </pre> 3130 * 3131 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3132 */ getErrorBuilder()3133 public com.google.rpc.Status.Builder getErrorBuilder() { 3134 bitField0_ |= 0x00000200; 3135 onChanged(); 3136 return getErrorFieldBuilder().getBuilder(); 3137 } 3138 /** 3139 * 3140 * 3141 * <pre> 3142 * Output only. Provides details on the state of the Datacenter Connector in 3143 * case of an error. 3144 * </pre> 3145 * 3146 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3147 */ getErrorOrBuilder()3148 public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { 3149 if (errorBuilder_ != null) { 3150 return errorBuilder_.getMessageOrBuilder(); 3151 } else { 3152 return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; 3153 } 3154 } 3155 /** 3156 * 3157 * 3158 * <pre> 3159 * Output only. Provides details on the state of the Datacenter Connector in 3160 * case of an error. 3161 * </pre> 3162 * 3163 * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3164 */ 3165 private com.google.protobuf.SingleFieldBuilderV3< 3166 com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder()3167 getErrorFieldBuilder() { 3168 if (errorBuilder_ == null) { 3169 errorBuilder_ = 3170 new com.google.protobuf.SingleFieldBuilderV3< 3171 com.google.rpc.Status, 3172 com.google.rpc.Status.Builder, 3173 com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); 3174 error_ = null; 3175 } 3176 return errorBuilder_; 3177 } 3178 3179 private java.lang.Object applianceInfrastructureVersion_ = ""; 3180 /** 3181 * 3182 * 3183 * <pre> 3184 * Output only. Appliance OVA version. 3185 * This is the OVA which is manually installed by the user and contains the 3186 * infrastructure for the automatically updatable components on the appliance. 3187 * </pre> 3188 * 3189 * <code> 3190 * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3191 * </code> 3192 * 3193 * @return The applianceInfrastructureVersion. 3194 */ getApplianceInfrastructureVersion()3195 public java.lang.String getApplianceInfrastructureVersion() { 3196 java.lang.Object ref = applianceInfrastructureVersion_; 3197 if (!(ref instanceof java.lang.String)) { 3198 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3199 java.lang.String s = bs.toStringUtf8(); 3200 applianceInfrastructureVersion_ = s; 3201 return s; 3202 } else { 3203 return (java.lang.String) ref; 3204 } 3205 } 3206 /** 3207 * 3208 * 3209 * <pre> 3210 * Output only. Appliance OVA version. 3211 * This is the OVA which is manually installed by the user and contains the 3212 * infrastructure for the automatically updatable components on the appliance. 3213 * </pre> 3214 * 3215 * <code> 3216 * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3217 * </code> 3218 * 3219 * @return The bytes for applianceInfrastructureVersion. 3220 */ getApplianceInfrastructureVersionBytes()3221 public com.google.protobuf.ByteString getApplianceInfrastructureVersionBytes() { 3222 java.lang.Object ref = applianceInfrastructureVersion_; 3223 if (ref instanceof String) { 3224 com.google.protobuf.ByteString b = 3225 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3226 applianceInfrastructureVersion_ = b; 3227 return b; 3228 } else { 3229 return (com.google.protobuf.ByteString) ref; 3230 } 3231 } 3232 /** 3233 * 3234 * 3235 * <pre> 3236 * Output only. Appliance OVA version. 3237 * This is the OVA which is manually installed by the user and contains the 3238 * infrastructure for the automatically updatable components on the appliance. 3239 * </pre> 3240 * 3241 * <code> 3242 * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3243 * </code> 3244 * 3245 * @param value The applianceInfrastructureVersion to set. 3246 * @return This builder for chaining. 3247 */ setApplianceInfrastructureVersion(java.lang.String value)3248 public Builder setApplianceInfrastructureVersion(java.lang.String value) { 3249 if (value == null) { 3250 throw new NullPointerException(); 3251 } 3252 applianceInfrastructureVersion_ = value; 3253 bitField0_ |= 0x00000400; 3254 onChanged(); 3255 return this; 3256 } 3257 /** 3258 * 3259 * 3260 * <pre> 3261 * Output only. Appliance OVA version. 3262 * This is the OVA which is manually installed by the user and contains the 3263 * infrastructure for the automatically updatable components on the appliance. 3264 * </pre> 3265 * 3266 * <code> 3267 * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3268 * </code> 3269 * 3270 * @return This builder for chaining. 3271 */ clearApplianceInfrastructureVersion()3272 public Builder clearApplianceInfrastructureVersion() { 3273 applianceInfrastructureVersion_ = getDefaultInstance().getApplianceInfrastructureVersion(); 3274 bitField0_ = (bitField0_ & ~0x00000400); 3275 onChanged(); 3276 return this; 3277 } 3278 /** 3279 * 3280 * 3281 * <pre> 3282 * Output only. Appliance OVA version. 3283 * This is the OVA which is manually installed by the user and contains the 3284 * infrastructure for the automatically updatable components on the appliance. 3285 * </pre> 3286 * 3287 * <code> 3288 * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3289 * </code> 3290 * 3291 * @param value The bytes for applianceInfrastructureVersion to set. 3292 * @return This builder for chaining. 3293 */ setApplianceInfrastructureVersionBytes(com.google.protobuf.ByteString value)3294 public Builder setApplianceInfrastructureVersionBytes(com.google.protobuf.ByteString value) { 3295 if (value == null) { 3296 throw new NullPointerException(); 3297 } 3298 checkByteStringIsUtf8(value); 3299 applianceInfrastructureVersion_ = value; 3300 bitField0_ |= 0x00000400; 3301 onChanged(); 3302 return this; 3303 } 3304 3305 private java.lang.Object applianceSoftwareVersion_ = ""; 3306 /** 3307 * 3308 * 3309 * <pre> 3310 * Output only. Appliance last installed update bundle version. 3311 * This is the version of the automatically updatable components on the 3312 * appliance. 3313 * </pre> 3314 * 3315 * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3316 * </code> 3317 * 3318 * @return The applianceSoftwareVersion. 3319 */ getApplianceSoftwareVersion()3320 public java.lang.String getApplianceSoftwareVersion() { 3321 java.lang.Object ref = applianceSoftwareVersion_; 3322 if (!(ref instanceof java.lang.String)) { 3323 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3324 java.lang.String s = bs.toStringUtf8(); 3325 applianceSoftwareVersion_ = s; 3326 return s; 3327 } else { 3328 return (java.lang.String) ref; 3329 } 3330 } 3331 /** 3332 * 3333 * 3334 * <pre> 3335 * Output only. Appliance last installed update bundle version. 3336 * This is the version of the automatically updatable components on the 3337 * appliance. 3338 * </pre> 3339 * 3340 * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3341 * </code> 3342 * 3343 * @return The bytes for applianceSoftwareVersion. 3344 */ getApplianceSoftwareVersionBytes()3345 public com.google.protobuf.ByteString getApplianceSoftwareVersionBytes() { 3346 java.lang.Object ref = applianceSoftwareVersion_; 3347 if (ref instanceof String) { 3348 com.google.protobuf.ByteString b = 3349 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3350 applianceSoftwareVersion_ = b; 3351 return b; 3352 } else { 3353 return (com.google.protobuf.ByteString) ref; 3354 } 3355 } 3356 /** 3357 * 3358 * 3359 * <pre> 3360 * Output only. Appliance last installed update bundle version. 3361 * This is the version of the automatically updatable components on the 3362 * appliance. 3363 * </pre> 3364 * 3365 * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3366 * </code> 3367 * 3368 * @param value The applianceSoftwareVersion to set. 3369 * @return This builder for chaining. 3370 */ setApplianceSoftwareVersion(java.lang.String value)3371 public Builder setApplianceSoftwareVersion(java.lang.String value) { 3372 if (value == null) { 3373 throw new NullPointerException(); 3374 } 3375 applianceSoftwareVersion_ = value; 3376 bitField0_ |= 0x00000800; 3377 onChanged(); 3378 return this; 3379 } 3380 /** 3381 * 3382 * 3383 * <pre> 3384 * Output only. Appliance last installed update bundle version. 3385 * This is the version of the automatically updatable components on the 3386 * appliance. 3387 * </pre> 3388 * 3389 * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3390 * </code> 3391 * 3392 * @return This builder for chaining. 3393 */ clearApplianceSoftwareVersion()3394 public Builder clearApplianceSoftwareVersion() { 3395 applianceSoftwareVersion_ = getDefaultInstance().getApplianceSoftwareVersion(); 3396 bitField0_ = (bitField0_ & ~0x00000800); 3397 onChanged(); 3398 return this; 3399 } 3400 /** 3401 * 3402 * 3403 * <pre> 3404 * Output only. Appliance last installed update bundle version. 3405 * This is the version of the automatically updatable components on the 3406 * appliance. 3407 * </pre> 3408 * 3409 * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3410 * </code> 3411 * 3412 * @param value The bytes for applianceSoftwareVersion to set. 3413 * @return This builder for chaining. 3414 */ setApplianceSoftwareVersionBytes(com.google.protobuf.ByteString value)3415 public Builder setApplianceSoftwareVersionBytes(com.google.protobuf.ByteString value) { 3416 if (value == null) { 3417 throw new NullPointerException(); 3418 } 3419 checkByteStringIsUtf8(value); 3420 applianceSoftwareVersion_ = value; 3421 bitField0_ |= 0x00000800; 3422 onChanged(); 3423 return this; 3424 } 3425 3426 private com.google.cloud.vmmigration.v1.AvailableUpdates availableVersions_; 3427 private com.google.protobuf.SingleFieldBuilderV3< 3428 com.google.cloud.vmmigration.v1.AvailableUpdates, 3429 com.google.cloud.vmmigration.v1.AvailableUpdates.Builder, 3430 com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder> 3431 availableVersionsBuilder_; 3432 /** 3433 * 3434 * 3435 * <pre> 3436 * Output only. The available versions for updating this appliance. 3437 * </pre> 3438 * 3439 * <code> 3440 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3441 * </code> 3442 * 3443 * @return Whether the availableVersions field is set. 3444 */ hasAvailableVersions()3445 public boolean hasAvailableVersions() { 3446 return ((bitField0_ & 0x00001000) != 0); 3447 } 3448 /** 3449 * 3450 * 3451 * <pre> 3452 * Output only. The available versions for updating this appliance. 3453 * </pre> 3454 * 3455 * <code> 3456 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3457 * </code> 3458 * 3459 * @return The availableVersions. 3460 */ getAvailableVersions()3461 public com.google.cloud.vmmigration.v1.AvailableUpdates getAvailableVersions() { 3462 if (availableVersionsBuilder_ == null) { 3463 return availableVersions_ == null 3464 ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance() 3465 : availableVersions_; 3466 } else { 3467 return availableVersionsBuilder_.getMessage(); 3468 } 3469 } 3470 /** 3471 * 3472 * 3473 * <pre> 3474 * Output only. The available versions for updating this appliance. 3475 * </pre> 3476 * 3477 * <code> 3478 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3479 * </code> 3480 */ setAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value)3481 public Builder setAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value) { 3482 if (availableVersionsBuilder_ == null) { 3483 if (value == null) { 3484 throw new NullPointerException(); 3485 } 3486 availableVersions_ = value; 3487 } else { 3488 availableVersionsBuilder_.setMessage(value); 3489 } 3490 bitField0_ |= 0x00001000; 3491 onChanged(); 3492 return this; 3493 } 3494 /** 3495 * 3496 * 3497 * <pre> 3498 * Output only. The available versions for updating this appliance. 3499 * </pre> 3500 * 3501 * <code> 3502 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3503 * </code> 3504 */ setAvailableVersions( com.google.cloud.vmmigration.v1.AvailableUpdates.Builder builderForValue)3505 public Builder setAvailableVersions( 3506 com.google.cloud.vmmigration.v1.AvailableUpdates.Builder builderForValue) { 3507 if (availableVersionsBuilder_ == null) { 3508 availableVersions_ = builderForValue.build(); 3509 } else { 3510 availableVersionsBuilder_.setMessage(builderForValue.build()); 3511 } 3512 bitField0_ |= 0x00001000; 3513 onChanged(); 3514 return this; 3515 } 3516 /** 3517 * 3518 * 3519 * <pre> 3520 * Output only. The available versions for updating this appliance. 3521 * </pre> 3522 * 3523 * <code> 3524 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3525 * </code> 3526 */ mergeAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value)3527 public Builder mergeAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value) { 3528 if (availableVersionsBuilder_ == null) { 3529 if (((bitField0_ & 0x00001000) != 0) 3530 && availableVersions_ != null 3531 && availableVersions_ 3532 != com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance()) { 3533 getAvailableVersionsBuilder().mergeFrom(value); 3534 } else { 3535 availableVersions_ = value; 3536 } 3537 } else { 3538 availableVersionsBuilder_.mergeFrom(value); 3539 } 3540 bitField0_ |= 0x00001000; 3541 onChanged(); 3542 return this; 3543 } 3544 /** 3545 * 3546 * 3547 * <pre> 3548 * Output only. The available versions for updating this appliance. 3549 * </pre> 3550 * 3551 * <code> 3552 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3553 * </code> 3554 */ clearAvailableVersions()3555 public Builder clearAvailableVersions() { 3556 bitField0_ = (bitField0_ & ~0x00001000); 3557 availableVersions_ = null; 3558 if (availableVersionsBuilder_ != null) { 3559 availableVersionsBuilder_.dispose(); 3560 availableVersionsBuilder_ = null; 3561 } 3562 onChanged(); 3563 return this; 3564 } 3565 /** 3566 * 3567 * 3568 * <pre> 3569 * Output only. The available versions for updating this appliance. 3570 * </pre> 3571 * 3572 * <code> 3573 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3574 * </code> 3575 */ getAvailableVersionsBuilder()3576 public com.google.cloud.vmmigration.v1.AvailableUpdates.Builder getAvailableVersionsBuilder() { 3577 bitField0_ |= 0x00001000; 3578 onChanged(); 3579 return getAvailableVersionsFieldBuilder().getBuilder(); 3580 } 3581 /** 3582 * 3583 * 3584 * <pre> 3585 * Output only. The available versions for updating this appliance. 3586 * </pre> 3587 * 3588 * <code> 3589 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3590 * </code> 3591 */ 3592 public com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder getAvailableVersionsOrBuilder()3593 getAvailableVersionsOrBuilder() { 3594 if (availableVersionsBuilder_ != null) { 3595 return availableVersionsBuilder_.getMessageOrBuilder(); 3596 } else { 3597 return availableVersions_ == null 3598 ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance() 3599 : availableVersions_; 3600 } 3601 } 3602 /** 3603 * 3604 * 3605 * <pre> 3606 * Output only. The available versions for updating this appliance. 3607 * </pre> 3608 * 3609 * <code> 3610 * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3611 * </code> 3612 */ 3613 private com.google.protobuf.SingleFieldBuilderV3< 3614 com.google.cloud.vmmigration.v1.AvailableUpdates, 3615 com.google.cloud.vmmigration.v1.AvailableUpdates.Builder, 3616 com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder> getAvailableVersionsFieldBuilder()3617 getAvailableVersionsFieldBuilder() { 3618 if (availableVersionsBuilder_ == null) { 3619 availableVersionsBuilder_ = 3620 new com.google.protobuf.SingleFieldBuilderV3< 3621 com.google.cloud.vmmigration.v1.AvailableUpdates, 3622 com.google.cloud.vmmigration.v1.AvailableUpdates.Builder, 3623 com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder>( 3624 getAvailableVersions(), getParentForChildren(), isClean()); 3625 availableVersions_ = null; 3626 } 3627 return availableVersionsBuilder_; 3628 } 3629 3630 private com.google.cloud.vmmigration.v1.UpgradeStatus upgradeStatus_; 3631 private com.google.protobuf.SingleFieldBuilderV3< 3632 com.google.cloud.vmmigration.v1.UpgradeStatus, 3633 com.google.cloud.vmmigration.v1.UpgradeStatus.Builder, 3634 com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder> 3635 upgradeStatusBuilder_; 3636 /** 3637 * 3638 * 3639 * <pre> 3640 * Output only. The status of the current / last upgradeAppliance operation. 3641 * </pre> 3642 * 3643 * <code> 3644 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3645 * </code> 3646 * 3647 * @return Whether the upgradeStatus field is set. 3648 */ hasUpgradeStatus()3649 public boolean hasUpgradeStatus() { 3650 return ((bitField0_ & 0x00002000) != 0); 3651 } 3652 /** 3653 * 3654 * 3655 * <pre> 3656 * Output only. The status of the current / last upgradeAppliance operation. 3657 * </pre> 3658 * 3659 * <code> 3660 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3661 * </code> 3662 * 3663 * @return The upgradeStatus. 3664 */ getUpgradeStatus()3665 public com.google.cloud.vmmigration.v1.UpgradeStatus getUpgradeStatus() { 3666 if (upgradeStatusBuilder_ == null) { 3667 return upgradeStatus_ == null 3668 ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance() 3669 : upgradeStatus_; 3670 } else { 3671 return upgradeStatusBuilder_.getMessage(); 3672 } 3673 } 3674 /** 3675 * 3676 * 3677 * <pre> 3678 * Output only. The status of the current / last upgradeAppliance operation. 3679 * </pre> 3680 * 3681 * <code> 3682 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3683 * </code> 3684 */ setUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value)3685 public Builder setUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value) { 3686 if (upgradeStatusBuilder_ == null) { 3687 if (value == null) { 3688 throw new NullPointerException(); 3689 } 3690 upgradeStatus_ = value; 3691 } else { 3692 upgradeStatusBuilder_.setMessage(value); 3693 } 3694 bitField0_ |= 0x00002000; 3695 onChanged(); 3696 return this; 3697 } 3698 /** 3699 * 3700 * 3701 * <pre> 3702 * Output only. The status of the current / last upgradeAppliance operation. 3703 * </pre> 3704 * 3705 * <code> 3706 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3707 * </code> 3708 */ setUpgradeStatus( com.google.cloud.vmmigration.v1.UpgradeStatus.Builder builderForValue)3709 public Builder setUpgradeStatus( 3710 com.google.cloud.vmmigration.v1.UpgradeStatus.Builder builderForValue) { 3711 if (upgradeStatusBuilder_ == null) { 3712 upgradeStatus_ = builderForValue.build(); 3713 } else { 3714 upgradeStatusBuilder_.setMessage(builderForValue.build()); 3715 } 3716 bitField0_ |= 0x00002000; 3717 onChanged(); 3718 return this; 3719 } 3720 /** 3721 * 3722 * 3723 * <pre> 3724 * Output only. The status of the current / last upgradeAppliance operation. 3725 * </pre> 3726 * 3727 * <code> 3728 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3729 * </code> 3730 */ mergeUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value)3731 public Builder mergeUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value) { 3732 if (upgradeStatusBuilder_ == null) { 3733 if (((bitField0_ & 0x00002000) != 0) 3734 && upgradeStatus_ != null 3735 && upgradeStatus_ 3736 != com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance()) { 3737 getUpgradeStatusBuilder().mergeFrom(value); 3738 } else { 3739 upgradeStatus_ = value; 3740 } 3741 } else { 3742 upgradeStatusBuilder_.mergeFrom(value); 3743 } 3744 bitField0_ |= 0x00002000; 3745 onChanged(); 3746 return this; 3747 } 3748 /** 3749 * 3750 * 3751 * <pre> 3752 * Output only. The status of the current / last upgradeAppliance operation. 3753 * </pre> 3754 * 3755 * <code> 3756 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3757 * </code> 3758 */ clearUpgradeStatus()3759 public Builder clearUpgradeStatus() { 3760 bitField0_ = (bitField0_ & ~0x00002000); 3761 upgradeStatus_ = null; 3762 if (upgradeStatusBuilder_ != null) { 3763 upgradeStatusBuilder_.dispose(); 3764 upgradeStatusBuilder_ = null; 3765 } 3766 onChanged(); 3767 return this; 3768 } 3769 /** 3770 * 3771 * 3772 * <pre> 3773 * Output only. The status of the current / last upgradeAppliance operation. 3774 * </pre> 3775 * 3776 * <code> 3777 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3778 * </code> 3779 */ getUpgradeStatusBuilder()3780 public com.google.cloud.vmmigration.v1.UpgradeStatus.Builder getUpgradeStatusBuilder() { 3781 bitField0_ |= 0x00002000; 3782 onChanged(); 3783 return getUpgradeStatusFieldBuilder().getBuilder(); 3784 } 3785 /** 3786 * 3787 * 3788 * <pre> 3789 * Output only. The status of the current / last upgradeAppliance operation. 3790 * </pre> 3791 * 3792 * <code> 3793 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3794 * </code> 3795 */ getUpgradeStatusOrBuilder()3796 public com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder getUpgradeStatusOrBuilder() { 3797 if (upgradeStatusBuilder_ != null) { 3798 return upgradeStatusBuilder_.getMessageOrBuilder(); 3799 } else { 3800 return upgradeStatus_ == null 3801 ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance() 3802 : upgradeStatus_; 3803 } 3804 } 3805 /** 3806 * 3807 * 3808 * <pre> 3809 * Output only. The status of the current / last upgradeAppliance operation. 3810 * </pre> 3811 * 3812 * <code> 3813 * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3814 * </code> 3815 */ 3816 private com.google.protobuf.SingleFieldBuilderV3< 3817 com.google.cloud.vmmigration.v1.UpgradeStatus, 3818 com.google.cloud.vmmigration.v1.UpgradeStatus.Builder, 3819 com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder> getUpgradeStatusFieldBuilder()3820 getUpgradeStatusFieldBuilder() { 3821 if (upgradeStatusBuilder_ == null) { 3822 upgradeStatusBuilder_ = 3823 new com.google.protobuf.SingleFieldBuilderV3< 3824 com.google.cloud.vmmigration.v1.UpgradeStatus, 3825 com.google.cloud.vmmigration.v1.UpgradeStatus.Builder, 3826 com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder>( 3827 getUpgradeStatus(), getParentForChildren(), isClean()); 3828 upgradeStatus_ = null; 3829 } 3830 return upgradeStatusBuilder_; 3831 } 3832 3833 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3834 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3835 return super.setUnknownFields(unknownFields); 3836 } 3837 3838 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3839 public final Builder mergeUnknownFields( 3840 final com.google.protobuf.UnknownFieldSet unknownFields) { 3841 return super.mergeUnknownFields(unknownFields); 3842 } 3843 3844 // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.DatacenterConnector) 3845 } 3846 3847 // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.DatacenterConnector) 3848 private static final com.google.cloud.vmmigration.v1.DatacenterConnector DEFAULT_INSTANCE; 3849 3850 static { 3851 DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.DatacenterConnector(); 3852 } 3853 getDefaultInstance()3854 public static com.google.cloud.vmmigration.v1.DatacenterConnector getDefaultInstance() { 3855 return DEFAULT_INSTANCE; 3856 } 3857 3858 private static final com.google.protobuf.Parser<DatacenterConnector> PARSER = 3859 new com.google.protobuf.AbstractParser<DatacenterConnector>() { 3860 @java.lang.Override 3861 public DatacenterConnector parsePartialFrom( 3862 com.google.protobuf.CodedInputStream input, 3863 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3864 throws com.google.protobuf.InvalidProtocolBufferException { 3865 Builder builder = newBuilder(); 3866 try { 3867 builder.mergeFrom(input, extensionRegistry); 3868 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3869 throw e.setUnfinishedMessage(builder.buildPartial()); 3870 } catch (com.google.protobuf.UninitializedMessageException e) { 3871 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3872 } catch (java.io.IOException e) { 3873 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3874 .setUnfinishedMessage(builder.buildPartial()); 3875 } 3876 return builder.buildPartial(); 3877 } 3878 }; 3879 parser()3880 public static com.google.protobuf.Parser<DatacenterConnector> parser() { 3881 return PARSER; 3882 } 3883 3884 @java.lang.Override getParserForType()3885 public com.google.protobuf.Parser<DatacenterConnector> getParserForType() { 3886 return PARSER; 3887 } 3888 3889 @java.lang.Override getDefaultInstanceForType()3890 public com.google.cloud.vmmigration.v1.DatacenterConnector getDefaultInstanceForType() { 3891 return DEFAULT_INSTANCE; 3892 } 3893 } 3894