Class OsLoginProto.PosixAccount

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

public static final class OsLoginProto.PosixAccount extends com.google.protobuf.GeneratedMessage implements OsLoginProto.PosixAccountOrBuilder
 The POSIX account information associated with a Google account.
 
Protobuf type google.cloud.oslogin.common.PosixAccount
See Also:
  • Field Details

  • 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
    • 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.
    • 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.
    • getUid

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

      public long getGid()
       The default group ID.
       
      int64 gid = 4;
      Specified by:
      getGid in interface OsLoginProto.PosixAccountOrBuilder
      Returns:
      The gid.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OsLoginProto.PosixAccount parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static OsLoginProto.PosixAccount parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static OsLoginProto.PosixAccount parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static OsLoginProto.PosixAccount.Builder newBuilder()
    • newBuilder

      public static OsLoginProto.PosixAccount.Builder newBuilder(OsLoginProto.PosixAccount prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected OsLoginProto.PosixAccount.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static OsLoginProto.PosixAccount getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<OsLoginProto.PosixAccount> parser()
    • getParserForType

      public com.google.protobuf.Parser<OsLoginProto.PosixAccount> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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