Class AMLClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// 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 (AMLClient aMLClient = AMLClient.create()) {
InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
Instance response = aMLClient.getInstance(name);
}
Note: close() needs to be called on the AMLClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
ListInstances |
Lists instances. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetInstance |
Gets an instance. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateInstance |
Creates an instance. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateInstance |
Updates the parameters of a single Instance. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteInstance |
Deletes an instance. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ImportRegisteredParties |
Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ExportRegisteredParties |
Exports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties) for information on the output schema for this method. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListDatasets |
Lists datasets. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetDataset |
Gets a dataset. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateDataset |
Creates a dataset. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDataset |
Updates the parameters of a single Dataset. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteDataset |
Deletes a dataset. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListModels |
Lists models. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetModel |
Gets a model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateModel |
Creates a model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateModel |
Updates the parameters of a single Model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ExportModelMetadata |
Export governance information for a Model resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model). |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteModel |
Deletes a model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListEngineConfigs |
Lists engine configs. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetEngineConfig |
Gets an engine config. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateEngineConfig |
Creates an engine config. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateEngineConfig |
Updates the parameters of a single EngineConfig. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ExportEngineConfigMetadata |
Export governance information for an EngineConfig resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config). |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteEngineConfig |
Deletes an engine config. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetEngineVersion |
Gets a single EngineVersion. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListEngineVersions |
Lists EngineVersions for given location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListPredictionResults |
List PredictionResults. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetPredictionResult |
Gets a PredictionResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreatePredictionResult |
Create a PredictionResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdatePredictionResult |
Updates the parameters of a single PredictionResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ExportPredictionResultMetadata |
Export governance information for a PredictionResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results). |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeletePredictionResult |
Deletes a PredictionResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListBacktestResults |
List BacktestResults. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetBacktestResult |
Gets a BacktestResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateBacktestResult |
Create a BacktestResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateBacktestResult |
Updates the parameters of a single BacktestResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ExportBacktestResultMetadata |
Export governance information for a BacktestResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results). |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteBacktestResult |
Deletes a BacktestResult. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of AMLSettings to create(). For example:
To customize credentials:
// 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
AMLSettings aMLSettings =
AMLSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
AMLClient aMLClient = AMLClient.create(aMLSettings);
To customize the endpoint:
// 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
AMLSettings aMLSettings = AMLSettings.newBuilder().setEndpoint(myEndpoint).build();
AMLClient aMLClient = AMLClient.create(aMLSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// 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
AMLSettings aMLSettings = AMLSettings.newHttpJsonBuilder().build();
AMLClient aMLClient = AMLClient.create(aMLSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAMLClient(AMLSettings settings) Constructs an instance of AMLClient, using the given settings.protected -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final AMLClientcreate()Constructs an instance of AMLClient with default settings.static final AMLClientcreate(AMLSettings settings) Constructs an instance of AMLClient, using the given settings.static final AMLClientConstructs an instance of AMLClient, using the given stub for making calls.Create a BacktestResult.createBacktestResultAsync(InstanceName parent, BacktestResult backtestResult, String backtestResultId) Create a BacktestResult.createBacktestResultAsync(String parent, BacktestResult backtestResult, String backtestResultId) Create a BacktestResult.Create a BacktestResult.Create a BacktestResult.createDatasetAsync(CreateDatasetRequest request) Creates a dataset.createDatasetAsync(InstanceName parent, Dataset dataset, String datasetId) Creates a dataset.createDatasetAsync(String parent, Dataset dataset, String datasetId) Creates a dataset.Creates a dataset.Creates a dataset.Creates an engine config.createEngineConfigAsync(InstanceName parent, EngineConfig engineConfig, String engineConfigId) Creates an engine config.createEngineConfigAsync(String parent, EngineConfig engineConfig, String engineConfigId) Creates an engine config.Creates an engine config.Creates an engine config.createInstanceAsync(CreateInstanceRequest request) Creates an instance.createInstanceAsync(LocationName parent, Instance instance, String instanceId) Creates an instance.createInstanceAsync(String parent, Instance instance, String instanceId) Creates an instance.Creates an instance.Creates an instance.createModelAsync(CreateModelRequest request) Creates a model.createModelAsync(InstanceName parent, Model model, String modelId) Creates a model.createModelAsync(String parent, Model model, String modelId) Creates a model.Creates a model.Creates a model.Create a PredictionResult.createPredictionResultAsync(InstanceName parent, PredictionResult predictionResult, String predictionResultId) Create a PredictionResult.createPredictionResultAsync(String parent, PredictionResult predictionResult, String predictionResultId) Create a PredictionResult.Create a PredictionResult.Create a PredictionResult.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a BacktestResult.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a BacktestResult.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a BacktestResult.Deletes a BacktestResult.final OperationCallable<DeleteBacktestResultRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a BacktestResult.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a dataset.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDatasetAsync(DeleteDatasetRequest request) Deletes a dataset.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDatasetAsync(String name) Deletes a dataset.Deletes a dataset.final OperationCallable<DeleteDatasetRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a dataset.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an engine config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an engine config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an engine config.Deletes an engine config.final OperationCallable<DeleteEngineConfigRequest,com.google.protobuf.Empty, OperationMetadata> Deletes an engine config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInstanceAsync(DeleteInstanceRequest request) Deletes an instance.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes an instance.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInstanceAsync(String name) Deletes an instance.Deletes an instance.final OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, OperationMetadata> Deletes an instance.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteModelAsync(DeleteModelRequest request) Deletes a model.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteModelAsync(ModelName name) Deletes a model.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteModelAsync(String name) Deletes a model.Deletes a model.final OperationCallable<DeleteModelRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a model.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a PredictionResult.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a PredictionResult.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a PredictionResult.Deletes a PredictionResult.final OperationCallable<DeletePredictionResultRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a PredictionResult.exportBacktestResultMetadataAsync(BacktestResultName backtestResult, BigQueryDestination structuredMetadataDestination) Export governance information for a BacktestResult resource.Export governance information for a BacktestResult resource.exportBacktestResultMetadataAsync(String backtestResult, BigQueryDestination structuredMetadataDestination) Export governance information for a BacktestResult resource.Export governance information for a BacktestResult resource.final OperationCallable<ExportBacktestResultMetadataRequest,ExportBacktestResultMetadataResponse, OperationMetadata> Export governance information for a BacktestResult resource.exportEngineConfigMetadataAsync(EngineConfigName engineConfig, BigQueryDestination structuredMetadataDestination) Export governance information for an EngineConfig resource.Export governance information for an EngineConfig resource.exportEngineConfigMetadataAsync(String engineConfig, BigQueryDestination structuredMetadataDestination) Export governance information for an EngineConfig resource.Export governance information for an EngineConfig resource.final OperationCallable<ExportEngineConfigMetadataRequest,ExportEngineConfigMetadataResponse, OperationMetadata> Export governance information for an EngineConfig resource.Export governance information for a Model resource.exportModelMetadataAsync(ModelName model, BigQueryDestination structuredMetadataDestination) Export governance information for a Model resource.exportModelMetadataAsync(String model, BigQueryDestination structuredMetadataDestination) Export governance information for a Model resource.Export governance information for a Model resource.Export governance information for a Model resource.Export governance information for a PredictionResult resource.exportPredictionResultMetadataAsync(PredictionResultName predictionResult, BigQueryDestination structuredMetadataDestination) Export governance information for a PredictionResult resource.exportPredictionResultMetadataAsync(String predictionResult, BigQueryDestination structuredMetadataDestination) Export governance information for a PredictionResult resource.Export governance information for a PredictionResult resource.final OperationCallable<ExportPredictionResultMetadataRequest,ExportPredictionResultMetadataResponse, OperationMetadata> Export governance information for a PredictionResult resource.Exports the list of registered parties.exportRegisteredPartiesAsync(InstanceName name, BigQueryDestination dataset, LineOfBusiness lineOfBusiness) Exports the list of registered parties.exportRegisteredPartiesAsync(String name, BigQueryDestination dataset, LineOfBusiness lineOfBusiness) Exports the list of registered parties.Exports the list of registered parties.final OperationCallable<ExportRegisteredPartiesRequest,ExportRegisteredPartiesResponse, OperationMetadata> Exports the list of registered parties.final BacktestResultGets a BacktestResult.final BacktestResultGets a BacktestResult.final BacktestResultgetBacktestResult(String name) Gets a BacktestResult.Gets a BacktestResult.final DatasetgetDataset(DatasetName name) Gets a dataset.final DatasetgetDataset(GetDatasetRequest request) Gets a dataset.final DatasetgetDataset(String name) Gets a dataset.Gets a dataset.final EngineConfigGets an engine config.final EngineConfiggetEngineConfig(GetEngineConfigRequest request) Gets an engine config.final EngineConfiggetEngineConfig(String name) Gets an engine config.Gets an engine config.final EngineVersionGets a single EngineVersion.final EngineVersiongetEngineVersion(GetEngineVersionRequest request) Gets a single EngineVersion.final EngineVersiongetEngineVersion(String name) Gets a single EngineVersion.Gets a single EngineVersion.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final InstancegetInstance(GetInstanceRequest request) Gets an instance.final InstancegetInstance(InstanceName name) Gets an instance.final InstancegetInstance(String name) Gets an instance.Gets an instance.final LocationgetLocation(GetLocationRequest request) Gets information about a location.Gets information about a location.final ModelgetModel(GetModelRequest request) Gets a model.final ModelGets a model.final ModelGets a model.final UnaryCallable<GetModelRequest,Model> Gets a model.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final PredictionResultGets a PredictionResult.final PredictionResultGets a PredictionResult.final PredictionResultgetPredictionResult(String name) Gets a PredictionResult.Gets a PredictionResult.final AMLSettingsgetStub()Imports the list of registered parties.importRegisteredPartiesAsync(InstanceName name, ImportRegisteredPartiesRequest.UpdateMode mode, LineOfBusiness lineOfBusiness, List<String> partyTables) Imports the list of registered parties.importRegisteredPartiesAsync(String name, ImportRegisteredPartiesRequest.UpdateMode mode, LineOfBusiness lineOfBusiness, List<String> partyTables) Imports the list of registered parties.Imports the list of registered parties.final OperationCallable<ImportRegisteredPartiesRequest,ImportRegisteredPartiesResponse, OperationMetadata> Imports the list of registered parties.booleanbooleanlistBacktestResults(InstanceName parent) List BacktestResults.List BacktestResults.listBacktestResults(String parent) List BacktestResults.List BacktestResults.List BacktestResults.listDatasets(InstanceName parent) Lists datasets.listDatasets(ListDatasetsRequest request) Lists datasets.listDatasets(String parent) Lists datasets.Lists datasets.Lists datasets.listEngineConfigs(InstanceName parent) Lists engine configs.Lists engine configs.listEngineConfigs(String parent) Lists engine configs.Lists engine configs.Lists engine configs.listEngineVersions(InstanceName parent) Lists EngineVersions for given location.Lists EngineVersions for given location.listEngineVersions(String parent) Lists EngineVersions for given location.Lists EngineVersions for given location.Lists EngineVersions for given location.listInstances(ListInstancesRequest request) Lists instances.listInstances(LocationName parent) Lists instances.listInstances(String parent) Lists instances.Lists instances.Lists instances.listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Lists information about the supported locations for this service.Lists information about the supported locations for this service.listModels(InstanceName parent) Lists models.listModels(ListModelsRequest request) Lists models.listModels(String parent) Lists models.Lists models.Lists models.listPredictionResults(InstanceName parent) List PredictionResults.List PredictionResults.listPredictionResults(String parent) List PredictionResults.List PredictionResults.List PredictionResults.voidshutdown()voidupdateBacktestResultAsync(BacktestResult backtestResult, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single BacktestResult.Updates the parameters of a single BacktestResult.Updates the parameters of a single BacktestResult.Updates the parameters of a single BacktestResult.updateDatasetAsync(Dataset dataset, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Dataset.updateDatasetAsync(UpdateDatasetRequest request) Updates the parameters of a single Dataset.Updates the parameters of a single Dataset.Updates the parameters of a single Dataset.updateEngineConfigAsync(EngineConfig engineConfig, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single EngineConfig.Updates the parameters of a single EngineConfig.Updates the parameters of a single EngineConfig.Updates the parameters of a single EngineConfig.updateInstanceAsync(Instance instance, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Instance.updateInstanceAsync(UpdateInstanceRequest request) Updates the parameters of a single Instance.Updates the parameters of a single Instance.Updates the parameters of a single Instance.updateModelAsync(Model model, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Model.updateModelAsync(UpdateModelRequest request) Updates the parameters of a single Model.Updates the parameters of a single Model.Updates the parameters of a single Model.updatePredictionResultAsync(PredictionResult predictionResult, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single PredictionResult.Updates the parameters of a single PredictionResult.Updates the parameters of a single PredictionResult.Updates the parameters of a single PredictionResult.
-
Constructor Details
-
AMLClient
Constructs an instance of AMLClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
AMLClient
-
-
Method Details
-
create
Constructs an instance of AMLClient with default settings.- Throws:
IOException
-
create
Constructs an instance of AMLClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.- Throws:
IOException
-
create
Constructs an instance of AMLClient, using the given stub for making calls. This is for advanced usage - prefer using create(AMLSettings). -
getSettings
-
getStub
-
getOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
getHttpJsonOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
listInstances
Lists instances.Sample 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 (AMLClient aMLClient = AMLClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Instance element : aMLClient.listInstances(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the Instance is the location for that Instance. Every location has exactly one instance.- Throws:
ApiException- if the remote call fails
-
listInstances
Lists instances.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Instance element : aMLClient.listInstances(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the Instance is the location for that Instance. Every location has exactly one instance.- Throws:
ApiException- if the remote call fails
-
listInstances
Lists instances.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Instance element : aMLClient.listInstances(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listInstancesPagedCallable
public final UnaryCallable<ListInstancesRequest,AMLClient.ListInstancesPagedResponse> listInstancesPagedCallable()Lists instances.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Instance> future = aMLClient.listInstancesPagedCallable().futureCall(request); // Do something. for (Instance element : future.get().iterateAll()) { // doThingsWith(element); } } -
listInstancesCallable
Lists instances.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListInstancesResponse response = aMLClient.listInstancesCallable().call(request); for (Instance element : response.getInstancesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getInstance
Gets an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); Instance response = aMLClient.getInstance(name); }- Parameters:
name- Required. The resource name of the Instance.- Throws:
ApiException- if the remote call fails
-
getInstance
Gets an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); Instance response = aMLClient.getInstance(name); }- Parameters:
name- Required. The resource name of the Instance.- Throws:
ApiException- if the remote call fails
-
getInstance
Gets an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .build(); Instance response = aMLClient.getInstance(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getInstanceCallable
Gets an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .build(); ApiFuture<Instance> future = aMLClient.getInstanceCallable().futureCall(request); // Do something. Instance response = future.get(); } -
createInstanceAsync
public final OperationFuture<Instance,OperationMetadata> createInstanceAsync(LocationName parent, Instance instance, String instanceId) Creates an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Instance instance = Instance.newBuilder().build(); String instanceId = "instanceId902024336"; Instance response = aMLClient.createInstanceAsync(parent, instance, instanceId).get(); }- Parameters:
parent- Required. The parent of the Instance is the location for that Instance. Every location has exactly one instance.instance- Required. The instance that will be created.instanceId- Required. The resource id of the instance.- Throws:
ApiException- if the remote call fails
-
createInstanceAsync
public final OperationFuture<Instance,OperationMetadata> createInstanceAsync(String parent, Instance instance, String instanceId) Creates an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Instance instance = Instance.newBuilder().build(); String instanceId = "instanceId902024336"; Instance response = aMLClient.createInstanceAsync(parent, instance, instanceId).get(); }- Parameters:
parent- Required. The parent of the Instance is the location for that Instance. Every location has exactly one instance.instance- Required. The instance that will be created.instanceId- Required. The resource id of the instance.- Throws:
ApiException- if the remote call fails
-
createInstanceAsync
public final OperationFuture<Instance,OperationMetadata> createInstanceAsync(CreateInstanceRequest request) Creates an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setInstanceId("instanceId902024336") .setInstance(Instance.newBuilder().build()) .setRequestId("requestId693933066") .build(); Instance response = aMLClient.createInstanceAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createInstanceOperationCallable
public final OperationCallable<CreateInstanceRequest,Instance, createInstanceOperationCallable()OperationMetadata> Creates an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setInstanceId("instanceId902024336") .setInstance(Instance.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<Instance, OperationMetadata> future = aMLClient.createInstanceOperationCallable().futureCall(request); // Do something. Instance response = future.get(); } -
createInstanceCallable
Creates an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setInstanceId("instanceId902024336") .setInstance(Instance.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.createInstanceCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateInstanceAsync
public final OperationFuture<Instance,OperationMetadata> updateInstanceAsync(Instance instance, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { Instance instance = Instance.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); Instance response = aMLClient.updateInstanceAsync(instance, updateMask).get(); }- Parameters:
instance- Required. The new value of the instance fields that will be updated according to the update_maskupdateMask- Optional. Field mask is used to specify the fields to be overwritten in the Instance resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateInstanceAsync
public final OperationFuture<Instance,OperationMetadata> updateInstanceAsync(UpdateInstanceRequest request) Updates the parameters of a single Instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setInstance(Instance.newBuilder().build()) .setRequestId("requestId693933066") .build(); Instance response = aMLClient.updateInstanceAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateInstanceOperationCallable
public final OperationCallable<UpdateInstanceRequest,Instance, updateInstanceOperationCallable()OperationMetadata> Updates the parameters of a single Instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setInstance(Instance.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<Instance, OperationMetadata> future = aMLClient.updateInstanceOperationCallable().futureCall(request); // Do something. Instance response = future.get(); } -
updateInstanceCallable
Updates the parameters of a single Instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setInstance(Instance.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.updateInstanceCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteInstanceAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInstanceAsync(InstanceName name) Deletes an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); aMLClient.deleteInstanceAsync(name).get(); }- Parameters:
name- Required. The resource name of the Instance.- Throws:
ApiException- if the remote call fails
-
deleteInstanceAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInstanceAsync(String name) Deletes an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); aMLClient.deleteInstanceAsync(name).get(); }- Parameters:
name- Required. The resource name of the Instance.- Throws:
ApiException- if the remote call fails
-
deleteInstanceAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteInstanceAsync(DeleteInstanceRequest request) Deletes an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") .build(); aMLClient.deleteInstanceAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteInstanceOperationCallable
public final OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, deleteInstanceOperationCallable()OperationMetadata> Deletes an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") .build(); OperationFuture<Empty, OperationMetadata> future = aMLClient.deleteInstanceOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteInstanceCallable
Deletes an instance.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.deleteInstanceCallable().futureCall(request); // Do something. future.get(); } -
importRegisteredPartiesAsync
public final OperationFuture<ImportRegisteredPartiesResponse,OperationMetadata> importRegisteredPartiesAsync(InstanceName name, ImportRegisteredPartiesRequest.UpdateMode mode, LineOfBusiness lineOfBusiness, List<String> partyTables) Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); ImportRegisteredPartiesRequest.UpdateMode mode = ImportRegisteredPartiesRequest.UpdateMode.forNumber(0); LineOfBusiness lineOfBusiness = LineOfBusiness.forNumber(0); List<String> partyTables = new ArrayList<>(); ImportRegisteredPartiesResponse response = aMLClient.importRegisteredPartiesAsync(name, mode, lineOfBusiness, partyTables).get(); }- Parameters:
name- Required. The full path to the Instance resource in this API. format: `projects/{project}/locations/{location}/instances/{instance}`mode- Required. Mode of the request.lineOfBusiness- Required. LineOfBusiness for the specified registered parties.partyTables- Optional. List of BigQuery tables. Union of tables will be taken if there is more than one table. VPC-SC restrictions apply. format: `bq://{project}.{bqDatasetID}.{bqTableID}` Use of `datasets` is preferred over the latter due to its simplicity and the reduced risk of errors `party_tables` and `datasets` must not be provided at the same time- Throws:
ApiException- if the remote call fails
-
importRegisteredPartiesAsync
public final OperationFuture<ImportRegisteredPartiesResponse,OperationMetadata> importRegisteredPartiesAsync(String name, ImportRegisteredPartiesRequest.UpdateMode mode, LineOfBusiness lineOfBusiness, List<String> partyTables) Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); ImportRegisteredPartiesRequest.UpdateMode mode = ImportRegisteredPartiesRequest.UpdateMode.forNumber(0); LineOfBusiness lineOfBusiness = LineOfBusiness.forNumber(0); List<String> partyTables = new ArrayList<>(); ImportRegisteredPartiesResponse response = aMLClient.importRegisteredPartiesAsync(name, mode, lineOfBusiness, partyTables).get(); }- Parameters:
name- Required. The full path to the Instance resource in this API. format: `projects/{project}/locations/{location}/instances/{instance}`mode- Required. Mode of the request.lineOfBusiness- Required. LineOfBusiness for the specified registered parties.partyTables- Optional. List of BigQuery tables. Union of tables will be taken if there is more than one table. VPC-SC restrictions apply. format: `bq://{project}.{bqDatasetID}.{bqTableID}` Use of `datasets` is preferred over the latter due to its simplicity and the reduced risk of errors `party_tables` and `datasets` must not be provided at the same time- Throws:
ApiException- if the remote call fails
-
importRegisteredPartiesAsync
public final OperationFuture<ImportRegisteredPartiesResponse,OperationMetadata> importRegisteredPartiesAsync(ImportRegisteredPartiesRequest request) Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ImportRegisteredPartiesRequest request = ImportRegisteredPartiesRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .addAllPartyTables(new ArrayList<String>()) .setValidateOnly(true) .setLineOfBusiness(LineOfBusiness.forNumber(0)) .build(); ImportRegisteredPartiesResponse response = aMLClient.importRegisteredPartiesAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
importRegisteredPartiesOperationCallable
public final OperationCallable<ImportRegisteredPartiesRequest,ImportRegisteredPartiesResponse, importRegisteredPartiesOperationCallable()OperationMetadata> Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ImportRegisteredPartiesRequest request = ImportRegisteredPartiesRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .addAllPartyTables(new ArrayList<String>()) .setValidateOnly(true) .setLineOfBusiness(LineOfBusiness.forNumber(0)) .build(); OperationFuture<ImportRegisteredPartiesResponse, OperationMetadata> future = aMLClient.importRegisteredPartiesOperationCallable().futureCall(request); // Do something. ImportRegisteredPartiesResponse response = future.get(); } -
importRegisteredPartiesCallable
public final UnaryCallable<ImportRegisteredPartiesRequest,Operation> importRegisteredPartiesCallable()Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ImportRegisteredPartiesRequest request = ImportRegisteredPartiesRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .addAllPartyTables(new ArrayList<String>()) .setValidateOnly(true) .setLineOfBusiness(LineOfBusiness.forNumber(0)) .build(); ApiFuture<Operation> future = aMLClient.importRegisteredPartiesCallable().futureCall(request); // Do something. Operation response = future.get(); } -
exportRegisteredPartiesAsync
public final OperationFuture<ExportRegisteredPartiesResponse,OperationMetadata> exportRegisteredPartiesAsync(InstanceName name, BigQueryDestination dataset, LineOfBusiness lineOfBusiness) Exports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties) for information on the output schema for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); BigQueryDestination dataset = BigQueryDestination.newBuilder().build(); LineOfBusiness lineOfBusiness = LineOfBusiness.forNumber(0); ExportRegisteredPartiesResponse response = aMLClient.exportRegisteredPartiesAsync(name, dataset, lineOfBusiness).get(); }- Parameters:
name- Required. The full path to the Instance resource in this API. format: `projects/{project}/locations/{location}/instances/{instance}`dataset- Required. The location to output the RegisteredParties.lineOfBusiness- Required. LineOfBusiness to get RegisteredParties from.- Throws:
ApiException- if the remote call fails
-
exportRegisteredPartiesAsync
public final OperationFuture<ExportRegisteredPartiesResponse,OperationMetadata> exportRegisteredPartiesAsync(String name, BigQueryDestination dataset, LineOfBusiness lineOfBusiness) Exports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties) for information on the output schema for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); BigQueryDestination dataset = BigQueryDestination.newBuilder().build(); LineOfBusiness lineOfBusiness = LineOfBusiness.forNumber(0); ExportRegisteredPartiesResponse response = aMLClient.exportRegisteredPartiesAsync(name, dataset, lineOfBusiness).get(); }- Parameters:
name- Required. The full path to the Instance resource in this API. format: `projects/{project}/locations/{location}/instances/{instance}`dataset- Required. The location to output the RegisteredParties.lineOfBusiness- Required. LineOfBusiness to get RegisteredParties from.- Throws:
ApiException- if the remote call fails
-
exportRegisteredPartiesAsync
public final OperationFuture<ExportRegisteredPartiesResponse,OperationMetadata> exportRegisteredPartiesAsync(ExportRegisteredPartiesRequest request) Exports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties) for information on the output schema for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportRegisteredPartiesRequest request = ExportRegisteredPartiesRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setDataset(BigQueryDestination.newBuilder().build()) .setLineOfBusiness(LineOfBusiness.forNumber(0)) .build(); ExportRegisteredPartiesResponse response = aMLClient.exportRegisteredPartiesAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
exportRegisteredPartiesOperationCallable
public final OperationCallable<ExportRegisteredPartiesRequest,ExportRegisteredPartiesResponse, exportRegisteredPartiesOperationCallable()OperationMetadata> Exports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties) for information on the output schema for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportRegisteredPartiesRequest request = ExportRegisteredPartiesRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setDataset(BigQueryDestination.newBuilder().build()) .setLineOfBusiness(LineOfBusiness.forNumber(0)) .build(); OperationFuture<ExportRegisteredPartiesResponse, OperationMetadata> future = aMLClient.exportRegisteredPartiesOperationCallable().futureCall(request); // Do something. ExportRegisteredPartiesResponse response = future.get(); } -
exportRegisteredPartiesCallable
public final UnaryCallable<ExportRegisteredPartiesRequest,Operation> exportRegisteredPartiesCallable()Exports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties) for information on the output schema for this method.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportRegisteredPartiesRequest request = ExportRegisteredPartiesRequest.newBuilder() .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setDataset(BigQueryDestination.newBuilder().build()) .setLineOfBusiness(LineOfBusiness.forNumber(0)) .build(); ApiFuture<Operation> future = aMLClient.exportRegisteredPartiesCallable().futureCall(request); // Do something. Operation response = future.get(); } -
listDatasets
Lists datasets.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); for (Dataset element : aMLClient.listDatasets(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the Dataset is the Instance.- Throws:
ApiException- if the remote call fails
-
listDatasets
Lists datasets.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); for (Dataset element : aMLClient.listDatasets(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the Dataset is the Instance.- Throws:
ApiException- if the remote call fails
-
listDatasets
Lists datasets.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Dataset element : aMLClient.listDatasets(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listDatasetsPagedCallable
public final UnaryCallable<ListDatasetsRequest,AMLClient.ListDatasetsPagedResponse> listDatasetsPagedCallable()Lists datasets.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Dataset> future = aMLClient.listDatasetsPagedCallable().futureCall(request); // Do something. for (Dataset element : future.get().iterateAll()) { // doThingsWith(element); } } -
listDatasetsCallable
Lists datasets.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListDatasetsRequest request = ListDatasetsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListDatasetsResponse response = aMLClient.listDatasetsCallable().call(request); for (Dataset element : response.getDatasetsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getDataset
Gets a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DatasetName name = DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]"); Dataset response = aMLClient.getDataset(name); }- Parameters:
name- Required. The resource name of the Dataset- Throws:
ApiException- if the remote call fails
-
getDataset
Gets a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]").toString(); Dataset response = aMLClient.getDataset(name); }- Parameters:
name- Required. The resource name of the Dataset- Throws:
ApiException- if the remote call fails
-
getDataset
Gets a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetDatasetRequest request = GetDatasetRequest.newBuilder() .setName( DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]") .toString()) .build(); Dataset response = aMLClient.getDataset(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getDatasetCallable
Gets a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetDatasetRequest request = GetDatasetRequest.newBuilder() .setName( DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]") .toString()) .build(); ApiFuture<Dataset> future = aMLClient.getDatasetCallable().futureCall(request); // Do something. Dataset response = future.get(); } -
createDatasetAsync
public final OperationFuture<Dataset,OperationMetadata> createDatasetAsync(InstanceName parent, Dataset dataset, String datasetId) Creates a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); Dataset dataset = Dataset.newBuilder().build(); String datasetId = "datasetId-345342029"; Dataset response = aMLClient.createDatasetAsync(parent, dataset, datasetId).get(); }- Parameters:
parent- Required. The parent of the Dataset is the Instance.dataset- Required. The dataset that will be created.datasetId- Required. The resource id of the dataset- Throws:
ApiException- if the remote call fails
-
createDatasetAsync
public final OperationFuture<Dataset,OperationMetadata> createDatasetAsync(String parent, Dataset dataset, String datasetId) Creates a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); Dataset dataset = Dataset.newBuilder().build(); String datasetId = "datasetId-345342029"; Dataset response = aMLClient.createDatasetAsync(parent, dataset, datasetId).get(); }- Parameters:
parent- Required. The parent of the Dataset is the Instance.dataset- Required. The dataset that will be created.datasetId- Required. The resource id of the dataset- Throws:
ApiException- if the remote call fails
-
createDatasetAsync
public final OperationFuture<Dataset,OperationMetadata> createDatasetAsync(CreateDatasetRequest request) Creates a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setDatasetId("datasetId-345342029") .setDataset(Dataset.newBuilder().build()) .setRequestId("requestId693933066") .build(); Dataset response = aMLClient.createDatasetAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createDatasetOperationCallable
public final OperationCallable<CreateDatasetRequest,Dataset, createDatasetOperationCallable()OperationMetadata> Creates a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setDatasetId("datasetId-345342029") .setDataset(Dataset.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<Dataset, OperationMetadata> future = aMLClient.createDatasetOperationCallable().futureCall(request); // Do something. Dataset response = future.get(); } -
createDatasetCallable
Creates a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateDatasetRequest request = CreateDatasetRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setDatasetId("datasetId-345342029") .setDataset(Dataset.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.createDatasetCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateDatasetAsync
public final OperationFuture<Dataset,OperationMetadata> updateDatasetAsync(Dataset dataset, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { Dataset dataset = Dataset.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); Dataset response = aMLClient.updateDatasetAsync(dataset, updateMask).get(); }- Parameters:
dataset- Required. The new value of the dataset fields that will be updated according to the update_mask.updateMask- Optional. Field mask is used to specify the fields to be overwritten in the Dataset resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateDatasetAsync
public final OperationFuture<Dataset,OperationMetadata> updateDatasetAsync(UpdateDatasetRequest request) Updates the parameters of a single Dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateDatasetRequest request = UpdateDatasetRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDataset(Dataset.newBuilder().build()) .setRequestId("requestId693933066") .build(); Dataset response = aMLClient.updateDatasetAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateDatasetOperationCallable
public final OperationCallable<UpdateDatasetRequest,Dataset, updateDatasetOperationCallable()OperationMetadata> Updates the parameters of a single Dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateDatasetRequest request = UpdateDatasetRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDataset(Dataset.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<Dataset, OperationMetadata> future = aMLClient.updateDatasetOperationCallable().futureCall(request); // Do something. Dataset response = future.get(); } -
updateDatasetCallable
Updates the parameters of a single Dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateDatasetRequest request = UpdateDatasetRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDataset(Dataset.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.updateDatasetCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteDatasetAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDatasetAsync(DatasetName name) Deletes a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DatasetName name = DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]"); aMLClient.deleteDatasetAsync(name).get(); }- Parameters:
name- Required. The resource name of the Dataset.- Throws:
ApiException- if the remote call fails
-
deleteDatasetAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDatasetAsync(String name) Deletes a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]").toString(); aMLClient.deleteDatasetAsync(name).get(); }- Parameters:
name- Required. The resource name of the Dataset.- Throws:
ApiException- if the remote call fails
-
deleteDatasetAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDatasetAsync(DeleteDatasetRequest request) Deletes a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder() .setName( DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]") .toString()) .setRequestId("requestId693933066") .build(); aMLClient.deleteDatasetAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteDatasetOperationCallable
public final OperationCallable<DeleteDatasetRequest,com.google.protobuf.Empty, deleteDatasetOperationCallable()OperationMetadata> Deletes a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder() .setName( DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]") .toString()) .setRequestId("requestId693933066") .build(); OperationFuture<Empty, OperationMetadata> future = aMLClient.deleteDatasetOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteDatasetCallable
Deletes a dataset.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder() .setName( DatasetName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[DATASET]") .toString()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.deleteDatasetCallable().futureCall(request); // Do something. future.get(); } -
listModels
Lists models.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); for (Model element : aMLClient.listModels(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the Model is the Instance.- Throws:
ApiException- if the remote call fails
-
listModels
Lists models.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); for (Model element : aMLClient.listModels(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the Model is the Instance.- Throws:
ApiException- if the remote call fails
-
listModels
Lists models.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListModelsRequest request = ListModelsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Model element : aMLClient.listModels(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listModelsPagedCallable
public final UnaryCallable<ListModelsRequest,AMLClient.ListModelsPagedResponse> listModelsPagedCallable()Lists models.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListModelsRequest request = ListModelsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Model> future = aMLClient.listModelsPagedCallable().futureCall(request); // Do something. for (Model element : future.get().iterateAll()) { // doThingsWith(element); } } -
listModelsCallable
Lists models.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListModelsRequest request = ListModelsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListModelsResponse response = aMLClient.listModelsCallable().call(request); for (Model element : response.getModelsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getModel
Gets a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ModelName name = ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]"); Model response = aMLClient.getModel(name); }- Parameters:
name- Required. The resource name of the Model- Throws:
ApiException- if the remote call fails
-
getModel
Gets a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString(); Model response = aMLClient.getModel(name); }- Parameters:
name- Required. The resource name of the Model- Throws:
ApiException- if the remote call fails
-
getModel
Gets a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetModelRequest request = GetModelRequest.newBuilder() .setName( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .build(); Model response = aMLClient.getModel(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getModelCallable
Gets a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetModelRequest request = GetModelRequest.newBuilder() .setName( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .build(); ApiFuture<Model> future = aMLClient.getModelCallable().futureCall(request); // Do something. Model response = future.get(); } -
createModelAsync
public final OperationFuture<Model,OperationMetadata> createModelAsync(InstanceName parent, Model model, String modelId) Creates a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); Model model = Model.newBuilder().build(); String modelId = "modelId1226956324"; Model response = aMLClient.createModelAsync(parent, model, modelId).get(); }- Parameters:
parent- Required. The parent of the Model is the Instance.model- Required. The Model that will be created.modelId- Required. The resource id of the Model- Throws:
ApiException- if the remote call fails
-
createModelAsync
public final OperationFuture<Model,OperationMetadata> createModelAsync(String parent, Model model, String modelId) Creates a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); Model model = Model.newBuilder().build(); String modelId = "modelId1226956324"; Model response = aMLClient.createModelAsync(parent, model, modelId).get(); }- Parameters:
parent- Required. The parent of the Model is the Instance.model- Required. The Model that will be created.modelId- Required. The resource id of the Model- Throws:
ApiException- if the remote call fails
-
createModelAsync
Creates a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setModelId("modelId1226956324") .setModel(Model.newBuilder().build()) .setRequestId("requestId693933066") .build(); Model response = aMLClient.createModelAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createModelOperationCallable
public final OperationCallable<CreateModelRequest,Model, createModelOperationCallable()OperationMetadata> Creates a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setModelId("modelId1226956324") .setModel(Model.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<Model, OperationMetadata> future = aMLClient.createModelOperationCallable().futureCall(request); // Do something. Model response = future.get(); } -
createModelCallable
Creates a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateModelRequest request = CreateModelRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setModelId("modelId1226956324") .setModel(Model.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.createModelCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateModelAsync
public final OperationFuture<Model,OperationMetadata> updateModelAsync(Model model, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { Model model = Model.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); Model response = aMLClient.updateModelAsync(model, updateMask).get(); }- Parameters:
model- Required. The new value of the Model fields that will be updated according to the update_mask.updateMask- Optional. Field mask is used to specify the fields to be overwritten in the Model resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateModelAsync
Updates the parameters of a single Model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateModelRequest request = UpdateModelRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setModel(Model.newBuilder().build()) .setRequestId("requestId693933066") .build(); Model response = aMLClient.updateModelAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateModelOperationCallable
public final OperationCallable<UpdateModelRequest,Model, updateModelOperationCallable()OperationMetadata> Updates the parameters of a single Model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateModelRequest request = UpdateModelRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setModel(Model.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<Model, OperationMetadata> future = aMLClient.updateModelOperationCallable().futureCall(request); // Do something. Model response = future.get(); } -
updateModelCallable
Updates the parameters of a single Model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateModelRequest request = UpdateModelRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setModel(Model.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.updateModelCallable().futureCall(request); // Do something. Operation response = future.get(); } -
exportModelMetadataAsync
public final OperationFuture<ExportModelMetadataResponse,OperationMetadata> exportModelMetadataAsync(ModelName model, BigQueryDestination structuredMetadataDestination) Export governance information for a Model resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ModelName model = ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]"); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportModelMetadataResponse response = aMLClient.exportModelMetadataAsync(model, structuredMetadataDestination).get(); }- Parameters:
model- Required. The resource name of the Model.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportModelMetadataAsync
public final OperationFuture<ExportModelMetadataResponse,OperationMetadata> exportModelMetadataAsync(String model, BigQueryDestination structuredMetadataDestination) Export governance information for a Model resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model).Sample 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 (AMLClient aMLClient = AMLClient.create()) { String model = ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString(); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportModelMetadataResponse response = aMLClient.exportModelMetadataAsync(model, structuredMetadataDestination).get(); }- Parameters:
model- Required. The resource name of the Model.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportModelMetadataAsync
public final OperationFuture<ExportModelMetadataResponse,OperationMetadata> exportModelMetadataAsync(ExportModelMetadataRequest request) Export governance information for a Model resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportModelMetadataRequest request = ExportModelMetadataRequest.newBuilder() .setModel( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ExportModelMetadataResponse response = aMLClient.exportModelMetadataAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
exportModelMetadataOperationCallable
public final OperationCallable<ExportModelMetadataRequest,ExportModelMetadataResponse, exportModelMetadataOperationCallable()OperationMetadata> Export governance information for a Model resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportModelMetadataRequest request = ExportModelMetadataRequest.newBuilder() .setModel( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); OperationFuture<ExportModelMetadataResponse, OperationMetadata> future = aMLClient.exportModelMetadataOperationCallable().futureCall(request); // Do something. ExportModelMetadataResponse response = future.get(); } -
exportModelMetadataCallable
Export governance information for a Model resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportModelMetadataRequest request = ExportModelMetadataRequest.newBuilder() .setModel( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ApiFuture<Operation> future = aMLClient.exportModelMetadataCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteModelAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteModelAsync(ModelName name) Deletes a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ModelName name = ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]"); aMLClient.deleteModelAsync(name).get(); }- Parameters:
name- Required. The resource name of the Model.- Throws:
ApiException- if the remote call fails
-
deleteModelAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteModelAsync(String name) Deletes a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString(); aMLClient.deleteModelAsync(name).get(); }- Parameters:
name- Required. The resource name of the Model.- Throws:
ApiException- if the remote call fails
-
deleteModelAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteModelAsync(DeleteModelRequest request) Deletes a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteModelRequest request = DeleteModelRequest.newBuilder() .setName( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .setRequestId("requestId693933066") .build(); aMLClient.deleteModelAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteModelOperationCallable
public final OperationCallable<DeleteModelRequest,com.google.protobuf.Empty, deleteModelOperationCallable()OperationMetadata> Deletes a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteModelRequest request = DeleteModelRequest.newBuilder() .setName( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .setRequestId("requestId693933066") .build(); OperationFuture<Empty, OperationMetadata> future = aMLClient.deleteModelOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteModelCallable
Deletes a model.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteModelRequest request = DeleteModelRequest.newBuilder() .setName( ModelName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[MODEL]").toString()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.deleteModelCallable().futureCall(request); // Do something. future.get(); } -
listEngineConfigs
Lists engine configs.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); for (EngineConfig element : aMLClient.listEngineConfigs(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the EngineConfig is the Instance.- Throws:
ApiException- if the remote call fails
-
listEngineConfigs
Lists engine configs.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); for (EngineConfig element : aMLClient.listEngineConfigs(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the EngineConfig is the Instance.- Throws:
ApiException- if the remote call fails
-
listEngineConfigs
public final AMLClient.ListEngineConfigsPagedResponse listEngineConfigs(ListEngineConfigsRequest request) Lists engine configs.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListEngineConfigsRequest request = ListEngineConfigsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (EngineConfig element : aMLClient.listEngineConfigs(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listEngineConfigsPagedCallable
public final UnaryCallable<ListEngineConfigsRequest,AMLClient.ListEngineConfigsPagedResponse> listEngineConfigsPagedCallable()Lists engine configs.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListEngineConfigsRequest request = ListEngineConfigsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<EngineConfig> future = aMLClient.listEngineConfigsPagedCallable().futureCall(request); // Do something. for (EngineConfig element : future.get().iterateAll()) { // doThingsWith(element); } } -
listEngineConfigsCallable
public final UnaryCallable<ListEngineConfigsRequest,ListEngineConfigsResponse> listEngineConfigsCallable()Lists engine configs.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListEngineConfigsRequest request = ListEngineConfigsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListEngineConfigsResponse response = aMLClient.listEngineConfigsCallable().call(request); for (EngineConfig element : response.getEngineConfigsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getEngineConfig
Gets an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { EngineConfigName name = EngineConfigName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]"); EngineConfig response = aMLClient.getEngineConfig(name); }- Parameters:
name- Required. The resource name of the EngineConfig- Throws:
ApiException- if the remote call fails
-
getEngineConfig
Gets an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = EngineConfigName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString(); EngineConfig response = aMLClient.getEngineConfig(name); }- Parameters:
name- Required. The resource name of the EngineConfig- Throws:
ApiException- if the remote call fails
-
getEngineConfig
Gets an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetEngineConfigRequest request = GetEngineConfigRequest.newBuilder() .setName( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .build(); EngineConfig response = aMLClient.getEngineConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getEngineConfigCallable
Gets an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetEngineConfigRequest request = GetEngineConfigRequest.newBuilder() .setName( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .build(); ApiFuture<EngineConfig> future = aMLClient.getEngineConfigCallable().futureCall(request); // Do something. EngineConfig response = future.get(); } -
createEngineConfigAsync
public final OperationFuture<EngineConfig,OperationMetadata> createEngineConfigAsync(InstanceName parent, EngineConfig engineConfig, String engineConfigId) Creates an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); EngineConfig engineConfig = EngineConfig.newBuilder().build(); String engineConfigId = "engineConfigId451461215"; EngineConfig response = aMLClient.createEngineConfigAsync(parent, engineConfig, engineConfigId).get(); }- Parameters:
parent- Required. The parent of the EngineConfig is the Instance.engineConfig- Required. The EngineConfig that will be created.engineConfigId- Required. The resource id of the EngineConfig- Throws:
ApiException- if the remote call fails
-
createEngineConfigAsync
public final OperationFuture<EngineConfig,OperationMetadata> createEngineConfigAsync(String parent, EngineConfig engineConfig, String engineConfigId) Creates an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); EngineConfig engineConfig = EngineConfig.newBuilder().build(); String engineConfigId = "engineConfigId451461215"; EngineConfig response = aMLClient.createEngineConfigAsync(parent, engineConfig, engineConfigId).get(); }- Parameters:
parent- Required. The parent of the EngineConfig is the Instance.engineConfig- Required. The EngineConfig that will be created.engineConfigId- Required. The resource id of the EngineConfig- Throws:
ApiException- if the remote call fails
-
createEngineConfigAsync
public final OperationFuture<EngineConfig,OperationMetadata> createEngineConfigAsync(CreateEngineConfigRequest request) Creates an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateEngineConfigRequest request = CreateEngineConfigRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setEngineConfigId("engineConfigId451461215") .setEngineConfig(EngineConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); EngineConfig response = aMLClient.createEngineConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createEngineConfigOperationCallable
public final OperationCallable<CreateEngineConfigRequest,EngineConfig, createEngineConfigOperationCallable()OperationMetadata> Creates an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateEngineConfigRequest request = CreateEngineConfigRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setEngineConfigId("engineConfigId451461215") .setEngineConfig(EngineConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<EngineConfig, OperationMetadata> future = aMLClient.createEngineConfigOperationCallable().futureCall(request); // Do something. EngineConfig response = future.get(); } -
createEngineConfigCallable
Creates an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateEngineConfigRequest request = CreateEngineConfigRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setEngineConfigId("engineConfigId451461215") .setEngineConfig(EngineConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.createEngineConfigCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateEngineConfigAsync
public final OperationFuture<EngineConfig,OperationMetadata> updateEngineConfigAsync(EngineConfig engineConfig, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single EngineConfig.Sample 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 (AMLClient aMLClient = AMLClient.create()) { EngineConfig engineConfig = EngineConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); EngineConfig response = aMLClient.updateEngineConfigAsync(engineConfig, updateMask).get(); }- Parameters:
engineConfig- Required. The new value of the EngineConfig fields that will be updated according to the update_mask.updateMask- Optional. Field mask is used to specify the fields to be overwritten in the EngineConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateEngineConfigAsync
public final OperationFuture<EngineConfig,OperationMetadata> updateEngineConfigAsync(UpdateEngineConfigRequest request) Updates the parameters of a single EngineConfig.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateEngineConfigRequest request = UpdateEngineConfigRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setEngineConfig(EngineConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); EngineConfig response = aMLClient.updateEngineConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateEngineConfigOperationCallable
public final OperationCallable<UpdateEngineConfigRequest,EngineConfig, updateEngineConfigOperationCallable()OperationMetadata> Updates the parameters of a single EngineConfig.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateEngineConfigRequest request = UpdateEngineConfigRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setEngineConfig(EngineConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<EngineConfig, OperationMetadata> future = aMLClient.updateEngineConfigOperationCallable().futureCall(request); // Do something. EngineConfig response = future.get(); } -
updateEngineConfigCallable
Updates the parameters of a single EngineConfig.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateEngineConfigRequest request = UpdateEngineConfigRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setEngineConfig(EngineConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.updateEngineConfigCallable().futureCall(request); // Do something. Operation response = future.get(); } -
exportEngineConfigMetadataAsync
public final OperationFuture<ExportEngineConfigMetadataResponse,OperationMetadata> exportEngineConfigMetadataAsync(EngineConfigName engineConfig, BigQueryDestination structuredMetadataDestination) Export governance information for an EngineConfig resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config).Sample 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 (AMLClient aMLClient = AMLClient.create()) { EngineConfigName engineConfig = EngineConfigName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]"); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportEngineConfigMetadataResponse response = aMLClient .exportEngineConfigMetadataAsync(engineConfig, structuredMetadataDestination) .get(); }- Parameters:
engineConfig- Required. The resource name of the EngineConfig.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportEngineConfigMetadataAsync
public final OperationFuture<ExportEngineConfigMetadataResponse,OperationMetadata> exportEngineConfigMetadataAsync(String engineConfig, BigQueryDestination structuredMetadataDestination) Export governance information for an EngineConfig resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config).Sample 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 (AMLClient aMLClient = AMLClient.create()) { String engineConfig = EngineConfigName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString(); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportEngineConfigMetadataResponse response = aMLClient .exportEngineConfigMetadataAsync(engineConfig, structuredMetadataDestination) .get(); }- Parameters:
engineConfig- Required. The resource name of the EngineConfig.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportEngineConfigMetadataAsync
public final OperationFuture<ExportEngineConfigMetadataResponse,OperationMetadata> exportEngineConfigMetadataAsync(ExportEngineConfigMetadataRequest request) Export governance information for an EngineConfig resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportEngineConfigMetadataRequest request = ExportEngineConfigMetadataRequest.newBuilder() .setEngineConfig( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ExportEngineConfigMetadataResponse response = aMLClient.exportEngineConfigMetadataAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
exportEngineConfigMetadataOperationCallable
public final OperationCallable<ExportEngineConfigMetadataRequest,ExportEngineConfigMetadataResponse, exportEngineConfigMetadataOperationCallable()OperationMetadata> Export governance information for an EngineConfig resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportEngineConfigMetadataRequest request = ExportEngineConfigMetadataRequest.newBuilder() .setEngineConfig( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); OperationFuture<ExportEngineConfigMetadataResponse, OperationMetadata> future = aMLClient.exportEngineConfigMetadataOperationCallable().futureCall(request); // Do something. ExportEngineConfigMetadataResponse response = future.get(); } -
exportEngineConfigMetadataCallable
public final UnaryCallable<ExportEngineConfigMetadataRequest,Operation> exportEngineConfigMetadataCallable()Export governance information for an EngineConfig resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportEngineConfigMetadataRequest request = ExportEngineConfigMetadataRequest.newBuilder() .setEngineConfig( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ApiFuture<Operation> future = aMLClient.exportEngineConfigMetadataCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteEngineConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteEngineConfigAsync(EngineConfigName name) Deletes an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { EngineConfigName name = EngineConfigName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]"); aMLClient.deleteEngineConfigAsync(name).get(); }- Parameters:
name- Required. The resource name of the EngineConfig.- Throws:
ApiException- if the remote call fails
-
deleteEngineConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteEngineConfigAsync(String name) Deletes an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = EngineConfigName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString(); aMLClient.deleteEngineConfigAsync(name).get(); }- Parameters:
name- Required. The resource name of the EngineConfig.- Throws:
ApiException- if the remote call fails
-
deleteEngineConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteEngineConfigAsync(DeleteEngineConfigRequest request) Deletes an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteEngineConfigRequest request = DeleteEngineConfigRequest.newBuilder() .setName( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .setRequestId("requestId693933066") .build(); aMLClient.deleteEngineConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteEngineConfigOperationCallable
public final OperationCallable<DeleteEngineConfigRequest,com.google.protobuf.Empty, deleteEngineConfigOperationCallable()OperationMetadata> Deletes an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteEngineConfigRequest request = DeleteEngineConfigRequest.newBuilder() .setName( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .setRequestId("requestId693933066") .build(); OperationFuture<Empty, OperationMetadata> future = aMLClient.deleteEngineConfigOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteEngineConfigCallable
Deletes an engine config.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteEngineConfigRequest request = DeleteEngineConfigRequest.newBuilder() .setName( EngineConfigName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_CONFIG]") .toString()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.deleteEngineConfigCallable().futureCall(request); // Do something. future.get(); } -
getEngineVersion
Gets a single EngineVersion.Sample 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 (AMLClient aMLClient = AMLClient.create()) { EngineVersionName name = EngineVersionName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_VERSION]"); EngineVersion response = aMLClient.getEngineVersion(name); }- Parameters:
name- Required. The resource name of the EngineVersion- Throws:
ApiException- if the remote call fails
-
getEngineVersion
Gets a single EngineVersion.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = EngineVersionName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_VERSION]") .toString(); EngineVersion response = aMLClient.getEngineVersion(name); }- Parameters:
name- Required. The resource name of the EngineVersion- Throws:
ApiException- if the remote call fails
-
getEngineVersion
Gets a single EngineVersion.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetEngineVersionRequest request = GetEngineVersionRequest.newBuilder() .setName( EngineVersionName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_VERSION]") .toString()) .build(); EngineVersion response = aMLClient.getEngineVersion(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getEngineVersionCallable
Gets a single EngineVersion.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetEngineVersionRequest request = GetEngineVersionRequest.newBuilder() .setName( EngineVersionName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[ENGINE_VERSION]") .toString()) .build(); ApiFuture<EngineVersion> future = aMLClient.getEngineVersionCallable().futureCall(request); // Do something. EngineVersion response = future.get(); } -
listEngineVersions
Lists EngineVersions for given location.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); for (EngineVersion element : aMLClient.listEngineVersions(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the EngineVersion is the Instance.- Throws:
ApiException- if the remote call fails
-
listEngineVersions
Lists EngineVersions for given location.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); for (EngineVersion element : aMLClient.listEngineVersions(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the EngineVersion is the Instance.- Throws:
ApiException- if the remote call fails
-
listEngineVersions
public final AMLClient.ListEngineVersionsPagedResponse listEngineVersions(ListEngineVersionsRequest request) Lists EngineVersions for given location.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListEngineVersionsRequest request = ListEngineVersionsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (EngineVersion element : aMLClient.listEngineVersions(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listEngineVersionsPagedCallable
public final UnaryCallable<ListEngineVersionsRequest,AMLClient.ListEngineVersionsPagedResponse> listEngineVersionsPagedCallable()Lists EngineVersions for given location.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListEngineVersionsRequest request = ListEngineVersionsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<EngineVersion> future = aMLClient.listEngineVersionsPagedCallable().futureCall(request); // Do something. for (EngineVersion element : future.get().iterateAll()) { // doThingsWith(element); } } -
listEngineVersionsCallable
public final UnaryCallable<ListEngineVersionsRequest,ListEngineVersionsResponse> listEngineVersionsCallable()Lists EngineVersions for given location.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListEngineVersionsRequest request = ListEngineVersionsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListEngineVersionsResponse response = aMLClient.listEngineVersionsCallable().call(request); for (EngineVersion element : response.getEngineVersionsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
listPredictionResults
public final AMLClient.ListPredictionResultsPagedResponse listPredictionResults(InstanceName parent) List PredictionResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); for (PredictionResult element : aMLClient.listPredictionResults(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the PredictionResult is the Instance.- Throws:
ApiException- if the remote call fails
-
listPredictionResults
List PredictionResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); for (PredictionResult element : aMLClient.listPredictionResults(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the PredictionResult is the Instance.- Throws:
ApiException- if the remote call fails
-
listPredictionResults
public final AMLClient.ListPredictionResultsPagedResponse listPredictionResults(ListPredictionResultsRequest request) List PredictionResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListPredictionResultsRequest request = ListPredictionResultsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (PredictionResult element : aMLClient.listPredictionResults(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listPredictionResultsPagedCallable
public final UnaryCallable<ListPredictionResultsRequest,AMLClient.ListPredictionResultsPagedResponse> listPredictionResultsPagedCallable()List PredictionResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListPredictionResultsRequest request = ListPredictionResultsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<PredictionResult> future = aMLClient.listPredictionResultsPagedCallable().futureCall(request); // Do something. for (PredictionResult element : future.get().iterateAll()) { // doThingsWith(element); } } -
listPredictionResultsCallable
public final UnaryCallable<ListPredictionResultsRequest,ListPredictionResultsResponse> listPredictionResultsCallable()List PredictionResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListPredictionResultsRequest request = ListPredictionResultsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListPredictionResultsResponse response = aMLClient.listPredictionResultsCallable().call(request); for (PredictionResult element : response.getPredictionResultsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getPredictionResult
Gets a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { PredictionResultName name = PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]"); PredictionResult response = aMLClient.getPredictionResult(name); }- Parameters:
name- Required. The resource name of the PredictionResult- Throws:
ApiException- if the remote call fails
-
getPredictionResult
Gets a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString(); PredictionResult response = aMLClient.getPredictionResult(name); }- Parameters:
name- Required. The resource name of the PredictionResult- Throws:
ApiException- if the remote call fails
-
getPredictionResult
Gets a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetPredictionResultRequest request = GetPredictionResultRequest.newBuilder() .setName( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .build(); PredictionResult response = aMLClient.getPredictionResult(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getPredictionResultCallable
public final UnaryCallable<GetPredictionResultRequest,PredictionResult> getPredictionResultCallable()Gets a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetPredictionResultRequest request = GetPredictionResultRequest.newBuilder() .setName( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .build(); ApiFuture<PredictionResult> future = aMLClient.getPredictionResultCallable().futureCall(request); // Do something. PredictionResult response = future.get(); } -
createPredictionResultAsync
public final OperationFuture<PredictionResult,OperationMetadata> createPredictionResultAsync(InstanceName parent, PredictionResult predictionResult, String predictionResultId) Create a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); PredictionResult predictionResult = PredictionResult.newBuilder().build(); String predictionResultId = "predictionResultId62892999"; PredictionResult response = aMLClient.createPredictionResultAsync(parent, predictionResult, predictionResultId).get(); }- Parameters:
parent- Required. The parent of the PredictionResult is the Instance.predictionResult- Required. The PredictionResult that will be created.predictionResultId- Required. The resource id of the PredictionResult- Throws:
ApiException- if the remote call fails
-
createPredictionResultAsync
public final OperationFuture<PredictionResult,OperationMetadata> createPredictionResultAsync(String parent, PredictionResult predictionResult, String predictionResultId) Create a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); PredictionResult predictionResult = PredictionResult.newBuilder().build(); String predictionResultId = "predictionResultId62892999"; PredictionResult response = aMLClient.createPredictionResultAsync(parent, predictionResult, predictionResultId).get(); }- Parameters:
parent- Required. The parent of the PredictionResult is the Instance.predictionResult- Required. The PredictionResult that will be created.predictionResultId- Required. The resource id of the PredictionResult- Throws:
ApiException- if the remote call fails
-
createPredictionResultAsync
public final OperationFuture<PredictionResult,OperationMetadata> createPredictionResultAsync(CreatePredictionResultRequest request) Create a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreatePredictionResultRequest request = CreatePredictionResultRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPredictionResultId("predictionResultId62892999") .setPredictionResult(PredictionResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); PredictionResult response = aMLClient.createPredictionResultAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createPredictionResultOperationCallable
public final OperationCallable<CreatePredictionResultRequest,PredictionResult, createPredictionResultOperationCallable()OperationMetadata> Create a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreatePredictionResultRequest request = CreatePredictionResultRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPredictionResultId("predictionResultId62892999") .setPredictionResult(PredictionResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<PredictionResult, OperationMetadata> future = aMLClient.createPredictionResultOperationCallable().futureCall(request); // Do something. PredictionResult response = future.get(); } -
createPredictionResultCallable
public final UnaryCallable<CreatePredictionResultRequest,Operation> createPredictionResultCallable()Create a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreatePredictionResultRequest request = CreatePredictionResultRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPredictionResultId("predictionResultId62892999") .setPredictionResult(PredictionResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.createPredictionResultCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updatePredictionResultAsync
public final OperationFuture<PredictionResult,OperationMetadata> updatePredictionResultAsync(PredictionResult predictionResult, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { PredictionResult predictionResult = PredictionResult.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); PredictionResult response = aMLClient.updatePredictionResultAsync(predictionResult, updateMask).get(); }- Parameters:
predictionResult- Required. The new value of the PredictionResult fields that will be updated according to the update_mask.updateMask- Optional. Field mask is used to specify the fields to be overwritten in the PredictionResult resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updatePredictionResultAsync
public final OperationFuture<PredictionResult,OperationMetadata> updatePredictionResultAsync(UpdatePredictionResultRequest request) Updates the parameters of a single PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdatePredictionResultRequest request = UpdatePredictionResultRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setPredictionResult(PredictionResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); PredictionResult response = aMLClient.updatePredictionResultAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updatePredictionResultOperationCallable
public final OperationCallable<UpdatePredictionResultRequest,PredictionResult, updatePredictionResultOperationCallable()OperationMetadata> Updates the parameters of a single PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdatePredictionResultRequest request = UpdatePredictionResultRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setPredictionResult(PredictionResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<PredictionResult, OperationMetadata> future = aMLClient.updatePredictionResultOperationCallable().futureCall(request); // Do something. PredictionResult response = future.get(); } -
updatePredictionResultCallable
public final UnaryCallable<UpdatePredictionResultRequest,Operation> updatePredictionResultCallable()Updates the parameters of a single PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdatePredictionResultRequest request = UpdatePredictionResultRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setPredictionResult(PredictionResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.updatePredictionResultCallable().futureCall(request); // Do something. Operation response = future.get(); } -
exportPredictionResultMetadataAsync
public final OperationFuture<ExportPredictionResultMetadataResponse,OperationMetadata> exportPredictionResultMetadataAsync(PredictionResultName predictionResult, BigQueryDestination structuredMetadataDestination) Export governance information for a PredictionResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { PredictionResultName predictionResult = PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]"); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportPredictionResultMetadataResponse response = aMLClient .exportPredictionResultMetadataAsync(predictionResult, structuredMetadataDestination) .get(); }- Parameters:
predictionResult- Required. The resource name of the PredictionResult.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportPredictionResultMetadataAsync
public final OperationFuture<ExportPredictionResultMetadataResponse,OperationMetadata> exportPredictionResultMetadataAsync(String predictionResult, BigQueryDestination structuredMetadataDestination) Export governance information for a PredictionResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { String predictionResult = PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString(); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportPredictionResultMetadataResponse response = aMLClient .exportPredictionResultMetadataAsync(predictionResult, structuredMetadataDestination) .get(); }- Parameters:
predictionResult- Required. The resource name of the PredictionResult.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportPredictionResultMetadataAsync
public final OperationFuture<ExportPredictionResultMetadataResponse,OperationMetadata> exportPredictionResultMetadataAsync(ExportPredictionResultMetadataRequest request) Export governance information for a PredictionResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportPredictionResultMetadataRequest request = ExportPredictionResultMetadataRequest.newBuilder() .setPredictionResult( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ExportPredictionResultMetadataResponse response = aMLClient.exportPredictionResultMetadataAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
exportPredictionResultMetadataOperationCallable
public final OperationCallable<ExportPredictionResultMetadataRequest,ExportPredictionResultMetadataResponse, exportPredictionResultMetadataOperationCallable()OperationMetadata> Export governance information for a PredictionResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportPredictionResultMetadataRequest request = ExportPredictionResultMetadataRequest.newBuilder() .setPredictionResult( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); OperationFuture<ExportPredictionResultMetadataResponse, OperationMetadata> future = aMLClient.exportPredictionResultMetadataOperationCallable().futureCall(request); // Do something. ExportPredictionResultMetadataResponse response = future.get(); } -
exportPredictionResultMetadataCallable
public final UnaryCallable<ExportPredictionResultMetadataRequest,Operation> exportPredictionResultMetadataCallable()Export governance information for a PredictionResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportPredictionResultMetadataRequest request = ExportPredictionResultMetadataRequest.newBuilder() .setPredictionResult( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ApiFuture<Operation> future = aMLClient.exportPredictionResultMetadataCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deletePredictionResultAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deletePredictionResultAsync(PredictionResultName name) Deletes a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { PredictionResultName name = PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]"); aMLClient.deletePredictionResultAsync(name).get(); }- Parameters:
name- Required. The resource name of the PredictionResult.- Throws:
ApiException- if the remote call fails
-
deletePredictionResultAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deletePredictionResultAsync(String name) Deletes a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString(); aMLClient.deletePredictionResultAsync(name).get(); }- Parameters:
name- Required. The resource name of the PredictionResult.- Throws:
ApiException- if the remote call fails
-
deletePredictionResultAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deletePredictionResultAsync(DeletePredictionResultRequest request) Deletes a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeletePredictionResultRequest request = DeletePredictionResultRequest.newBuilder() .setName( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .setRequestId("requestId693933066") .build(); aMLClient.deletePredictionResultAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deletePredictionResultOperationCallable
public final OperationCallable<DeletePredictionResultRequest,com.google.protobuf.Empty, deletePredictionResultOperationCallable()OperationMetadata> Deletes a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeletePredictionResultRequest request = DeletePredictionResultRequest.newBuilder() .setName( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .setRequestId("requestId693933066") .build(); OperationFuture<Empty, OperationMetadata> future = aMLClient.deletePredictionResultOperationCallable().futureCall(request); // Do something. future.get(); } -
deletePredictionResultCallable
public final UnaryCallable<DeletePredictionResultRequest,Operation> deletePredictionResultCallable()Deletes a PredictionResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeletePredictionResultRequest request = DeletePredictionResultRequest.newBuilder() .setName( PredictionResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[PREDICTION_RESULT]") .toString()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.deletePredictionResultCallable().futureCall(request); // Do something. future.get(); } -
listBacktestResults
List BacktestResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); for (BacktestResult element : aMLClient.listBacktestResults(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the BacktestResult is the Instance.- Throws:
ApiException- if the remote call fails
-
listBacktestResults
List BacktestResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); for (BacktestResult element : aMLClient.listBacktestResults(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent of the BacktestResult is the Instance.- Throws:
ApiException- if the remote call fails
-
listBacktestResults
public final AMLClient.ListBacktestResultsPagedResponse listBacktestResults(ListBacktestResultsRequest request) List BacktestResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListBacktestResultsRequest request = ListBacktestResultsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (BacktestResult element : aMLClient.listBacktestResults(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listBacktestResultsPagedCallable
public final UnaryCallable<ListBacktestResultsRequest,AMLClient.ListBacktestResultsPagedResponse> listBacktestResultsPagedCallable()List BacktestResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListBacktestResultsRequest request = ListBacktestResultsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<BacktestResult> future = aMLClient.listBacktestResultsPagedCallable().futureCall(request); // Do something. for (BacktestResult element : future.get().iterateAll()) { // doThingsWith(element); } } -
listBacktestResultsCallable
public final UnaryCallable<ListBacktestResultsRequest,ListBacktestResultsResponse> listBacktestResultsCallable()List BacktestResults.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListBacktestResultsRequest request = ListBacktestResultsRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListBacktestResultsResponse response = aMLClient.listBacktestResultsCallable().call(request); for (BacktestResult element : response.getBacktestResultsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getBacktestResult
Gets a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { BacktestResultName name = BacktestResultName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]"); BacktestResult response = aMLClient.getBacktestResult(name); }- Parameters:
name- Required. The resource name of the BacktestResult- Throws:
ApiException- if the remote call fails
-
getBacktestResult
Gets a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = BacktestResultName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString(); BacktestResult response = aMLClient.getBacktestResult(name); }- Parameters:
name- Required. The resource name of the BacktestResult- Throws:
ApiException- if the remote call fails
-
getBacktestResult
Gets a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetBacktestResultRequest request = GetBacktestResultRequest.newBuilder() .setName( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .build(); BacktestResult response = aMLClient.getBacktestResult(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getBacktestResultCallable
Gets a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetBacktestResultRequest request = GetBacktestResultRequest.newBuilder() .setName( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .build(); ApiFuture<BacktestResult> future = aMLClient.getBacktestResultCallable().futureCall(request); // Do something. BacktestResult response = future.get(); } -
createBacktestResultAsync
public final OperationFuture<BacktestResult,OperationMetadata> createBacktestResultAsync(InstanceName parent, BacktestResult backtestResult, String backtestResultId) Create a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); BacktestResult backtestResult = BacktestResult.newBuilder().build(); String backtestResultId = "backtestResultId-2045569231"; BacktestResult response = aMLClient.createBacktestResultAsync(parent, backtestResult, backtestResultId).get(); }- Parameters:
parent- Required. The parent of the BacktestResult is the Instance.backtestResult- Required. The BacktestResult that will be created.backtestResultId- Required. The resource id of the BacktestResult- Throws:
ApiException- if the remote call fails
-
createBacktestResultAsync
public final OperationFuture<BacktestResult,OperationMetadata> createBacktestResultAsync(String parent, BacktestResult backtestResult, String backtestResultId) Create a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); BacktestResult backtestResult = BacktestResult.newBuilder().build(); String backtestResultId = "backtestResultId-2045569231"; BacktestResult response = aMLClient.createBacktestResultAsync(parent, backtestResult, backtestResultId).get(); }- Parameters:
parent- Required. The parent of the BacktestResult is the Instance.backtestResult- Required. The BacktestResult that will be created.backtestResultId- Required. The resource id of the BacktestResult- Throws:
ApiException- if the remote call fails
-
createBacktestResultAsync
public final OperationFuture<BacktestResult,OperationMetadata> createBacktestResultAsync(CreateBacktestResultRequest request) Create a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateBacktestResultRequest request = CreateBacktestResultRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setBacktestResultId("backtestResultId-2045569231") .setBacktestResult(BacktestResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); BacktestResult response = aMLClient.createBacktestResultAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createBacktestResultOperationCallable
public final OperationCallable<CreateBacktestResultRequest,BacktestResult, createBacktestResultOperationCallable()OperationMetadata> Create a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateBacktestResultRequest request = CreateBacktestResultRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setBacktestResultId("backtestResultId-2045569231") .setBacktestResult(BacktestResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<BacktestResult, OperationMetadata> future = aMLClient.createBacktestResultOperationCallable().futureCall(request); // Do something. BacktestResult response = future.get(); } -
createBacktestResultCallable
Create a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { CreateBacktestResultRequest request = CreateBacktestResultRequest.newBuilder() .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) .setBacktestResultId("backtestResultId-2045569231") .setBacktestResult(BacktestResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.createBacktestResultCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateBacktestResultAsync
public final OperationFuture<BacktestResult,OperationMetadata> updateBacktestResultAsync(BacktestResult backtestResult, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { BacktestResult backtestResult = BacktestResult.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); BacktestResult response = aMLClient.updateBacktestResultAsync(backtestResult, updateMask).get(); }- Parameters:
backtestResult- Required. The new value of the BacktestResult fields that will be updated according to the update_mask.updateMask- Optional. Field mask is used to specify the fields to be overwritten in the BacktestResult resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.- Throws:
ApiException- if the remote call fails
-
updateBacktestResultAsync
public final OperationFuture<BacktestResult,OperationMetadata> updateBacktestResultAsync(UpdateBacktestResultRequest request) Updates the parameters of a single BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateBacktestResultRequest request = UpdateBacktestResultRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setBacktestResult(BacktestResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); BacktestResult response = aMLClient.updateBacktestResultAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateBacktestResultOperationCallable
public final OperationCallable<UpdateBacktestResultRequest,BacktestResult, updateBacktestResultOperationCallable()OperationMetadata> Updates the parameters of a single BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateBacktestResultRequest request = UpdateBacktestResultRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setBacktestResult(BacktestResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<BacktestResult, OperationMetadata> future = aMLClient.updateBacktestResultOperationCallable().futureCall(request); // Do something. BacktestResult response = future.get(); } -
updateBacktestResultCallable
Updates the parameters of a single BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { UpdateBacktestResultRequest request = UpdateBacktestResultRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setBacktestResult(BacktestResult.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.updateBacktestResultCallable().futureCall(request); // Do something. Operation response = future.get(); } -
exportBacktestResultMetadataAsync
public final OperationFuture<ExportBacktestResultMetadataResponse,OperationMetadata> exportBacktestResultMetadataAsync(BacktestResultName backtestResult, BigQueryDestination structuredMetadataDestination) Export governance information for a BacktestResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { BacktestResultName backtestResult = BacktestResultName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]"); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportBacktestResultMetadataResponse response = aMLClient .exportBacktestResultMetadataAsync(backtestResult, structuredMetadataDestination) .get(); }- Parameters:
backtestResult- Required. The resource name of the BacktestResult.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportBacktestResultMetadataAsync
public final OperationFuture<ExportBacktestResultMetadataResponse,OperationMetadata> exportBacktestResultMetadataAsync(String backtestResult, BigQueryDestination structuredMetadataDestination) Export governance information for a BacktestResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { String backtestResult = BacktestResultName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString(); BigQueryDestination structuredMetadataDestination = BigQueryDestination.newBuilder().build(); ExportBacktestResultMetadataResponse response = aMLClient .exportBacktestResultMetadataAsync(backtestResult, structuredMetadataDestination) .get(); }- Parameters:
backtestResult- Required. The resource name of the BacktestResult.structuredMetadataDestination- Required. BigQuery output where the metadata will be written.- Throws:
ApiException- if the remote call fails
-
exportBacktestResultMetadataAsync
public final OperationFuture<ExportBacktestResultMetadataResponse,OperationMetadata> exportBacktestResultMetadataAsync(ExportBacktestResultMetadataRequest request) Export governance information for a BacktestResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportBacktestResultMetadataRequest request = ExportBacktestResultMetadataRequest.newBuilder() .setBacktestResult( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ExportBacktestResultMetadataResponse response = aMLClient.exportBacktestResultMetadataAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
exportBacktestResultMetadataOperationCallable
public final OperationCallable<ExportBacktestResultMetadataRequest,ExportBacktestResultMetadataResponse, exportBacktestResultMetadataOperationCallable()OperationMetadata> Export governance information for a BacktestResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportBacktestResultMetadataRequest request = ExportBacktestResultMetadataRequest.newBuilder() .setBacktestResult( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); OperationFuture<ExportBacktestResultMetadataResponse, OperationMetadata> future = aMLClient.exportBacktestResultMetadataOperationCallable().futureCall(request); // Do something. ExportBacktestResultMetadataResponse response = future.get(); } -
exportBacktestResultMetadataCallable
public final UnaryCallable<ExportBacktestResultMetadataRequest,Operation> exportBacktestResultMetadataCallable()Export governance information for a BacktestResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results).Sample 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 (AMLClient aMLClient = AMLClient.create()) { ExportBacktestResultMetadataRequest request = ExportBacktestResultMetadataRequest.newBuilder() .setBacktestResult( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .setStructuredMetadataDestination(BigQueryDestination.newBuilder().build()) .build(); ApiFuture<Operation> future = aMLClient.exportBacktestResultMetadataCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteBacktestResultAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteBacktestResultAsync(BacktestResultName name) Deletes a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { BacktestResultName name = BacktestResultName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]"); aMLClient.deleteBacktestResultAsync(name).get(); }- Parameters:
name- Required. The resource name of the BacktestResult.- Throws:
ApiException- if the remote call fails
-
deleteBacktestResultAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteBacktestResultAsync(String name) Deletes a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { String name = BacktestResultName.of("[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString(); aMLClient.deleteBacktestResultAsync(name).get(); }- Parameters:
name- Required. The resource name of the BacktestResult.- Throws:
ApiException- if the remote call fails
-
deleteBacktestResultAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteBacktestResultAsync(DeleteBacktestResultRequest request) Deletes a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteBacktestResultRequest request = DeleteBacktestResultRequest.newBuilder() .setName( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .setRequestId("requestId693933066") .build(); aMLClient.deleteBacktestResultAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteBacktestResultOperationCallable
public final OperationCallable<DeleteBacktestResultRequest,com.google.protobuf.Empty, deleteBacktestResultOperationCallable()OperationMetadata> Deletes a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteBacktestResultRequest request = DeleteBacktestResultRequest.newBuilder() .setName( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .setRequestId("requestId693933066") .build(); OperationFuture<Empty, OperationMetadata> future = aMLClient.deleteBacktestResultOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteBacktestResultCallable
Deletes a BacktestResult.Sample 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 (AMLClient aMLClient = AMLClient.create()) { DeleteBacktestResultRequest request = DeleteBacktestResultRequest.newBuilder() .setName( BacktestResultName.of( "[PROJECT_NUM]", "[LOCATION]", "[INSTANCE]", "[BACKTEST_RESULT]") .toString()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = aMLClient.deleteBacktestResultCallable().futureCall(request); // Do something. future.get(); } -
listLocations
Lists information about the supported locations for this service.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (Location element : aMLClient.listLocations(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listLocationsPagedCallable
public final UnaryCallable<ListLocationsRequest,AMLClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<Location> future = aMLClient.listLocationsPagedCallable().futureCall(request); // Do something. for (Location element : future.get().iterateAll()) { // doThingsWith(element); } } -
listLocationsCallable
Lists information about the supported locations for this service.Sample 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 (AMLClient aMLClient = AMLClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListLocationsResponse response = aMLClient.listLocationsCallable().call(request); for (Location element : response.getLocationsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getLocation
Gets information about a location.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); Location response = aMLClient.getLocation(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getLocationCallable
Gets information about a location.Sample 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 (AMLClient aMLClient = AMLClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); ApiFuture<Location> future = aMLClient.getLocationCallable().futureCall(request); // Do something. Location response = future.get(); } -
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-