Class LoginProfile

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.oslogin.v1.LoginProfile
All Implemented Interfaces:
LoginProfileOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class LoginProfile extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • POSIX_ACCOUNTS_FIELD_NUMBER

      public static final int POSIX_ACCOUNTS_FIELD_NUMBER
      See Also:
    • SSH_PUBLIC_KEYS_FIELD_NUMBER

      public static final int SSH_PUBLIC_KEYS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Required. A unique user ID.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface LoginProfileOrBuilder
      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:
      getNameBytes in interface LoginProfileOrBuilder
      Returns:
      The bytes for name.
    • getPosixAccountsList

      public List<OsLoginProto.PosixAccount> getPosixAccountsList()
       The list of POSIX accounts associated with the user.
       
      repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
      Specified by:
      getPosixAccountsList in interface LoginProfileOrBuilder
    • 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;
      Specified by:
      getPosixAccountsOrBuilderList in interface LoginProfileOrBuilder
    • getPosixAccountsCount

      public int getPosixAccountsCount()
       The list of POSIX accounts associated with the user.
       
      repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
      Specified by:
      getPosixAccountsCount in interface LoginProfileOrBuilder
    • getPosixAccounts

      public OsLoginProto.PosixAccount getPosixAccounts(int index)
       The list of POSIX accounts associated with the user.
       
      repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
      Specified by:
      getPosixAccounts in interface LoginProfileOrBuilder
    • getPosixAccountsOrBuilder

      public OsLoginProto.PosixAccountOrBuilder getPosixAccountsOrBuilder(int index)
       The list of POSIX accounts associated with the user.
       
      repeated .google.cloud.oslogin.common.PosixAccount posix_accounts = 2;
      Specified by:
      getPosixAccountsOrBuilder in interface LoginProfileOrBuilder
    • getSshPublicKeysCount

      public int getSshPublicKeysCount()
      Description copied from interface: LoginProfileOrBuilder
       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:
      getSshPublicKeysCount in interface LoginProfileOrBuilder
    • containsSshPublicKeys

      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;
      Specified by:
      containsSshPublicKeys in interface LoginProfileOrBuilder
    • getSshPublicKeys

      @Deprecated public Map<String,OsLoginProto.SshPublicKey> getSshPublicKeys()
      Deprecated.
      Specified by:
      getSshPublicKeys in interface LoginProfileOrBuilder
    • 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;
      Specified by:
      getSshPublicKeysMap in interface LoginProfileOrBuilder
    • 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:
      getSshPublicKeysOrDefault in interface LoginProfileOrBuilder
    • getSshPublicKeysOrThrow

      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;
      Specified by:
      getSshPublicKeysOrThrow in interface LoginProfileOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static LoginProfile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoginProfile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoginProfile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoginProfile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoginProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoginProfile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LoginProfile parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LoginProfile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LoginProfile parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LoginProfile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LoginProfile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LoginProfile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public LoginProfile.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static LoginProfile.Builder newBuilder()
    • newBuilder

      public static LoginProfile.Builder newBuilder(LoginProfile prototype)
    • toBuilder

      public LoginProfile.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected LoginProfile.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static LoginProfile getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<LoginProfile> parser()
    • getParserForType

      public com.google.protobuf.Parser<LoginProfile> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public LoginProfile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder