* `display_name` * `description` * `labels` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -575,6 +574,15 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request) * *
{@code * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) { + * ListDatasetsRequest request = + * ListDatasetsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setReadMask(FieldMask.newBuilder().build()) + * .setOrderBy("orderBy-1207110587") + * .build(); * while (true) { * ListDatasetsResponse response = datasetServiceClient.listDatasetsCallable().call(request); * for (Dataset element : response.getResponsesList()) { @@ -1089,6 +1097,15 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque * ** * @param name Required. The name of the AnnotationSpec resource. Format: - *{@code * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) { + * ListDataItemsRequest request = + * ListDataItemsRequest.newBuilder() + * .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setReadMask(FieldMask.newBuilder().build()) + * .setOrderBy("orderBy-1207110587") + * .build(); * while (true) { * ListDataItemsResponse response = datasetServiceClient.listDataItemsCallable().call(request); * for (DataItem element : response.getResponsesList()) { @@ -1123,7 +1140,7 @@ public final UnaryCallable* * @param name Required. The name of the AnnotationSpec resource. Format: - *listData * } `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { @@ -1150,7 +1167,7 @@ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) { * }
`projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
+ * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AnnotationSpec getAnnotationSpec(String name) {
@@ -1226,7 +1243,7 @@ public final UnaryCallable `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
+ * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) {
@@ -1254,7 +1271,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) {
* }
*
* @param parent Required. The resource name of the DataItem to list Annotations from. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
+ * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListAnnotationsPagedResponse listAnnotations(String parent) {
@@ -1333,6 +1350,16 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
*
* 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:
@@ -470,6 +470,14 @@ public final ListCustomJobsPagedResponse listCustomJobs(ListCustomJobsRequest re
*
* `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) {
@@ -872,7 +880,7 @@ public final DataLabelingJob getDataLabelingJob(DataLabelingJobName name) {
* } `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final DataLabelingJob getDataLabelingJob(String name) {
@@ -1054,6 +1062,15 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
*
* `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelDataLabelingJob(DataLabelingJobName name) {
@@ -1246,7 +1263,7 @@ public final void cancelDataLabelingJob(DataLabelingJobName name) {
* }
*
* @param name Required. The name of the DataLabelingJob. Format:
- * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+ * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelDataLabelingJob(String name) {
@@ -1432,7 +1449,7 @@ public final HyperparameterTuningJob createHyperparameterTuningJob(
* }
*
* @param name Required. The name of the HyperparameterTuningJob resource. Format:
- * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
+ * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final HyperparameterTuningJob getHyperparameterTuningJob(
@@ -1460,7 +1477,7 @@ public final HyperparameterTuningJob getHyperparameterTuningJob(
* }
*
* @param name Required. The name of the HyperparameterTuningJob resource. Format:
- * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
+ * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final HyperparameterTuningJob getHyperparameterTuningJob(String name) {
@@ -1649,6 +1666,14 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
*
* `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
+ * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
+ * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
+ * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name) {
@@ -1870,7 +1895,7 @@ public final void cancelHyperparameterTuningJob(HyperparameterTuningJobName name
* }
*
* @param name Required. The name of the HyperparameterTuningJob to cancel. Format:
- * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
+ * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelHyperparameterTuningJob(String name) {
@@ -2083,7 +2108,7 @@ public final BatchPredictionJob createBatchPredictionJob(
* }
*
* @param name Required. The name of the BatchPredictionJob resource. Format:
- * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
+ * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName name) {
@@ -2109,7 +2134,7 @@ public final BatchPredictionJob getBatchPredictionJob(BatchPredictionJobName nam
* }
*
* @param name Required. The name of the BatchPredictionJob resource. Format:
- * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
+ * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final BatchPredictionJob getBatchPredictionJob(String name) {
@@ -2292,6 +2317,14 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
*
* `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
+ * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
+ * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
+ * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelBatchPredictionJob(BatchPredictionJobName name) {
@@ -2502,7 +2535,7 @@ public final void cancelBatchPredictionJob(BatchPredictionJobName name) {
* }
*
* @param name Required. The name of the BatchPredictionJob to cancel. Format:
- * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
+ * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelBatchPredictionJob(String name) {
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java
index 279a21ffb..d06a6f630 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java
index 2fe2ed227..d2985d171 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: A service that migrates resources from automl.googleapis.com,
- * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
*
* 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:
@@ -172,7 +172,7 @@ public final OperationsClient getOperationsClient() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
- * ml.googleapis.com that can be migrated to AI Platform's given location.
+ * ml.googleapis.com that can be migrated to Vertex AI's given location.
*
* Sample code:
*
@@ -187,7 +187,7 @@ public final OperationsClient getOperationsClient() {
* }
*
* @param parent Required. The location that the migratable resources should be searched from.
- * It's the AI Platform location that the resources can be migrated to, not the resources'
+ * It's the Vertex AI location that the resources can be migrated to, not the resources'
* original location. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -203,7 +203,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
- * ml.googleapis.com that can be migrated to AI Platform's given location.
+ * ml.googleapis.com that can be migrated to Vertex AI's given location.
*
* Sample code:
*
@@ -218,7 +218,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
* }
*
* @param parent Required. The location that the migratable resources should be searched from.
- * It's the AI Platform location that the resources can be migrated to, not the resources'
+ * It's the Vertex AI location that the resources can be migrated to, not the resources'
* original location. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -231,7 +231,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(St
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
- * ml.googleapis.com that can be migrated to AI Platform's given location.
+ * ml.googleapis.com that can be migrated to Vertex AI's given location.
*
* Sample code:
*
@@ -262,7 +262,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
- * ml.googleapis.com that can be migrated to AI Platform's given location.
+ * ml.googleapis.com that can be migrated to Vertex AI's given location.
*
* Sample code:
*
@@ -293,12 +293,19 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
- * ml.googleapis.com that can be migrated to AI Platform's given location.
+ * ml.googleapis.com that can be migrated to Vertex AI's given location.
*
* Sample code:
*
* Sample code:
*
@@ -358,7 +365,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
- * datalabeling.googleapis.com to AI Platform (Unified).
+ * datalabeling.googleapis.com to Vertex AI.
*
* Sample code:
*
@@ -393,7 +400,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
- * datalabeling.googleapis.com to AI Platform (Unified).
+ * datalabeling.googleapis.com to Vertex AI.
*
* Sample code:
*
@@ -421,7 +428,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
- * datalabeling.googleapis.com to AI Platform (Unified).
+ * datalabeling.googleapis.com to Vertex AI.
*
* Sample code:
*
@@ -451,7 +458,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
- * datalabeling.googleapis.com to AI Platform (Unified).
+ * datalabeling.googleapis.com to Vertex AI.
*
* Sample code:
*
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java
index db19d116a..681ee3f81 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java
index 9fb1ca376..677ad942b 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * Service Description: A service for managing AI Platform's machine learning Models.
+ * Service Description: A service for managing Vertex AI's machine learning Models.
*
* 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:
@@ -165,7 +165,7 @@ public final OperationsClient getOperationsClient() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Uploads a Model artifact into AI Platform.
+ * Uploads a Model artifact into Vertex AI.
*
* Sample code:
*
@@ -194,7 +194,7 @@ public final OperationFuture Sample code:
*
@@ -220,7 +220,7 @@ public final OperationFuture Sample code:
*
@@ -245,7 +245,7 @@ public final OperationFuture Sample code:
*
@@ -271,7 +271,7 @@ public final OperationFuture Sample code:
*
@@ -498,6 +498,15 @@ public final UnaryCallable `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
+ * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) {
@@ -891,7 +900,7 @@ public final ModelEvaluation getModelEvaluation(ModelEvaluationName name) {
* } `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
+ * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ModelEvaluation getModelEvaluation(String name) {
@@ -1072,6 +1081,14 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
*
* `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`
+ * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceName name) {
@@ -1137,7 +1154,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice(ModelEvaluationSliceNa
* }
*
* @param name Required. The name of the ModelEvaluationSlice resource. Format:
- * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`
+ * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ModelEvaluationSlice getModelEvaluationSlice(String name) {
@@ -1219,7 +1236,7 @@ public final ModelEvaluationSlice getModelEvaluationSlice(
*
* @param parent Required. The resource name of the ModelEvaluation to list the
* ModelEvaluationSlices from. Format:
- * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
+ * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
@@ -1250,7 +1267,7 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
*
* @param parent Required. The resource name of the ModelEvaluation to list the
* ModelEvaluationSlices from. Format:
- * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
+ * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(String parent) {
@@ -1333,6 +1350,16 @@ public final ListModelEvaluationSlicesPagedResponse listModelEvaluationSlices(
*
* 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:
@@ -292,7 +294,7 @@ public final TrainingPipeline createTrainingPipeline(CreateTrainingPipelineReque
* } `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
+ * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) {
@@ -318,7 +320,7 @@ public final TrainingPipeline getTrainingPipeline(TrainingPipelineName name) {
* }
*
* @param name Required. The name of the TrainingPipeline resource. Format:
- * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
+ * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final TrainingPipeline getTrainingPipeline(String name) {
@@ -501,6 +503,14 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
*
* `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
+ * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
+ * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
+ * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelTrainingPipeline(TrainingPipelineName name) {
@@ -713,7 +723,7 @@ public final void cancelTrainingPipeline(TrainingPipelineName name) {
* }
*
* @param name Required. The name of the TrainingPipeline to cancel. Format:
- * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
+ * `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void cancelTrainingPipeline(String name) {
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java
index 5b30d3709..362490ee6 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java
index 75fd35e55..72af930d0 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java
index c2947a287..912152a44 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java
index 3e340b129..52400fdf2 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -331,7 +331,7 @@ public final OperationsClient getOperationsClient() {
* }
*
* @param name Required. The name of the SpecialistPool resource. The form is
- * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`.
+ * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SpecialistPool getSpecialistPool(SpecialistPoolName name) {
@@ -358,7 +358,7 @@ public final SpecialistPool getSpecialistPool(SpecialistPoolName name) {
* }
*
* @param name Required. The name of the SpecialistPool resource. The form is
- * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`.
+ * `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final SpecialistPool getSpecialistPool(String name) {
@@ -542,6 +542,13 @@ public final ListSpecialistPoolsPagedResponse listSpecialistPools(
* ======================= JobServiceClient =======================
*
- * Service Description: A service for creating and managing AI Platform's jobs.
+ * Service Description: A service for creating and managing Vertex AI's jobs.
*
* Sample for JobServiceClient:
*
@@ -56,7 +56,7 @@
* ======================= MigrationServiceClient =======================
*
* Service Description: A service that migrates resources from automl.googleapis.com,
- * datalabeling.googleapis.com and ml.googleapis.com to AI Platform.
+ * datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.
*
* Sample for MigrationServiceClient:
*
@@ -72,7 +72,7 @@
*
* ======================= ModelServiceClient =======================
*
- * Service Description: A service for managing AI Platform's machine learning Models.
+ * Service Description: A service for managing Vertex AI's machine learning Models.
*
* Sample for ModelServiceClient:
*
@@ -85,7 +85,9 @@
*
* ======================= PipelineServiceClient =======================
*
- * Service Description: A service for creating and managing AI Platform's pipelines.
+ * Service Description: A service for creating and managing Vertex AI's pipelines. This includes
+ * both `TrainingPipeline` resources (used for AutoML and custom training) and `PipelineJob`
+ * resources (used for Vertex Pipelines).
*
* Sample for PipelineServiceClient:
*
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java
index bc5ff2d39..2e8bb32ce 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
index 5faa30878..b2b3eb16f 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -509,7 +509,8 @@ public static class Builder extends StubSettings.Builder * `display_name` * `description` * `labels`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -576,6 +575,15 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
*
* `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
+ * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) {
@@ -1151,7 +1168,7 @@ public final AnnotationSpec getAnnotationSpec(AnnotationSpecName name) {
* } `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
+ * `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AnnotationSpec getAnnotationSpec(String name) {
@@ -1227,7 +1244,7 @@ public final UnaryCallable `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
+ * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) {
@@ -1255,7 +1272,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) {
* }
*
* @param parent Required. The resource name of the DataItem to list Annotations from. Format:
- * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
+ * `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListAnnotationsPagedResponse listAnnotations(String parent) {
@@ -1334,6 +1351,16 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest
*
* 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:
+ *
+ * Note: close() needs to be called on the FeaturestoreOnlineServingServiceClient object to clean
+ * up resources such as threads. In the example above, try-with-resources is used, which
+ * automatically calls close().
+ *
+ * The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ * 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
+ * FeaturestoreOnlineServingServiceSettings to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class FeaturestoreOnlineServingServiceClient implements BackgroundResource {
+ private final FeaturestoreOnlineServingServiceSettings settings;
+ private final FeaturestoreOnlineServingServiceStub stub;
+
+ /** Constructs an instance of FeaturestoreOnlineServingServiceClient with default settings. */
+ public static final FeaturestoreOnlineServingServiceClient create() throws IOException {
+ return create(FeaturestoreOnlineServingServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of FeaturestoreOnlineServingServiceClient, using the given settings. The
+ * channels are created based on the settings passed in, or defaults for any settings that are not
+ * set.
+ */
+ public static final FeaturestoreOnlineServingServiceClient create(
+ FeaturestoreOnlineServingServiceSettings settings) throws IOException {
+ return new FeaturestoreOnlineServingServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of FeaturestoreOnlineServingServiceClient, using the given stub for
+ * making calls. This is for advanced usage - prefer using
+ * create(FeaturestoreOnlineServingServiceSettings).
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final FeaturestoreOnlineServingServiceClient create(
+ FeaturestoreOnlineServingServiceStub stub) {
+ return new FeaturestoreOnlineServingServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of FeaturestoreOnlineServingServiceClient, 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.
+ */
+ protected FeaturestoreOnlineServingServiceClient(
+ FeaturestoreOnlineServingServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub =
+ ((FeaturestoreOnlineServingServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected FeaturestoreOnlineServingServiceClient(FeaturestoreOnlineServingServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final FeaturestoreOnlineServingServiceSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public FeaturestoreOnlineServingServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads Feature values of a specific entity of an EntityType. For reading feature values of
+ * multiple entities of an EntityType, please use StreamingReadFeatureValues.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of readFeatureValues to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction 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:
+ *
+ * Note: close() needs to be called on the FeaturestoreServiceClient object to clean up resources
+ * such as threads. In the example above, try-with-resources is used, which automatically calls
+ * close().
+ *
+ * The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ * 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 FeaturestoreServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class FeaturestoreServiceClient implements BackgroundResource {
+ private final FeaturestoreServiceSettings settings;
+ private final FeaturestoreServiceStub stub;
+ private final OperationsClient operationsClient;
+
+ /** Constructs an instance of FeaturestoreServiceClient with default settings. */
+ public static final FeaturestoreServiceClient create() throws IOException {
+ return create(FeaturestoreServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of FeaturestoreServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final FeaturestoreServiceClient create(FeaturestoreServiceSettings settings)
+ throws IOException {
+ return new FeaturestoreServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of FeaturestoreServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(FeaturestoreServiceSettings).
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final FeaturestoreServiceClient create(FeaturestoreServiceStub stub) {
+ return new FeaturestoreServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of FeaturestoreServiceClient, 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.
+ */
+ protected FeaturestoreServiceClient(FeaturestoreServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((FeaturestoreServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected FeaturestoreServiceClient(FeaturestoreServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ public final FeaturestoreServiceSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public FeaturestoreServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Featurestore in a given project and location.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Updatable fields:
+ * * `labels` * `online_serving_config.fixed_node_count`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Updatable fields:
+ * * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled`
+ * * `monitoring_config.snapshot_analysis.monitoring_interval`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final EntityType updateEntityType(EntityType entityType, FieldMask updateMask) {
+ UpdateEntityTypeRequest request =
+ UpdateEntityTypeRequest.newBuilder()
+ .setEntityType(entityType)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateEntityType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single EntityType.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Updatable fields:
+ * * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled`
+ * * `monitoring_config.snapshot_analysis.monitoring_interval`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature updateFeature(Feature feature, FieldMask updateMask) {
+ UpdateFeatureRequest request =
+ UpdateFeatureRequest.newBuilder().setFeature(feature).setUpdateMask(updateMask).build();
+ return updateFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Feature.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The progress of the import is tracked by the returned operation. The imported features are
+ * guaranteed to be visible to subsequent read operations after the operation is marked as
+ * successfully done.
+ *
+ * If an import operation fails, the Feature values returned from reads and exports may be
+ * inconsistent. If consistency is required, the caller must retry the same import request again
+ * and wait till the new operation returned is marked as successfully done.
+ *
+ * There are also scenarios where the caller can cause inconsistency.
+ *
+ * - Source data for import contains multiple distinct Feature values for the same entity ID
+ * and timestamp. - Source is modified during an import. This includes adding, updating, or
+ * removing source data and/or metadata. Examples of updating metadata include but are not limited
+ * to changing storage location, storage class, or retention policy. - Online serving cluster is
+ * under-provisioned.
+ *
+ * Sample code:
+ *
+ * The progress of the import is tracked by the returned operation. The imported features are
+ * guaranteed to be visible to subsequent read operations after the operation is marked as
+ * successfully done.
+ *
+ * If an import operation fails, the Feature values returned from reads and exports may be
+ * inconsistent. If consistency is required, the caller must retry the same import request again
+ * and wait till the new operation returned is marked as successfully done.
+ *
+ * There are also scenarios where the caller can cause inconsistency.
+ *
+ * - Source data for import contains multiple distinct Feature values for the same entity ID
+ * and timestamp. - Source is modified during an import. This includes adding, updating, or
+ * removing source data and/or metadata. Examples of updating metadata include but are not limited
+ * to changing storage location, storage class, or retention policy. - Online serving cluster is
+ * under-provisioned.
+ *
+ * Sample code:
+ *
+ * The progress of the import is tracked by the returned operation. The imported features are
+ * guaranteed to be visible to subsequent read operations after the operation is marked as
+ * successfully done.
+ *
+ * If an import operation fails, the Feature values returned from reads and exports may be
+ * inconsistent. If consistency is required, the caller must retry the same import request again
+ * and wait till the new operation returned is marked as successfully done.
+ *
+ * There are also scenarios where the caller can cause inconsistency.
+ *
+ * - Source data for import contains multiple distinct Feature values for the same entity ID
+ * and timestamp. - Source is modified during an import. This includes adding, updating, or
+ * removing source data and/or metadata. Examples of updating metadata include but are not limited
+ * to changing storage location, storage class, or retention policy. - Online serving cluster is
+ * under-provisioned.
+ *
+ * Sample code:
+ *
+ * The progress of the import is tracked by the returned operation. The imported features are
+ * guaranteed to be visible to subsequent read operations after the operation is marked as
+ * successfully done.
+ *
+ * If an import operation fails, the Feature values returned from reads and exports may be
+ * inconsistent. If consistency is required, the caller must retry the same import request again
+ * and wait till the new operation returned is marked as successfully done.
+ *
+ * There are also scenarios where the caller can cause inconsistency.
+ *
+ * - Source data for import contains multiple distinct Feature values for the same entity ID
+ * and timestamp. - Source is modified during an import. This includes adding, updating, or
+ * removing source data and/or metadata. Examples of updating metadata include but are not limited
+ * to changing storage location, storage class, or retention policy. - Online serving cluster is
+ * under-provisioned.
+ *
+ * Sample code:
+ *
+ * The progress of the import is tracked by the returned operation. The imported features are
+ * guaranteed to be visible to subsequent read operations after the operation is marked as
+ * successfully done.
+ *
+ * If an import operation fails, the Feature values returned from reads and exports may be
+ * inconsistent. If consistency is required, the caller must retry the same import request again
+ * and wait till the new operation returned is marked as successfully done.
+ *
+ * There are also scenarios where the caller can cause inconsistency.
+ *
+ * - Source data for import contains multiple distinct Feature values for the same entity ID
+ * and timestamp. - Source is modified during an import. This includes adding, updating, or
+ * removing source data and/or metadata. Examples of updating metadata include but are not limited
+ * to changing storage location, storage class, or retention policy. - Online serving cluster is
+ * under-provisioned.
+ *
+ * Sample code:
+ *
+ * This API enables batch reading Feature values, where each read instance in the batch may
+ * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is
+ * guaranteed for Feature values of each read instance as of each instance's read timestamp.
+ *
+ * Sample code:
+ *
+ * This API enables batch reading Feature values, where each read instance in the batch may
+ * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is
+ * guaranteed for Feature values of each read instance as of each instance's read timestamp.
+ *
+ * Sample code:
+ *
+ * This API enables batch reading Feature values, where each read instance in the batch may
+ * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is
+ * guaranteed for Feature values of each read instance as of each instance's read timestamp.
+ *
+ * Sample code:
+ *
+ * This API enables batch reading Feature values, where each read instance in the batch may
+ * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is
+ * guaranteed for Feature values of each read instance as of each instance's read timestamp.
+ *
+ * Sample code:
+ *
+ * This API enables batch reading Feature values, where each read instance in the batch may
+ * read Feature values of entities from one or more EntityTypes. Point-in-time correctness is
+ * guaranteed for Feature values of each read instance as of each instance's read timestamp.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of getFeaturestore to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction 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:
+ *
+ * Note: close() needs to be called on the IndexEndpointServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ * 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 IndexEndpointServiceSettings
+ * to create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class IndexEndpointServiceClient implements BackgroundResource {
+ private final IndexEndpointServiceSettings settings;
+ private final IndexEndpointServiceStub stub;
+ private final OperationsClient operationsClient;
+
+ /** Constructs an instance of IndexEndpointServiceClient with default settings. */
+ public static final IndexEndpointServiceClient create() throws IOException {
+ return create(IndexEndpointServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of IndexEndpointServiceClient, using the given settings. The channels
+ * are created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final IndexEndpointServiceClient create(IndexEndpointServiceSettings settings)
+ throws IOException {
+ return new IndexEndpointServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of IndexEndpointServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(IndexEndpointServiceSettings).
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final IndexEndpointServiceClient create(IndexEndpointServiceStub stub) {
+ return new IndexEndpointServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of IndexEndpointServiceClient, 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.
+ */
+ protected IndexEndpointServiceClient(IndexEndpointServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((IndexEndpointServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected IndexEndpointServiceClient(IndexEndpointServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ public final IndexEndpointServiceSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public IndexEndpointServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an IndexEndpoint.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of getIndexEndpoint to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction 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:
+ *
+ * Note: close() needs to be called on the IndexServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ * 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 IndexServiceSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class IndexServiceClient implements BackgroundResource {
+ private final IndexServiceSettings settings;
+ private final IndexServiceStub stub;
+ private final OperationsClient operationsClient;
+
+ /** Constructs an instance of IndexServiceClient with default settings. */
+ public static final IndexServiceClient create() throws IOException {
+ return create(IndexServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of IndexServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final IndexServiceClient create(IndexServiceSettings settings) throws IOException {
+ return new IndexServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of IndexServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(IndexServiceSettings).
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final IndexServiceClient create(IndexServiceStub stub) {
+ return new IndexServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of IndexServiceClient, 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.
+ */
+ protected IndexServiceClient(IndexServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((IndexServiceStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected IndexServiceClient(IndexServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
+ }
+
+ public final IndexServiceSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public IndexServiceStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an Index.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * {@code
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+ * ListAnnotationsRequest request =
+ * ListAnnotationsRequest.newBuilder()
+ * .setParent(
+ * DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
* while (true) {
* ListAnnotationsResponse response =
* datasetServiceClient.listAnnotationsCallable().call(request);
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java
index 31e905828..56665ea03 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java
index b677f6e99..9cfa4a8c6 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -505,6 +505,15 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
*
*
*
* @param name Required. The name of the DataLabelingJob to be deleted. Format:
- * {@code
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * ListEndpointsRequest request =
+ * ListEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
* while (true) {
* ListEndpointsResponse response =
* endpointServiceClient.listEndpointsCallable().call(request);
@@ -541,7 +550,7 @@ public final UnaryCallable
*
* @param name Required. The name of the DataLabelingJob. Format:
- * {@code
* try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ * ListCustomJobsRequest request =
+ * ListCustomJobsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListCustomJobsResponse response = jobServiceClient.listCustomJobsCallable().call(request);
* for (CustomJob element : response.getResponsesList()) {
@@ -846,7 +854,7 @@ public final DataLabelingJob createDataLabelingJob(CreateDataLabelingJobRequest
* }
*
* @param name Required. The name of the DataLabelingJob. Format:
- * {@code
* try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ * ListDataLabelingJobsRequest request =
+ * ListDataLabelingJobsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
* while (true) {
* ListDataLabelingJobsResponse response =
* jobServiceClient.listDataLabelingJobsCallable().call(request);
@@ -1090,7 +1107,7 @@ public final ListDataLabelingJobsPagedResponse listDataLabelingJobs(
* }
*
* @param name Required. The name of the DataLabelingJob to be deleted. Format:
- * {@code
* try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ * ListHyperparameterTuningJobsRequest request =
+ * ListHyperparameterTuningJobsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListHyperparameterTuningJobsResponse response =
* jobServiceClient.listHyperparameterTuningJobsCallable().call(request);
@@ -1686,7 +1711,7 @@ public final ListHyperparameterTuningJobsPagedResponse listHyperparameterTuningJ
* }
*
* @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format:
- * {@code
* try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
+ * ListBatchPredictionJobsRequest request =
+ * ListBatchPredictionJobsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListBatchPredictionJobsResponse response =
* jobServiceClient.listBatchPredictionJobsCallable().call(request);
@@ -2328,7 +2361,7 @@ public final ListBatchPredictionJobsPagedResponse listBatchPredictionJobs(
* }
*
* @param name Required. The name of the BatchPredictionJob resource to be deleted. Format:
- * {@code
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
+ * SearchMigratableResourcesRequest request =
+ * SearchMigratableResourcesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
* while (true) {
* SearchMigratableResourcesResponse response =
* migrationServiceClient.searchMigratableResourcesCallable().call(request);
@@ -323,7 +330,7 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
- * datalabeling.googleapis.com to AI Platform (Unified).
+ * datalabeling.googleapis.com to Vertex AI.
*
*
*
* @param name Required. The name of the ModelEvaluation resource. Format:
- * {@code
* try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ListModelsRequest request =
+ * ListModelsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
* while (true) {
* ListModelsResponse response = modelServiceClient.listModelsCallable().call(request);
* for (Model element : response.getResponsesList()) {
@@ -533,7 +542,7 @@ public final UnaryCallable
*
* @param name Required. The name of the ModelEvaluation resource. Format:
- * {@code
* try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ListModelEvaluationsRequest request =
+ * ListModelEvaluationsRequest.newBuilder()
+ * .setParent(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListModelEvaluationsResponse response =
* modelServiceClient.listModelEvaluationsCallable().call(request);
@@ -1109,7 +1126,7 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations(
* }
*
* @param name Required. The name of the ModelEvaluationSlice resource. Format:
- * {@code
* try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+ * ListModelEvaluationSlicesRequest request =
+ * ListModelEvaluationSlicesRequest.newBuilder()
+ * .setParent(
+ * ModelEvaluationName.of("[PROJECT]", "[LOCATION]", "[MODEL]", "[EVALUATION]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListModelEvaluationSlicesResponse response =
* modelServiceClient.listModelEvaluationSlicesCallable().call(request);
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java
index 463e2e324..105a8809b 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java
index c9b3a0ae8..f99d84536 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,9 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * Service Description: A service for creating and managing AI Platform's pipelines.
+ * Service Description: A service for creating and managing Vertex AI's pipelines. This includes
+ * both `TrainingPipeline` resources (used for AutoML and custom training) and `PipelineJob`
+ * resources (used for Vertex Pipelines).
*
*
*
* @param name Required. The name of the TrainingPipeline resource. Format:
- * {@code
* try (PipelineServiceClient pipelineServiceClient = PipelineServiceClient.create()) {
+ * ListTrainingPipelinesRequest request =
+ * ListTrainingPipelinesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListTrainingPipelinesResponse response =
* pipelineServiceClient.listTrainingPipelinesCallable().call(request);
@@ -537,7 +547,7 @@ public final ListTrainingPipelinesPagedResponse listTrainingPipelines(
* }
*
* @param name Required. The name of the TrainingPipeline resource to be deleted. Format:
- * {@code
* try (SpecialistPoolServiceClient specialistPoolServiceClient =
* SpecialistPoolServiceClient.create()) {
+ * ListSpecialistPoolsRequest request =
+ * ListSpecialistPoolsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListSpecialistPoolsResponse response =
* specialistPoolServiceClient.listSpecialistPoolsCallable().call(request);
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java
index e21e2506d..fb702d153 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
new file mode 100644
index 000000000..b22619036
--- /dev/null
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json
@@ -0,0 +1,261 @@
+{
+ "schema": "1.0",
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+ "language": "java",
+ "protoPackage": "google.cloud.aiplatform.v1",
+ "libraryPackage": "com.google.cloud.aiplatform.v1",
+ "services": {
+ "DatasetService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "DatasetServiceClient",
+ "rpcs": {
+ "CreateDataset": {
+ "methods": ["createDatasetAsync", "createDatasetAsync", "createDatasetAsync", "createDatasetOperationCallable", "createDatasetCallable"]
+ },
+ "DeleteDataset": {
+ "methods": ["deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetOperationCallable", "deleteDatasetCallable"]
+ },
+ "ExportData": {
+ "methods": ["exportDataAsync", "exportDataAsync", "exportDataAsync", "exportDataOperationCallable", "exportDataCallable"]
+ },
+ "GetAnnotationSpec": {
+ "methods": ["getAnnotationSpec", "getAnnotationSpec", "getAnnotationSpec", "getAnnotationSpecCallable"]
+ },
+ "GetDataset": {
+ "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"]
+ },
+ "ImportData": {
+ "methods": ["importDataAsync", "importDataAsync", "importDataAsync", "importDataOperationCallable", "importDataCallable"]
+ },
+ "ListAnnotations": {
+ "methods": ["listAnnotations", "listAnnotations", "listAnnotations", "listAnnotationsPagedCallable", "listAnnotationsCallable"]
+ },
+ "ListDataItems": {
+ "methods": ["listDataItems", "listDataItems", "listDataItems", "listDataItemsPagedCallable", "listDataItemsCallable"]
+ },
+ "ListDatasets": {
+ "methods": ["listDatasets", "listDatasets", "listDatasets", "listDatasetsPagedCallable", "listDatasetsCallable"]
+ },
+ "UpdateDataset": {
+ "methods": ["updateDataset", "updateDataset", "updateDatasetCallable"]
+ }
+ }
+ }
+ }
+ },
+ "EndpointService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "EndpointServiceClient",
+ "rpcs": {
+ "CreateEndpoint": {
+ "methods": ["createEndpointAsync", "createEndpointAsync", "createEndpointAsync", "createEndpointOperationCallable", "createEndpointCallable"]
+ },
+ "DeleteEndpoint": {
+ "methods": ["deleteEndpointAsync", "deleteEndpointAsync", "deleteEndpointAsync", "deleteEndpointOperationCallable", "deleteEndpointCallable"]
+ },
+ "DeployModel": {
+ "methods": ["deployModelAsync", "deployModelAsync", "deployModelAsync", "deployModelOperationCallable", "deployModelCallable"]
+ },
+ "GetEndpoint": {
+ "methods": ["getEndpoint", "getEndpoint", "getEndpoint", "getEndpointCallable"]
+ },
+ "ListEndpoints": {
+ "methods": ["listEndpoints", "listEndpoints", "listEndpoints", "listEndpointsPagedCallable", "listEndpointsCallable"]
+ },
+ "UndeployModel": {
+ "methods": ["undeployModelAsync", "undeployModelAsync", "undeployModelAsync", "undeployModelOperationCallable", "undeployModelCallable"]
+ },
+ "UpdateEndpoint": {
+ "methods": ["updateEndpoint", "updateEndpoint", "updateEndpointCallable"]
+ }
+ }
+ }
+ }
+ },
+ "JobService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "JobServiceClient",
+ "rpcs": {
+ "CancelBatchPredictionJob": {
+ "methods": ["cancelBatchPredictionJob", "cancelBatchPredictionJob", "cancelBatchPredictionJob", "cancelBatchPredictionJobCallable"]
+ },
+ "CancelCustomJob": {
+ "methods": ["cancelCustomJob", "cancelCustomJob", "cancelCustomJob", "cancelCustomJobCallable"]
+ },
+ "CancelDataLabelingJob": {
+ "methods": ["cancelDataLabelingJob", "cancelDataLabelingJob", "cancelDataLabelingJob", "cancelDataLabelingJobCallable"]
+ },
+ "CancelHyperparameterTuningJob": {
+ "methods": ["cancelHyperparameterTuningJob", "cancelHyperparameterTuningJob", "cancelHyperparameterTuningJob", "cancelHyperparameterTuningJobCallable"]
+ },
+ "CreateBatchPredictionJob": {
+ "methods": ["createBatchPredictionJob", "createBatchPredictionJob", "createBatchPredictionJob", "createBatchPredictionJobCallable"]
+ },
+ "CreateCustomJob": {
+ "methods": ["createCustomJob", "createCustomJob", "createCustomJob", "createCustomJobCallable"]
+ },
+ "CreateDataLabelingJob": {
+ "methods": ["createDataLabelingJob", "createDataLabelingJob", "createDataLabelingJob", "createDataLabelingJobCallable"]
+ },
+ "CreateHyperparameterTuningJob": {
+ "methods": ["createHyperparameterTuningJob", "createHyperparameterTuningJob", "createHyperparameterTuningJob", "createHyperparameterTuningJobCallable"]
+ },
+ "DeleteBatchPredictionJob": {
+ "methods": ["deleteBatchPredictionJobAsync", "deleteBatchPredictionJobAsync", "deleteBatchPredictionJobAsync", "deleteBatchPredictionJobOperationCallable", "deleteBatchPredictionJobCallable"]
+ },
+ "DeleteCustomJob": {
+ "methods": ["deleteCustomJobAsync", "deleteCustomJobAsync", "deleteCustomJobAsync", "deleteCustomJobOperationCallable", "deleteCustomJobCallable"]
+ },
+ "DeleteDataLabelingJob": {
+ "methods": ["deleteDataLabelingJobAsync", "deleteDataLabelingJobAsync", "deleteDataLabelingJobAsync", "deleteDataLabelingJobOperationCallable", "deleteDataLabelingJobCallable"]
+ },
+ "DeleteHyperparameterTuningJob": {
+ "methods": ["deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobAsync", "deleteHyperparameterTuningJobOperationCallable", "deleteHyperparameterTuningJobCallable"]
+ },
+ "GetBatchPredictionJob": {
+ "methods": ["getBatchPredictionJob", "getBatchPredictionJob", "getBatchPredictionJob", "getBatchPredictionJobCallable"]
+ },
+ "GetCustomJob": {
+ "methods": ["getCustomJob", "getCustomJob", "getCustomJob", "getCustomJobCallable"]
+ },
+ "GetDataLabelingJob": {
+ "methods": ["getDataLabelingJob", "getDataLabelingJob", "getDataLabelingJob", "getDataLabelingJobCallable"]
+ },
+ "GetHyperparameterTuningJob": {
+ "methods": ["getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJob", "getHyperparameterTuningJobCallable"]
+ },
+ "ListBatchPredictionJobs": {
+ "methods": ["listBatchPredictionJobs", "listBatchPredictionJobs", "listBatchPredictionJobs", "listBatchPredictionJobsPagedCallable", "listBatchPredictionJobsCallable"]
+ },
+ "ListCustomJobs": {
+ "methods": ["listCustomJobs", "listCustomJobs", "listCustomJobs", "listCustomJobsPagedCallable", "listCustomJobsCallable"]
+ },
+ "ListDataLabelingJobs": {
+ "methods": ["listDataLabelingJobs", "listDataLabelingJobs", "listDataLabelingJobs", "listDataLabelingJobsPagedCallable", "listDataLabelingJobsCallable"]
+ },
+ "ListHyperparameterTuningJobs": {
+ "methods": ["listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobs", "listHyperparameterTuningJobsPagedCallable", "listHyperparameterTuningJobsCallable"]
+ }
+ }
+ }
+ }
+ },
+ "MigrationService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "MigrationServiceClient",
+ "rpcs": {
+ "BatchMigrateResources": {
+ "methods": ["batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesAsync", "batchMigrateResourcesOperationCallable", "batchMigrateResourcesCallable"]
+ },
+ "SearchMigratableResources": {
+ "methods": ["searchMigratableResources", "searchMigratableResources", "searchMigratableResources", "searchMigratableResourcesPagedCallable", "searchMigratableResourcesCallable"]
+ }
+ }
+ }
+ }
+ },
+ "ModelService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "ModelServiceClient",
+ "rpcs": {
+ "DeleteModel": {
+ "methods": ["deleteModelAsync", "deleteModelAsync", "deleteModelAsync", "deleteModelOperationCallable", "deleteModelCallable"]
+ },
+ "ExportModel": {
+ "methods": ["exportModelAsync", "exportModelAsync", "exportModelAsync", "exportModelOperationCallable", "exportModelCallable"]
+ },
+ "GetModel": {
+ "methods": ["getModel", "getModel", "getModel", "getModelCallable"]
+ },
+ "GetModelEvaluation": {
+ "methods": ["getModelEvaluation", "getModelEvaluation", "getModelEvaluation", "getModelEvaluationCallable"]
+ },
+ "GetModelEvaluationSlice": {
+ "methods": ["getModelEvaluationSlice", "getModelEvaluationSlice", "getModelEvaluationSlice", "getModelEvaluationSliceCallable"]
+ },
+ "ListModelEvaluationSlices": {
+ "methods": ["listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlices", "listModelEvaluationSlicesPagedCallable", "listModelEvaluationSlicesCallable"]
+ },
+ "ListModelEvaluations": {
+ "methods": ["listModelEvaluations", "listModelEvaluations", "listModelEvaluations", "listModelEvaluationsPagedCallable", "listModelEvaluationsCallable"]
+ },
+ "ListModels": {
+ "methods": ["listModels", "listModels", "listModels", "listModelsPagedCallable", "listModelsCallable"]
+ },
+ "UpdateModel": {
+ "methods": ["updateModel", "updateModel", "updateModelCallable"]
+ },
+ "UploadModel": {
+ "methods": ["uploadModelAsync", "uploadModelAsync", "uploadModelAsync", "uploadModelOperationCallable", "uploadModelCallable"]
+ }
+ }
+ }
+ }
+ },
+ "PipelineService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "PipelineServiceClient",
+ "rpcs": {
+ "CancelTrainingPipeline": {
+ "methods": ["cancelTrainingPipeline", "cancelTrainingPipeline", "cancelTrainingPipeline", "cancelTrainingPipelineCallable"]
+ },
+ "CreateTrainingPipeline": {
+ "methods": ["createTrainingPipeline", "createTrainingPipeline", "createTrainingPipeline", "createTrainingPipelineCallable"]
+ },
+ "DeleteTrainingPipeline": {
+ "methods": ["deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineAsync", "deleteTrainingPipelineOperationCallable", "deleteTrainingPipelineCallable"]
+ },
+ "GetTrainingPipeline": {
+ "methods": ["getTrainingPipeline", "getTrainingPipeline", "getTrainingPipeline", "getTrainingPipelineCallable"]
+ },
+ "ListTrainingPipelines": {
+ "methods": ["listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelines", "listTrainingPipelinesPagedCallable", "listTrainingPipelinesCallable"]
+ }
+ }
+ }
+ }
+ },
+ "PredictionService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "PredictionServiceClient",
+ "rpcs": {
+ "Predict": {
+ "methods": ["predict", "predict", "predict", "predictCallable"]
+ }
+ }
+ }
+ }
+ },
+ "SpecialistPoolService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "SpecialistPoolServiceClient",
+ "rpcs": {
+ "CreateSpecialistPool": {
+ "methods": ["createSpecialistPoolAsync", "createSpecialistPoolAsync", "createSpecialistPoolAsync", "createSpecialistPoolOperationCallable", "createSpecialistPoolCallable"]
+ },
+ "DeleteSpecialistPool": {
+ "methods": ["deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolAsync", "deleteSpecialistPoolOperationCallable", "deleteSpecialistPoolCallable"]
+ },
+ "GetSpecialistPool": {
+ "methods": ["getSpecialistPool", "getSpecialistPool", "getSpecialistPool", "getSpecialistPoolCallable"]
+ },
+ "ListSpecialistPools": {
+ "methods": ["listSpecialistPools", "listSpecialistPools", "listSpecialistPools", "listSpecialistPoolsPagedCallable", "listSpecialistPoolsCallable"]
+ },
+ "UpdateSpecialistPool": {
+ "methods": ["updateSpecialistPoolAsync", "updateSpecialistPoolAsync", "updateSpecialistPoolOperationCallable", "updateSpecialistPoolCallable"]
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
index 8d67171cc..465d2254f 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
*
*
*
* @param parent Required. The resource name of the DataItem to list Annotations from. Format:
- * {@code
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+ * ListDatasetsRequest request =
+ * ListDatasetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
* while (true) {
* ListDatasetsResponse response = datasetServiceClient.listDatasetsCallable().call(request);
* for (Dataset element : response.getResponsesList()) {
@@ -1090,6 +1098,15 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
*
*
*
* @param name Required. The name of the AnnotationSpec resource. Format:
- * {@code
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+ * ListDataItemsRequest request =
+ * ListDataItemsRequest.newBuilder()
+ * .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
* while (true) {
* ListDataItemsResponse response = datasetServiceClient.listDataItemsCallable().call(request);
* for (DataItem element : response.getResponsesList()) {
@@ -1124,7 +1141,7 @@ public final UnaryCallable
*
* @param name Required. The name of the AnnotationSpec resource. Format:
- * {@code
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+ * ListAnnotationsRequest request =
+ * ListAnnotationsRequest.newBuilder()
+ * .setParent(
+ * DataItemName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATA_ITEM]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
* while (true) {
* ListAnnotationsResponse response =
* datasetServiceClient.listAnnotationsCallable().call(request);
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java
index 1f03ae479..973fb97fc 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
index 5b5723f92..e237f3f9c 100644
--- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
+++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Google LLC
+ * Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -504,6 +504,14 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque
*
*
{@code
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
+ * ListEndpointsRequest request =
+ * ListEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
* while (true) {
* ListEndpointsResponse response =
* endpointServiceClient.listEndpointsCallable().call(request);
@@ -540,7 +548,7 @@ public final UnaryCallable
{@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * EntityTypeName entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * ReadFeatureValuesResponse response =
+ * featurestoreOnlineServingServiceClient.readFeatureValues(entityType);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ * {@code
+ * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
+ * FeaturestoreOnlineServingServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create(featurestoreOnlineServingServiceSettings);
+ * }
+ *
+ * {@code
+ * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
+ * FeaturestoreOnlineServingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create(featurestoreOnlineServingServiceSettings);
+ * }
+ *
+ * {@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * EntityTypeName entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * ReadFeatureValuesResponse response =
+ * featurestoreOnlineServingServiceClient.readFeatureValues(entityType);
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType for the entity being read.
+ * Value format: `projects/{project}/locations/{location}/featurestores/
+ * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model
+ * predicting user clicks on a website, an EntityType ID could be "user".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReadFeatureValuesResponse readFeatureValues(EntityTypeName entityType) {
+ ReadFeatureValuesRequest request =
+ ReadFeatureValuesRequest.newBuilder()
+ .setEntityType(entityType == null ? null : entityType.toString())
+ .build();
+ return readFeatureValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads Feature values of a specific entity of an EntityType. For reading feature values of
+ * multiple entities of an EntityType, please use StreamingReadFeatureValues.
+ *
+ * {@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * String entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * ReadFeatureValuesResponse response =
+ * featurestoreOnlineServingServiceClient.readFeatureValues(entityType);
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType for the entity being read.
+ * Value format: `projects/{project}/locations/{location}/featurestores/
+ * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model
+ * predicting user clicks on a website, an EntityType ID could be "user".
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReadFeatureValuesResponse readFeatureValues(String entityType) {
+ ReadFeatureValuesRequest request =
+ ReadFeatureValuesRequest.newBuilder().setEntityType(entityType).build();
+ return readFeatureValues(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads Feature values of a specific entity of an EntityType. For reading feature values of
+ * multiple entities of an EntityType, please use StreamingReadFeatureValues.
+ *
+ * {@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * ReadFeatureValuesRequest request =
+ * ReadFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setEntityId("entityId-2102099874")
+ * .setFeatureSelector(FeatureSelector.newBuilder().build())
+ * .build();
+ * ReadFeatureValuesResponse response =
+ * featurestoreOnlineServingServiceClient.readFeatureValues(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesRequest request) {
+ return readFeatureValuesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Reads Feature values of a specific entity of an EntityType. For reading feature values of
+ * multiple entities of an EntityType, please use StreamingReadFeatureValues.
+ *
+ * {@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * ReadFeatureValuesRequest request =
+ * ReadFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setEntityId("entityId-2102099874")
+ * .setFeatureSelector(FeatureSelector.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+ * FeaturestoreOnlineServingServiceClient.create()) {
+ * StreamingReadFeatureValuesRequest request =
+ * StreamingReadFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllEntityIds(new ArrayList
+ */
+ public final ServerStreamingCallable
+ *
+ *
+ * {@code
+ * FeaturestoreOnlineServingServiceSettings.Builder
+ * featurestoreOnlineServingServiceSettingsBuilder =
+ * FeaturestoreOnlineServingServiceSettings.newBuilder();
+ * featurestoreOnlineServingServiceSettingsBuilder
+ * .readFeatureValuesSettings()
+ * .setRetrySettings(
+ * featurestoreOnlineServingServiceSettingsBuilder
+ * .readFeatureValuesSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * FeaturestoreOnlineServingServiceSettings featurestoreOnlineServingServiceSettings =
+ * featurestoreOnlineServingServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class FeaturestoreOnlineServingServiceSettings
+ extends ClientSettings{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ * Featurestore response = featurestoreServiceClient.getFeaturestore(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ * {@code
+ * FeaturestoreServiceSettings featurestoreServiceSettings =
+ * FeaturestoreServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * FeaturestoreServiceClient featurestoreServiceClient =
+ * FeaturestoreServiceClient.create(featurestoreServiceSettings);
+ * }
+ *
+ * {@code
+ * FeaturestoreServiceSettings featurestoreServiceSettings =
+ * FeaturestoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * FeaturestoreServiceClient featurestoreServiceClient =
+ * FeaturestoreServiceClient.create(featurestoreServiceSettings);
+ * }
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Featurestore featurestore = Featurestore.newBuilder().build();
+ * Featurestore response =
+ * featurestoreServiceClient.createFeaturestoreAsync(parent, featurestore).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create Featurestores. Format:
+ * `projects/{project}/locations/{location}'`
+ * @param featurestore Required. The Featurestore to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * Featurestore featurestore = Featurestore.newBuilder().build();
+ * Featurestore response =
+ * featurestoreServiceClient.createFeaturestoreAsync(parent, featurestore).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create Featurestores. Format:
+ * `projects/{project}/locations/{location}'`
+ * @param featurestore Required. The Featurestore to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateFeaturestoreRequest request =
+ * CreateFeaturestoreRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setFeaturestore(Featurestore.newBuilder().build())
+ * .setFeaturestoreId("featurestoreId-1315851738")
+ * .build();
+ * Featurestore response = featurestoreServiceClient.createFeaturestoreAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateFeaturestoreRequest request =
+ * CreateFeaturestoreRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setFeaturestore(Featurestore.newBuilder().build())
+ * .setFeaturestoreId("featurestoreId-1315851738")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateFeaturestoreRequest, Featurestore, CreateFeaturestoreOperationMetadata>
+ createFeaturestoreOperationCallable() {
+ return stub.createFeaturestoreOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Featurestore in a given project and location.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateFeaturestoreRequest request =
+ * CreateFeaturestoreRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setFeaturestore(Featurestore.newBuilder().build())
+ * .setFeaturestoreId("featurestoreId-1315851738")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ * Featurestore response = featurestoreServiceClient.getFeaturestore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Featurestore resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Featurestore getFeaturestore(FeaturestoreName name) {
+ GetFeaturestoreRequest request =
+ GetFeaturestoreRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFeaturestore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * Featurestore response = featurestoreServiceClient.getFeaturestore(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Featurestore resource.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Featurestore getFeaturestore(String name) {
+ GetFeaturestoreRequest request = GetFeaturestoreRequest.newBuilder().setName(name).build();
+ return getFeaturestore(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * GetFeaturestoreRequest request =
+ * GetFeaturestoreRequest.newBuilder()
+ * .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .build();
+ * Featurestore response = featurestoreServiceClient.getFeaturestore(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Featurestore getFeaturestore(GetFeaturestoreRequest request) {
+ return getFeaturestoreCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * GetFeaturestoreRequest request =
+ * GetFeaturestoreRequest.newBuilder()
+ * .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Featurestore element :
+ * featurestoreServiceClient.listFeaturestores(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Featurestores. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturestoresPagedResponse listFeaturestores(LocationName parent) {
+ ListFeaturestoresRequest request =
+ ListFeaturestoresRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeaturestores(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Featurestores in a given project and location.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * for (Featurestore element :
+ * featurestoreServiceClient.listFeaturestores(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Featurestores. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturestoresPagedResponse listFeaturestores(String parent) {
+ ListFeaturestoresRequest request =
+ ListFeaturestoresRequest.newBuilder().setParent(parent).build();
+ return listFeaturestores(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Featurestores in a given project and location.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListFeaturestoresRequest request =
+ * ListFeaturestoresRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (Featurestore element :
+ * featurestoreServiceClient.listFeaturestores(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresRequest request) {
+ return listFeaturestoresPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Featurestores in a given project and location.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListFeaturestoresRequest request =
+ * ListFeaturestoresRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListFeaturestoresRequest request =
+ * ListFeaturestoresRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListFeaturestoresResponse response =
+ * featurestoreServiceClient.listFeaturestoresCallable().call(request);
+ * for (Featurestore element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * Featurestore featurestore = Featurestore.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Featurestore response =
+ * featurestoreServiceClient.updateFeaturestoreAsync(featurestore, updateMask).get();
+ * }
+ * }
+ *
+ * @param featurestore Required. The Featurestore's `name` field is used to identify the
+ * Featurestore to be updated. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @param updateMask Field mask is used to specify the fields to be overwritten in the
+ * Featurestore 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 only the non-empty fields present in the request will
+ * be overwritten. Set the update_mask to `*` to override all fields.
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * UpdateFeaturestoreRequest request =
+ * UpdateFeaturestoreRequest.newBuilder()
+ * .setFeaturestore(Featurestore.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Featurestore response = featurestoreServiceClient.updateFeaturestoreAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * UpdateFeaturestoreRequest request =
+ * UpdateFeaturestoreRequest.newBuilder()
+ * .setFeaturestore(Featurestore.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ UpdateFeaturestoreRequest, Featurestore, UpdateFeaturestoreOperationMetadata>
+ updateFeaturestoreOperationCallable() {
+ return stub.updateFeaturestoreOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * UpdateFeaturestoreRequest request =
+ * UpdateFeaturestoreRequest.newBuilder()
+ * .setFeaturestore(Featurestore.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeaturestoreName name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ * featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Featurestore to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String name = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * featurestoreServiceClient.deleteFeaturestoreAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Featurestore to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteFeaturestoreRequest request =
+ * DeleteFeaturestoreRequest.newBuilder()
+ * .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setForce(true)
+ * .build();
+ * featurestoreServiceClient.deleteFeaturestoreAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteFeaturestoreRequest request =
+ * DeleteFeaturestoreRequest.newBuilder()
+ * .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setForce(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteFeaturestoreRequest request =
+ * DeleteFeaturestoreRequest.newBuilder()
+ * .setName(FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setForce(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ * EntityType entityType = EntityType.newBuilder().build();
+ * EntityType response =
+ * featurestoreServiceClient.createEntityTypeAsync(parent, entityType).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @param entityType The EntityType to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * EntityType entityType = EntityType.newBuilder().build();
+ * EntityType response =
+ * featurestoreServiceClient.createEntityTypeAsync(parent, entityType).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @param entityType The EntityType to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateEntityTypeRequest request =
+ * CreateEntityTypeRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setEntityType(EntityType.newBuilder().build())
+ * .setEntityTypeId("entityTypeId767740856")
+ * .build();
+ * EntityType response = featurestoreServiceClient.createEntityTypeAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateEntityTypeRequest request =
+ * CreateEntityTypeRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setEntityType(EntityType.newBuilder().build())
+ * .setEntityTypeId("entityTypeId767740856")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateEntityTypeRequest, EntityType, CreateEntityTypeOperationMetadata>
+ createEntityTypeOperationCallable() {
+ return stub.createEntityTypeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new EntityType in a given Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateEntityTypeRequest request =
+ * CreateEntityTypeRequest.newBuilder()
+ * .setParent(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setEntityType(EntityType.newBuilder().build())
+ * .setEntityTypeId("entityTypeId767740856")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityTypeName name =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * EntityType response = featurestoreServiceClient.getEntityType(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the EntityType resource. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final EntityType getEntityType(EntityTypeName name) {
+ GetEntityTypeRequest request =
+ GetEntityTypeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getEntityType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String name =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * EntityType response = featurestoreServiceClient.getEntityType(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the EntityType resource. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final EntityType getEntityType(String name) {
+ GetEntityTypeRequest request = GetEntityTypeRequest.newBuilder().setName(name).build();
+ return getEntityType(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * GetEntityTypeRequest request =
+ * GetEntityTypeRequest.newBuilder()
+ * .setName(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .build();
+ * EntityType response = featurestoreServiceClient.getEntityType(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final EntityType getEntityType(GetEntityTypeRequest request) {
+ return getEntityTypeCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * GetEntityTypeRequest request =
+ * GetEntityTypeRequest.newBuilder()
+ * .setName(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ * for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Featurestore to list EntityTypes. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(FeaturestoreName parent) {
+ ListEntityTypesRequest request =
+ ListEntityTypesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listEntityTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists EntityTypes in a given Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * for (EntityType element : featurestoreServiceClient.listEntityTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Featurestore to list EntityTypes. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
+ ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build();
+ return listEntityTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists EntityTypes in a given Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (EntityType element : featurestoreServiceClient.listEntityTypes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) {
+ return listEntityTypesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists EntityTypes in a given Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListEntityTypesResponse response =
+ * featurestoreServiceClient.listEntityTypesCallable().call(request);
+ * for (EntityType element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityType entityType = EntityType.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * EntityType response = featurestoreServiceClient.updateEntityType(entityType, updateMask);
+ * }
+ * }
+ *
+ * @param entityType Required. The EntityType's `name` field is used to identify the EntityType to
+ * be updated. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @param updateMask Field mask is used to specify the fields to be overwritten in the EntityType
+ * 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 only the non-empty fields present in the request will be
+ * overwritten. Set the update_mask to `*` to override all fields.
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * UpdateEntityTypeRequest request =
+ * UpdateEntityTypeRequest.newBuilder()
+ * .setEntityType(EntityType.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * EntityType response = featurestoreServiceClient.updateEntityType(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final EntityType updateEntityType(UpdateEntityTypeRequest request) {
+ return updateEntityTypeCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * UpdateEntityTypeRequest request =
+ * UpdateEntityTypeRequest.newBuilder()
+ * .setEntityType(EntityType.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityTypeName name =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * featurestoreServiceClient.deleteEntityTypeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the EntityType to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String name =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * featurestoreServiceClient.deleteEntityTypeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the EntityType to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteEntityTypeRequest request =
+ * DeleteEntityTypeRequest.newBuilder()
+ * .setName(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * featurestoreServiceClient.deleteEntityTypeAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteEntityTypeRequest request =
+ * DeleteEntityTypeRequest.newBuilder()
+ * .setName(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteEntityTypeRequest request =
+ * DeleteEntityTypeRequest.newBuilder()
+ * .setName(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setForce(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityTypeName parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * Feature feature = Feature.newBuilder().build();
+ * Feature response = featurestoreServiceClient.createFeatureAsync(parent, feature).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType to create a Feature. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @param feature Required. The Feature to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * Feature feature = Feature.newBuilder().build();
+ * Feature response = featurestoreServiceClient.createFeatureAsync(parent, feature).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the EntityType to create a Feature. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @param feature Required. The Feature to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFeature(Feature.newBuilder().build())
+ * .setFeatureId("featureId-420503887")
+ * .build();
+ * Feature response = featurestoreServiceClient.createFeatureAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFeature(Feature.newBuilder().build())
+ * .setFeatureId("featureId-420503887")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setFeature(Feature.newBuilder().build())
+ * .setFeatureId("featureId-420503887")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityTypeName parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * List
+ *
+ * @param parent Required. The resource name of the EntityType to create the batch of Features
+ * under. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @param requests Required. The request message specifying the Features to create. All Features
+ * must be created under the same parent EntityType. The `parent` field in each child request
+ * message can be omitted. If `parent` is set in a child request, then the value must match
+ * the `parent` value in this request message.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * List
+ *
+ * @param parent Required. The resource name of the EntityType to create the batch of Features
+ * under. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @param requests Required. The request message specifying the Features to create. All Features
+ * must be created under the same parent EntityType. The `parent` field in each child request
+ * message can be omitted. If `parent` is set in a child request, then the value must match
+ * the `parent` value in this request message.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * BatchCreateFeaturesRequest request =
+ * BatchCreateFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllRequests(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * BatchCreateFeaturesRequest request =
+ * BatchCreateFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final OperationCallable<
+ BatchCreateFeaturesRequest,
+ BatchCreateFeaturesResponse,
+ BatchCreateFeaturesOperationMetadata>
+ batchCreateFeaturesOperationCallable() {
+ return stub.batchCreateFeaturesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a batch of Features in a given EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * BatchCreateFeaturesRequest request =
+ * BatchCreateFeaturesRequest.newBuilder()
+ * .setParent(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .addAllRequests(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeatureName name =
+ * FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
+ * Feature response = featurestoreServiceClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Feature resource. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(FeatureName name) {
+ GetFeatureRequest request =
+ GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String name =
+ * FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString();
+ * Feature response = featurestoreServiceClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Feature resource. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(String name) {
+ GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * Feature response = featurestoreServiceClient.getFeature(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(GetFeatureRequest request) {
+ return getFeatureCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityTypeName parent =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * for (Feature element : featurestoreServiceClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Features. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(EntityTypeName parent) {
+ ListFeaturesRequest request =
+ ListFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String parent =
+ * FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString();
+ * for (Feature element : featurestoreServiceClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to list Features. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(String parent) {
+ ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setLatestStatsCount(-878108489)
+ * .build();
+ * for (Feature element : featurestoreServiceClient.listFeatures(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) {
+ return listFeaturesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setLatestStatsCount(-878108489)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .setLatestStatsCount(-878108489)
+ * .build();
+ * while (true) {
+ * ListFeaturesResponse response =
+ * featurestoreServiceClient.listFeaturesCallable().call(request);
+ * for (Feature element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * Feature feature = Feature.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Feature response = featurestoreServiceClient.updateFeature(feature, updateMask);
+ * }
+ * }
+ *
+ * @param feature Required. The Feature's `name` field is used to identify the Feature to be
+ * updated. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+ * @param updateMask Field mask is used to specify the fields to be overwritten in the Features
+ * 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 only the non-empty fields present in the request will be
+ * overwritten. Set the update_mask to `*` to override all fields.
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setFeature(Feature.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Feature response = featurestoreServiceClient.updateFeature(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature updateFeature(UpdateFeatureRequest request) {
+ return updateFeatureCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single Feature.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setFeature(Feature.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeatureName name =
+ * FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]");
+ * featurestoreServiceClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Features to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String name =
+ * FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString();
+ * featurestoreServiceClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the Features to be deleted. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * featurestoreServiceClient.deleteFeatureAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(
+ * FeatureName.of(
+ * "[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]", "[FEATURE]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityTypeName entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * ImportFeatureValuesResponse response =
+ * featurestoreServiceClient.importFeatureValuesAsync(entityType).get();
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType grouping the Features for which
+ * values are being imported. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * ImportFeatureValuesResponse response =
+ * featurestoreServiceClient.importFeatureValuesAsync(entityType).get();
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType grouping the Features for which
+ * values are being imported. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ImportFeatureValuesRequest request =
+ * ImportFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setEntityIdField("entityIdField512670524")
+ * .addAllFeatureSpecs(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ImportFeatureValuesRequest request =
+ * ImportFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setEntityIdField("entityIdField512670524")
+ * .addAllFeatureSpecs(new ArrayList
+ */
+ public final OperationCallable<
+ ImportFeatureValuesRequest,
+ ImportFeatureValuesResponse,
+ ImportFeatureValuesOperationMetadata>
+ importFeatureValuesOperationCallable() {
+ return stub.importFeatureValuesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Imports Feature values into the Featurestore from a source storage.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ImportFeatureValuesRequest request =
+ * ImportFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setEntityIdField("entityIdField512670524")
+ * .addAllFeatureSpecs(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * FeaturestoreName featurestore =
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
+ * BatchReadFeatureValuesResponse response =
+ * featurestoreServiceClient.batchReadFeatureValuesAsync(featurestore).get();
+ * }
+ * }
+ *
+ * @param featurestore Required. The resource name of the Featurestore from which to query Feature
+ * values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>
+ batchReadFeatureValuesAsync(FeaturestoreName featurestore) {
+ BatchReadFeatureValuesRequest request =
+ BatchReadFeatureValuesRequest.newBuilder()
+ .setFeaturestore(featurestore == null ? null : featurestore.toString())
+ .build();
+ return batchReadFeatureValuesAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch reads Feature values from a Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String featurestore =
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
+ * BatchReadFeatureValuesResponse response =
+ * featurestoreServiceClient.batchReadFeatureValuesAsync(featurestore).get();
+ * }
+ * }
+ *
+ * @param featurestore Required. The resource name of the Featurestore from which to query Feature
+ * values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>
+ batchReadFeatureValuesAsync(String featurestore) {
+ BatchReadFeatureValuesRequest request =
+ BatchReadFeatureValuesRequest.newBuilder().setFeaturestore(featurestore).build();
+ return batchReadFeatureValuesAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch reads Feature values from a Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * BatchReadFeatureValuesRequest request =
+ * BatchReadFeatureValuesRequest.newBuilder()
+ * .setFeaturestore(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setDestination(FeatureValueDestination.newBuilder().build())
+ * .addAllEntityTypeSpecs(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture<
+ BatchReadFeatureValuesResponse, BatchReadFeatureValuesOperationMetadata>
+ batchReadFeatureValuesAsync(BatchReadFeatureValuesRequest request) {
+ return batchReadFeatureValuesOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch reads Feature values from a Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * BatchReadFeatureValuesRequest request =
+ * BatchReadFeatureValuesRequest.newBuilder()
+ * .setFeaturestore(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setDestination(FeatureValueDestination.newBuilder().build())
+ * .addAllEntityTypeSpecs(new ArrayList
+ */
+ public final OperationCallable<
+ BatchReadFeatureValuesRequest,
+ BatchReadFeatureValuesResponse,
+ BatchReadFeatureValuesOperationMetadata>
+ batchReadFeatureValuesOperationCallable() {
+ return stub.batchReadFeatureValuesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Batch reads Feature values from a Featurestore.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * BatchReadFeatureValuesRequest request =
+ * BatchReadFeatureValuesRequest.newBuilder()
+ * .setFeaturestore(
+ * FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString())
+ * .setDestination(FeatureValueDestination.newBuilder().build())
+ * .addAllEntityTypeSpecs(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * EntityTypeName entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+ * ExportFeatureValuesResponse response =
+ * featurestoreServiceClient.exportFeatureValuesAsync(entityType).get();
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType from which to export Feature
+ * values. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String entityType =
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString();
+ * ExportFeatureValuesResponse response =
+ * featurestoreServiceClient.exportFeatureValuesAsync(entityType).get();
+ * }
+ * }
+ *
+ * @param entityType Required. The resource name of the EntityType from which to export Feature
+ * values. Format:
+ * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ExportFeatureValuesRequest request =
+ * ExportFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setDestination(FeatureValueDestination.newBuilder().build())
+ * .setFeatureSelector(FeatureSelector.newBuilder().build())
+ * .addAllSettings(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ExportFeatureValuesRequest request =
+ * ExportFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setDestination(FeatureValueDestination.newBuilder().build())
+ * .setFeatureSelector(FeatureSelector.newBuilder().build())
+ * .addAllSettings(new ArrayList
+ */
+ public final OperationCallable<
+ ExportFeatureValuesRequest,
+ ExportFeatureValuesResponse,
+ ExportFeatureValuesOperationMetadata>
+ exportFeatureValuesOperationCallable() {
+ return stub.exportFeatureValuesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Exports Feature values from all the entities of a target EntityType.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * ExportFeatureValuesRequest request =
+ * ExportFeatureValuesRequest.newBuilder()
+ * .setEntityType(
+ * EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+ * .toString())
+ * .setDestination(FeatureValueDestination.newBuilder().build())
+ * .setFeatureSelector(FeatureSelector.newBuilder().build())
+ * .addAllSettings(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param location Required. The resource name of the Location to search Features. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchFeaturesPagedResponse searchFeatures(LocationName location) {
+ SearchFeaturesRequest request =
+ SearchFeaturesRequest.newBuilder()
+ .setLocation(location == null ? null : location.toString())
+ .build();
+ return searchFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Features matching a query in a given project.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Feature element : featurestoreServiceClient.searchFeatures(location).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param location Required. The resource name of the Location to search Features. Format:
+ * `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchFeaturesPagedResponse searchFeatures(String location) {
+ SearchFeaturesRequest request =
+ SearchFeaturesRequest.newBuilder().setLocation(location).build();
+ return searchFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Features matching a query in a given project.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * SearchFeaturesRequest request =
+ * SearchFeaturesRequest.newBuilder()
+ * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery("query107944136")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Feature element : featurestoreServiceClient.searchFeatures(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchFeaturesPagedResponse searchFeatures(SearchFeaturesRequest request) {
+ return searchFeaturesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches Features matching a query in a given project.
+ *
+ * {@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * SearchFeaturesRequest request =
+ * SearchFeaturesRequest.newBuilder()
+ * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery("query107944136")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+ * SearchFeaturesRequest request =
+ * SearchFeaturesRequest.newBuilder()
+ * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setQuery("query107944136")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * SearchFeaturesResponse response =
+ * featurestoreServiceClient.searchFeaturesCallable().call(request);
+ * for (Feature element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * FeaturestoreServiceSettings.Builder featurestoreServiceSettingsBuilder =
+ * FeaturestoreServiceSettings.newBuilder();
+ * featurestoreServiceSettingsBuilder
+ * .getFeaturestoreSettings()
+ * .setRetrySettings(
+ * featurestoreServiceSettingsBuilder
+ * .getFeaturestoreSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * FeaturestoreServiceSettings featurestoreServiceSettings =
+ * featurestoreServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class FeaturestoreServiceSettings extends ClientSettings{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+ * IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ * {@code
+ * IndexEndpointServiceSettings indexEndpointServiceSettings =
+ * IndexEndpointServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create(indexEndpointServiceSettings);
+ * }
+ *
+ * {@code
+ * IndexEndpointServiceSettings indexEndpointServiceSettings =
+ * IndexEndpointServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create(indexEndpointServiceSettings);
+ * }
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
+ * IndexEndpoint response =
+ * indexEndpointServiceClient.createIndexEndpointAsync(parent, indexEndpoint).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create the IndexEndpoint in.
+ * Format: `projects/{project}/locations/{location}`
+ * @param indexEndpoint Required. The IndexEndpoint to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
+ * IndexEndpoint response =
+ * indexEndpointServiceClient.createIndexEndpointAsync(parent, indexEndpoint).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create the IndexEndpoint in.
+ * Format: `projects/{project}/locations/{location}`
+ * @param indexEndpoint Required. The IndexEndpoint to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * CreateIndexEndpointRequest request =
+ * CreateIndexEndpointRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+ * .build();
+ * IndexEndpoint response = indexEndpointServiceClient.createIndexEndpointAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * CreateIndexEndpointRequest request =
+ * CreateIndexEndpointRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointOperationMetadata>
+ createIndexEndpointOperationCallable() {
+ return stub.createIndexEndpointOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates an IndexEndpoint.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * CreateIndexEndpointRequest request =
+ * CreateIndexEndpointRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+ * IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the IndexEndpoint resource. Format:
+ * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IndexEndpoint getIndexEndpoint(IndexEndpointName name) {
+ GetIndexEndpointRequest request =
+ GetIndexEndpointRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getIndexEndpoint(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an IndexEndpoint.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+ * IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the IndexEndpoint resource. Format:
+ * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IndexEndpoint getIndexEndpoint(String name) {
+ GetIndexEndpointRequest request = GetIndexEndpointRequest.newBuilder().setName(name).build();
+ return getIndexEndpoint(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an IndexEndpoint.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * GetIndexEndpointRequest request =
+ * GetIndexEndpointRequest.newBuilder()
+ * .setName(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .build();
+ * IndexEndpoint response = indexEndpointServiceClient.getIndexEndpoint(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IndexEndpoint getIndexEndpoint(GetIndexEndpointRequest request) {
+ return getIndexEndpointCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an IndexEndpoint.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * GetIndexEndpointRequest request =
+ * GetIndexEndpointRequest.newBuilder()
+ * .setName(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (IndexEndpoint element :
+ * indexEndpointServiceClient.listIndexEndpoints(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to list the
+ * IndexEndpoints. Format: `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIndexEndpointsPagedResponse listIndexEndpoints(LocationName parent) {
+ ListIndexEndpointsRequest request =
+ ListIndexEndpointsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listIndexEndpoints(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists IndexEndpoints in a Location.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (IndexEndpoint element :
+ * indexEndpointServiceClient.listIndexEndpoints(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to list the
+ * IndexEndpoints. Format: `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIndexEndpointsPagedResponse listIndexEndpoints(String parent) {
+ ListIndexEndpointsRequest request =
+ ListIndexEndpointsRequest.newBuilder().setParent(parent).build();
+ return listIndexEndpoints(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists IndexEndpoints in a Location.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * ListIndexEndpointsRequest request =
+ * ListIndexEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (IndexEndpoint element :
+ * indexEndpointServiceClient.listIndexEndpoints(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIndexEndpointsPagedResponse listIndexEndpoints(
+ ListIndexEndpointsRequest request) {
+ return listIndexEndpointsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists IndexEndpoints in a Location.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * ListIndexEndpointsRequest request =
+ * ListIndexEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * ListIndexEndpointsRequest request =
+ * ListIndexEndpointsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListIndexEndpointsResponse response =
+ * indexEndpointServiceClient.listIndexEndpointsCallable().call(request);
+ * for (IndexEndpoint element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * IndexEndpoint indexEndpoint = IndexEndpoint.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * IndexEndpoint response =
+ * indexEndpointServiceClient.updateIndexEndpoint(indexEndpoint, updateMask);
+ * }
+ * }
+ *
+ * @param indexEndpoint Required. The IndexEndpoint which replaces the resource on the server.
+ * @param updateMask Required. The update mask applies to the resource. See
+ * [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IndexEndpoint updateIndexEndpoint(
+ IndexEndpoint indexEndpoint, FieldMask updateMask) {
+ UpdateIndexEndpointRequest request =
+ UpdateIndexEndpointRequest.newBuilder()
+ .setIndexEndpoint(indexEndpoint)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateIndexEndpoint(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an IndexEndpoint.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * UpdateIndexEndpointRequest request =
+ * UpdateIndexEndpointRequest.newBuilder()
+ * .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * IndexEndpoint response = indexEndpointServiceClient.updateIndexEndpoint(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final IndexEndpoint updateIndexEndpoint(UpdateIndexEndpointRequest request) {
+ return updateIndexEndpointCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an IndexEndpoint.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * UpdateIndexEndpointRequest request =
+ * UpdateIndexEndpointRequest.newBuilder()
+ * .setIndexEndpoint(IndexEndpoint.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * IndexEndpointName name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+ * indexEndpointServiceClient.deleteIndexEndpointAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the IndexEndpoint resource to be deleted. Format:
+ * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * String name = IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+ * indexEndpointServiceClient.deleteIndexEndpointAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The name of the IndexEndpoint resource to be deleted. Format:
+ * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * DeleteIndexEndpointRequest request =
+ * DeleteIndexEndpointRequest.newBuilder()
+ * .setName(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .build();
+ * indexEndpointServiceClient.deleteIndexEndpointAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * DeleteIndexEndpointRequest request =
+ * DeleteIndexEndpointRequest.newBuilder()
+ * .setName(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * DeleteIndexEndpointRequest request =
+ * DeleteIndexEndpointRequest.newBuilder()
+ * .setName(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * IndexEndpointName indexEndpoint =
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+ * DeployedIndex deployedIndex = DeployedIndex.newBuilder().build();
+ * DeployIndexResponse response =
+ * indexEndpointServiceClient.deployIndexAsync(indexEndpoint, deployedIndex).get();
+ * }
+ * }
+ *
+ * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an
+ * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @param deployedIndex Required. The DeployedIndex to be created within the IndexEndpoint.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * String indexEndpoint =
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+ * DeployedIndex deployedIndex = DeployedIndex.newBuilder().build();
+ * DeployIndexResponse response =
+ * indexEndpointServiceClient.deployIndexAsync(indexEndpoint, deployedIndex).get();
+ * }
+ * }
+ *
+ * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an
+ * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @param deployedIndex Required. The DeployedIndex to be created within the IndexEndpoint.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * DeployIndexRequest request =
+ * DeployIndexRequest.newBuilder()
+ * .setIndexEndpoint(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .setDeployedIndex(DeployedIndex.newBuilder().build())
+ * .build();
+ * DeployIndexResponse response = indexEndpointServiceClient.deployIndexAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * DeployIndexRequest request =
+ * DeployIndexRequest.newBuilder()
+ * .setIndexEndpoint(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .setDeployedIndex(DeployedIndex.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ DeployIndexRequest, DeployIndexResponse, DeployIndexOperationMetadata>
+ deployIndexOperationCallable() {
+ return stub.deployIndexOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty
+ * Indexes can be deployed.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * DeployIndexRequest request =
+ * DeployIndexRequest.newBuilder()
+ * .setIndexEndpoint(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .setDeployedIndex(DeployedIndex.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * IndexEndpointName indexEndpoint =
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]");
+ * String deployedIndexId = "deployedIndexId-1101212953";
+ * UndeployIndexResponse response =
+ * indexEndpointServiceClient.undeployIndexAsync(indexEndpoint, deployedIndexId).get();
+ * }
+ * }
+ *
+ * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an
+ * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @param deployedIndexId Required. The ID of the DeployedIndex to be undeployed from the
+ * IndexEndpoint.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * String indexEndpoint =
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString();
+ * String deployedIndexId = "deployedIndexId-1101212953";
+ * UndeployIndexResponse response =
+ * indexEndpointServiceClient.undeployIndexAsync(indexEndpoint, deployedIndexId).get();
+ * }
+ * }
+ *
+ * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an
+ * Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
+ * @param deployedIndexId Required. The ID of the DeployedIndex to be undeployed from the
+ * IndexEndpoint.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * UndeployIndexRequest request =
+ * UndeployIndexRequest.newBuilder()
+ * .setIndexEndpoint(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .setDeployedIndexId("deployedIndexId-1101212953")
+ * .build();
+ * UndeployIndexResponse response = indexEndpointServiceClient.undeployIndexAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * UndeployIndexRequest request =
+ * UndeployIndexRequest.newBuilder()
+ * .setIndexEndpoint(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .setDeployedIndexId("deployedIndexId-1101212953")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ UndeployIndexRequest, UndeployIndexResponse, UndeployIndexOperationMetadata>
+ undeployIndexOperationCallable() {
+ return stub.undeployIndexOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all
+ * resources it's using.
+ *
+ * {@code
+ * try (IndexEndpointServiceClient indexEndpointServiceClient =
+ * IndexEndpointServiceClient.create()) {
+ * UndeployIndexRequest request =
+ * UndeployIndexRequest.newBuilder()
+ * .setIndexEndpoint(
+ * IndexEndpointName.of("[PROJECT]", "[LOCATION]", "[INDEX_ENDPOINT]").toString())
+ * .setDeployedIndexId("deployedIndexId-1101212953")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * IndexEndpointServiceSettings.Builder indexEndpointServiceSettingsBuilder =
+ * IndexEndpointServiceSettings.newBuilder();
+ * indexEndpointServiceSettingsBuilder
+ * .getIndexEndpointSettings()
+ * .setRetrySettings(
+ * indexEndpointServiceSettingsBuilder
+ * .getIndexEndpointSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * IndexEndpointServiceSettings indexEndpointServiceSettings =
+ * indexEndpointServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class IndexEndpointServiceSettings extends ClientSettings{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
+ * Index response = indexServiceClient.getIndex(name);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ * {@code
+ * IndexServiceSettings indexServiceSettings =
+ * IndexServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * IndexServiceClient indexServiceClient = IndexServiceClient.create(indexServiceSettings);
+ * }
+ *
+ * {@code
+ * IndexServiceSettings indexServiceSettings =
+ * IndexServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * IndexServiceClient indexServiceClient = IndexServiceClient.create(indexServiceSettings);
+ * }
+ *
+ * {@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Index index = Index.newBuilder().build();
+ * Index response = indexServiceClient.createIndexAsync(parent, index).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create the Index in. Format:
+ * `projects/{project}/locations/{location}`
+ * @param index Required. The Index to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Index index = Index.newBuilder().build();
+ * Index response = indexServiceClient.createIndexAsync(parent, index).get();
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location to create the Index in. Format:
+ * `projects/{project}/locations/{location}`
+ * @param index Required. The Index to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * CreateIndexRequest request =
+ * CreateIndexRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIndex(Index.newBuilder().build())
+ * .build();
+ * Index response = indexServiceClient.createIndexAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * CreateIndexRequest request =
+ * CreateIndexRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIndex(Index.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * CreateIndexRequest request =
+ * CreateIndexRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setIndex(Index.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * IndexName name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]");
+ * Index response = indexServiceClient.getIndex(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Index resource. Format:
+ * `projects/{project}/locations/{location}/indexes/{index}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Index getIndex(IndexName name) {
+ GetIndexRequest request =
+ GetIndexRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getIndex(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an Index.
+ *
+ * {@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * String name = IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString();
+ * Index response = indexServiceClient.getIndex(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Index resource. Format:
+ * `projects/{project}/locations/{location}/indexes/{index}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Index getIndex(String name) {
+ GetIndexRequest request = GetIndexRequest.newBuilder().setName(name).build();
+ return getIndex(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an Index.
+ *
+ * {@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * GetIndexRequest request =
+ * GetIndexRequest.newBuilder()
+ * .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .build();
+ * Index response = indexServiceClient.getIndex(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Index getIndex(GetIndexRequest request) {
+ return getIndexCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets an Index.
+ *
+ * {@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * GetIndexRequest request =
+ * GetIndexRequest.newBuilder()
+ * .setName(IndexName.of("[PROJECT]", "[LOCATION]", "[INDEX]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Index element : indexServiceClient.listIndexes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to list the Indexes.
+ * Format: `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIndexesPagedResponse listIndexes(LocationName parent) {
+ ListIndexesRequest request =
+ ListIndexesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listIndexes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Indexes in a Location.
+ *
+ * {@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Index element : indexServiceClient.listIndexes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the Location from which to list the Indexes.
+ * Format: `projects/{project}/locations/{location}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIndexesPagedResponse listIndexes(String parent) {
+ ListIndexesRequest request = ListIndexesRequest.newBuilder().setParent(parent).build();
+ return listIndexes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Indexes in a Location.
+ *
+ * {@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * ListIndexesRequest request =
+ * ListIndexesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * for (Index element : indexServiceClient.listIndexes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListIndexesPagedResponse listIndexes(ListIndexesRequest request) {
+ return listIndexesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Indexes in a Location.
+ *
+ * {@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * ListIndexesRequest request =
+ * ListIndexesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * ListIndexesRequest request =
+ * ListIndexesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setReadMask(FieldMask.newBuilder().build())
+ * .build();
+ * while (true) {
+ * ListIndexesResponse response = indexServiceClient.listIndexesCallable().call(request);
+ * for (Index element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * Index index = Index.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Index response = indexServiceClient.updateIndexAsync(index, updateMask).get();
+ * }
+ * }
+ *
+ * @param index Required. The Index which updates the resource on the server.
+ * @param updateMask The update mask applies to the resource. For the `FieldMask` definition, see
+ * [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * UpdateIndexRequest request =
+ * UpdateIndexRequest.newBuilder()
+ * .setIndex(Index.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Index response = indexServiceClient.updateIndexAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (IndexServiceClient indexServiceClient = IndexServiceClient.create()) {
+ * UpdateIndexRequest request =
+ * UpdateIndexRequest.newBuilder()
+ * .setIndex(Index.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture