dataset.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Copyright 2020 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.automl.v1beta1;
  16. import "google/api/resource.proto";
  17. import "google/cloud/automl/v1beta1/image.proto";
  18. import "google/cloud/automl/v1beta1/tables.proto";
  19. import "google/cloud/automl/v1beta1/text.proto";
  20. import "google/cloud/automl/v1beta1/translation.proto";
  21. import "google/cloud/automl/v1beta1/video.proto";
  22. import "google/protobuf/timestamp.proto";
  23. import "google/api/annotations.proto";
  24. option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
  25. option java_multiple_files = true;
  26. option java_package = "com.google.cloud.automl.v1beta1";
  27. option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
  28. option ruby_package = "Google::Cloud::AutoML::V1beta1";
  29. // A workspace for solving a single, particular machine learning (ML) problem.
  30. // A workspace contains examples that may be annotated.
  31. message Dataset {
  32. option (google.api.resource) = {
  33. type: "automl.googleapis.com/Dataset"
  34. pattern: "projects/{project}/locations/{location}/datasets/{dataset}"
  35. };
  36. // Required.
  37. // The dataset metadata that is specific to the problem type.
  38. oneof dataset_metadata {
  39. // Metadata for a dataset used for translation.
  40. TranslationDatasetMetadata translation_dataset_metadata = 23;
  41. // Metadata for a dataset used for image classification.
  42. ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
  43. // Metadata for a dataset used for text classification.
  44. TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
  45. // Metadata for a dataset used for image object detection.
  46. ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
  47. // Metadata for a dataset used for video classification.
  48. VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31;
  49. // Metadata for a dataset used for video object tracking.
  50. VideoObjectTrackingDatasetMetadata video_object_tracking_dataset_metadata = 29;
  51. // Metadata for a dataset used for text extraction.
  52. TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
  53. // Metadata for a dataset used for text sentiment.
  54. TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
  55. // Metadata for a dataset used for Tables.
  56. TablesDatasetMetadata tables_dataset_metadata = 33;
  57. }
  58. // Output only. The resource name of the dataset.
  59. // Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
  60. string name = 1;
  61. // Required. The name of the dataset to show in the interface. The name can be
  62. // up to 32 characters long and can consist only of ASCII Latin letters A-Z
  63. // and a-z, underscores
  64. // (_), and ASCII digits 0-9.
  65. string display_name = 2;
  66. // User-provided description of the dataset. The description can be up to
  67. // 25000 characters long.
  68. string description = 3;
  69. // Output only. The number of examples in the dataset.
  70. int32 example_count = 21;
  71. // Output only. Timestamp when this dataset was created.
  72. google.protobuf.Timestamp create_time = 14;
  73. // Used to perform consistent read-modify-write updates. If not set, a blind
  74. // "overwrite" update happens.
  75. string etag = 17;
  76. }