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