Package com.google.cloud.oslogin.v1
Class LoginProfile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LoginProfile.Builder>
com.google.cloud.oslogin.v1.LoginProfile.Builder
- All Implemented Interfaces:
LoginProfileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LoginProfile
public static final class LoginProfile.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllPosixAccounts(Iterable<? extends OsLoginProto.PosixAccount> values) The list of POSIX accounts associated with the user.addPosixAccounts(int index, OsLoginProto.PosixAccount value) The list of POSIX accounts associated with the user.addPosixAccounts(int index, OsLoginProto.PosixAccount.Builder builderForValue) The list of POSIX accounts associated with the user.The list of POSIX accounts associated with the user.addPosixAccounts(OsLoginProto.PosixAccount.Builder builderForValue) The list of POSIX accounts associated with the user.The list of POSIX accounts associated with the user.addPosixAccountsBuilder(int index) The list of POSIX accounts associated with the user.build()clear()Required.The list of POSIX accounts associated with the user.booleanA map from SSH public key fingerprint to the associated key object.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getName()Required.com.google.protobuf.ByteStringRequired.getPosixAccounts(int index) The list of POSIX accounts associated with the user.getPosixAccountsBuilder(int index) The list of POSIX accounts associated with the user.The list of POSIX accounts associated with the user.intThe list of POSIX accounts associated with the user.The list of POSIX accounts associated with the user.getPosixAccountsOrBuilder(int index) The list of POSIX accounts associated with the user.List<? extends OsLoginProto.PosixAccountOrBuilder>The list of POSIX accounts associated with the user.Deprecated.intA map from SSH public key fingerprint to the associated key object.A map from SSH public key fingerprint to the associated key object.getSshPublicKeysOrDefault(String key, OsLoginProto.SshPublicKey defaultValue) A map from SSH public key fingerprint to the associated key object.A map from SSH public key fingerprint to the associated key object.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(LoginProfile other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A map from SSH public key fingerprint to the associated key object.putSshPublicKeys(String key, OsLoginProto.SshPublicKey value) A map from SSH public key fingerprint to the associated key object.A map from SSH public key fingerprint to the associated key object.removePosixAccounts(int index) The list of POSIX accounts associated with the user.A map from SSH public key fingerprint to the associated key object.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setPosixAccounts(int index, OsLoginProto.PosixAccount value) The list of POSIX accounts associated with the user.setPosixAccounts(int index, OsLoginProto.PosixAccount.Builder builderForValue) The list of POSIX accounts associated with the user.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LoginProfile.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LoginProfile.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LoginProfile.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LoginProfile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LoginProfile.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoginProfile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LoginProfile.Builder>
-
mergeFrom
public LoginProfile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoginProfile.Builder>- Throws:
IOException
-
getName
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceLoginProfileOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceLoginProfileOrBuilder- Returns:
- The bytes for name.
-
setName
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getPosixAccountsList
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;- Specified by:
getPosixAccountsListin interfaceLoginProfileOrBuilder
-
getPosixAccountsCount
public int getPosixAccountsCount()The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;- Specified by:
getPosixAccountsCountin interfaceLoginProfileOrBuilder
-
getPosixAccounts
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;- Specified by:
getPosixAccountsin interfaceLoginProfileOrBuilder
-
setPosixAccounts
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
setPosixAccounts
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; -
addPosixAccounts
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
addPosixAccounts
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
addPosixAccounts
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
addPosixAccounts
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; -
addAllPosixAccounts
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; -
clearPosixAccounts
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
removePosixAccounts
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
getPosixAccountsBuilder
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
getPosixAccountsOrBuilder
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;- Specified by:
getPosixAccountsOrBuilderin interfaceLoginProfileOrBuilder
-
getPosixAccountsOrBuilderList
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;- Specified by:
getPosixAccountsOrBuilderListin interfaceLoginProfileOrBuilder
-
addPosixAccountsBuilder
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
addPosixAccountsBuilder
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
getPosixAccountsBuilderList
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2; -
getSshPublicKeysCount
public int getSshPublicKeysCount()Description copied from interface:LoginProfileOrBuilderA map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;- Specified by:
getSshPublicKeysCountin interfaceLoginProfileOrBuilder
-
containsSshPublicKeys
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;- Specified by:
containsSshPublicKeysin interfaceLoginProfileOrBuilder
-
getSshPublicKeys
Deprecated.UsegetSshPublicKeysMap()instead.- Specified by:
getSshPublicKeysin interfaceLoginProfileOrBuilder
-
getSshPublicKeysMap
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;- Specified by:
getSshPublicKeysMapin interfaceLoginProfileOrBuilder
-
getSshPublicKeysOrDefault
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;- Specified by:
getSshPublicKeysOrDefaultin interfaceLoginProfileOrBuilder
-
getSshPublicKeysOrThrow
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;- Specified by:
getSshPublicKeysOrThrowin interfaceLoginProfileOrBuilder
-
clearSshPublicKeys
-
removeSshPublicKeys
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; -
getMutableSshPublicKeys
Deprecated.Use alternate mutation accessors instead. -
putSshPublicKeys
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; -
putAllSshPublicKeys
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3; -
putSshPublicKeysBuilderIfAbsent
A map from SSH public key fingerprint to the associated key object.
map<string, .google.cloud.oslogin.common.SshPublicKey> ssh_public_keys = 3;
-