code: public final Occurrence updateOccurrence(
        OccurrenceName name, Occurrence occurrence, FieldMask updateMask) {
  
      UpdateOccurrenceRequest request =
          UpdateOccurrenceRequest.newBuilder()
              .setName(name == null ? null : name.toString())
              .setOccurrence(occurrence)
              .setUpdateMask(updateMask)
              .build();
      return updateOccurrence(request);
    }
docs: Updates the specified occurrence.
  
  <p>Sample code:
  
  <pre><code>
  try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) {
  OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]");
  Occurrence occurrence = Occurrence.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  Occurrence response = grafeasV1Beta1Client.updateOccurrence(name, occurrence, updateMask);
  }
  </code></pre>
  
  @param name The name of the occurrence in the form of
  `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
  @param occurrence The updated occurrence.
  @param updateMask The fields to update.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails