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