Skip to content

Commit a9183e5

Browse files
feat: [aiplatform] add deleteFeatureValues in aiplatform v1beta1 featurestore_service.proto (#8409)
* feat: add deleteFeatureValues in aiplatform v1beta1 featurestore_service.proto PiperOrigin-RevId: 474635535 Source-Link: googleapis/googleapis@39c28bf Source-Link: https://github.com/googleapis/googleapis-gen/commit/71f2abfb343562ce40b79c3b56fc97ec5a0dccb1 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI3MWYyYWJmYjM0MzU2MmNlNDBiNzljM2I1NmZjOTdlYzVhMGRjY2IxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 25ca88b commit a9183e5

File tree

21 files changed

+5414
-31
lines changed

21 files changed

+5414
-31
lines changed

java-aiplatform/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ If you are using Maven without BOM, add this to your dependencies:
3838
If you are using Gradle 5.x or later, add this to your dependencies:
3939

4040
```Groovy
41-
implementation platform('com.google.cloud:libraries-bom:26.1.1')
41+
implementation platform('com.google.cloud:libraries-bom:26.1.2')
4242
4343
implementation 'com.google.cloud:google-cloud-aiplatform'
4444
```
4545
If you are using Gradle without BOM, add this to your dependencies:
4646

4747
```Groovy
48-
implementation 'com.google.cloud:google-cloud-aiplatform:3.2.0'
48+
implementation 'com.google.cloud:google-cloud-aiplatform:3.3.0'
4949
```
5050

5151
If you are using SBT, add this to your dependencies:
5252

5353
```Scala
54-
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.2.0"
54+
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.3.0"
5555
```
5656

5757
## Authentication

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,6 +3573,209 @@ public final UnaryCallable<ExportFeatureValuesRequest, Operation> exportFeatureV
35733573
return stub.exportFeatureValuesCallable();
35743574
}
35753575

