@@ -3573,6 +3573,209 @@ public final UnaryCallable<ExportFeatureValuesRequest, Operation> exportFeatureV
3573
3573
return stub .exportFeatureValuesCallable ();
3574
3574
}
3575
3575
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
+
3576
3779
// AUTO-GENERATED DOCUMENTATION AND METHOD.
3577
3780
/**
3578
3781
* Searches Features matching a query in a given project.
0 commit comments