code: public final Assessment createAssessment(ProjectName parent, Assessment assessment) {
  
      CreateAssessmentRequest request =
          CreateAssessmentRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .setAssessment(assessment)
              .build();
      return createAssessment(request);
    }
docs: Creates an Assessment of the likelihood an event is legitimate.
  
  <p>Sample code:
  
  <pre><code>
  try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) {
  ProjectName parent = ProjectName.of("[PROJECT]");
  Assessment assessment = Assessment.newBuilder().build();
  Assessment response = recaptchaEnterpriseServiceV1Beta1Client.createAssessment(parent, assessment);
  }
  </code></pre>
  
  @param parent Required. The name of the project in which the assessment will be created, in the
  format "projects/{project_number}".
  @param assessment The asessment details.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails