@BetaApi
  public final ListMachineTypesPagedResponse listMachineTypes(String zone) {
    ListMachineTypesHttpRequest request =
        ListMachineTypesHttpRequest.newBuilder().setZone(zone).build();
    return listMachineTypes(request);
  }
@ BetaApi public final ListMachineTypesPagedResponse listMachineTypes ( String zone ) { ListMachineTypesHttpRequest request = ListMachineTypesHttpRequest . newBuilder ( ) . setZone ( zone ) . build ( ) ; return listMachineTypes ( request ) ; }
Retrieves a list of machine types available to the specified project.

<p>Sample code:

<pre><code>
try (MachineTypeClient machineTypeClient = MachineTypeClient.create()) {
ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
for (MachineType element : machineTypeClient.listMachineTypes(zone.toString()).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