BREAKING CHANGE: sampled_shapley_attribution moved into a oneof in explanation.proto. BREAKING CHANGE: field min renamed to min_value in ExplanationMetadata.InputMetadata.FeatureValueDomain in explanation_metadata.proto. BREAKING CHANGE: field max renamed to max_value in ExplanationMetadata.InputMetadata.FeatureValueDomain in explanation_metadata.proto. PiperOrigin-RevId: 340440278pull/627/head
parent
2d93f74422
commit
c570f55ea7
17 changed files with 1293 additions and 113 deletions
@ -0,0 +1,147 @@ |
||||
// Copyright 2020 Google LLC |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package google.cloud.aiplatform.v1beta1; |
||||
|
||||
import "google/api/field_behavior.proto"; |
||||
import "google/api/resource.proto"; |
||||
import "google/protobuf/timestamp.proto"; |
||||
import "google/api/annotations.proto"; |
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; |
||||
option java_multiple_files = true; |
||||
option java_outer_classname = "MigratableResourceProto"; |
||||
option java_package = "com.google.cloud.aiplatform.v1beta1"; |
||||
option (google.api.resource_definition) = { |
||||
type: "ml.googleapis.com/Version" |
||||
pattern: "projects/{project}/models/{model}/versions/{version}" |
||||
}; |
||||
option (google.api.resource_definition) = { |
||||
type: "automl.googleapis.com/Model" |
||||
pattern: "projects/{project}/locations/{location}/models/{model}" |
||||
}; |
||||
option (google.api.resource_definition) = { |
||||
type: "automl.googleapis.com/Dataset" |
||||
pattern: "projects/{project}/locations/{location}/datasets/{dataset}" |
||||
}; |
||||
option (google.api.resource_definition) = { |
||||
type: "datalabeling.googleapis.com/Dataset" |
||||
pattern: "projects/{project}/datasets/{dataset}" |
||||
}; |
||||
option (google.api.resource_definition) = { |
||||
type: "datalabeling.googleapis.com/AnnotatedDataset" |
||||
pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}" |
||||
}; |
||||
|
||||
// Represents one resource that exists in automl.googleapis.com, |
||||
// datalabeling.googleapis.com or ml.googleapis.com. |
||||
message MigratableResource { |
||||
// Represents one model Version in ml.googleapis.com. |
||||
message MlEngineModelVersion { |
||||
// The ml.googleapis.com endpoint that this model Version currently lives |
||||
// in. |
||||
// Example values: |
||||
// * ml.googleapis.com |
||||
// * us-centrall-ml.googleapis.com |
||||
// * europe-west4-ml.googleapis.com |
||||
// * asia-east1-ml.googleapis.com |
||||
string endpoint = 1; |
||||
|
||||
// Full resource name of ml engine model Version. |
||||
// Format: `projects/{project}/models/{model}/versions/{version}`. |
||||
string version = 2 [(google.api.resource_reference) = { |
||||
type: "ml.googleapis.com/Version" |
||||
}]; |
||||
} |
||||
|
||||
// Represents one Model in automl.googleapis.com. |
||||
message AutomlModel { |
||||
// Full resource name of automl Model. |
||||
// Format: |
||||
// `projects/{project}/locations/{location}/models/{model}`. |
||||
string model = 1 [(google.api.resource_reference) = { |
||||
type: "automl.googleapis.com/Model" |
||||
}]; |
||||
|
||||
// The Model's display name in automl.googleapis.com. |
||||
string model_display_name = 3; |
||||
} |
||||
|
||||
// Represents one Dataset in automl.googleapis.com. |
||||
message AutomlDataset { |
||||
// Full resource name of automl Dataset. |
||||
// Format: |
||||
// `projects/{project}/locations/{location}/datasets/{dataset}`. |
||||
string dataset = 1 [(google.api.resource_reference) = { |
||||
type: "automl.googleapis.com/Dataset" |
||||
}]; |
||||
|
||||
// The Dataset's display name in automl.googleapis.com. |
||||
string dataset_display_name = 4; |
||||
} |
||||
|
||||
// Represents one Dataset in datalabeling.googleapis.com. |
||||
message DataLabelingDataset { |
||||
// Represents one AnnotatedDataset in datalabeling.googleapis.com. |
||||
message DataLabelingAnnotatedDataset { |
||||
// Full resource name of data labeling AnnotatedDataset. |
||||
// Format: |
||||
// |
||||
// `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. |
||||
string annotated_dataset = 1 [(google.api.resource_reference) = { |
||||
type: "datalabeling.googleapis.com/AnnotatedDataset" |
||||
}]; |
||||
|
||||
// The AnnotatedDataset's display name in datalabeling.googleapis.com. |
||||
string annotated_dataset_display_name = 3; |
||||
} |
||||
|
||||
// Full resource name of data labeling Dataset. |
||||
// Format: |
||||
// `projects/{project}/datasets/{dataset}`. |
||||
string dataset = 1 [(google.api.resource_reference) = { |
||||
type: "datalabeling.googleapis.com/Dataset" |
||||
}]; |
||||
|
||||
// The Dataset's display name in datalabeling.googleapis.com. |
||||
string dataset_display_name = 4; |
||||
|
||||
// The migratable AnnotatedDataset in datalabeling.googleapis.com belongs to |
||||
// the data labeling Dataset. |
||||
repeated DataLabelingAnnotatedDataset data_labeling_annotated_datasets = 3; |
||||
} |
||||
|
||||
oneof resource { |
||||
// Output only. Represents one Version in ml.googleapis.com. |
||||
MlEngineModelVersion ml_engine_model_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; |
||||
|
||||
// Output only. Represents one Model in automl.googleapis.com. |
||||
AutomlModel automl_model = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; |
||||
|
||||
// Output only. Represents one Dataset in automl.googleapis.com. |
||||
AutomlDataset automl_dataset = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; |
||||
|
||||
// Output only. Represents one Dataset in datalabeling.googleapis.com. |
||||
DataLabelingDataset data_labeling_dataset = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; |
||||
} |
||||
|
||||
// Output only. Timestamp when last migrate attempt on this MigratableResource started. |
||||
// Will not be set if there's no migrate attempt on this MigratableResource. |
||||
google.protobuf.Timestamp last_migrate_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; |
||||
|
||||
// Output only. Timestamp when this MigratableResource was last updated. |
||||
google.protobuf.Timestamp last_update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; |
||||
} |
@ -0,0 +1,270 @@ |
||||
// Copyright 2020 Google LLC |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package google.cloud.aiplatform.v1beta1; |
||||
|
||||
import "google/cloud/aiplatform/v1beta1/dataset.proto"; |
||||
import "google/cloud/aiplatform/v1beta1/model.proto"; |
||||
import "google/api/annotations.proto"; |
||||
import "google/api/client.proto"; |
||||
import "google/api/field_behavior.proto"; |
||||
import "google/api/resource.proto"; |
||||
import "google/cloud/aiplatform/v1beta1/migratable_resource.proto"; |
||||
import "google/cloud/aiplatform/v1beta1/operation.proto"; |
||||
import "google/longrunning/operations.proto"; |
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; |
||||
option java_multiple_files = true; |
||||
option java_outer_classname = "MigrationServiceProto"; |
||||
option java_package = "com.google.cloud.aiplatform.v1beta1"; |
||||
|
||||
// A service that migrates resources from automl.googleapis.com, |
||||
// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. |
||||
service MigrationService { |
||||
option (google.api.default_host) = "aiplatform.googleapis.com"; |
||||
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; |
||||
|
||||
// Searches all of the resources in automl.googleapis.com, |
||||
// datalabeling.googleapis.com and ml.googleapis.com that can be migrated to |
||||
// AI Platform's given location. |
||||
rpc SearchMigratableResources(SearchMigratableResourcesRequest) returns (SearchMigratableResourcesResponse) { |
||||
option (google.api.http) = { |
||||
post: "/v1beta1/{parent=projects/*/locations/*}/migratableResources:search" |
||||
body: "*" |
||||
}; |
||||
option (google.api.method_signature) = "parent"; |
||||
} |
||||
|
||||
// Batch migrates resources from ml.googleapis.com, automl.googleapis.com, |
||||
// and datalabeling.googleapis.com to AI Platform (Unified). |
||||
rpc BatchMigrateResources(BatchMigrateResourcesRequest) returns (google.longrunning.Operation) { |
||||
option (google.api.http) = { |
||||
post: "/v1beta1/{parent=projects/*/locations/*}/migratableResources:batchMigrate" |
||||
body: "*" |
||||
}; |
||||
option (google.api.method_signature) = "parent,migrate_resource_requests"; |
||||
option (google.longrunning.operation_info) = { |
||||
response_type: "BatchMigrateResourcesResponse" |
||||
metadata_type: "BatchMigrateResourcesOperationMetadata" |
||||
}; |
||||
} |
||||
} |
||||
|
||||
// Request message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources]. |
||||
message SearchMigratableResourcesRequest { |
||||
// Required. The location that the migratable resources should be searched from. |
||||
// It's the AI Platform location that the resources can be migrated to, not |
||||
// the resources' original location. |
||||
// Format: |
||||
// `projects/{project}/locations/{location}` |
||||
string parent = 1 [ |
||||
(google.api.field_behavior) = REQUIRED, |
||||
(google.api.resource_reference) = { |
||||
type: "locations.googleapis.com/Location" |
||||
} |
||||
]; |
||||
|
||||
// The standard page size. |
||||
// The default and maximum value is 100. |
||||
int32 page_size = 2; |
||||
|
||||
// The standard page token. |
||||
string page_token = 3; |
||||
} |
||||
|
||||
// Response message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources]. |
||||
message SearchMigratableResourcesResponse { |
||||
// All migratable resources that can be migrated to the |
||||
// location specified in the request. |
||||
repeated MigratableResource migratable_resources = 1; |
||||
|
||||
// The standard next-page token. |
||||
// The migratable_resources may not fill page_size in |
||||
// SearchMigratableResourcesRequest even when there are subsequent pages. |
||||
string next_page_token = 2; |
||||
} |
||||
|
||||
// Request message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. |
||||
message BatchMigrateResourcesRequest { |
||||
// Required. The location of the migrated resource will live in. |
||||
// Format: `projects/{project}/locations/{location}` |
||||
string parent = 1 [ |
||||
(google.api.field_behavior) = REQUIRED, |
||||
(google.api.resource_reference) = { |
||||
type: "locations.googleapis.com/Location" |
||||
} |
||||
]; |
||||
|
||||
// Required. The request messages specifying the resources to migrate. |
||||
// They must be in the same location as the destination. |
||||
// Up to 50 resources can be migrated in one batch. |
||||
repeated MigrateResourceRequest migrate_resource_requests = 2 [(google.api.field_behavior) = REQUIRED]; |
||||
} |
||||
|
||||
// Config of migrating one resource from automl.googleapis.com, |
||||
// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. |
||||
message MigrateResourceRequest { |
||||
// Config for migrating version in ml.googleapis.com to AI Platform's Model. |
||||
message MigrateMlEngineModelVersionConfig { |
||||
// Required. The ml.googleapis.com endpoint that this model version should be migrated |
||||
// from. |
||||
// Example values: |
||||
// |
||||
// * ml.googleapis.com |
||||
// |
||||
// * us-centrall-ml.googleapis.com |
||||
// |
||||
// * europe-west4-ml.googleapis.com |
||||
// |
||||
// * asia-east1-ml.googleapis.com |
||||
string endpoint = 1 [(google.api.field_behavior) = REQUIRED]; |
||||
|
||||
// Required. Full resource name of ml engine model version. |
||||
// Format: `projects/{project}/models/{model}/versions/{version}`. |
||||
string model_version = 2 [ |
||||
(google.api.field_behavior) = REQUIRED, |
||||
(google.api.resource_reference) = { |
||||
type: "ml.googleapis.com/Version" |
||||
} |
||||
]; |
||||
|
||||
// Required. Display name of the model in AI Platform. |
||||
// System will pick a display name if unspecified. |
||||
string model_display_name = 3 [(google.api.field_behavior) = REQUIRED]; |
||||
} |
||||
|
||||
// Config for migrating Model in automl.googleapis.com to AI Platform's Model. |
||||
message MigrateAutomlModelConfig { |
||||
// Required. Full resource name of automl Model. |
||||
// Format: |
||||
// `projects/{project}/locations/{location}/models/{model}`. |
||||
string model = 1 [ |
||||
(google.api.field_behavior) = REQUIRED, |
||||
(google.api.resource_reference) = { |
||||
type: "automl.googleapis.com/Model" |
||||
} |
||||
]; |
||||
|
||||
// Optional. Display name of the model in AI Platform. |
||||
// System will pick a display name if unspecified. |
||||
string model_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; |
||||
} |
||||
|
||||
// Config for migrating Dataset in automl.googleapis.com to AI Platform's |
||||
// Dataset. |
||||
message MigrateAutomlDatasetConfig { |
||||
// Required. Full resource name of automl Dataset. |
||||
// Format: |
||||
// `projects/{project}/locations/{location}/datasets/{dataset}`. |
||||
string dataset = 1 [ |
||||
(google.api.field_behavior) = REQUIRED, |
||||
(google.api.resource_reference) = { |
||||
type: "automl.googleapis.com/Dataset" |
||||
} |
||||
]; |
||||
|
||||
// Required. Display name of the Dataset in AI Platform. |
||||
// System will pick a display name if unspecified. |
||||
string dataset_display_name = 2 [(google.api.field_behavior) = REQUIRED]; |
||||
} |
||||
|
||||
// Config for migrating Dataset in datalabeling.googleapis.com to AI |
||||
// Platform's Dataset. |
||||
message MigrateDataLabelingDatasetConfig { |
||||
// Config for migrating AnnotatedDataset in datalabeling.googleapis.com to |
||||
// AI Platform's SavedQuery. |
||||
message MigrateDataLabelingAnnotatedDatasetConfig { |
||||
// Required. Full resource name of data labeling AnnotatedDataset. |
||||
// Format: |
||||
// |
||||
// `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. |
||||
string annotated_dataset = 1 [ |
||||
(google.api.field_behavior) = REQUIRED, |
||||
(google.api.resource_reference) = { |
||||
type: "datalabeling.googleapis.com/AnnotatedDataset" |
||||
} |
||||
]; |
||||
} |
||||
|
||||
// Required. Full resource name of data labeling Dataset. |
||||
// Format: |
||||
// `projects/{project}/datasets/{dataset}`. |
||||
string dataset = 1 [ |
||||
(google.api.field_behavior) = REQUIRED, |
||||
(google.api.resource_reference) = { |
||||
type: "datalabeling.googleapis.com/Dataset" |
||||
} |
||||
]; |
||||
|
||||
// Optional. Display name of the Dataset in AI Platform. |
||||
// System will pick a display name if unspecified. |
||||
string dataset_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; |
||||
|
||||
// Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to |
||||
// AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong |
||||
// to the datalabeling Dataset. |
||||
repeated MigrateDataLabelingAnnotatedDatasetConfig migrate_data_labeling_annotated_dataset_configs = 3 [(google.api.field_behavior) = OPTIONAL]; |
||||
} |
||||
|
||||
oneof request { |
||||
// Config for migrating Version in ml.googleapis.com to AI Platform's Model. |
||||
MigrateMlEngineModelVersionConfig migrate_ml_engine_model_version_config = 1; |
||||
|
||||
// Config for migrating Model in automl.googleapis.com to AI Platform's |
||||
// Model. |
||||
MigrateAutomlModelConfig migrate_automl_model_config = 2; |
||||
|
||||
// Config for migrating Dataset in automl.googleapis.com to AI Platform's |
||||
// Dataset. |
||||
MigrateAutomlDatasetConfig migrate_automl_dataset_config = 3; |
||||
|
||||
// Config for migrating Dataset in datalabeling.googleapis.com to |
||||
// AI Platform's Dataset. |
||||
MigrateDataLabelingDatasetConfig migrate_data_labeling_dataset_config = 4; |
||||
} |
||||
} |
||||
|
||||
// Response message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. |
||||
message BatchMigrateResourcesResponse { |
||||
// Successfully migrated resources. |
||||
repeated MigrateResourceResponse migrate_resource_responses = 1; |
||||
} |
||||
|
||||
// Describes a successfully migrated resource. |
||||
message MigrateResourceResponse { |
||||
// After migration, the resource name in AI Platform. |
||||
oneof migrated_resource { |
||||
// Migrated Dataset's resource name. |
||||
string dataset = 1 [(google.api.resource_reference) = { |
||||
type: "aiplatform.googleapis.com/Dataset" |
||||
}]; |
||||
|
||||
// Migrated Model's resource name. |
||||
string model = 2 [(google.api.resource_reference) = { |
||||
type: "aiplatform.googleapis.com/Model" |
||||
}]; |
||||
} |
||||
|
||||
// Before migration, the identifier in ml.googleapis.com, |
||||
// automl.googleapis.com or datalabeling.googleapis.com. |
||||
MigratableResource migratable_resource = 3; |
||||
} |
||||
|
||||
// Runtime operation information for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. |
||||
message BatchMigrateResourcesOperationMetadata { |
||||
// The common part of the operation metadata. |
||||
GenericOperationMetadata generic_metadata = 1; |
||||
} |
Loading…
Reference in new issue