Class OsLoginProto.PosixAccount (2.44.0)

public static final class OsLoginProto.PosixAccount extends GeneratedMessageV3 implements OsLoginProto.PosixAccountOrBuilder

The POSIX account information associated with a Google account.

Protobuf type google.cloud.oslogin.common.PosixAccount

Static Fields

ACCOUNT_ID_FIELD_NUMBER

public static final int ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int

GECOS_FIELD_NUMBER

public static final int GECOS_FIELD_NUMBER
Field Value
Type Description
int

GID_FIELD_NUMBER

public static final int GID_FIELD_NUMBER
Field Value
Type Description
int

HOME_DIRECTORY_FIELD_NUMBER

public static final int HOME_DIRECTORY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OPERATING_SYSTEM_TYPE_FIELD_NUMBER

public static final int OPERATING_SYSTEM_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PRIMARY_FIELD_NUMBER

public static final int PRIMARY_FIELD_NUMBER
Field Value
Type Description
int

SHELL_FIELD_NUMBER

public static final int SHELL_FIELD_NUMBER
Field Value
Type Description
int

SYSTEM_ID_FIELD_NUMBER

public static final int SYSTEM_ID_FIELD_NUMBER
Field Value
Type Description
int

UID_FIELD_NUMBER

public static final int UID_FIELD_NUMBER
Field Value
Type Description
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OsLoginProto.PosixAccount getDefaultInstance()
Returns
Type Description
OsLoginProto.PosixAccount

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OsLoginProto.PosixAccount.Builder newBuilder()
Returns
Type Description
OsLoginProto.PosixAccount.Builder

newBuilder(OsLoginProto.PosixAccount prototype)

public static OsLoginProto.PosixAccount.Builder newBuilder(OsLoginProto.PosixAccount prototype)
Parameter
Name Description
prototype OsLoginProto.PosixAccount
Returns
Type Description
OsLoginProto.PosixAccount.Builder

parseDelimitedFrom(InputStream input)

public static OsLoginProto.PosixAccount parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OsLoginProto.PosixAccount parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OsLoginProto.PosixAccount parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OsLoginProto.PosixAccount parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OsLoginProto.PosixAccount parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OsLoginProto.PosixAccount parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.PosixAccount
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OsLoginProto.PosixAccount> parser()
Returns
Type Description
Parser<PosixAccount>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAccountId()

public String getAccountId()

Output only. A POSIX account identifier.

string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

Output only. A POSIX account identifier.

string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for accountId.

getDefaultInstanceForType()

public OsLoginProto.PosixAccount getDefaultInstanceForType()
Returns
Type Description
OsLoginProto.PosixAccount

getGecos()

public String getGecos()

The GECOS (user information) entry for this account.

string gecos = 7;

Returns
Type Description
String

The gecos.

getGecosBytes()

public ByteString getGecosBytes()

The GECOS (user information) entry for this account.

string gecos = 7;

Returns
Type Description
ByteString

The bytes for gecos.

getGid()

public long getGid()

The default group ID.

int64 gid = 4;

Returns
Type Description
long

The gid.

getHomeDirectory()

public String getHomeDirectory()

The path to the home directory for this account.

string home_directory = 5;

Returns
Type Description
String

The homeDirectory.

getHomeDirectoryBytes()

public ByteString getHomeDirectoryBytes()

The path to the home directory for this account.

string home_directory = 5;

Returns
Type Description
ByteString

The bytes for homeDirectory.

getName()

public String getName()

Output only. The canonical resource name.

string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The canonical resource name.

string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getOperatingSystemType()

public OsLoginProto.OperatingSystemType getOperatingSystemType()

The operating system type where this account applies.

.google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;

Returns
Type Description
OsLoginProto.OperatingSystemType

The operatingSystemType.

getOperatingSystemTypeValue()

public int getOperatingSystemTypeValue()

The operating system type where this account applies.

.google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;

Returns
Type Description
int

The enum numeric value on the wire for operatingSystemType.

getParserForType()

public Parser<OsLoginProto.PosixAccount> getParserForType()
Returns
Type Description
Parser<PosixAccount>
Overrides

getPrimary()

public boolean getPrimary()

Only one POSIX account can be marked as primary.

bool primary = 1;

Returns
Type Description
boolean

The primary.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShell()

public String getShell()

The path to the logic shell for this account.

string shell = 6;

Returns
Type Description
String

The shell.

getShellBytes()

public ByteString getShellBytes()

The path to the logic shell for this account.

string shell = 6;

Returns
Type Description
ByteString

The bytes for shell.

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;

Returns
Type Description
String

The systemId.

getSystemIdBytes()

public ByteString getSystemIdBytes()

System identifier for which account the username or uid applies to. By default, the empty value is used.

string system_id = 8;

Returns
Type Description
ByteString

The bytes for systemId.

getUid()

public long getUid()

The user ID.

int64 uid = 3;

Returns
Type Description
long

The uid.

getUsername()

public String getUsername()

The username of the POSIX account.

string username = 2;

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The username of the POSIX account.

string username = 2;

Returns
Type Description
ByteString

The bytes for username.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OsLoginProto.PosixAccount.Builder newBuilderForType()
Returns
Type Description
OsLoginProto.PosixAccount.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OsLoginProto.PosixAccount.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OsLoginProto.PosixAccount.Builder toBuilder()
Returns
Type Description
OsLoginProto.PosixAccount.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException