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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
addPosixAccountsBuilder()
public OsLoginProto.PosixAccount.Builder addPosixAccountsBuilder()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
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 |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LoginProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LoginProfile build()
buildPartial()
public LoginProfile buildPartial()
clear()
public LoginProfile.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LoginProfile.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public LoginProfile.Builder clearName()
Required. A unique user ID.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public LoginProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPosixAccounts()
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 clearSshPublicKeys()
clone()
public LoginProfile.Builder clone()
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 |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public LoginProfile getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableSshPublicKeys() (deprecated)
public Map<String,OsLoginProto.SshPublicKey> getMutableSshPublicKeys()
Use alternate mutation accessors instead.
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 |
---|
Type | Description |
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
getPosixAccountsCount()
public int getPosixAccountsCount()
The list of POSIX accounts associated with the user.
repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
Returns |
---|
Type | Description |
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;
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 |
---|
Name | Description |
index | int
|
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() (deprecated)
public Map<String,OsLoginProto.SshPublicKey> getSshPublicKeys()
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 |
---|
Type | Description |
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;
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;
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 |
---|
Name | Description |
key | String
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LoginProfile other)
public LoginProfile.Builder mergeFrom(LoginProfile other)
public LoginProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LoginProfile.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LoginProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
putSshPublicKeysBuilderIfAbsent(String key)
public OsLoginProto.SshPublicKey.Builder putSshPublicKeysBuilderIfAbsent(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 |
---|
Name | Description |
key | String
|
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
key | String
|
setField(Descriptors.FieldDescriptor field, Object value)
public LoginProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LoginProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LoginProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides