dataset.proto 3.7 KB

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