123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- syntax = "proto3";
- package google.cloud.datalabeling.v1beta1;
- import "google/api/resource.proto";
- import "google/cloud/datalabeling/v1beta1/annotation.proto";
- import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
- import "google/cloud/datalabeling/v1beta1/data_payloads.proto";
- import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
- option java_multiple_files = true;
- option java_package = "com.google.cloud.datalabeling.v1beta1";
- option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
- option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
- enum DataType {
- DATA_TYPE_UNSPECIFIED = 0;
-
- IMAGE = 1;
- VIDEO = 2;
-
- TEXT = 4;
-
- GENERAL_DATA = 6;
- }
- message Dataset {
- option (google.api.resource) = {
- type: "datalabeling.googleapis.com/Dataset"
- pattern: "projects/{project}/datasets/{dataset}"
- };
-
-
- string name = 1;
-
- string display_name = 2;
-
-
- string description = 3;
-
- google.protobuf.Timestamp create_time = 4;
-
-
-
- repeated InputConfig input_configs = 5;
-
-
- repeated string blocking_resources = 6;
-
- int64 data_item_count = 7;
- }
- message InputConfig {
-
- oneof data_type_metadata {
-
- TextMetadata text_metadata = 6;
- }
-
- oneof source {
-
- GcsSource gcs_source = 2;
-
-
- BigQuerySource bigquery_source = 5;
- }
-
- DataType data_type = 1;
-
-
-
- AnnotationType annotation_type = 3;
-
-
-
- ClassificationMetadata classification_metadata = 4;
- }
- message TextMetadata {
-
-
-
- string language_code = 1;
- }
- message ClassificationMetadata {
-
- bool is_multi_label = 1;
- }
- message GcsSource {
-
-
- string input_uri = 1;
-
- string mime_type = 2;
- }
- message BigQuerySource {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string input_uri = 1;
- }
- message OutputConfig {
-
- oneof destination {
-
-
- GcsDestination gcs_destination = 1;
-
-
- GcsFolderDestination gcs_folder_destination = 2;
- }
- }
- message GcsDestination {
-
- string output_uri = 1;
-
-
-
- string mime_type = 2;
- }
- message GcsFolderDestination {
-
- string output_folder_uri = 1;
- }
- message DataItem {
- option (google.api.resource) = {
- type: "datalabeling.googleapis.com/DataItem"
- pattern: "projects/{project}/datasets/{dataset}/dataItems/{data_item}"
- };
-
- oneof payload {
-
- ImagePayload image_payload = 2;
-
- TextPayload text_payload = 3;
-
- VideoPayload video_payload = 4;
- }
-
-
- string name = 1;
- }
- message AnnotatedDataset {
- option (google.api.resource) = {
- type: "datalabeling.googleapis.com/AnnotatedDataset"
- pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"
- };
-
-
-
- string name = 1;
-
-
-
- string display_name = 2;
-
-
-
- string description = 9;
-
- AnnotationSource annotation_source = 3;
-
-
- AnnotationType annotation_type = 8;
-
- int64 example_count = 4;
-
-
- int64 completed_example_count = 5;
-
- LabelStats label_stats = 6;
-
- google.protobuf.Timestamp create_time = 7;
-
- AnnotatedDatasetMetadata metadata = 10;
-
-
- repeated string blocking_resources = 11;
- }
- message LabelStats {
-
-
-
-
-
- map<string, int64> example_count = 1;
- }
- message AnnotatedDatasetMetadata {
-
- oneof annotation_request_config {
-
- ImageClassificationConfig image_classification_config = 2;
-
- BoundingPolyConfig bounding_poly_config = 3;
-
- PolylineConfig polyline_config = 4;
-
- SegmentationConfig segmentation_config = 5;
-
- VideoClassificationConfig video_classification_config = 6;
-
- ObjectDetectionConfig object_detection_config = 7;
-
- ObjectTrackingConfig object_tracking_config = 8;
-
- EventConfig event_config = 9;
-
- TextClassificationConfig text_classification_config = 10;
-
- TextEntityExtractionConfig text_entity_extraction_config = 11;
- }
-
-
- HumanAnnotationConfig human_annotation_config = 1;
- }
- message Example {
- option (google.api.resource) = {
- type: "datalabeling.googleapis.com/Example"
- pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}"
- };
-
- oneof payload {
-
- ImagePayload image_payload = 2;
-
- TextPayload text_payload = 6;
-
- VideoPayload video_payload = 7;
- }
-
-
-
- string name = 1;
-
-
- repeated Annotation annotations = 5;
- }
|