code: public final DeviceRegistry createDeviceRegistry(String parent, DeviceRegistry deviceRegistry) {
  
      CreateDeviceRegistryRequest request =
          CreateDeviceRegistryRequest.newBuilder()
              .setParent(parent)
              .setDeviceRegistry(deviceRegistry)
              .build();
      return createDeviceRegistry(request);
    }
docs: Creates a device registry that contains devices.
  
  <p>Sample code:
  
  <pre><code>
  try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
  LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
  DeviceRegistry response = deviceManagerClient.createDeviceRegistry(parent.toString(), deviceRegistry);
  }
  </code></pre>
  
  @param parent The project and cloud region where this device registry must be created. For
  example, `projects/example-project/locations/us-central1`.
  @param deviceRegistry The device registry. The field `name` must be empty. The server will
  generate that field from the device registry `id` provided and the `parent` field.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails