Class OsLoginProto.PosixAccount.Builder (2.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.PosixAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder
Overrides

build()

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

buildPartial()

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

clear()

public OsLoginProto.PosixAccount.Builder clear()
Returns
TypeDescription
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
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OsLoginProto.PosixAccount.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder
Overrides

clearGecos()

public OsLoginProto.PosixAccount.Builder clearGecos()

The GECOS (user information) entry for this account.

string gecos = 7;

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearGid()

public OsLoginProto.PosixAccount.Builder clearGid()

The default group ID.

int64 gid = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OsLoginProto.PosixAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearUid()

public OsLoginProto.PosixAccount.Builder clearUid()

The user ID.

int64 uid = 3;

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clearUsername()

public OsLoginProto.PosixAccount.Builder clearUsername()

The username of the POSIX account.

string username = 2;

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getPrimary()

public boolean getPrimary()

Only one POSIX account can be marked as primary.

bool primary = 1;

Returns
TypeDescription
boolean

The primary.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OsLoginProto.PosixAccount other)

public OsLoginProto.PosixAccount.Builder mergeFrom(OsLoginProto.PosixAccount other)
Parameter
NameDescription
otherOsLoginProto.PosixAccount
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OsLoginProto.PosixAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OsLoginProto.PosixAccount.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.PosixAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The accountId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for accountId to set.

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.PosixAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gecos to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gecos to set.

Returns
TypeDescription
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
NameDescription
valuelong

The gid to set.

Returns
TypeDescription
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
NameDescription
valueString

The homeDirectory to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for homeDirectory to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueOsLoginProto.OperatingSystemType

The operatingSystemType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueboolean

The primary to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The shell to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for shell to set.

Returns
TypeDescription
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
NameDescription
valueString

The systemId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for systemId to set.

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setUid(long value)

public OsLoginProto.PosixAccount.Builder setUid(long value)

The user ID.

int64 uid = 3;

Parameter
NameDescription
valuelong

The uid to set.

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.PosixAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder
Overrides

setUsername(String value)

public OsLoginProto.PosixAccount.Builder setUsername(String value)

The username of the POSIX account.

string username = 2;

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

This builder for chaining.