public final LoginProfile getLoginProfile(UserName name) {

    GetLoginProfileRequest request =
        GetLoginProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build();
    return getLoginProfile(request);
  }
public final LoginProfile getLoginProfile ( UserName name ) { GetLoginProfileRequest request = GetLoginProfileRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; return getLoginProfile ( request ) ; }
Retrieves the profile information used for logging in to a virtual machine on Google Compute
Engine.

<p>Sample code:

<pre><code>
try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
UserName name = UserName.of("[USER]");
LoginProfile response = osLoginServiceClient.getLoginProfile(name);
}
</code></pre>

@param name The unique ID for the user in format `users/{user}`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails