migratable_resource.proto 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. // Copyright 2021 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. import "google/api/annotations.proto";
  20. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "MigratableResourceProto";
  24. option java_package = "com.google.cloud.aiplatform.v1";
  25. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  26. option ruby_package = "Google::Cloud::AIPlatform::V1";
  27. option (google.api.resource_definition) = {
  28. type: "ml.googleapis.com/Version"
  29. pattern: "projects/{project}/models/{model}/versions/{version}"
  30. };
  31. option (google.api.resource_definition) = {
  32. type: "automl.googleapis.com/Model"
  33. pattern: "projects/{project}/locations/{location}/models/{model}"
  34. };
  35. option (google.api.resource_definition) = {
  36. type: "automl.googleapis.com/Dataset"
  37. pattern: "projects/{project}/locations/{location}/datasets/{dataset}"
  38. };
  39. option (google.api.resource_definition) = {
  40. type: "datalabeling.googleapis.com/Dataset"
  41. pattern: "projects/{project}/datasets/{dataset}"
  42. };
  43. option (google.api.resource_definition) = {
  44. type: "datalabeling.googleapis.com/AnnotatedDataset"
  45. pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"
  46. };
  47. // Represents one resource that exists in automl.googleapis.com,
  48. // datalabeling.googleapis.com or ml.googleapis.com.
  49. message MigratableResource {
  50. // Represents one model Version in ml.googleapis.com.
  51. message MlEngineModelVersion {
  52. // The ml.googleapis.com endpoint that this model Version currently lives
  53. // in.
  54. // Example values:
  55. //
  56. // * ml.googleapis.com
  57. // * us-centrall-ml.googleapis.com
  58. // * europe-west4-ml.googleapis.com
  59. // * asia-east1-ml.googleapis.com
  60. string endpoint = 1;
  61. // Full resource name of ml engine model Version.
  62. // Format: `projects/{project}/models/{model}/versions/{version}`.
  63. string version = 2 [(google.api.resource_reference) = {
  64. type: "ml.googleapis.com/Version"
  65. }];
  66. }
  67. // Represents one Model in automl.googleapis.com.
  68. message AutomlModel {
  69. // Full resource name of automl Model.
  70. // Format:
  71. // `projects/{project}/locations/{location}/models/{model}`.
  72. string model = 1 [(google.api.resource_reference) = {
  73. type: "automl.googleapis.com/Model"
  74. }];
  75. // The Model's display name in automl.googleapis.com.
  76. string model_display_name = 3;
  77. }
  78. // Represents one Dataset in automl.googleapis.com.
  79. message AutomlDataset {
  80. // Full resource name of automl Dataset.
  81. // Format:
  82. // `projects/{project}/locations/{location}/datasets/{dataset}`.
  83. string dataset = 1 [(google.api.resource_reference) = {
  84. type: "automl.googleapis.com/Dataset"
  85. }];
  86. // The Dataset's display name in automl.googleapis.com.
  87. string dataset_display_name = 4;
  88. }
  89. // Represents one Dataset in datalabeling.googleapis.com.
  90. message DataLabelingDataset {
  91. // Represents one AnnotatedDataset in datalabeling.googleapis.com.
  92. message DataLabelingAnnotatedDataset {
  93. // Full resource name of data labeling AnnotatedDataset.
  94. // Format:
  95. // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`.
  96. string annotated_dataset = 1 [(google.api.resource_reference) = {
  97. type: "datalabeling.googleapis.com/AnnotatedDataset"
  98. }];
  99. // The AnnotatedDataset's display name in datalabeling.googleapis.com.
  100. string annotated_dataset_display_name = 3;
  101. }
  102. // Full resource name of data labeling Dataset.
  103. // Format:
  104. // `projects/{project}/datasets/{dataset}`.
  105. string dataset = 1 [(google.api.resource_reference) = {
  106. type: "datalabeling.googleapis.com/Dataset"
  107. }];
  108. // The Dataset's display name in datalabeling.googleapis.com.
  109. string dataset_display_name = 4;
  110. // The migratable AnnotatedDataset in datalabeling.googleapis.com belongs to
  111. // the data labeling Dataset.
  112. repeated DataLabelingAnnotatedDataset data_labeling_annotated_datasets = 3;
  113. }
  114. oneof resource {
  115. // Output only. Represents one Version in ml.googleapis.com.
  116. MlEngineModelVersion ml_engine_model_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  117. // Output only. Represents one Model in automl.googleapis.com.
  118. AutomlModel automl_model = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  119. // Output only. Represents one Dataset in automl.googleapis.com.
  120. AutomlDataset automl_dataset = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  121. // Output only. Represents one Dataset in datalabeling.googleapis.com.
  122. DataLabelingDataset data_labeling_dataset = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  123. }
  124. // Output only. Timestamp when the last migration attempt on this MigratableResource
  125. // started. Will not be set if there's no migration attempt on this
  126. // MigratableResource.
  127. google.protobuf.Timestamp last_migrate_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  128. // Output only. Timestamp when this MigratableResource was last updated.
  129. google.protobuf.Timestamp last_update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  130. }