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