@BetaApi
  public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(ProjectZoneName zone) {
    ListAcceleratorTypesHttpRequest request =
        ListAcceleratorTypesHttpRequest.newBuilder()
            .setZone(zone == null ? null : zone.toString())
            .build();
    return listAcceleratorTypes(request);
  }
@ BetaApi public final ListAcceleratorTypesPagedResponse listAcceleratorTypes ( ProjectZoneName zone ) { ListAcceleratorTypesHttpRequest request = ListAcceleratorTypesHttpRequest . newBuilder ( ) . setZone ( zone == null ? null : zone . toString ( ) ) . build ( ) ; return listAcceleratorTypes ( request ) ; }
Retrieves a list of accelerator types available to the specified project.

<p>Sample code:

<pre><code>
try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
for (AcceleratorType element : acceleratorTypeClient.listAcceleratorTypes(zone).iterateAll()) {
// doThingsWith(element);
}
}
</code></pre>

@param zone The name of the zone for this request.
@throws com.google.api.gax.rpc.ApiException if the remote call fails