Class LoginProfile.Builder (2.17.0)

public static final class LoginProfile.Builder extends GeneratedMessageV3.Builder<LoginProfile.Builder> implements LoginProfileOrBuilder

The user profile information used for logging in to a virtual machine on Google Compute Engine.

Protobuf type google.cloud.oslogin.v1.LoginProfile

Static Methods

getDescriptor()

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

Methods

addAllPosixAccounts(Iterable<? extends OsLoginProto.PosixAccount> values)

public LoginProfile.Builder addAllPosixAccounts(Iterable<? extends OsLoginProto.PosixAccount> values)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.oslogin.common.OsLoginProto.PosixAccount>
Returns
TypeDescription
LoginProfile.Builder

addPosixAccounts(OsLoginProto.PosixAccount value)

public LoginProfile.Builder addPosixAccounts(OsLoginProto.PosixAccount value)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
valueOsLoginProto.PosixAccount
Returns
TypeDescription
LoginProfile.Builder

addPosixAccounts(OsLoginProto.PosixAccount.Builder builderForValue)

public LoginProfile.Builder addPosixAccounts(OsLoginProto.PosixAccount.Builder builderForValue)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
builderForValueOsLoginProto.PosixAccount.Builder
Returns
TypeDescription
LoginProfile.Builder

addPosixAccounts(int index, OsLoginProto.PosixAccount value)

public LoginProfile.Builder addPosixAccounts(int index, OsLoginProto.PosixAccount value)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameters
NameDescription
indexint
valueOsLoginProto.PosixAccount
Returns
TypeDescription
LoginProfile.Builder

addPosixAccounts(int index, OsLoginProto.PosixAccount.Builder builderForValue)

public LoginProfile.Builder addPosixAccounts(int index, OsLoginProto.PosixAccount.Builder builderForValue)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameters
NameDescription
indexint
builderForValueOsLoginProto.PosixAccount.Builder
Returns
TypeDescription
LoginProfile.Builder

addPosixAccountsBuilder()

public OsLoginProto.PosixAccount.Builder addPosixAccountsBuilder()

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

addPosixAccountsBuilder(int index)

public OsLoginProto.PosixAccount.Builder addPosixAccountsBuilder(int index)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LoginProfile build()
Returns
TypeDescription
LoginProfile

buildPartial()

public LoginProfile buildPartial()
Returns
TypeDescription
LoginProfile

clear()

public LoginProfile.Builder clear()
Returns
TypeDescription
LoginProfile.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public LoginProfile.Builder clearName()

Required. A unique user ID.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LoginProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LoginProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LoginProfile.Builder
Overrides

clearPosixAccounts()

public LoginProfile.Builder clearPosixAccounts()

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Returns
TypeDescription
LoginProfile.Builder

clearSshPublicKeys()

public LoginProfile.Builder clearSshPublicKeys()
Returns
TypeDescription
LoginProfile.Builder

clone()

public LoginProfile.Builder clone()
Returns
TypeDescription
LoginProfile.Builder
Overrides

containsSshPublicKeys(String key)

public boolean containsSshPublicKeys(String key)

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public LoginProfile getDefaultInstanceForType()
Returns
TypeDescription
LoginProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableSshPublicKeys()

public Map<String,OsLoginProto.SshPublicKey> getMutableSshPublicKeys()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,SshPublicKey>

getName()

public String getName()

Required. A unique user ID.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A unique user ID.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getPosixAccounts(int index)

public OsLoginProto.PosixAccount getPosixAccounts(int index)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OsLoginProto.PosixAccount

getPosixAccountsBuilder(int index)

public OsLoginProto.PosixAccount.Builder getPosixAccountsBuilder(int index)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OsLoginProto.PosixAccount.Builder

getPosixAccountsBuilderList()

public List<OsLoginProto.PosixAccount.Builder> getPosixAccountsBuilderList()

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Returns
TypeDescription
List<Builder>

getPosixAccountsCount()

