migratable_resource.proto 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "MigratableResourceProto";
  23. option java_package = "com.google.cloud.aiplatform.v1";
  24. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  25. option ruby_package = "Google::Cloud::AIPlatform::V1";
  26. option (google.api.resource_definition) = {
  27. type: "ml.googleapis.com/Version"
  28. pattern: "projects/{project}/models/{model}/versions/{version}"
  29. };
  30. option (google.api.resource_definition) = {
  31. type: "automl.googleapis.com/Model"
  32. pattern: "projects/{project}/locations/{location}/models/{model}"
  33. };
  34. option (google.api.resource_definition) = {
  35. type: "automl.googleapis.com/Dataset"
  36. pattern: "projects/{project}/locations/{location}/datasets/{dataset}"
  37. };
  38. option (google.api.resource_definition) = {
  39. type: "datalabeling.googleapis.com/Dataset"
  40. pattern: "projects/{project}/datasets/{dataset}"
  41. };
  42. option (google.api.resource_definition) = {
  43. type: "datalabeling.googleapis.com/AnnotatedDataset"
  44. pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"
  45. };
  46. // Represents one resource that exists in automl.googleapis.com,
  47. // datalabeling.googleapis.com or ml.googleapis.com.
  48. message MigratableResource {
  49. // Represents one model Version in ml.googleapis.com.
  50. message MlEngineModelVersion {
  51. // The ml.googleapis.com endpoint that this model Version currently lives
  52. // in.
  53. // Example values:
  54. //
  55. // * ml.googleapis.com
  56. // * us-centrall-ml.googleapis.com
  57. // * europe-west4-ml.googleapis.com
  58. // * asia-east1-ml.googleapis.com
  59. string endpoint = 1;
  60. // Full resource name of ml engine model Version.
  61. // Format: `projects/{project}/models/{model}/versions/{version}`.
  62. string version = 2 [(google.api.resource_reference) = {
  63. type: "ml.googleapis.com/Version"
  64. }];
  65. }
  66. // Represents one Model in automl.googleapis.com.
  67. message AutomlModel {
  68. // Full resource name of automl Model.
  69. // Format:
  70. // `projects/{project}/locations/{location}/models/{model}`.
  71. string model = 1 [(google.api.resource_reference) = {
  72. type: "automl.googleapis.com/Model"
  73. }];
  74. // The Model's display name in automl.googleapis.com.
  75. string model_display_name = 3;
  76. }
  77. // Represents one Dataset in automl.googleapis.com.
  78. message AutomlDataset {
  79. // Full resource name of automl Dataset.
  80. // Format:
  81. // `projects/{project}/locations/{location}/datasets/{dataset}`.
  82. string dataset = 1 [(google.api.resource_reference) = {
  83. type: "automl.googleapis.com/Dataset"
  84. }];
  85. // The Dataset's display name in automl.googleapis.com.
  86. string dataset_display_name = 4;
  87. }
  88. // Represents one Dataset in datalabeling.googleapis.com.
  89. message DataLabelingDataset {
  90. // Represents one AnnotatedDataset in datalabeling.googleapis.com.
  91. message DataLabelingAnnotatedDataset {
  92. // Full resource name of data labeling AnnotatedDataset.
  93. // Format:
  94. // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`.
  95. string annotated_dataset = 1 [(google.api.resource_reference) = {
  96. type: "datalabeling.googleapis.com/AnnotatedDataset"
  97. }];
  98. // The AnnotatedDataset's display name in datalabeling.googleapis.com.
  99. string annotated_dataset_display_name = 3;
  100. }
  101. // Full resource name of data labeling Dataset.
  102. // Format:
  103. // `projects/{project}/datasets/{dataset}`.
  104. string dataset = 1 [(google.api.resource_reference) = {
  105. type: "datalabeling.googleapis.com/Dataset"
  106. }];
  107. // The Dataset's display name in datalabeling.googleapis.com.
  108. string dataset_display_name = 4;
  109. // The migratable AnnotatedDataset in datalabeling.googleapis.com belongs to
  110. // the data labeling Dataset.
  111. repeated DataLabelingAnnotatedDataset data_labeling_annotated_datasets = 3;
  112. }
  113. oneof resource {
  114. // Output only. Represents one Version in ml.googleapis.com.
  115. MlEngineModelVersion ml_engine_model_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  116. // Output only. Represents one Model in automl.googleapis.com.
  117. AutomlModel automl_model = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  118. // Output only. Represents one Dataset in automl.googleapis.com.
  119. AutomlDataset automl_dataset = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  120. // Output only. Represents one Dataset in datalabeling.googleapis.com.
  121. DataLabelingDataset data_labeling_dataset = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  122. }
  123. // Output only. Timestamp when the last migration attempt on this MigratableResource
  124. // started. Will not be set if there's no migration attempt on this
  125. // MigratableResource.
  126. google.protobuf.Timestamp last_migrate_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  127. // Output only. Timestamp when this MigratableResource was last updated.
  128. google.protobuf.Timestamp last_update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  129. }