This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
/
dataset.proto
96 lines (78 loc) · 3.71 KB
/
dataset.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.automl.v1;
import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/automl/v1/image.proto";
import "google/cloud/automl/v1/text.proto";
import "google/cloud/automl/v1/translation.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.AutoML.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
option java_multiple_files = true;
option java_package = "com.google.cloud.automl.v1";
option php_namespace = "Google\\Cloud\\AutoMl\\V1";
option ruby_package = "Google::Cloud::AutoML::V1";
// A workspace for solving a single, particular machine learning (ML) problem.
// A workspace contains examples that may be annotated.
message Dataset {
option (google.api.resource) = {
type: "automl.googleapis.com/Dataset"
pattern: "projects/{project}/locations/{location}/datasets/{dataset}"
};
// Required.
// The dataset metadata that is specific to the problem type.
oneof dataset_metadata {
// Metadata for a dataset used for translation.
TranslationDatasetMetadata translation_dataset_metadata = 23;
// Metadata for a dataset used for image classification.
ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
// Metadata for a dataset used for text classification.
TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
// Metadata for a dataset used for image object detection.
ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
// Metadata for a dataset used for text extraction.
TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
// Metadata for a dataset used for text sentiment.
TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
}
// Output only. The resource name of the dataset.
// Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
string name = 1;
// Required. The name of the dataset to show in the interface. The name can be
// up to 32 characters long and can consist only of ASCII Latin letters A-Z
// and a-z, underscores
// (_), and ASCII digits 0-9.
string display_name = 2;
// User-provided description of the dataset. The description can be up to
// 25000 characters long.
string description = 3;
// Output only. The number of examples in the dataset.
int32 example_count = 21;
// Output only. Timestamp when this dataset was created.
google.protobuf.Timestamp create_time = 14;
// Used to perform consistent read-modify-write updates. If not set, a blind
// "overwrite" update happens.
string etag = 17;
// Optional. The labels with user-defined metadata to organize your dataset.
//
// Label keys and values can be no longer than 64 characters
// (Unicode codepoints), can only contain lowercase letters, numeric
// characters, underscores and dashes. International characters are allowed.
// Label values are optional. Label keys must start with a letter.
//
// See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 39;
}