Class OsLoginProto.PosixAccount (2.26.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
TypeDescription
int

GECOS_FIELD_NUMBER

public static final int GECOS_FIELD_NUMBER
Field Value
TypeDescription
int

GID_FIELD_NUMBER

public static final int GID_FIELD_NUMBER
Field Value
TypeDescription
int

HOME_DIRECTORY_FIELD_NUMBER

public static final int HOME_DIRECTORY_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATING_SYSTEM_TYPE_FIELD_NUMBER

public static final int OPERATING_SYSTEM_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

PRIMARY_FIELD_NUMBER

public static final int PRIMARY_FIELD_NUMBER
Field Value
TypeDescription
int

SHELL_FIELD_NUMBER

public static final int SHELL_FIELD_NUMBER
Field Value
TypeDescription
int

SYSTEM_ID_FIELD_NUMBER

public static final int SYSTEM_ID_FIELD_NUMBER
Field Value
TypeDescription
int

UID_FIELD_NUMBER

public static final int UID_FIELD_NUMBER
Field Value
TypeDescription
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OsLoginProto.PosixAccount getDefaultInstance()
Returns
TypeDescription
OsLoginProto.PosixAccount

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OsLoginProto.PosixAccount.Builder newBuilder()
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

newBuilder(OsLoginProto.PosixAccount prototype)

public static OsLoginProto.PosixAccount.Builder newBuilder(OsLoginProto.PosixAccount prototype)
Parameter
NameDescription
prototypeOsLoginProto.PosixAccount
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

parseDelimitedFrom(InputStream input)

public static OsLoginProto.PosixAccount parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OsLoginProto.PosixAccount parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OsLoginProto.PosixAccount parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OsLoginProto.PosixAccount parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OsLoginProto.PosixAccount parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OsLoginProto.PosixAccount parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.PosixAccount parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.PosixAccount
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAccountId()

public String getAccountId()

Output only. A POSIX account identifier.

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

Returns
TypeDescription
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

Output only. A POSIX account identifier.

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

Returns
TypeDescription
ByteString

The bytes for accountId.

getDefaultInstanceForType()

public OsLoginProto.PosixAccount getDefaultInstanceForType()
Returns
TypeDescription
OsLoginProto.PosixAccount

getGecos()

public String getGecos()

The GECOS (user information) entry for this account.

string gecos = 7;

Returns
TypeDescription
String

The gecos.

getGecosBytes()

public ByteString getGecosBytes()

The GECOS (user information) entry for this account.

string gecos = 7;

Returns
TypeDescription
ByteString

The bytes for gecos.

getGid()

public long getGid()

The default group ID.

int64 gid = 4;

Returns
TypeDescription
long

The gid.

getHomeDirectory()

public String getHomeDirectory()

The path to the home directory for this account.

string home_directory = 5;

Returns
TypeDescription
String

The homeDirectory.

getHomeDirectoryBytes()

public ByteString getHomeDirectoryBytes()

The path to the home directory for this account.

string home_directory = 5;

Returns
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The canonical resource name.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for operatingSystemType.

getParserForType()

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

getPrimary()

public boolean getPrimary()

Only one POSIX account can be marked as primary.

bool primary = 1;

Returns
TypeDescription
boolean

The primary.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShell()

public String getShell()

The path to the logic shell for this account.

string shell = 6;

Returns
TypeDescription
String

The shell.

getShellBytes()

public ByteString getShellBytes()

The path to the logic shell for this account.

string shell = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for systemId.

getUid()

public long getUid()

The user ID.

int64 uid = 3;

Returns
TypeDescription
long

The uid.

getUsername()

public String getUsername()

The username of the POSIX account.

string username = 2;

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The username of the POSIX account.

string username = 2;

Returns
TypeDescription
ByteString

The bytes for username.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OsLoginProto.PosixAccount.Builder newBuilderForType()
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OsLoginProto.PosixAccount.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OsLoginProto.PosixAccount.Builder toBuilder()
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException