@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
2222import "google/api/resource.proto" ;
2323import "google/cloud/aiplatform/v1/encryption_spec.proto" ;
2424import "google/cloud/aiplatform/v1/evaluated_annotation.proto" ;
25+ import "google/cloud/aiplatform/v1/explanation.proto" ;
2526import "google/cloud/aiplatform/v1/io.proto" ;
2627import "google/cloud/aiplatform/v1/model.proto" ;
2728import "google/cloud/aiplatform/v1/model_evaluation.proto" ;
@@ -92,6 +93,20 @@ service ModelService {
9293 option (google.api.method_signature ) = "model,update_mask" ;
9394 }
9495
96+ // Incrementally update the dataset used for an examples model.
97+ rpc UpdateExplanationDataset (UpdateExplanationDatasetRequest )
98+ returns (google.longrunning.Operation ) {
99+ option (google.api.http ) = {
100+ post : "/v1/{model=projects/*/locations/*/models/*}:updateExplanationDataset"
101+ body : "*"
102+ };
103+ option (google.api.method_signature ) = "model" ;
104+ option (google.longrunning.operation_info ) = {
105+ response_type : "UpdateExplanationDatasetResponse"
106+ metadata_type : "UpdateExplanationDatasetOperationMetadata"
107+ };
108+ }
109+
95110 // Deletes a Model.
96111 //
97112 // A model cannot be deleted if any
@@ -484,6 +499,29 @@ message UpdateModelRequest {
484499 [(google.api.field_behavior ) = REQUIRED ];
485500}
486501
502+ // Request message for
503+ // [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset].
504+ message UpdateExplanationDatasetRequest {
505+ // Required. The resource name of the Model to update.
506+ // Format: `projects/{project}/locations/{location}/models/{model}`
507+ string model = 1 [
508+ (google.api.field_behavior ) = REQUIRED ,
509+ (google.api.resource_reference ) = {
510+ type : "aiplatform.googleapis.com/Model"
511+ }
512+ ];
513+
514+ // The example config containing the location of the dataset.
515+ Examples examples = 2 ;
516+ }
517+
518+ // Runtime operation information for
519+ // [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset].
520+ message UpdateExplanationDatasetOperationMetadata {
521+ // The common part of the operation metadata.
522+ GenericOperationMetadata generic_metadata = 1 ;
523+ }
524+
487525// Request message for
488526// [ModelService.DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel].
489527message DeleteModelRequest {
@@ -584,6 +622,11 @@ message ExportModelRequest {
584622 OutputConfig output_config = 2 [(google.api.field_behavior ) = REQUIRED ];
585623}
586624
625+ // Response message of
626+ // [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset]
627+ // operation.
628+ message UpdateExplanationDatasetResponse {}
629+
587630// Details of
588631// [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel]
589632// operation.
0 commit comments