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
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
Name | Description |
values | Iterable<? extends com.google.cloud.oslogin.common.OsLoginProto.PosixAccount>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LoginProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LoginProfile build()
Returns
buildPartial()
public LoginProfile buildPartial()
Returns
clear()
public LoginProfile.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LoginProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public LoginProfile.Builder clearName()
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public LoginProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
public LoginProfile.Builder clearSshPublicKeys()
Returns
clone()
public LoginProfile.Builder clone()
Returns
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
Returns
getDefaultInstanceForType()
public LoginProfile getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableSshPublicKeys()
public Map<String,OsLoginProto.SshPublicKey> getMutableSshPublicKeys()
Use alternate mutation accessors instead.
Returns
getName()
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Returns
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
Returns
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
getPosixAccountsCount()
public int getPosixAccountsCount()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
Returns
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.oslogin.common.OsLoginProto.PosixAccountOrBuilder> | |
getSshPublicKeys()
public Map<String,OsLoginProto.SshPublicKey> getSshPublicKeys()
Returns
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
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
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
Returns
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
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LoginProfile other)
public LoginProfile.Builder mergeFrom(LoginProfile other)
Parameter
Returns
public LoginProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LoginProfile.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LoginProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LoginProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public LoginProfile.Builder setName(String value)
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public LoginProfile.Builder setNameBytes(ByteString value)
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LoginProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LoginProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides