Skip to content

Commit 0dd9815

Browse files
Google APIscopybara-github
authored andcommitted
feat: add WriteFeatureValues in aiplatform v1beta1 featurestore_online_service.proto
PiperOrigin-RevId: 467107520
1 parent a50718e commit 0dd9815

2 files changed

Lines changed: 51 additions & 8 deletions

File tree

google/cloud/aiplatform/v1beta1/aiplatform_v1beta1.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ backend:
131131
deadline: 30.0
132132
- selector: 'google.cloud.aiplatform.v1beta1.EndpointService.*'
133133
deadline: 60.0
134-
- selector: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues
135-
deadline: 60.0
136-
- selector: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValues
134+
- selector: 'google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.*'
137135
deadline: 60.0
138136
- selector: 'google.cloud.aiplatform.v1beta1.FeaturestoreService.*'
139137
deadline: 60.0
@@ -530,11 +528,7 @@ authentication:
530528
oauth:
531529
canonical_scopes: |-
532530
https://www.googleapis.com/auth/cloud-platform
533-
- selector: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues
534-
oauth:
535-
canonical_scopes: |-
536-
https://www.googleapis.com/auth/cloud-platform
537-
- selector: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValues
531+
- selector: 'google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.*'
538532
oauth:
539533
canonical_scopes: |-
540534
https://www.googleapis.com/auth/cloud-platform

google/cloud/aiplatform/v1beta1/featurestore_online_service.proto

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,55 @@ service FeaturestoreOnlineServingService {
5858
};
5959
option (google.api.method_signature) = "entity_type";
6060
}
61+
62+
// Writes Feature values of one or more entities of an EntityType.
63+
//
64+
// The Feature values are merged into existing entities if any. The Feature
65+
// values to be written must have timestamp within the online storage
66+
// retention.
67+
rpc WriteFeatureValues(WriteFeatureValuesRequest) returns (WriteFeatureValuesResponse) {
68+
option (google.api.http) = {
69+
post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues"
70+
body: "*"
71+
};
72+
option (google.api.method_signature) = "entity_type,payloads";
73+
}
74+
}
75+
76+
// Request message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues].
77+
message WriteFeatureValuesRequest {
78+
// Required. The resource name of the EntityType for the entities being written.
79+
// Value format: `projects/{project}/locations/{location}/featurestores/
80+
// {featurestore}/entityTypes/{entityType}`. For example,
81+
// for a machine learning model predicting user clicks on a website, an
82+
// EntityType ID could be `user`.
83+
string entity_type = 1 [
84+
(google.api.field_behavior) = REQUIRED,
85+
(google.api.resource_reference) = {
86+
type: "aiplatform.googleapis.com/EntityType"
87+
}
88+
];
89+
90+
// Required. The entities to be written. Up to 100,000 feature values can be written
91+
// across all `payloads`.
92+
repeated WriteFeatureValuesPayload payloads = 2 [(google.api.field_behavior) = REQUIRED];
93+
}
94+
95+
// Contains Feature values to be written for a specific entity.
96+
message WriteFeatureValuesPayload {
97+
// Required. The ID of the entity.
98+
string entity_id = 1 [(google.api.field_behavior) = REQUIRED];
99+
100+
// Required. Feature values to be written, mapping from Feature ID to value. Up to
101+
// 100,000 `feature_values` entries may be written across all payloads. The
102+
// feature generation time, aligned by days, must be no older than five
103+
// years (1825 days) and no later than one year (366 days) in the future.
104+
map<string, FeatureValue> feature_values = 2 [(google.api.field_behavior) = REQUIRED];
105+
}
106+
107+
// Response message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues].
108+
message WriteFeatureValuesResponse {
109+
61110
}
62111

63112
// Request message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues].

0 commit comments

Comments
 (0)