code: @BetaApi
    public final Operation setMachineResourcesInstance(
        String instance,
        InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource) {
  
      SetMachineResourcesInstanceHttpRequest request =
          SetMachineResourcesInstanceHttpRequest.newBuilder()
              .setInstance(instance)
              .setInstancesSetMachineResourcesRequestResource(
                  instancesSetMachineResourcesRequestResource)
              .build();
      return setMachineResourcesInstance(request);
    }
docs: Changes the number and/or type of accelerator for a stopped instance to the values specified in
  the request.
  
  <p>Sample code:
  
  <pre><code>
  try (InstanceClient instanceClient = InstanceClient.create()) {
  ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
  InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource = InstancesSetMachineResourcesRequest.newBuilder().build();
  Operation response = instanceClient.setMachineResourcesInstance(instance.toString(), instancesSetMachineResourcesRequestResource);
  }
  </code></pre>
  
  @param instance Name of the instance scoping this request.
  @param instancesSetMachineResourcesRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails