|
|
|
@ -166,6 +166,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: "/v1beta1/{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) = { |
|
|
|
@ -555,6 +564,28 @@ message ImportModelEvaluationRequest { |
|
|
|
|
ModelEvaluation model_evaluation = 2 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.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.v1beta1.ModelService.BatchImportModelEvaluationSlices] |
|
|
|
|
message BatchImportModelEvaluationSlicesResponse { |
|
|
|
|
// Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.name]. |
|
|
|
|
repeated string imported_model_evaluation_slices = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation]. |
|
|
|
|
message GetModelEvaluationRequest { |
|
|
|
|
// Required. The name of the ModelEvaluation resource. |
|
|
|
|