Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 39c28bf

Browse filesBrowse files
Google APIscopybara-github
authored andcommitted
feat: add deleteFeatureValues in aiplatform v1beta1 featurestore_service.proto
PiperOrigin-RevId: 474635535
1 parent 8b59cdf commit 39c28bf
Copy full SHA for 39c28bf

File tree

Expand file treeCollapse file tree

2 files changed

+79
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+79
-0
lines changed

‎google/cloud/aiplatform/v1beta1/aiplatform_v1beta1.yaml

Copy file name to clipboardExpand all lines: google/cloud/aiplatform/v1beta1/aiplatform_v1beta1.yaml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ types:
4444
- name: google.cloud.aiplatform.v1beta1.CreateMetadataStoreOperationMetadata
4545
- name: google.cloud.aiplatform.v1beta1.CreateSpecialistPoolOperationMetadata
4646
- name: google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata
47+
- name: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata
48+
- name: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse
4749
- name: google.cloud.aiplatform.v1beta1.DeleteMetadataStoreOperationMetadata
4850
- name: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata
4951
- name: google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata

‎google/cloud/aiplatform/v1beta1/featurestore_service.proto

Copy file name to clipboardExpand all lines: google/cloud/aiplatform/v1beta1/featurestore_service.proto
+77Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,29 @@ service FeaturestoreService {
280280
};
281281
}
282282

283+
// Delete Feature values from Featurestore.
284+
//
285+
// The progress of the deletion is tracked by the returned operation. The
286+
// deleted feature values are guaranteed to be invisible to subsequent read
287+
// operations after the operation is marked as successfully done.
288+
//
289+
// If a delete feature values operation fails, the feature values
290+
// returned from reads and exports may be inconsistent. If consistency is
291+
// required, the caller must retry the same delete request again and wait till
292+
// the new operation returned is marked as successfully done.
293+
rpc DeleteFeatureValues(DeleteFeatureValuesRequest)
294+
returns (google.longrunning.Operation) {
295+
option (google.api.http) = {
296+
post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:deleteFeatureValues"
297+
body: "*"
298+
};
299+
option (google.api.method_signature) = "entity_type";
300+
option (google.longrunning.operation_info) = {
301+
response_type: "DeleteFeatureValuesResponse"
302+
metadata_type: "DeleteFeatureValuesOperationMetadata"
303+
};
304+
}
305+
283306
// Searches Features matching a query in a given project.
284307
rpc SearchFeatures(SearchFeaturesRequest) returns (SearchFeaturesResponse) {
285308
option (google.api.http) = {
@@ -1207,6 +1230,12 @@ message BatchReadFeatureValuesOperationMetadata {
12071230
GenericOperationMetadata generic_metadata = 1;
12081231
}
12091232

1233+
// Details of operations that delete Feature values.
1234+
message DeleteFeatureValuesOperationMetadata {
1235+
// Operation metadata for Featurestore delete Features values.
1236+
GenericOperationMetadata generic_metadata = 1;
1237+
}
1238+
12101239
// Details of operations that perform create EntityType.
12111240
message CreateEntityTypeOperationMetadata {
12121241
// Operation metadata for EntityType.
@@ -1224,3 +1253,51 @@ message BatchCreateFeaturesOperationMetadata {
12241253
// Operation metadata for Feature.
12251254
GenericOperationMetadata generic_metadata = 1;
12261255
}
1256+
1257+
// Request message for
1258+
// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues].
1259+
message DeleteFeatureValuesRequest {
1260+
// Message to select entity.
1261+
// If an entity id is selected, all the feature values corresponding to the
1262+
// entity id will be deleted, including the entityId.
1263+
message SelectEntity {
1264+
// Required. Selectors choosing feature values of which entity id to be
1265+
// deleted from the EntityType.
1266+
EntityIdSelector entity_id_selector = 1
1267+
[(google.api.field_behavior) = REQUIRED];
1268+
}
1269+
1270+
// Defines options to select feature values to be deleted.
1271+
oneof DeleteOption {
1272+
// Select feature values to be deleted by specifying entities.
1273+
SelectEntity select_entity = 2;
1274+
}
1275+
1276+
// Required. The resource name of the EntityType grouping the Features for
1277+
// which values are being deleted from. Format:
1278+
// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
1279+
string entity_type = 1 [
1280+
(google.api.field_behavior) = REQUIRED,
1281+
(google.api.resource_reference) = {
1282+
type: "aiplatform.googleapis.com/EntityType"
1283+
}
1284+
];
1285+
}
1286+
1287+
// Response message for
1288+
// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues].
1289+
message DeleteFeatureValuesResponse {}
1290+
1291+
// Selector for entityId. Getting ids from the given source.
1292+
message EntityIdSelector {
1293+
// Details about the source data, including the location of the storage and
1294+
// the format.
1295+
oneof EntityIdsSource {
1296+
// Source of Csv
1297+
CsvSource csv_source = 3;
1298+
}
1299+
1300+
// Source column that holds entity IDs. If not provided, entity IDs are
1301+
// extracted from the column named `entity_id`.
1302+
string entity_id_field = 5;
1303+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.