Class OsLoginProto.PosixAccount.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder
All Implemented Interfaces:
OsLoginProto.PosixAccountOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OsLoginProto.PosixAccount

public static final class OsLoginProto.PosixAccount.Builder extends com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder> implements OsLoginProto.PosixAccountOrBuilder
 The POSIX account information associated with a Google account.
 
Protobuf type google.cloud.oslogin.common.PosixAccount
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
    • getDefaultInstanceForType

      public OsLoginProto.PosixAccount getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public OsLoginProto.PosixAccount build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public OsLoginProto.PosixAccount buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public OsLoginProto.PosixAccount.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OsLoginProto.PosixAccount.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
    • mergeFrom

      public OsLoginProto.PosixAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OsLoginProto.PosixAccount.Builder>
      Throws:
      IOException
    • getPrimary

      public boolean getPrimary()
       Only one POSIX account can be marked as primary.
       
      bool primary = 1;
      Specified by:
      getPrimary in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The primary.
    • setPrimary

      public OsLoginProto.PosixAccount.Builder setPrimary(boolean value)
       Only one POSIX account can be marked as primary.
       
      bool primary = 1;
      Parameters:
      value - The primary to set.
      Returns:
      This builder for chaining.
    • clearPrimary

      public OsLoginProto.PosixAccount.Builder clearPrimary()
       Only one POSIX account can be marked as primary.
       
      bool primary = 1;
      Returns:
      This builder for chaining.
    • getUsername

      public String getUsername()
       The username of the POSIX account.
       
      string username = 2;
      Specified by:
      getUsername in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       The username of the POSIX account.
       
      string username = 2;
      Specified by:
      getUsernameBytes in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public OsLoginProto.PosixAccount.Builder setUsername(String value)
       The username of the POSIX account.
       
      string username = 2;
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public OsLoginProto.PosixAccount.Builder clearUsername()
       The username of the POSIX account.
       
      string username = 2;
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public OsLoginProto.PosixAccount.Builder setUsernameBytes(com.google.protobuf.ByteString value)
       The username of the POSIX account.
       
      string username = 2;
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.
    • getUid

      public long getUid()
       The user ID.
       
      int64 uid = 3;
      Specified by:
      getUid in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The uid.
    • setUid

      public OsLoginProto.PosixAccount.Builder setUid(long value)
       The user ID.
       
      int64 uid = 3;
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

       The user ID.
       
      int64 uid = 3;
      Returns:
      This builder for chaining.
    • getGid

      public long getGid()
       The default group ID.
       
      int64 gid = 4;
      Specified by:
      getGid in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The gid.
    • setGid

      public OsLoginProto.PosixAccount.Builder setGid(long value)
       The default group ID.
       
      int64 gid = 4;
      Parameters:
      value - The gid to set.
      Returns:
      This builder for chaining.
    • clearGid

       The default group ID.
       
      int64 gid = 4;
      Returns:
      This builder for chaining.
    • getHomeDirectory

      public String getHomeDirectory()
       The path to the home directory for this account.
       
      string home_directory = 5;
      Specified by:
      getHomeDirectory in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The homeDirectory.
    • getHomeDirectoryBytes

      public com.google.protobuf.ByteString getHomeDirectoryBytes()
       The path to the home directory for this account.
       
      string home_directory = 5;
      Specified by:
      getHomeDirectoryBytes in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The bytes for homeDirectory.
    • setHomeDirectory

      public OsLoginProto.PosixAccount.Builder setHomeDirectory(String value)
       The path to the home directory for this account.
       
      string home_directory = 5;
      Parameters:
      value - The homeDirectory to set.
      Returns:
      This builder for chaining.
    • clearHomeDirectory

      public OsLoginProto.PosixAccount.Builder clearHomeDirectory()
       The path to the home directory for this account.
       
      string home_directory = 5;
      Returns:
      This builder for chaining.
    • setHomeDirectoryBytes

      public OsLoginProto.PosixAccount.Builder setHomeDirectoryBytes(com.google.protobuf.ByteString value)
       The path to the home directory for this account.
       
      string home_directory = 5;
      Parameters:
      value - The bytes for homeDirectory to set.
      Returns:
      This builder for chaining.
    • getShell

      public String getShell()
       The path to the logic shell for this account.
       
      string shell = 6;
      Specified by:
      getShell in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The shell.
    • getShellBytes

      public com.google.protobuf.ByteString getShellBytes()
       The path to the logic shell for this account.
       
      string shell = 6;
      Specified by:
      getShellBytes in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The bytes for shell.
    • setShell

      public OsLoginProto.PosixAccount.Builder setShell(String value)
       The path to the logic shell for this account.
       
      string shell = 6;
      Parameters:
      value - The shell to set.
      Returns:
      This builder for chaining.
    • clearShell

      public OsLoginProto.PosixAccount.Builder clearShell()
       The path to the logic shell for this account.
       
      string shell = 6;
      Returns:
      This builder for chaining.
    • setShellBytes

      public OsLoginProto.PosixAccount.Builder setShellBytes(com.google.protobuf.ByteString value)
       The path to the logic shell for this account.
       
      string shell = 6;
      Parameters:
      value - The bytes for shell to set.
      Returns:
      This builder for chaining.
    • getGecos

      public String getGecos()
       The GECOS (user information) entry for this account.
       
      string gecos = 7;
      Specified by:
      getGecos in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The gecos.
    • getGecosBytes

      public com.google.protobuf.ByteString getGecosBytes()
       The GECOS (user information) entry for this account.
       
      string gecos = 7;
      Specified by:
      getGecosBytes in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The bytes for gecos.
    • setGecos

      public OsLoginProto.PosixAccount.Builder setGecos(String value)
       The GECOS (user information) entry for this account.
       
      string gecos = 7;
      Parameters:
      value - The gecos to set.
      Returns:
      This builder for chaining.
    • clearGecos

      public OsLoginProto.PosixAccount.Builder clearGecos()
       The GECOS (user information) entry for this account.
       
      string gecos = 7;
      Returns:
      This builder for chaining.
    • setGecosBytes

      public OsLoginProto.PosixAccount.Builder setGecosBytes(com.google.protobuf.ByteString value)
       The GECOS (user information) entry for this account.
       
      string gecos = 7;
      Parameters:
      value - The bytes for gecos to set.
      Returns:
      This builder for chaining.
    • getSystemId

      public String getSystemId()
       System identifier for which account the username or uid applies to.
       By default, the empty value is used.
       
      string system_id = 8;
      Specified by:
      getSystemId in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The systemId.
    • getSystemIdBytes

      public com.google.protobuf.ByteString getSystemIdBytes()
       System identifier for which account the username or uid applies to.
       By default, the empty value is used.
       
      string system_id = 8;
      Specified by:
      getSystemIdBytes in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The bytes for systemId.
    • setSystemId

      public OsLoginProto.PosixAccount.Builder setSystemId(String value)
       System identifier for which account the username or uid applies to.
       By default, the empty value is used.
       
      string system_id = 8;
      Parameters:
      value - The systemId to set.
      Returns:
      This builder for chaining.
    • clearSystemId

      public OsLoginProto.PosixAccount.Builder clearSystemId()
       System identifier for which account the username or uid applies to.
       By default, the empty value is used.
       
      string system_id = 8;
      Returns:
      This builder for chaining.
    • setSystemIdBytes

      public OsLoginProto.PosixAccount.Builder setSystemIdBytes(com.google.protobuf.ByteString value)
       System identifier for which account the username or uid applies to.
       By default, the empty value is used.
       
      string system_id = 8;
      Parameters:
      value - The bytes for systemId to set.
      Returns:
      This builder for chaining.
    • getAccountId

      public String getAccountId()
       Output only. A POSIX account identifier.
       
      string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAccountId in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The accountId.
    • getAccountIdBytes

      public com.google.protobuf.ByteString getAccountIdBytes()
       Output only. A POSIX account identifier.
       
      string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAccountIdBytes in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The bytes for accountId.
    • setAccountId

      public OsLoginProto.PosixAccount.Builder setAccountId(String value)
       Output only. A POSIX account identifier.
       
      string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The accountId to set.
      Returns:
      This builder for chaining.
    • clearAccountId

      public OsLoginProto.PosixAccount.Builder clearAccountId()
       Output only. A POSIX account identifier.
       
      string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAccountIdBytes

      public OsLoginProto.PosixAccount.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
       Output only. A POSIX account identifier.
       
      string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for accountId to set.
      Returns:
      This builder for chaining.
    • getOperatingSystemTypeValue

      public int getOperatingSystemTypeValue()
       The operating system type where this account applies.
       
      .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;
      Specified by:
      getOperatingSystemTypeValue in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The enum numeric value on the wire for operatingSystemType.
    • setOperatingSystemTypeValue

      public OsLoginProto.PosixAccount.Builder setOperatingSystemTypeValue(int value)
       The operating system type where this account applies.
       
      .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;
      Parameters:
      value - The enum numeric value on the wire for operatingSystemType to set.
      Returns:
      This builder for chaining.
    • getOperatingSystemType

      public OsLoginProto.OperatingSystemType getOperatingSystemType()
       The operating system type where this account applies.
       
      .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;
      Specified by:
      getOperatingSystemType in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The operatingSystemType.
    • setOperatingSystemType

       The operating system type where this account applies.
       
      .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;
      Parameters:
      value - The operatingSystemType to set.
      Returns:
      This builder for chaining.
    • clearOperatingSystemType

      public OsLoginProto.PosixAccount.Builder clearOperatingSystemType()
       The operating system type where this account applies.
       
      .google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Output only. The canonical resource name.
       
      string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The canonical resource name.
       
      string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The bytes for name.
    • setName

      public OsLoginProto.PosixAccount.Builder setName(String value)
       Output only. The canonical resource name.
       
      string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Output only. The canonical resource name.
       
      string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public OsLoginProto.PosixAccount.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The canonical resource name.
       
      string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.