public final Annotation createAnnotation(
      AssetName parent, Annotation annotation, String annotationId) {
    CreateAnnotationRequest request =
        CreateAnnotationRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .setAnnotation(annotation)
            .setAnnotationId(annotationId)
            .build();
    return createAnnotation(request);
  }
Creates annotation inside asset.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (WarehouseClient warehouseClient = WarehouseClient.create()) {
  AssetName parent = AssetName.of("[PROJECT_NUMBER]", "[LOCATION]", "[CORPUS]", "[ASSET]");
  Annotation annotation = Annotation.newBuilder().build();
  String annotationId = "annotationId251782314";
  Annotation response = warehouseClient.createAnnotation(parent, annotation, annotationId);
}
}</pre>

@param parent Required. The parent resource where this annotation will be created. Format:
    `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
@param annotation Required. The annotation to create.
@param annotationId Optional. The ID to use for the annotation, which will become the final
    component of the annotation's resource name if user choose to specify. Otherwise,
    annotation id will be generated by system.
    <p>This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The
    first character must be a letter, the last could be a letter or a number.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseClient.java