@@ -166,6 +166,15 @@ service ModelService {
166166 option (google.api.method_signature ) = "parent,model_evaluation" ;
167167 }
168168
169+ // Imports a list of externally generated ModelEvaluationSlice.
170+ rpc BatchImportModelEvaluationSlices (BatchImportModelEvaluationSlicesRequest ) returns (BatchImportModelEvaluationSlicesResponse ) {
171+ option (google.api.http ) = {
172+ post : "/v1beta1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport"
173+ body : "*"
174+ };
175+ option (google.api.method_signature ) = "parent,model_evaluation_slices" ;
176+ }
177+
169178 // Gets a ModelEvaluation.
170179 rpc GetModelEvaluation (GetModelEvaluationRequest ) returns (ModelEvaluation ) {
171180 option (google.api.http ) = {
@@ -555,6 +564,28 @@ message ImportModelEvaluationRequest {
555564 ModelEvaluation model_evaluation = 2 [(google.api.field_behavior ) = REQUIRED ];
556565}
557566
567+ // Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices]
568+ message BatchImportModelEvaluationSlicesRequest {
569+ // Required. The name of the parent ModelEvaluation resource.
570+ // Format:
571+ // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
572+ string parent = 1 [
573+ (google.api.field_behavior ) = REQUIRED ,
574+ (google.api.resource_reference ) = {
575+ type : "aiplatform.googleapis.com/ModelEvaluation"
576+ }
577+ ];
578+
579+ // Required. Model evaluation slice resource to be imported.
580+ repeated ModelEvaluationSlice model_evaluation_slices = 2 [(google.api.field_behavior ) = REQUIRED ];
581+ }
582+
583+ // Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices]
584+ message BatchImportModelEvaluationSlicesResponse {
585+ // Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.name].
586+ repeated string imported_model_evaluation_slices = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
587+ }
588+
558589// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation].
559590message GetModelEvaluationRequest {
560591 // Required. The name of the ModelEvaluation resource.
0 commit comments