3576+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3577+
/**
3578+
* Delete Feature values from Featurestore.
3579+
*
3580+
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
3581+
* values are guaranteed to be invisible to subsequent read operations after the operation is
3582+
* marked as successfully done.
3583+
*
3584+
* <p>If a delete feature values operation fails, the feature values returned from reads and
3585+
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
3586+
* request again and wait till the new operation returned is marked as successfully done.
3587+
*
3588+
* <p>Sample code:
3589+
*
3590+
* <pre>{@code
3591+
* // This snippet has been automatically generated and should be regarded as a code template only.
3592+
* // It will require modifications to work:
3593+
* // - It may require correct/in-range values for request initialization.
3594+
* // - It may require specifying regional endpoints when creating the service client as shown in
3595+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3596+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
3597+
* EntityTypeName entityType =
3598+
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
3599+
* DeleteFeatureValuesResponse response =
3600+
* featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
3601+
* }
3602+
* }</pre>
3603+
*
3604+
* @param entityType Required. The resource name of the EntityType grouping the Features for which
3605+
* values are being deleted from. Format:
3606+
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
3607+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
3608+
*/
3609+
public final OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
3610+
deleteFeatureValuesAsync(EntityTypeName entityType) {
3611+
DeleteFeatureValuesRequest request =
3612+
DeleteFeatureValuesRequest.newBuilder()
3613+
.setEntityType(entityType == null ? null : entityType.toString())
3614+
.build();
3615+
return deleteFeatureValuesAsync(request);
3616+
}
3617+
3618+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3619+
/**
3620+
* Delete Feature values from Featurestore.
3621+
*
3622+
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
3623+
* values are guaranteed to be invisible to subsequent read operations after the operation is
3624+
* marked as successfully done.
3625+
*
3626+
* <p>If a delete feature values operation fails, the feature values returned from reads and
3627+
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
3628+
* request again and wait till the new operation returned is marked as successfully done.
3629+
*
3630+
* <p>Sample code:
3631+
*
3632+
* <pre>{@code
3633+
* // This snippet has been automatically generated and should be regarded as a code template only.
3634+
* // It will require modifications to work:
3635+
* // - It may require correct/in-range values for request initialization.
3636+
* // - It may require specifying regional endpoints when creating the service client as shown in
3637+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3638+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
3639+
* String entityType =
3640+
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
3641+
* .toString();
3642+
* DeleteFeatureValuesResponse response =
3643+
* featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
3644+
* }
3645+
* }</pre>
3646+
*
3647+
* @param entityType Required. The resource name of the EntityType grouping the Features for which
3648+
* values are being deleted from. Format:
3649+
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
3650+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
3651+
*/
3652+
public final OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
3653+
deleteFeatureValuesAsync(String entityType) {
3654+
DeleteFeatureValuesRequest request =
3655+
DeleteFeatureValuesRequest.newBuilder().setEntityType(entityType).build();
3656+
return deleteFeatureValuesAsync(request);
3657+
}
3658+
3659+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3660+
/**
3661+
* Delete Feature values from Featurestore.
3662+
*
3663+
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
3664+
* values are guaranteed to be invisible to subsequent read operations after the operation is
3665+
* marked as successfully done.
3666+
*
3667+
* <p>If a delete feature values operation fails, the feature values returned from reads and
3668+
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
3669+
* request again and wait till the new operation returned is marked as successfully done.
3670+
*
3671+
* <p>Sample code:
3672+
*
3673+
* <pre>{@code
3674+
* // This snippet has been automatically generated and should be regarded as a code template only.
3675+
* // It will require modifications to work:
3676+
* // - It may require correct/in-range values for request initialization.
3677+
* // - It may require specifying regional endpoints when creating the service client as shown in
3678+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3679+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
3680+
* DeleteFeatureValuesRequest request =
3681+
* DeleteFeatureValuesRequest.newBuilder()
3682+
* .setEntityType(
3683+
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
3684+
* .toString())
3685+
* .build();
3686+
* DeleteFeatureValuesResponse response =
3687+
* featurestoreServiceClient.deleteFeatureValuesAsync(request).get();
3688+
* }
3689+
* }</pre>
3690+
*
3691+
* @param request The request object containing all of the parameters for the API call.
3692+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
3693+
*/
3694+
public final OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
3695+
deleteFeatureValuesAsync(DeleteFeatureValuesRequest request) {
3696+
return deleteFeatureValuesOperationCallable().futureCall(request);
3697+
}
3698+
3699+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3700+
/**
3701+
* Delete Feature values from Featurestore.
3702+
*
3703+
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
3704+
* values are guaranteed to be invisible to subsequent read operations after the operation is
3705+
* marked as successfully done.
3706+
*
3707+
* <p>If a delete feature values operation fails, the feature values returned from reads and
3708+
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
3709+
* request again and wait till the new operation returned is marked as successfully done.
3710+
*
3711+
* <p>Sample code:
3712+
*
3713+
* <pre>{@code
3714+
* // This snippet has been automatically generated and should be regarded as a code template only.
3715+
* // It will require modifications to work:
3716+
* // - It may require correct/in-range values for request initialization.
3717+
* // - It may require specifying regional endpoints when creating the service client as shown in
3718+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3719+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
3720+
* DeleteFeatureValuesRequest request =
3721+
* DeleteFeatureValuesRequest.newBuilder()
3722+
* .setEntityType(
3723+
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
3724+
* .toString())
3725+
* .build();
3726+
* OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata> future =
3727+
* featurestoreServiceClient.deleteFeatureValuesOperationCallable().futureCall(request);
3728+
* // Do something.
3729+
* DeleteFeatureValuesResponse response = future.get();
3730+
* }
3731+
* }</pre>
3732+
*/
3733+
public final OperationCallable<
3734+
DeleteFeatureValuesRequest,
3735+
DeleteFeatureValuesResponse,
3736+
DeleteFeatureValuesOperationMetadata>
3737+
deleteFeatureValuesOperationCallable() {
3738+
return stub.deleteFeatureValuesOperationCallable();
3739+
}
3740+
3741+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3742+
/**
3743+
* Delete Feature values from Featurestore.
3744+
*
3745+
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
3746+
* values are guaranteed to be invisible to subsequent read operations after the operation is
3747+
* marked as successfully done.
3748+
*
3749+
* <p>If a delete feature values operation fails, the feature values returned from reads and
3750+
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
3751+
* request again and wait till the new operation returned is marked as successfully done.
3752+
*
3753+
* <p>Sample code:
3754+
*
3755+
* <pre>{@code
3756+
* // This snippet has been automatically generated and should be regarded as a code template only.
3757+
* // It will require modifications to work:
3758+
* // - It may require correct/in-range values for request initialization.
3759+
* // - It may require specifying regional endpoints when creating the service client as shown in
3760+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3761+
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
3762+
* DeleteFeatureValuesRequest request =
3763+
* DeleteFeatureValuesRequest.newBuilder()
3764+
* .setEntityType(
3765+
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
3766+
* .toString())
3767+
* .build();
3768+
* ApiFuture<Operation> future =
3769+
* featurestoreServiceClient.deleteFeatureValuesCallable().futureCall(request);
3770+
* // Do something.
3771+
* Operation response = future.get();
3772+
* }
3773+
* }</pre>
3774+
*/
3775+
public final UnaryCallable<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesCallable() {
3776+
return stub.deleteFeatureValuesCallable();
3777+
}
3778+
35763779
// AUTO-GENERATED DOCUMENTATION AND METHOD.
35773780
/**
35783781
* Searches Features matching a query in a given project.

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,21 @@ public UnaryCallSettings<ExportFeatureValuesRequest, Operation> exportFeatureVal
283283
.exportFeatureValuesOperationSettings();
284284
}
285285

286+
/** Returns the object with the settings used for calls to deleteFeatureValues. */
287+
public UnaryCallSettings<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesSettings() {
288+
return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteFeatureValuesSettings();
289+
}
290+
291+
/** Returns the object with the settings used for calls to deleteFeatureValues. */
292+
public OperationCallSettings<
293+
DeleteFeatureValuesRequest,
294+
DeleteFeatureValuesResponse,
295+
DeleteFeatureValuesOperationMetadata>
296+
deleteFeatureValuesOperationSettings() {
297+
return ((FeaturestoreServiceStubSettings) getStubSettings())
298+
.deleteFeatureValuesOperationSettings();
299+
}
300+
286301
/** Returns the object with the settings used for calls to searchFeatures. */
287302
public PagedCallSettings<
288303
SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>
@@ -608,6 +623,21 @@ public UnaryCallSettings.Builder<DeleteFeatureRequest, Operation> deleteFeatureS
608623
return getStubSettingsBuilder().exportFeatureValuesOperationSettings();
609624
}
610625

