code: public final ListDeviceStatesResponse listDeviceStates(String name) {
  
      ListDeviceStatesRequest request = ListDeviceStatesRequest.newBuilder().setName(name).build();
      return listDeviceStates(request);
    }
docs: Lists the last few versions of the device state in descending order (i.e.: newest first).
  
  <p>Sample code:
  
  <pre><code>
  try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
  DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
  ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(name.toString());
  }
  </code></pre>
  
  @param name The name of the device. For example,
  `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails