public final Asset createAsset(String parent, Asset asset, String assetId) {
    CreateAssetRequest request =
        CreateAssetRequest.newBuilder()
            .setParent(parent)
            .setAsset(asset)
            .setAssetId(assetId)
            .build();
    return createAsset(request);
  }
Creates an asset inside corpus.

<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();
  Asset asset = Asset.newBuilder().build();
  String assetId = "assetId-704776149";
  Asset response = warehouseClient.createAsset(parent, asset, assetId);
}
}</pre>

@param parent Required. The parent resource where this asset will be created. Format:
    `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
@param asset Required. The asset to create.
@param assetId Optional. The ID to use for the asset, which will become the final component of
    the asset's resource name if user choose to specify. Otherwise, asset 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