public final OperationFuture<Collection, CreateCollectionMetadata> createCollectionAsync(
      String parent, Collection collection, String collectionId) {
    CreateCollectionRequest request =
        CreateCollectionRequest.newBuilder()
            .setParent(parent)
            .setCollection(collection)
            .setCollectionId(collectionId)
            .build();
    return createCollectionAsync(request);
  }
Creates a collection.

<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()) {
  String parent = CorpusName.of("[PROJECT_NUMBER]", "[LOCATION]", "[CORPUS]").toString();
  Collection collection = Collection.newBuilder().build();
  String collectionId = "collectionId1636075609";
  Collection response =
      warehouseClient.createCollectionAsync(parent, collection, collectionId).get();
}
}</pre>

@param parent Required. The parent resource where this collection will be created. Format:
    `projects/{project_number}/locations/{location}/corpora/{corpus}`
@param collection Required. The collection resource to be created.
@param collectionId Optional. The ID to use for the collection, which will become the final
    component of the resource name if user choose to specify. Otherwise, collection id will be
    generated by system.
    <p>This value should be up to 55 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