public final class LoginProfile extends GeneratedMessageV3 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 Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
POSIX_ACCOUNTS_FIELD_NUMBER
public static final int POSIX_ACCOUNTS_FIELD_NUMBER
Field Value
SSH_PUBLIC_KEYS_FIELD_NUMBER
public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LoginProfile getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LoginProfile.Builder newBuilder()
Returns
newBuilder(LoginProfile prototype)
public static LoginProfile.Builder newBuilder(LoginProfile prototype)
Parameter
Returns
public static LoginProfile parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LoginProfile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LoginProfile parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LoginProfile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LoginProfile parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LoginProfile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LoginProfile parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LoginProfile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LoginProfile parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LoginProfile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LoginProfile parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LoginProfile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LoginProfile> parser()
Returns
Methods
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
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public LoginProfile getDefaultInstanceForType()
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
getParserForType()
public Parser<LoginProfile> getParserForType()
Returns
Overrides
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
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> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LoginProfile.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LoginProfile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LoginProfile.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions