code: public final UptimeCheckConfig updateUptimeCheckConfig(UptimeCheckConfig uptimeCheckConfig) {
  
      UpdateUptimeCheckConfigRequest request =
          UpdateUptimeCheckConfigRequest.newBuilder().setUptimeCheckConfig(uptimeCheckConfig).build();
      return updateUptimeCheckConfig(request);
    }
docs: Updates an uptime check configuration. You can either replace the entire configuration with a
  new one or replace only certain fields in the current configuration by specifying the fields to
  be updated via `"updateMask"`. Returns the updated configuration.
  
  <p>Sample code:
  
  <pre><code>
  try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
  UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build();
  UptimeCheckConfig response = uptimeCheckServiceClient.updateUptimeCheckConfig(uptimeCheckConfig);
  }
  </code></pre>
  
  @param uptimeCheckConfig Required. If an `"updateMask"` has been specified, this field gives
  the values for the set of fields mentioned in the `"updateMask"`. If an `"updateMask"` has
  not been given, this uptime check configuration replaces the current configuration. If a
  field is mentioned in `"updateMask"` but the corresonding field is omitted in this partial
  uptime check configuration, it has the effect of deleting/clearing the field from the
  configuration on the server.
  <p>The following fields can be updated: `display_name`, `http_check`, `tcp_check`,
  `timeout`, `content_matchers`, and `selected_regions`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails