code: public final Occurrence createOccurrence(String parent, Occurrence occurrence) {
  
      CreateOccurrenceRequest request =
          CreateOccurrenceRequest.newBuilder().setParent(parent).setOccurrence(occurrence).build();
      return createOccurrence(request);
    }
docs: Creates a new occurrence.
  
  <p>Sample code:
  
  <pre><code>
  try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) {
  ProjectName parent = ProjectName.of("[PROJECT]");
  Occurrence occurrence = Occurrence.newBuilder().build();
  Occurrence response = grafeasV1Beta1Client.createOccurrence(parent.toString(), occurrence);
  }
  </code></pre>
  
  @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the
  occurrence is to be created.
  @param occurrence The occurrence to create.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails