Class OsLoginProto.PosixAccount.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public OsLoginProto.PosixAccount.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OsLoginProto.PosixAccount.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • setOperatingSystemType

        public OsLoginProto.PosixAccount.Builder setOperatingSystemType​(OsLoginProto.OperatingSystemType value)
         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.
      • 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

        public OsLoginProto.PosixAccount.Builder 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.
      • setUnknownFields

        public final OsLoginProto.PosixAccount.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OsLoginProto.PosixAccount.Builder>
      • mergeUnknownFields

        public final OsLoginProto.PosixAccount.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OsLoginProto.PosixAccount.Builder>