Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
feat: add deleteFeatureValues in aiplatform v1beta1 featurestore_serv…
Browse files Browse the repository at this point in the history
…ice.proto (#1048)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474635535

Source-Link: googleapis/googleapis@39c28bf

Source-Link: https://github.com/googleapis/googleapis-gen/commit/71f2abfb343562ce40b79c3b56fc97ec5a0dccb1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzFmMmFiZmIzNDM1NjJjZTQwYjc5YzNiNTZmYzk3ZWM1YTBkY2NiMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 20, 2022
1 parent fbef3e7 commit bf46023
Show file tree
Hide file tree
Showing 19 changed files with 5,337 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3573,6 +3573,209 @@ public final UnaryCallable<ExportFeatureValuesRequest, Operation> exportFeatureV
return stub.exportFeatureValuesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* EntityTypeName entityType =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
* DeleteFeatureValuesResponse response =
* featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
* }
* }</pre>
*
* @param entityType Required. The resource name of the EntityType grouping the Features for which
* values are being deleted from. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesAsync(EntityTypeName entityType) {
DeleteFeatureValuesRequest request =
DeleteFeatureValuesRequest.newBuilder()
.setEntityType(entityType == null ? null : entityType.toString())
.build();
return deleteFeatureValuesAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String entityType =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString();
* DeleteFeatureValuesResponse response =
* featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
* }
* }</pre>
*
* @param entityType Required. The resource name of the EntityType grouping the Features for which
* values are being deleted from. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesAsync(String entityType) {
DeleteFeatureValuesRequest request =
DeleteFeatureValuesRequest.newBuilder().setEntityType(entityType).build();
return deleteFeatureValuesAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* DeleteFeatureValuesRequest request =
* DeleteFeatureValuesRequest.newBuilder()
* .setEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .build();
* DeleteFeatureValuesResponse response =
* featurestoreServiceClient.deleteFeatureValuesAsync(request).get();
* }
* }</pre>
*
* @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<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesAsync(DeleteFeatureValuesRequest request) {
return deleteFeatureValuesOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* DeleteFeatureValuesRequest request =
* DeleteFeatureValuesRequest.newBuilder()
* .setEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .build();
* OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata> future =
* featurestoreServiceClient.deleteFeatureValuesOperationCallable().futureCall(request);
* // Do something.
* DeleteFeatureValuesResponse response = future.get();
* }
* }</pre>
*/
public final OperationCallable<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationCallable() {
return stub.deleteFeatureValuesOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* DeleteFeatureValuesRequest request =
* DeleteFeatureValuesRequest.newBuilder()
* .setEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .build();
* ApiFuture<Operation> future =
* featurestoreServiceClient.deleteFeatureValuesCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesCallable() {
return stub.deleteFeatureValuesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches Features matching a query in a given project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,21 @@ public UnaryCallSettings<ExportFeatureValuesRequest, Operation> exportFeatureVal
.exportFeatureValuesOperationSettings();
}

/** Returns the object with the settings used for calls to deleteFeatureValues. */
public UnaryCallSettings<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesSettings() {
return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteFeatureValuesSettings();
}

/** Returns the object with the settings used for calls to deleteFeatureValues. */
public OperationCallSettings<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationSettings() {
return ((FeaturestoreServiceStubSettings) getStubSettings())
.deleteFeatureValuesOperationSettings();
}

/** Returns the object with the settings used for calls to searchFeatures. */
public PagedCallSettings<
SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>
Expand Down Expand Up @@ -608,6 +623,21 @@ public UnaryCallSettings.Builder<DeleteFeatureRequest, Operation> deleteFeatureS
return getStubSettingsBuilder().exportFeatureValuesOperationSettings();
}

/** Returns the builder for the settings used for calls to deleteFeatureValues. */
public UnaryCallSettings.Builder<DeleteFeatureValuesRequest, Operation>
deleteFeatureValuesSettings() {
return getStubSettingsBuilder().deleteFeatureValuesSettings();
}

/** Returns the builder for the settings used for calls to deleteFeatureValues. */
public OperationCallSettings.Builder<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationSettings() {
return getStubSettingsBuilder().deleteFeatureValuesOperationSettings();
}

/** Returns the builder for the settings used for calls to searchFeatures. */
public PagedCallSettings.Builder<
SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@
"DeleteFeature": {
"methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"]
},
"DeleteFeatureValues": {
"methods": ["deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesOperationCallable", "deleteFeatureValuesCallable"]
},
"DeleteFeaturestore": {
"methods": ["deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreOperationCallable", "deleteFeaturestoreCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse;
import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.EntityType;
Expand Down Expand Up @@ -261,6 +264,19 @@ public UnaryCallable<ExportFeatureValuesRequest, Operation> exportFeatureValuesC
throw new UnsupportedOperationException("Not implemented: exportFeatureValuesCallable()");
}

public OperationCallable<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: deleteFeatureValuesOperationCallable()");
}

public UnaryCallable<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesCallable() {
throw new UnsupportedOperationException("Not implemented: deleteFeatureValuesCallable()");
}

public UnaryCallable<SearchFeaturesRequest, SearchFeaturesPagedResponse>
searchFeaturesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchFeaturesPagedCallable()");
Expand Down
Loading

0 comments on commit bf46023

Please # to comment.