Skip to content

Commit

Permalink
feat: add BatchImportModelEvaluationSlices API in aiplatform v1 model…
Browse files Browse the repository at this point in the history
…_service.proto

PiperOrigin-RevId: 456604066
  • Loading branch information
Google APIs authored and copybara-github committed Jun 22, 2022
1 parent f3b7f03 commit d57f437
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions google/cloud/aiplatform/v1/model_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ service ModelService {
option (google.api.method_signature) = "parent,model_evaluation";
}

// Imports a list of externally generated ModelEvaluationSlice.
rpc BatchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest) returns (BatchImportModelEvaluationSlicesResponse) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport"
body: "*"
};
option (google.api.method_signature) = "parent,model_evaluation_slices";
}

// Gets a ModelEvaluation.
rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) {
option (google.api.http) = {
Expand Down Expand Up @@ -523,6 +532,28 @@ message ImportModelEvaluationRequest {
ModelEvaluation model_evaluation = 2 [(google.api.field_behavior) = REQUIRED];
}

// Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices]
message BatchImportModelEvaluationSlicesRequest {
// Required. The name of the parent ModelEvaluation resource.
// Format:
// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "aiplatform.googleapis.com/ModelEvaluation"
}
];

// Required. Model evaluation slice resource to be imported.
repeated ModelEvaluationSlice model_evaluation_slices = 2 [(google.api.field_behavior) = REQUIRED];
}

// Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices]
message BatchImportModelEvaluationSlicesResponse {
// Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name].
repeated string imported_model_evaluation_slices = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation].
message GetModelEvaluationRequest {
// Required. The name of the ModelEvaluation resource.
Expand Down

0 comments on commit d57f437

Please sign in to comment.