public final Model getModel(String name) {

    GetModelRequest request = GetModelRequest.newBuilder().setName(name).build();
    return getModel(request);
  }
public final Model getModel ( String name ) { GetModelRequest request = GetModelRequest . newBuilder ( ) . setName ( name ) . build ( ) ; return getModel ( request ) ; }
Gets a model.

<p>Sample code:

<pre><code>
try (AutoMlClient autoMlClient = AutoMlClient.create()) {
ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
Model response = autoMlClient.getModel(name.toString());
}
</code></pre>

@param name Resource name of the model.
@throws com.google.api.gax.rpc.ApiException if the remote call fails