dataset.proto 3.7 KB

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