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
Modifier and Type | Method and Description |
---|---|
LoginProfile.Builder |
addAllPosixAccounts(java.lang.Iterable<? extends OsLoginProto.PosixAccount> values)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
addPosixAccounts(int index,
OsLoginProto.PosixAccount.Builder builderForValue)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
addPosixAccounts(int index,
OsLoginProto.PosixAccount value)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
addPosixAccounts(OsLoginProto.PosixAccount.Builder builderForValue)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
addPosixAccounts(OsLoginProto.PosixAccount value)
The list of POSIX accounts associated with the user.
|
OsLoginProto.PosixAccount.Builder |
addPosixAccountsBuilder()
The list of POSIX accounts associated with the user.
|
OsLoginProto.PosixAccount.Builder |
addPosixAccountsBuilder(int index)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
LoginProfile |
build() |
LoginProfile |
buildPartial() |
LoginProfile.Builder |
clear() |
LoginProfile.Builder |
clearField(Descriptors.FieldDescriptor field) |
LoginProfile.Builder |
clearName()
The primary email address that uniquely identifies the user.
|
LoginProfile.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
LoginProfile.Builder |
clearPosixAccounts()
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
clearSshPublicKeys() |
LoginProfile.Builder |
clearSuspended()
Indicates if the user is suspended.
|
LoginProfile.Builder |
clone() |
boolean |
containsSshPublicKeys(java.lang.String key)
A map from SSH public key fingerprint to the associated key object.
|
LoginProfile |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,OsLoginProto.SshPublicKey> |
getMutableSshPublicKeys()
Deprecated.
|
java.lang.String |
getName()
The primary email address that uniquely identifies the user.
|
ByteString |
getNameBytes()
The primary email address that uniquely identifies the user.
|
OsLoginProto.PosixAccount |
getPosixAccounts(int index)
The list of POSIX accounts associated with the user.
|
OsLoginProto.PosixAccount.Builder |
getPosixAccountsBuilder(int index)
The list of POSIX accounts associated with the user.
|
java.util.List<OsLoginProto.PosixAccount.Builder> |
getPosixAccountsBuilderList()
The list of POSIX accounts associated with the user.
|
int |
getPosixAccountsCount()
The list of POSIX accounts associated with the user.
|
java.util.List<OsLoginProto.PosixAccount> |
getPosixAccountsList()
The list of POSIX accounts associated with the user.
|
OsLoginProto.PosixAccountOrBuilder |
getPosixAccountsOrBuilder(int index)
The list of POSIX accounts associated with the user.
|
java.util.List<? extends OsLoginProto.PosixAccountOrBuilder> |
getPosixAccountsOrBuilderList()
The list of POSIX accounts associated with the user.
|
java.util.Map<java.lang.String,OsLoginProto.SshPublicKey> |
getSshPublicKeys()
Deprecated.
|
int |
getSshPublicKeysCount()
A map from SSH public key fingerprint to the associated key object.
|
java.util.Map<java.lang.String,OsLoginProto.SshPublicKey> |
getSshPublicKeysMap()
A map from SSH public key fingerprint to the associated key object.
|
OsLoginProto.SshPublicKey |
getSshPublicKeysOrDefault(java.lang.String key,
OsLoginProto.SshPublicKey defaultValue)
A map from SSH public key fingerprint to the associated key object.
|
OsLoginProto.SshPublicKey |
getSshPublicKeysOrThrow(java.lang.String key)
A map from SSH public key fingerprint to the associated key object.
|
boolean |
getSuspended()
Indicates if the user is suspended.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
LoginProfile.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
LoginProfile.Builder |
mergeFrom(LoginProfile other) |
LoginProfile.Builder |
mergeFrom(Message other) |
LoginProfile.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
LoginProfile.Builder |
putAllSshPublicKeys(java.util.Map<java.lang.String,OsLoginProto.SshPublicKey> values)
A map from SSH public key fingerprint to the associated key object.
|
LoginProfile.Builder |
putSshPublicKeys(java.lang.String key,
OsLoginProto.SshPublicKey value)
A map from SSH public key fingerprint to the associated key object.
|
LoginProfile.Builder |
removePosixAccounts(int index)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
removeSshPublicKeys(java.lang.String key)
A map from SSH public key fingerprint to the associated key object.
|
LoginProfile.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
LoginProfile.Builder |
setName(java.lang.String value)
The primary email address that uniquely identifies the user.
|
LoginProfile.Builder |
setNameBytes(ByteString value)
The primary email address that uniquely identifies the user.
|
LoginProfile.Builder |
setPosixAccounts(int index,
OsLoginProto.PosixAccount.Builder builderForValue)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
setPosixAccounts(int index,
OsLoginProto.PosixAccount value)
The list of POSIX accounts associated with the user.
|
LoginProfile.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
LoginProfile.Builder |
setSuspended(boolean value)
Indicates if the user is suspended.
|
LoginProfile.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public LoginProfile build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public LoginProfile buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public LoginProfile.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<LoginProfile.Builder>
public LoginProfile.Builder mergeFrom(LoginProfile other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public LoginProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<LoginProfile.Builder>
java.io.IOException
public java.lang.String getName()
The primary email address that uniquely identifies the user.
string name = 1;
getName
in interface LoginProfileOrBuilder
public ByteString getNameBytes()
The primary email address that uniquely identifies the user.
string name = 1;
getNameBytes
in interface LoginProfileOrBuilder
public LoginProfile.Builder setName(java.lang.String value)
The primary email address that uniquely identifies the user.
string name = 1;
public LoginProfile.Builder clearName()
The primary email address that uniquely identifies the user.
string name = 1;
public LoginProfile.Builder setNameBytes(ByteString value)
The primary email address that uniquely identifies the user.
string name = 1;
public java.util.List<OsLoginProto.PosixAccount> getPosixAccountsList()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
getPosixAccountsList
in interface LoginProfileOrBuilder
public int getPosixAccountsCount()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
getPosixAccountsCount
in interface LoginProfileOrBuilder
public OsLoginProto.PosixAccount getPosixAccounts(int index)
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
getPosixAccounts
in interface LoginProfileOrBuilder
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;
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;
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;
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;
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;
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;
public LoginProfile.Builder addAllPosixAccounts(java.lang.Iterable<? extends OsLoginProto.PosixAccount> values)
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
public LoginProfile.Builder clearPosixAccounts()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
public LoginProfile.Builder removePosixAccounts(int index)
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
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;
public OsLoginProto.PosixAccountOrBuilder getPosixAccountsOrBuilder(int index)
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
getPosixAccountsOrBuilder
in interface LoginProfileOrBuilder
public java.util.List<? extends OsLoginProto.PosixAccountOrBuilder> getPosixAccountsOrBuilderList()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
getPosixAccountsOrBuilderList
in interface LoginProfileOrBuilder
public OsLoginProto.PosixAccount.Builder addPosixAccountsBuilder()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
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;
public java.util.List<OsLoginProto.PosixAccount.Builder> getPosixAccountsBuilderList()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
public int getSshPublicKeysCount()
LoginProfileOrBuilder
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;
getSshPublicKeysCount
in interface LoginProfileOrBuilder
public boolean containsSshPublicKeys(java.lang.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;
containsSshPublicKeys
in interface LoginProfileOrBuilder
@Deprecated public java.util.Map<java.lang.String,OsLoginProto.SshPublicKey> getSshPublicKeys()
getSshPublicKeysMap()
instead.getSshPublicKeys
in interface LoginProfileOrBuilder
public java.util.Map<java.lang.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;
getSshPublicKeysMap
in interface LoginProfileOrBuilder
public OsLoginProto.SshPublicKey getSshPublicKeysOrDefault(java.lang.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;
getSshPublicKeysOrDefault
in interface LoginProfileOrBuilder
public OsLoginProto.SshPublicKey getSshPublicKeysOrThrow(java.lang.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;
getSshPublicKeysOrThrow
in interface LoginProfileOrBuilder
public LoginProfile.Builder clearSshPublicKeys()
public LoginProfile.Builder removeSshPublicKeys(java.lang.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;
@Deprecated public java.util.Map<java.lang.String,OsLoginProto.SshPublicKey> getMutableSshPublicKeys()
public LoginProfile.Builder putSshPublicKeys(java.lang.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;
public LoginProfile.Builder putAllSshPublicKeys(java.util.Map<java.lang.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;
public boolean getSuspended()
Indicates if the user is suspended. A suspended user cannot log in but their profile information is retained.
bool suspended = 4;
getSuspended
in interface LoginProfileOrBuilder
public LoginProfile.Builder setSuspended(boolean value)
Indicates if the user is suspended. A suspended user cannot log in but their profile information is retained.
bool suspended = 4;
public LoginProfile.Builder clearSuspended()
Indicates if the user is suspended. A suspended user cannot log in but their profile information is retained.
bool suspended = 4;
public final LoginProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<LoginProfile.Builder>
public final LoginProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<LoginProfile.Builder>