Class OsLoginProto.PosixAccount.Builder (2.48.0)

public static final class OsLoginProto.PosixAccount.Builder extends GeneratedMessageV3.Builder<OsLoginProto.PosixAccount.Builder> implements OsLoginProto.PosixAccountOrBuilder

The POSIX account information associated with a Google account.

Protobuf type google.cloud.oslogin.common.PosixAccount

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.PosixAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

build()

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

buildPartial()

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

clear()

public OsLoginProto.PosixAccount.Builder clear()
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

clearAccountId()

public OsLoginProto.PosixAccount.Builder clearAccountId()

Output only. A POSIX account identifier.

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

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OsLoginProto.PosixAccount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

clearGecos()

public OsLoginProto.PosixAccount.Builder clearGecos()

The GECOS (user information) entry for this account.

string gecos = 7;

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearGid()

public OsLoginProto.PosixAccount.Builder clearGid()

The default group ID.

int64 gid = 4;

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearHomeDirectory()

public OsLoginProto.PosixAccount.Builder clearHomeDirectory()

The path to the home directory for this account.

string home_directory = 5;

Returns
Type Description
OsLoginProto.PosixAccount.Builder

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
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OsLoginProto.PosixAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

clearOperatingSystemType()

public OsLoginProto.PosixAccount.Builder clearOperatingSystemType()

The operating system type where this account applies.

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

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearPrimary()

public OsLoginProto.PosixAccount.Builder clearPrimary()

Only one POSIX account can be marked as primary.

bool primary = 1;

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearShell()

public OsLoginProto.PosixAccount.Builder clearShell()

The path to the logic shell for this account.

string shell = 6;

Returns
Type Description
OsLoginProto.PosixAccount.Builder

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
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearUid()

public OsLoginProto.PosixAccount.Builder clearUid()

The user ID.

int64 uid = 3;

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearUsername()

public OsLoginProto.PosixAccount.Builder clearUsername()

The username of the POSIX account.

string username = 2;

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clone()

public OsLoginProto.PosixAccount.Builder clone()
Returns
Type Description
OsLoginProto.PosixAccount.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getPrimary()

public boolean getPrimary()

Only one POSIX account can be marked as primary.

bool primary = 1;

Returns
Type Description
boolean

The primary.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OsLoginProto.PosixAccount other)

public OsLoginProto.PosixAccount.Builder mergeFrom(OsLoginProto.PosixAccount other)
Parameter
Name Description
other OsLoginProto.PosixAccount
Returns
Type Description
OsLoginProto.PosixAccount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OsLoginProto.PosixAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OsLoginProto.PosixAccount.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.PosixAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

setAccountId(String value)

public OsLoginProto.PosixAccount.Builder setAccountId(String value)

Output only. A POSIX account identifier.

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

Parameter
Name Description
value String

The accountId to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setAccountIdBytes(ByteString value)

public OsLoginProto.PosixAccount.Builder setAccountIdBytes(ByteString value)

Output only. A POSIX account identifier.

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

Parameter
Name Description
value ByteString

The bytes for accountId to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.PosixAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

setGecos(String value)

public OsLoginProto.PosixAccount.Builder setGecos(String value)

The GECOS (user information) entry for this account.

string gecos = 7;

Parameter
Name Description
value String

The gecos to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setGecosBytes(ByteString value)

public OsLoginProto.PosixAccount.Builder setGecosBytes(ByteString value)

The GECOS (user information) entry for this account.

string gecos = 7;

Parameter
Name Description
value ByteString

The bytes for gecos to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setGid(long value)

public OsLoginProto.PosixAccount.Builder setGid(long value)

The default group ID.

int64 gid = 4;

Parameter
Name Description
value long

The gid to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setHomeDirectory(String value)

public OsLoginProto.PosixAccount.Builder setHomeDirectory(String value)

The path to the home directory for this account.

string home_directory = 5;

Parameter
Name Description
value String

The homeDirectory to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setHomeDirectoryBytes(ByteString value)

public OsLoginProto.PosixAccount.Builder setHomeDirectoryBytes(ByteString value)

The path to the home directory for this account.

string home_directory = 5;

Parameter
Name Description
value ByteString

The bytes for homeDirectory to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setName(String value)

public OsLoginProto.PosixAccount.Builder setName(String value)

Output only. The canonical resource name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OsLoginProto.PosixAccount.Builder setNameBytes(ByteString value)

Output only. The canonical resource name.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setOperatingSystemType(OsLoginProto.OperatingSystemType value)

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;

Parameter
Name Description
value OsLoginProto.OperatingSystemType

The operatingSystemType to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setOperatingSystemTypeValue(int value)

public OsLoginProto.PosixAccount.Builder setOperatingSystemTypeValue(int value)

The operating system type where this account applies.

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

Parameter
Name Description
value int

The enum numeric value on the wire for operatingSystemType to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setPrimary(boolean value)

public OsLoginProto.PosixAccount.Builder setPrimary(boolean value)

Only one POSIX account can be marked as primary.

bool primary = 1;

Parameter
Name Description
value boolean

The primary to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OsLoginProto.PosixAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

setShell(String value)

public OsLoginProto.PosixAccount.Builder setShell(String value)

The path to the logic shell for this account.

string shell = 6;

Parameter
Name Description
value String

The shell to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setShellBytes(ByteString value)

public OsLoginProto.PosixAccount.Builder setShellBytes(ByteString value)

The path to the logic shell for this account.

string shell = 6;

Parameter
Name Description
value ByteString

The bytes for shell to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setSystemId(String value)

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;

Parameter
Name Description
value String

The systemId to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setSystemIdBytes(ByteString value)

public OsLoginProto.PosixAccount.Builder setSystemIdBytes(ByteString value)

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

string system_id = 8;

Parameter
Name Description
value ByteString

The bytes for systemId to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setUid(long value)

public OsLoginProto.PosixAccount.Builder setUid(long value)

The user ID.

int64 uid = 3;

Parameter
Name Description
value long

The uid to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.PosixAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OsLoginProto.PosixAccount.Builder
Overrides

setUsername(String value)

public OsLoginProto.PosixAccount.Builder setUsername(String value)

The username of the POSIX account.

string username = 2;

Parameter
Name Description
value String

The username to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public OsLoginProto.PosixAccount.Builder setUsernameBytes(ByteString value)

The username of the POSIX account.

string username = 2;

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
OsLoginProto.PosixAccount.Builder

This builder for chaining.