626+
/** Returns the builder for the settings used for calls to deleteFeatureValues. */
627+
public UnaryCallSettings.Builder<DeleteFeatureValuesRequest, Operation>
628+
deleteFeatureValuesSettings() {
629+
return getStubSettingsBuilder().deleteFeatureValuesSettings();
630+
}
631+
632+
/** Returns the builder for the settings used for calls to deleteFeatureValues. */
633+
public OperationCallSettings.Builder<
634+
DeleteFeatureValuesRequest,
635+
DeleteFeatureValuesResponse,
636+
DeleteFeatureValuesOperationMetadata>
637+
deleteFeatureValuesOperationSettings() {
638+
return getStubSettingsBuilder().deleteFeatureValuesOperationSettings();
639+
}
640+
611641
/** Returns the builder for the settings used for calls to searchFeatures. */
612642
public PagedCallSettings.Builder<
613643
SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@
205205
"DeleteFeature": {
206206
"methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"]
207207
},
208+
"DeleteFeatureValues": {
209+
"methods": ["deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesOperationCallable", "deleteFeatureValuesCallable"]
210+
},
208211
"DeleteFeaturestore": {
209212
"methods": ["deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreOperationCallable", "deleteFeaturestoreCallable"]
210213
},

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest;
4141
import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest;
4242
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest;
43+
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata;
44+
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest;
45+
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse;
4346
import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest;
4447
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
4548
import com.google.cloud.aiplatform.v1beta1.EntityType;
@@ -261,6 +264,19 @@ public UnaryCallable<ExportFeatureValuesRequest, Operation> exportFeatureValuesC
261264
throw new UnsupportedOperationException("Not implemented: exportFeatureValuesCallable()");
262265
}
263266

267+
public OperationCallable<
268+
DeleteFeatureValuesRequest,
269+
DeleteFeatureValuesResponse,
270+
DeleteFeatureValuesOperationMetadata>
271+
deleteFeatureValuesOperationCallable() {
272+
throw new UnsupportedOperationException(
273+
"Not implemented: deleteFeatureValuesOperationCallable()");
274+
}
275+
276+
public UnaryCallable<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesCallable() {
277+
throw new UnsupportedOperationException("Not implemented: deleteFeatureValuesCallable()");
278+
}
279+
264280
public UnaryCallable<SearchFeaturesRequest, SearchFeaturesPagedResponse>
265281
searchFeaturesPagedCallable() {
266282
throw new UnsupportedOperationException("Not implemented: searchFeaturesPagedCallable()");

0 commit comments

Comments
 (0)