public int getPosixAccountsCount()

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Returns
TypeDescription
int

getPosixAccountsList()

public List<OsLoginProto.PosixAccount> getPosixAccountsList()

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Returns
TypeDescription
List<PosixAccount>

getPosixAccountsOrBuilder(int index)

public OsLoginProto.PosixAccountOrBuilder getPosixAccountsOrBuilder(int index)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OsLoginProto.PosixAccountOrBuilder

getPosixAccountsOrBuilderList()

public List<? extends OsLoginProto.PosixAccountOrBuilder> getPosixAccountsOrBuilderList()

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Returns
TypeDescription
List<? extends com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder>

getSshPublicKeys()

public Map<String,OsLoginProto.SshPublicKey> getSshPublicKeys()
Returns
TypeDescription
Map<String,SshPublicKey>

getSshPublicKeysCount()

public int getSshPublicKeysCount()

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Returns
TypeDescription
int

getSshPublicKeysMap()

public Map<String,OsLoginProto.SshPublicKey> getSshPublicKeysMap()

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Returns
TypeDescription
Map<String,SshPublicKey>

getSshPublicKeysOrDefault(String key, OsLoginProto.SshPublicKey defaultValue)

public OsLoginProto.SshPublicKey getSshPublicKeysOrDefault(String key, OsLoginProto.SshPublicKey defaultValue)

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Parameters
NameDescription
keyString
defaultValueOsLoginProto.SshPublicKey
Returns
TypeDescription
OsLoginProto.SshPublicKey

getSshPublicKeysOrThrow(String key)

public OsLoginProto.SshPublicKey getSshPublicKeysOrThrow(String key)

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
OsLoginProto.SshPublicKey

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LoginProfile other)

public LoginProfile.Builder mergeFrom(LoginProfile other)
Parameter
NameDescription
otherLoginProfile
Returns
TypeDescription
LoginProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LoginProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LoginProfile.Builder
Overrides

putAllSshPublicKeys(Map<String,OsLoginProto.SshPublicKey> values)

public LoginProfile.Builder putAllSshPublicKeys(Map<String,OsLoginProto.SshPublicKey> values)

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Parameter
NameDescription
valuesMap<String,SshPublicKey>
Returns
TypeDescription
LoginProfile.Builder

putSshPublicKeys(String key, OsLoginProto.SshPublicKey value)

public LoginProfile.Builder putSshPublicKeys(String key, OsLoginProto.SshPublicKey value)

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Parameters
NameDescription
keyString
valueOsLoginProto.SshPublicKey
Returns
TypeDescription
LoginProfile.Builder

removePosixAccounts(int index)

public LoginProfile.Builder removePosixAccounts(int index)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
LoginProfile.Builder

removeSshPublicKeys(String key)

public LoginProfile.Builder removeSshPublicKeys(String key)

A map from SSH public key fingerprint to the associated key object.

map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
LoginProfile.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LoginProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LoginProfile.Builder
Overrides

setName(String value)

public LoginProfile.Builder setName(String value)

Required. A unique user ID.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
LoginProfile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LoginProfile.Builder setNameBytes(ByteString value)

Required. A unique user ID.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
LoginProfile.Builder

This builder for chaining.

setPosixAccounts(int index, OsLoginProto.PosixAccount value)

public LoginProfile.Builder setPosixAccounts(int index, OsLoginProto.PosixAccount value)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameters
NameDescription
indexint
valueOsLoginProto.PosixAccount
Returns
TypeDescription
LoginProfile.Builder

setPosixAccounts(int index, OsLoginProto.PosixAccount.Builder builderForValue)

public LoginProfile.Builder setPosixAccounts(int index, OsLoginProto.PosixAccount.Builder builderForValue)

The list of POSIX accounts associated with the user.

repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;

Parameters
NameDescription
indexint
builderForValueOsLoginProto.PosixAccount.Builder
Returns
TypeDescription
LoginProfile.Builder

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

public LoginProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LoginProfile.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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