Skip to content

Commit af65a19

Browse files
Google APIscopybara-github
authored andcommitted
feat: add timestamp_outside_retention_rows_count to ImportFeatureValuesResponse and ImportFeatureValuesOperationMetadata in aiplatform v1 featurestore_service.proto
feat: add RemoveContextChildren rpc to aiplatform v1 metadata_service.proto feat: add order_by to ListArtifactsRequest, ListContextsRequest, and ListExecutionsRequest in aiplatform v1 metadata_service.proto PiperOrigin-RevId: 475580702
1 parent 24392ec commit af65a19

6 files changed

Lines changed: 97 additions & 2 deletions

File tree

google/cloud/aiplatform/v1/batch_prediction_job.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ message BatchPredictionJob {
154154
// Required. The user-defined name of this BatchPredictionJob.
155155
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
156156

157-
// The name of the Model resoure that produces the predictions via this job,
157+
// The name of the Model resource that produces the predictions via this job,
158158
// must share the same ancestor Location.
159159
// Starting this job has no impact on any existing deployments of the Model
160160
// and their resources.

google/cloud/aiplatform/v1/custom_job.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ message CustomJob {
106106
}
107107

108108
// Represents the spec of a CustomJob.
109-
// Next Id: 15
110109
message CustomJobSpec {
111110
// Required. The spec of the worker pools including machine type and Docker image.
112111
// All worker pools except the first one are optional and can be skipped by

google/cloud/aiplatform/v1/featurestore_service.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ message ImportFeatureValuesResponse {
525525
// * Having a null timestamp.
526526
// * Not being parsable (applicable for CSV sources).
527527
int64 invalid_row_count = 6;
528+
529+
// The number rows that weren't ingested due to having feature timestamps
530+
// outside the retention boundary.
531+
int64 timestamp_outside_retention_rows_count = 4;
528532
}
529533

530534
// Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues].
@@ -1193,6 +1197,10 @@ message ImportFeatureValuesOperationMetadata {
11931197
// * Having a null timestamp.
11941198
// * Not being parsable (applicable for CSV sources).
11951199
int64 invalid_row_count = 6;
1200+
1201+
// The number rows that weren't ingested due to having timestamps outside the
1202+
// retention boundary.
1203+
int64 timestamp_outside_retention_rows_count = 7;
11961204
}
11971205

11981206
// Details of operations that exports Features values.

google/cloud/aiplatform/v1/job_service.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,13 +388,18 @@ message ListCustomJobsRequest {
388388
// * `state` supports `=`, `!=` comparisons.
389389
// * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
390390
// `create_time` must be in RFC 3339 format.
391+
// * `labels` supports general map functions that is:
392+
// `labels.key=value` - key:value equality
393+
// `labels.key:* - key existence
391394
//
392395
// Some examples of using the filter are:
393396
//
394397
// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
395398
// * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
396399
// * `NOT display_name="my_job"`
397400
// * `create_time>"2021-05-18T00:00:00Z"`
401+
// * `labels.keyA=valueA`
402+
// * `labels.keyB:*`
398403
string filter = 2;
399404

400405
// The standard list page size.
@@ -493,13 +498,18 @@ message ListDataLabelingJobsRequest {
493498
// * `state` supports `=`, `!=` comparisons.
494499
// * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
495500
// `create_time` must be in RFC 3339 format.
501+
// * `labels` supports general map functions that is:
502+
// `labels.key=value` - key:value equality
503+
// `labels.key:* - key existence
496504
//
497505
// Some examples of using the filter are:
498506
//
499507
// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
500508
// * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
501509
// * `NOT display_name="my_job"`
502510
// * `create_time>"2021-05-18T00:00:00Z"`
511+
// * `labels.keyA=valueA`
512+
// * `labels.keyB:*`
503513
string filter = 2;
504514

505515
// The standard list page size.
@@ -603,13 +613,18 @@ message ListHyperparameterTuningJobsRequest {
603613
// * `state` supports `=`, `!=` comparisons.
604614
// * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
605615
// `create_time` must be in RFC 3339 format.
616+
// * `labels` supports general map functions that is:
617+
// `labels.key=value` - key:value equality
618+
// `labels.key:* - key existence
606619
//
607620
// Some examples of using the filter are:
608621
//
609622
// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
610623
// * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
611624
// * `NOT display_name="my_job"`
612625
// * `create_time>"2021-05-18T00:00:00Z"`
626+
// * `labels.keyA=valueA`
627+
// * `labels.keyB:*`
613628
string filter = 2;
614629

615630
// The standard list page size.
@@ -711,13 +726,18 @@ message ListBatchPredictionJobsRequest {
711726
// * `state` supports `=`, `!=` comparisons.
712727
// * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
713728
// `create_time` must be in RFC 3339 format.
729+
// * `labels` supports general map functions that is:
730+
// `labels.key=value` - key:value equality
731+
// `labels.key:* - key existence
714732
//
715733
// Some examples of using the filter are:
716734
//
717735
// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
718736
// * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
719737
// * `NOT display_name="my_job"`
720738
// * `create_time>"2021-05-18T00:00:00Z"`
739+
// * `labels.keyA=valueA`
740+
// * `labels.keyB:*`
721741
string filter = 2;
722742

723743
// The standard list page size.
@@ -891,13 +911,18 @@ message ListModelDeploymentMonitoringJobsRequest {
891911
// * `state` supports `=`, `!=` comparisons.
892912
// * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
893913
// `create_time` must be in RFC 3339 format.
914+
// * `labels` supports general map functions that is:
915+
// `labels.key=value` - key:value equality
916+
// `labels.key:* - key existence
894917
//
895918
// Some examples of using the filter are:
896919
//
897920
// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
898921
// * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
899922
// * `NOT display_name="my_job"`
900923
// * `create_time>"2021-05-18T00:00:00Z"`
924+
// * `labels.keyA=valueA`
925+
// * `labels.keyB:*`
901926
string filter = 2;
902927

903928
// The standard list page size.

google/cloud/aiplatform/v1/metadata_service.proto

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,17 @@ service MetadataService {
228228
option (google.api.method_signature) = "context,child_contexts";
229229
}
230230

231+
// Remove a set of children contexts from a parent Context. If any of the
232+
// child Contexts were NOT added to the parent Context, they are
233+
// simply skipped.
234+
rpc RemoveContextChildren(RemoveContextChildrenRequest) returns (RemoveContextChildrenResponse) {
235+
option (google.api.http) = {
236+
post: "/v1/{context=projects/*/locations/*/metadataStores/*/contexts/*}:removeContextChildren"
237+
body: "*"
238+
};
239+
option (google.api.method_signature) = "context,child_contexts";
240+
}
241+
231242
// Retrieves Artifacts and Executions within the specified Context, connected
232243
// by Event edges and returned as a LineageSubgraph.
233244
rpc QueryContextLineageSubgraph(QueryContextLineageSubgraphRequest) returns (LineageSubgraph) {
@@ -549,6 +560,14 @@ message ListArtifactsRequest {
549560
//
550561
// For example: `display_name = "test" AND metadata.field1.bool_value = true`.
551562
string filter = 4;
563+
564+
// How the list of messages is ordered. Specify the values to order by and an
565+
// ordering operation. The default sorting order is ascending. To specify
566+
// descending order for a field, users append a " desc" suffix; for example:
567+
// "foo desc, bar".
568+
// Subfields are specified with a `.` character, such as foo.bar.
569+
// see https://google.aip.dev/132#ordering for more details.
570+
string order_by = 5;
552571
}
553572

554573
// Response message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts].
@@ -735,6 +754,14 @@ message ListContextsRequest {
735754
//
736755
// For example: `display_name = "test" AND metadata.field1.bool_value = true`.
737756
string filter = 4;
757+
758+
// How the list of messages is ordered. Specify the values to order by and an
759+
// ordering operation. The default sorting order is ascending. To specify
760+
// descending order for a field, users append a " desc" suffix; for example:
761+
// "foo desc, bar".
762+
// Subfields are specified with a `.` character, such as foo.bar.
763+
// see https://google.aip.dev/132#ordering for more details.
764+
string order_by = 5;
738765
}
739766

740767
// Response message for [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts].
@@ -890,6 +917,31 @@ message AddContextChildrenResponse {
890917

891918
}
892919

920+
// Request message for
921+
// [MetadataService.DeleteContextChildrenRequest][].
922+
message RemoveContextChildrenRequest {
923+
// Required. The resource name of the parent Context.
924+
//
925+
// Format:
926+
// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
927+
string context = 1 [
928+
(google.api.field_behavior) = REQUIRED,
929+
(google.api.resource_reference) = {
930+
type: "aiplatform.googleapis.com/Context"
931+
}
932+
];
933+
934+
// The resource names of the child Contexts.
935+
repeated string child_contexts = 2 [(google.api.resource_reference) = {
936+
type: "aiplatform.googleapis.com/Context"
937+
}];
938+
}
939+
940+
// Response message for [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren].
941+
message RemoveContextChildrenResponse {
942+
943+
}
944+
893945
// Request message for [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraph].
894946
message QueryContextLineageSubgraphRequest {
895947
// Required. The resource name of the Context whose Artifacts and Executions
@@ -999,6 +1051,14 @@ message ListExecutionsRequest {
9991051
// logical operators (`AND` & `OR`).
10001052
// For example: `display_name = "test" AND metadata.field1.bool_value = true`.
10011053
string filter = 4;
1054+
1055+
// How the list of messages is ordered. Specify the values to order by and an
1056+
// ordering operation. The default sorting order is ascending. To specify
1057+
// descending order for a field, users append a " desc" suffix; for example:
1058+
// "foo desc, bar".
1059+
// Subfields are specified with a `.` character, such as foo.bar.
1060+
// see https://google.aip.dev/132#ordering for more details.
1061+
string order_by = 5;
10021062
}
10031063

10041064
// Response message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions].

google/cloud/aiplatform/v1/pipeline_service.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ message ListTrainingPipelinesRequest {
201201
// * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
202202
// * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
203203
// `create_time` must be in RFC 3339 format.
204+
// * `labels` supports general map functions that is:
205+
// `labels.key=value` - key:value equality
206+
// `labels.key:* - key existence
204207
//
205208
// Some examples of using the filter are:
206209
//

0 commit comments

Comments
 (0)