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
Modifier and Type | Class and Description |
---|---|
static class |
LoginProfile.Builder
The user profile information used for logging in to a virtual machine on
Google Compute Engine.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
NAME_FIELD_NUMBER |
static int |
POSIX_ACCOUNTS_FIELD_NUMBER |
static int |
SSH_PUBLIC_KEYS_FIELD_NUMBER |
static int |
SUSPENDED_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsSshPublicKeys(java.lang.String key)
A map from SSH public key fingerprint to the associated key object.
|
boolean |
equals(java.lang.Object obj) |
static LoginProfile |
getDefaultInstance() |
LoginProfile |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getName()
The primary email address that uniquely identifies the user.
|
ByteString |
getNameBytes()
The primary email address that uniquely identifies the user.
|
Parser<LoginProfile> |
getParserForType() |
OsLoginProto.PosixAccount |
getPosixAccounts(int index)
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.
|
int |
getSerializedSize() |
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.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static LoginProfile.Builder |
newBuilder() |
static LoginProfile.Builder |
newBuilder(LoginProfile prototype) |
LoginProfile.Builder |
newBuilderForType() |
protected LoginProfile.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static LoginProfile |
parseDelimitedFrom(java.io.InputStream input) |
static LoginProfile |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static LoginProfile |
parseFrom(byte[] data) |
static LoginProfile |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static LoginProfile |
parseFrom(java.nio.ByteBuffer data) |
static LoginProfile |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static LoginProfile |
parseFrom(ByteString data) |
static LoginProfile |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static LoginProfile |
parseFrom(CodedInputStream input) |
static LoginProfile |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static LoginProfile |
parseFrom(java.io.InputStream input) |
static LoginProfile |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<LoginProfile> |
parser() |
LoginProfile.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int POSIX_ACCOUNTS_FIELD_NUMBER
public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER
public static final int SUSPENDED_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static LoginProfile parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static LoginProfile parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static LoginProfile parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static LoginProfile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static LoginProfile parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static LoginProfile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static LoginProfile parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LoginProfile parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LoginProfile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LoginProfile parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LoginProfile parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LoginProfile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LoginProfile.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static LoginProfile.Builder newBuilder()
public static LoginProfile.Builder newBuilder(LoginProfile prototype)
public LoginProfile.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected LoginProfile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static LoginProfile getDefaultInstance()
public static Parser<LoginProfile> parser()
public Parser<LoginProfile> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public LoginProfile getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder