code: public final DeviceRegistry updateDeviceRegistry(
        DeviceRegistry deviceRegistry, FieldMask updateMask) {
  
      UpdateDeviceRegistryRequest request =
          UpdateDeviceRegistryRequest.newBuilder()
              .setDeviceRegistry(deviceRegistry)
              .setUpdateMask(updateMask)
              .build();
      return updateDeviceRegistry(request);
    }
docs: Updates a device registry configuration.
  
  <p>Sample code:
  
  <pre><code>
  try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
  DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  DeviceRegistry response = deviceManagerClient.updateDeviceRegistry(deviceRegistry, updateMask);
  }
  </code></pre>
  
  @param deviceRegistry The new values for the device registry. The `id` field must be empty, and
  the `name` field must indicate the path of the resource. For example,
  `projects/example-project/locations/us-central1/registries/my-registry`.
  @param updateMask Only updates the `device_registry` fields indicated by this mask. The field
  mask must not be empty, and it must not contain fields that are immutable or only set by
  the server. Mutable top-level fields: `event_notification_config`, `http_config`,
  `mqtt_config`, and `state_notification_config`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails