Skip to content

Commit d57f437

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: add BatchImportModelEvaluationSlices API in aiplatform v1 model_service.proto
PiperOrigin-RevId: 456604066
1 parent f3b7f03 commit d57f437

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

google/cloud/aiplatform/v1/model_service.proto

+31
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ service ModelService {
152152
option (google.api.method_signature) = "parent,model_evaluation";
153153
}
154154

155+
// Imports a list of externally generated ModelEvaluationSlice.
156+
rpc BatchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest) returns (BatchImportModelEvaluationSlicesResponse) {
157+
option (google.api.http) = {
158+
post: "/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport"
159+
body: "*"
160+
};
161+
option (google.api.method_signature) = "parent,model_evaluation_slices";
162+
}
163+
155164
// Gets a ModelEvaluation.
156165
rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) {
157166
option (google.api.http) = {
@@ -523,6 +532,28 @@ message ImportModelEvaluationRequest {
523532
ModelEvaluation model_evaluation = 2 [(google.api.field_behavior) = REQUIRED];
524533
}
525534

535+
// Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices]
536+
message BatchImportModelEvaluationSlicesRequest {
537+
// Required. The name of the parent ModelEvaluation resource.
538+
// Format:
539+
// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
540+
string parent = 1 [
541+
(google.api.field_behavior) = REQUIRED,
542+
(google.api.resource_reference) = {
543+
type: "aiplatform.googleapis.com/ModelEvaluation"
544+
}
545+
];
546+
547+
// Required. Model evaluation slice resource to be imported.
548+
repeated ModelEvaluationSlice model_evaluation_slices = 2 [(google.api.field_behavior) = REQUIRED];
549+
}
550+
551+
// Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices]
552+
message BatchImportModelEvaluationSlicesResponse {
553+
// Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name].
554+
repeated string imported_model_evaluation_slices = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
555+
}
556+
526557
// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation].
527558
message GetModelEvaluationRequest {
528559
// Required. The name of the ModelEvaluation resource.

0 commit comments

Comments
 (0)