google-cloud-data_labeling-v1beta1 0.3.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +14 -9
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +66 -82
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +20 -17
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service.rb +1 -1
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +1 -1
- data/lib/google/cloud/data_labeling/v1beta1.rb +3 -1
- data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +28 -135
- data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +26 -14
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +33 -225
- data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +27 -24
- data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +30 -105
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +31 -44
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +28 -62
- data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +27 -66
- data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +27 -20
- data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +30 -86
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +4 -1
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +15 -13
@@ -1,120 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/datalabeling/v1beta1/dataset.proto
|
3
4
|
|
4
|
-
require 'google/
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/datalabeling/v1beta1/annotation_pb'
|
7
9
|
require 'google/cloud/datalabeling/v1beta1/annotation_spec_set_pb'
|
8
10
|
require 'google/cloud/datalabeling/v1beta1/data_payloads_pb'
|
9
11
|
require 'google/cloud/datalabeling/v1beta1/human_annotation_config_pb'
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/protobuf'
|
12
13
|
|
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
|
-
end
|
39
|
-
add_message "google.cloud.datalabeling.v1beta1.ClassificationMetadata" do
|
40
|
-
optional :is_multi_label, :bool, 1
|
41
|
-
end
|
42
|
-
add_message "google.cloud.datalabeling.v1beta1.GcsSource" do
|
43
|
-
optional :input_uri, :string, 1
|
44
|
-
optional :mime_type, :string, 2
|
45
|
-
end
|
46
|
-
add_message "google.cloud.datalabeling.v1beta1.BigQuerySource" do
|
47
|
-
optional :input_uri, :string, 1
|
48
|
-
end
|
49
|
-
add_message "google.cloud.datalabeling.v1beta1.OutputConfig" do
|
50
|
-
oneof :destination do
|
51
|
-
optional :gcs_destination, :message, 1, "google.cloud.datalabeling.v1beta1.GcsDestination"
|
52
|
-
optional :gcs_folder_destination, :message, 2, "google.cloud.datalabeling.v1beta1.GcsFolderDestination"
|
53
|
-
end
|
54
|
-
end
|
55
|
-
add_message "google.cloud.datalabeling.v1beta1.GcsDestination" do
|
56
|
-
optional :output_uri, :string, 1
|
57
|
-
optional :mime_type, :string, 2
|
58
|
-
end
|
59
|
-
add_message "google.cloud.datalabeling.v1beta1.GcsFolderDestination" do
|
60
|
-
optional :output_folder_uri, :string, 1
|
61
|
-
end
|
62
|
-
add_message "google.cloud.datalabeling.v1beta1.DataItem" do
|
63
|
-
optional :name, :string, 1
|
64
|
-
oneof :payload do
|
65
|
-
optional :image_payload, :message, 2, "google.cloud.datalabeling.v1beta1.ImagePayload"
|
66
|
-
optional :text_payload, :message, 3, "google.cloud.datalabeling.v1beta1.TextPayload"
|
67
|
-
optional :video_payload, :message, 4, "google.cloud.datalabeling.v1beta1.VideoPayload"
|
68
|
-
end
|
69
|
-
end
|
70
|
-
add_message "google.cloud.datalabeling.v1beta1.AnnotatedDataset" do
|
71
|
-
optional :name, :string, 1
|
72
|
-
optional :display_name, :string, 2
|
73
|
-
optional :description, :string, 9
|
74
|
-
optional :annotation_source, :enum, 3, "google.cloud.datalabeling.v1beta1.AnnotationSource"
|
75
|
-
optional :annotation_type, :enum, 8, "google.cloud.datalabeling.v1beta1.AnnotationType"
|
76
|
-
optional :example_count, :int64, 4
|
77
|
-
optional :completed_example_count, :int64, 5
|
78
|
-
optional :label_stats, :message, 6, "google.cloud.datalabeling.v1beta1.LabelStats"
|
79
|
-
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
80
|
-
optional :metadata, :message, 10, "google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata"
|
81
|
-
repeated :blocking_resources, :string, 11
|
82
|
-
end
|
83
|
-
add_message "google.cloud.datalabeling.v1beta1.LabelStats" do
|
84
|
-
map :example_count, :string, :int64, 1
|
85
|
-
end
|
86
|
-
add_message "google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata" do
|
87
|
-
optional :human_annotation_config, :message, 1, "google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"
|
88
|
-
oneof :annotation_request_config do
|
89
|
-
optional :image_classification_config, :message, 2, "google.cloud.datalabeling.v1beta1.ImageClassificationConfig"
|
90
|
-
optional :bounding_poly_config, :message, 3, "google.cloud.datalabeling.v1beta1.BoundingPolyConfig"
|
91
|
-
optional :polyline_config, :message, 4, "google.cloud.datalabeling.v1beta1.PolylineConfig"
|
92
|
-
optional :segmentation_config, :message, 5, "google.cloud.datalabeling.v1beta1.SegmentationConfig"
|
93
|
-
optional :video_classification_config, :message, 6, "google.cloud.datalabeling.v1beta1.VideoClassificationConfig"
|
94
|
-
optional :object_detection_config, :message, 7, "google.cloud.datalabeling.v1beta1.ObjectDetectionConfig"
|
95
|
-
optional :object_tracking_config, :message, 8, "google.cloud.datalabeling.v1beta1.ObjectTrackingConfig"
|
96
|
-
optional :event_config, :message, 9, "google.cloud.datalabeling.v1beta1.EventConfig"
|
97
|
-
optional :text_classification_config, :message, 10, "google.cloud.datalabeling.v1beta1.TextClassificationConfig"
|
98
|
-
optional :text_entity_extraction_config, :message, 11, "google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig"
|
99
|
-
end
|
100
|
-
end
|
101
|
-
add_message "google.cloud.datalabeling.v1beta1.Example" do
|
102
|
-
optional :name, :string, 1
|
103
|
-
repeated :annotations, :message, 5, "google.cloud.datalabeling.v1beta1.Annotation"
|
104
|
-
oneof :payload do
|
105
|
-
optional :image_payload, :message, 2, "google.cloud.datalabeling.v1beta1.ImagePayload"
|
106
|
-
optional :text_payload, :message, 6, "google.cloud.datalabeling.v1beta1.TextPayload"
|
107
|
-
optional :video_payload, :message, 7, "google.cloud.datalabeling.v1beta1.VideoPayload"
|
108
|
-
end
|
109
|
-
end
|
110
|
-
add_enum "google.cloud.datalabeling.v1beta1.DataType" do
|
111
|
-
value :DATA_TYPE_UNSPECIFIED, 0
|
112
|
-
value :IMAGE, 1
|
113
|
-
value :VIDEO, 2
|
114
|
-
value :TEXT, 4
|
115
|
-
value :GENERAL_DATA, 6
|
14
|
+
|
15
|
+
descriptor_data = "\n/google/cloud/datalabeling/v1beta1/dataset.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x19google/api/resource.proto\x1a\x32google/cloud/datalabeling/v1beta1/annotation.proto\x1a;google/cloud/datalabeling/v1beta1/annotation_spec_set.proto\x1a\x35google/cloud/datalabeling/v1beta1/data_payloads.proto\x1a?google/cloud/datalabeling/v1beta1/human_annotation_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x02\n\x07\x44\x61taset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\rinput_configs\x18\x05 \x03(\x0b\x32..google.cloud.datalabeling.v1beta1.InputConfig\x12\x1a\n\x12\x62locking_resources\x18\x06 \x03(\t\x12\x17\n\x0f\x64\x61ta_item_count\x18\x07 \x01(\x03:O\xea\x41L\n#datalabeling.googleapis.com/Dataset\x12%projects/{project}/datasets/{dataset}\"\xf1\x03\n\x0bInputConfig\x12H\n\rtext_metadata\x18\x06 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.TextMetadataH\x00\x12\x42\n\ngcs_source\x18\x02 \x01(\x0b\x32,.google.cloud.datalabeling.v1beta1.GcsSourceH\x01\x12L\n\x0f\x62igquery_source\x18\x05 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.BigQuerySourceH\x01\x12>\n\tdata_type\x18\x01 \x01(\x0e\x32+.google.cloud.datalabeling.v1beta1.DataType\x12J\n\x0f\x61nnotation_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12Z\n\x17\x63lassification_metadata\x18\x04 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.ClassificationMetadataB\x14\n\x12\x64\x61ta_type_metadataB\x08\n\x06source\"%\n\x0cTextMetadata\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\"0\n\x16\x43lassificationMetadata\x12\x16\n\x0eis_multi_label\x18\x01 \x01(\x08\"1\n\tGcsSource\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\"#\n\x0e\x42igQuerySource\x12\x11\n\tinput_uri\x18\x01 \x01(\t\"\xc6\x01\n\x0cOutputConfig\x12L\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.GcsDestinationH\x00\x12Y\n\x16gcs_folder_destination\x18\x02 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.GcsFolderDestinationH\x00\x42\r\n\x0b\x64\x65stination\"7\n\x0eGcsDestination\x12\x12\n\noutput_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\"1\n\x14GcsFolderDestination\x12\x19\n\x11output_folder_uri\x18\x01 \x01(\t\"\xe7\x02\n\x08\x44\x61taItem\x12H\n\rimage_payload\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.ImagePayloadH\x00\x12\x46\n\x0ctext_payload\x18\x03 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TextPayloadH\x00\x12H\n\rvideo_payload\x18\x04 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.VideoPayloadH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t:f\xea\x41\x63\n$datalabeling.googleapis.com/DataItem\x12;projects/{project}/datasets/{dataset}/dataItems/{data_item}B\t\n\x07payload\"\xff\x04\n\x10\x41nnotatedDataset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12N\n\x11\x61nnotation_source\x18\x03 \x01(\x0e\x32\x33.google.cloud.datalabeling.v1beta1.AnnotationSource\x12J\n\x0f\x61nnotation_type\x18\x08 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12\x15\n\rexample_count\x18\x04 \x01(\x03\x12\x1f\n\x17\x63ompleted_example_count\x18\x05 \x01(\x03\x12\x42\n\x0blabel_stats\x18\x06 \x01(\x0b\x32-.google.cloud.datalabeling.v1beta1.LabelStats\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12M\n\x08metadata\x18\n \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata\x12\x1a\n\x12\x62locking_resources\x18\x0b \x03(\t:~\xea\x41{\n,datalabeling.googleapis.com/AnnotatedDataset\x12Kprojects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}\"\x99\x01\n\nLabelStats\x12V\n\rexample_count\x18\x01 \x03(\x0b\x32?.google.cloud.datalabeling.v1beta1.LabelStats.ExampleCountEntry\x1a\x33\n\x11\x45xampleCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xa2\x08\n\x18\x41nnotatedDatasetMetadata\x12\x63\n\x1bimage_classification_config\x18\x02 \x01(\x0b\x32<.google.cloud.datalabeling.v1beta1.ImageClassificationConfigH\x00\x12U\n\x14\x62ounding_poly_config\x18\x03 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.BoundingPolyConfigH\x00\x12L\n\x0fpolyline_config\x18\x04 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.PolylineConfigH\x00\x12T\n\x13segmentation_config\x18\x05 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.SegmentationConfigH\x00\x12\x63\n\x1bvideo_classification_config\x18\x06 \x01(\x0b\x32<.google.cloud.datalabeling.v1beta1.VideoClassificationConfigH\x00\x12[\n\x17object_detection_config\x18\x07 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigH\x00\x12Y\n\x16object_tracking_config\x18\x08 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigH\x00\x12\x46\n\x0c\x65vent_config\x18\t \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.EventConfigH\x00\x12\x61\n\x1atext_classification_config\x18\n \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.TextClassificationConfigH\x00\x12\x66\n\x1dtext_entity_extraction_config\x18\x0b \x01(\x0b\x32=.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigH\x00\x12Y\n\x17human_annotation_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigB\x1b\n\x19\x61nnotation_request_config\"\xce\x03\n\x07\x45xample\x12H\n\rimage_payload\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.ImagePayloadH\x00\x12\x46\n\x0ctext_payload\x18\x06 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TextPayloadH\x00\x12H\n\rvideo_payload\x18\x07 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.VideoPayloadH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32-.google.cloud.datalabeling.v1beta1.Annotation:\x89\x01\xea\x41\x85\x01\n#datalabeling.googleapis.com/Example\x12^projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}B\t\n\x07payload*W\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05IMAGE\x10\x01\x12\t\n\x05VIDEO\x10\x02\x12\x08\n\x04TEXT\x10\x04\x12\x10\n\x0cGENERAL_DATA\x10\x06\x42\xe3\x01\n%com.google.cloud.datalabeling.v1beta1P\x01ZIcloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb\xaa\x02!Google.Cloud.DataLabeling.V1Beta1\xca\x02!Google\\Cloud\\DataLabeling\\V1beta1\xea\x02$Google::Cloud::DataLabeling::V1beta1b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.cloud.datalabeling.v1beta1.ImagePayload", "google/cloud/datalabeling/v1beta1/data_payloads.proto"],
|
32
|
+
["google.cloud.datalabeling.v1beta1.ImageClassificationConfig", "google/cloud/datalabeling/v1beta1/human_annotation_config.proto"],
|
33
|
+
["google.cloud.datalabeling.v1beta1.Annotation", "google/cloud/datalabeling/v1beta1/annotation.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
116
39
|
end
|
117
40
|
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
118
43
|
end
|
119
44
|
|
120
45
|
module Google
|
@@ -1,59 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/datalabeling/v1beta1/evaluation_job.proto
|
3
4
|
|
4
|
-
require 'google/
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/datalabeling/v1beta1/dataset_pb'
|
7
9
|
require 'google/cloud/datalabeling/v1beta1/evaluation_pb'
|
8
10
|
require 'google/cloud/datalabeling/v1beta1/human_annotation_config_pb'
|
9
11
|
require 'google/protobuf/timestamp_pb'
|
10
12
|
require 'google/rpc/status_pb'
|
11
|
-
require 'google/protobuf'
|
12
13
|
|
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
|
-
optional :example_count, :int32, 10
|
40
|
-
optional :example_sample_percentage, :double, 11
|
41
|
-
optional :evaluation_job_alert_config, :message, 13, "google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig"
|
42
|
-
oneof :human_annotation_request_config do
|
43
|
-
optional :image_classification_config, :message, 4, "google.cloud.datalabeling.v1beta1.ImageClassificationConfig"
|
44
|
-
optional :bounding_poly_config, :message, 5, "google.cloud.datalabeling.v1beta1.BoundingPolyConfig"
|
45
|
-
optional :text_classification_config, :message, 8, "google.cloud.datalabeling.v1beta1.TextClassificationConfig"
|
46
|
-
end
|
47
|
-
end
|
48
|
-
add_message "google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig" do
|
49
|
-
optional :email, :string, 1
|
50
|
-
optional :min_acceptable_mean_average_precision, :double, 2
|
51
|
-
end
|
52
|
-
add_message "google.cloud.datalabeling.v1beta1.Attempt" do
|
53
|
-
optional :attempt_time, :message, 1, "google.protobuf.Timestamp"
|
54
|
-
repeated :partial_failures, :message, 2, "google.rpc.Status"
|
14
|
+
|
15
|
+
descriptor_data = "\n6google/cloud/datalabeling/v1beta1/evaluation_job.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x19google/api/resource.proto\x1a/google/cloud/datalabeling/v1beta1/dataset.proto\x1a\x32google/cloud/datalabeling/v1beta1/evaluation.proto\x1a?google/cloud/datalabeling/v1beta1/human_annotation_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xe2\x04\n\rEvaluationJob\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x45\n\x05state\x18\x03 \x01(\x0e\x32\x36.google.cloud.datalabeling.v1beta1.EvaluationJob.State\x12\x10\n\x08schedule\x18\x04 \x01(\t\x12\x15\n\rmodel_version\x18\x05 \x01(\t\x12U\n\x15\x65valuation_job_config\x18\x06 \x01(\x0b\x32\x36.google.cloud.datalabeling.v1beta1.EvaluationJobConfig\x12\x1b\n\x13\x61nnotation_spec_set\x18\x07 \x01(\t\x12\"\n\x1alabel_missing_ground_truth\x18\x08 \x01(\x08\x12<\n\x08\x61ttempts\x18\t \x03(\x0b\x32*.google.cloud.datalabeling.v1beta1.Attempt\x12/\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"S\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07STOPPED\x10\x04:b\xea\x41_\n)datalabeling.googleapis.com/EvaluationJob\x12\x32projects/{project}/evaluationJobs/{evaluation_job}\"\x8d\x07\n\x13\x45valuationJobConfig\x12\x63\n\x1bimage_classification_config\x18\x04 \x01(\x0b\x32<.google.cloud.datalabeling.v1beta1.ImageClassificationConfigH\x00\x12U\n\x14\x62ounding_poly_config\x18\x05 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.BoundingPolyConfigH\x00\x12\x61\n\x1atext_classification_config\x18\x08 \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.TextClassificationConfigH\x00\x12\x44\n\x0cinput_config\x18\x01 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.InputConfig\x12N\n\x11\x65valuation_config\x18\x02 \x01(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.EvaluationConfig\x12Y\n\x17human_annotation_config\x18\x03 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig\x12l\n\x14\x62igquery_import_keys\x18\t \x03(\x0b\x32N.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.BigqueryImportKeysEntry\x12\x15\n\rexample_count\x18\n \x01(\x05\x12!\n\x19\x65xample_sample_percentage\x18\x0b \x01(\x01\x12`\n\x1b\x65valuation_job_alert_config\x18\r \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig\x1a\x39\n\x17\x42igqueryImportKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42!\n\x1fhuman_annotation_request_config\"X\n\x18\x45valuationJobAlertConfig\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12-\n%min_acceptable_mean_average_precision\x18\x02 \x01(\x01\"i\n\x07\x41ttempt\x12\x30\n\x0c\x61ttempt_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.StatusB\xe3\x01\n%com.google.cloud.datalabeling.v1beta1P\x01ZIcloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb\xaa\x02!Google.Cloud.DataLabeling.V1Beta1\xca\x02!Google\\Cloud\\DataLabeling\\V1beta1\xea\x02$Google::Cloud::DataLabeling::V1beta1b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.cloud.datalabeling.v1beta1.ImageClassificationConfig", "google/cloud/datalabeling/v1beta1/human_annotation_config.proto"],
|
32
|
+
["google.cloud.datalabeling.v1beta1.InputConfig", "google/cloud/datalabeling/v1beta1/dataset.proto"],
|
33
|
+
["google.cloud.datalabeling.v1beta1.EvaluationConfig", "google/cloud/datalabeling/v1beta1/evaluation.proto"],
|
34
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
55
40
|
end
|
56
41
|
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
57
44
|
end
|
58
45
|
|
59
46
|
module Google
|
@@ -1,75 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/datalabeling/v1beta1/evaluation.proto
|
3
4
|
|
4
|
-
require 'google/
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/datalabeling/v1beta1/annotation_pb'
|
7
9
|
require 'google/cloud/datalabeling/v1beta1/annotation_spec_set_pb'
|
8
10
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/protobuf'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|
36
|
-
add_message "google.cloud.datalabeling.v1beta1.ClassificationMetrics" do
|
37
|
-
optional :pr_curve, :message, 1, "google.cloud.datalabeling.v1beta1.PrCurve"
|
38
|
-
optional :confusion_matrix, :message, 2, "google.cloud.datalabeling.v1beta1.ConfusionMatrix"
|
39
|
-
end
|
40
|
-
add_message "google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics" do
|
41
|
-
optional :pr_curve, :message, 1, "google.cloud.datalabeling.v1beta1.PrCurve"
|
42
|
-
end
|
43
|
-
add_message "google.cloud.datalabeling.v1beta1.PrCurve" do
|
44
|
-
optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
|
45
|
-
optional :area_under_curve, :float, 2
|
46
|
-
repeated :confidence_metrics_entries, :message, 3, "google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry"
|
47
|
-
optional :mean_average_precision, :float, 4
|
48
|
-
end
|
49
|
-
add_message "google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry" do
|
50
|
-
optional :confidence_threshold, :float, 1
|
51
|
-
optional :recall, :float, 2
|
52
|
-
optional :precision, :float, 3
|
53
|
-
optional :f1_score, :float, 4
|
54
|
-
optional :recall_at1, :float, 5
|
55
|
-
optional :precision_at1, :float, 6
|
56
|
-
optional :f1_score_at1, :float, 7
|
57
|
-
optional :recall_at5, :float, 8
|
58
|
-
optional :precision_at5, :float, 9
|
59
|
-
optional :f1_score_at5, :float, 10
|
60
|
-
end
|
61
|
-
add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix" do
|
62
|
-
repeated :row, :message, 1, "google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row"
|
63
|
-
end
|
64
|
-
add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry" do
|
65
|
-
optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
|
66
|
-
optional :item_count, :int32, 2
|
67
|
-
end
|
68
|
-
add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row" do
|
69
|
-
optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
|
70
|
-
repeated :entries, :message, 2, "google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry"
|
12
|
+
|
13
|
+
descriptor_data = "\n2google/cloud/datalabeling/v1beta1/evaluation.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x19google/api/resource.proto\x1a\x32google/cloud/datalabeling/v1beta1/annotation.proto\x1a;google/cloud/datalabeling/v1beta1/annotation_spec_set.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf6\x03\n\nEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.EvaluationConfig\x12;\n\x17\x65valuation_job_run_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12P\n\x12\x65valuation_metrics\x18\x05 \x01(\x0b\x32\x34.google.cloud.datalabeling.v1beta1.EvaluationMetrics\x12J\n\x0f\x61nnotation_type\x18\x06 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12\x1c\n\x14\x65valuated_item_count\x18\x07 \x01(\x03:k\xea\x41h\n&datalabeling.googleapis.com/Evaluation\x12>projects/{project}/datasets/{dataset}/evaluations/{evaluation}\"\x91\x01\n\x10\x45valuationConfig\x12j\n\x1f\x62ounding_box_evaluation_options\x18\x01 \x01(\x0b\x32?.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsH\x00\x42\x11\n\x0fvertical_option\"5\n\x1c\x42oundingBoxEvaluationOptions\x12\x15\n\riou_threshold\x18\x01 \x01(\x02\"\xd9\x01\n\x11\x45valuationMetrics\x12Z\n\x16\x63lassification_metrics\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.ClassificationMetricsH\x00\x12]\n\x18object_detection_metrics\x18\x02 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsH\x00\x42\t\n\x07metrics\"\xa3\x01\n\x15\x43lassificationMetrics\x12<\n\x08pr_curve\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.PrCurve\x12L\n\x10\x63onfusion_matrix\x18\x02 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.ConfusionMatrix\"V\n\x16ObjectDetectionMetrics\x12<\n\x08pr_curve\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.PrCurve\"\xe6\x03\n\x07PrCurve\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x18\n\x10\x61rea_under_curve\x18\x02 \x01(\x02\x12\x65\n\x1a\x63onfidence_metrics_entries\x18\x03 \x03(\x0b\x32\x41.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry\x12\x1e\n\x16mean_average_precision\x18\x04 \x01(\x02\x1a\xed\x01\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x11\n\tprecision\x18\x03 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x04 \x01(\x02\x12\x12\n\nrecall_at1\x18\x05 \x01(\x02\x12\x15\n\rprecision_at1\x18\x06 \x01(\x02\x12\x14\n\x0c\x66\x31_score_at1\x18\x07 \x01(\x02\x12\x12\n\nrecall_at5\x18\x08 \x01(\x02\x12\x15\n\rprecision_at5\x18\t \x01(\x02\x12\x14\n\x0c\x66\x31_score_at5\x18\n \x01(\x02\"\xfc\x02\n\x0f\x43onfusionMatrix\x12\x43\n\x03row\x18\x01 \x03(\x0b\x32\x36.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row\x1av\n\x14\x43onfusionMatrixEntry\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x12\n\nitem_count\x18\x02 \x01(\x05\x1a\xab\x01\n\x03Row\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12X\n\x07\x65ntries\x18\x02 \x03(\x0b\x32G.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryB\xe3\x01\n%com.google.cloud.datalabeling.v1beta1P\x01ZIcloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb\xaa\x02!Google.Cloud.DataLabeling.V1Beta1\xca\x02!Google\\Cloud\\DataLabeling\\V1beta1\xea\x02$Google::Cloud::DataLabeling::V1beta1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
["google.cloud.datalabeling.v1beta1.AnnotationSpec", "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
71
35
|
end
|
72
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
73
39
|
end
|
74
40
|
|
75
41
|
module Google
|
@@ -1,77 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto
|
3
4
|
|
4
|
-
require 'google/
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
5
7
|
require 'google/api/field_behavior_pb'
|
6
8
|
require 'google/protobuf/duration_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
add_message "google.cloud.datalabeling.v1beta1.PolylineConfig" do
|
32
|
-
optional :annotation_spec_set, :string, 1
|
33
|
-
optional :instruction_message, :string, 2
|
34
|
-
end
|
35
|
-
add_message "google.cloud.datalabeling.v1beta1.SegmentationConfig" do
|
36
|
-
optional :annotation_spec_set, :string, 1
|
37
|
-
optional :instruction_message, :string, 2
|
38
|
-
end
|
39
|
-
add_message "google.cloud.datalabeling.v1beta1.VideoClassificationConfig" do
|
40
|
-
repeated :annotation_spec_set_configs, :message, 1, "google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig"
|
41
|
-
optional :apply_shot_detection, :bool, 2
|
42
|
-
end
|
43
|
-
add_message "google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig" do
|
44
|
-
optional :annotation_spec_set, :string, 1
|
45
|
-
optional :allow_multi_label, :bool, 2
|
46
|
-
end
|
47
|
-
add_message "google.cloud.datalabeling.v1beta1.ObjectDetectionConfig" do
|
48
|
-
optional :annotation_spec_set, :string, 1
|
49
|
-
optional :extraction_frame_rate, :double, 3
|
50
|
-
end
|
51
|
-
add_message "google.cloud.datalabeling.v1beta1.ObjectTrackingConfig" do
|
52
|
-
optional :annotation_spec_set, :string, 1
|
53
|
-
end
|
54
|
-
add_message "google.cloud.datalabeling.v1beta1.EventConfig" do
|
55
|
-
repeated :annotation_spec_sets, :string, 1
|
56
|
-
end
|
57
|
-
add_message "google.cloud.datalabeling.v1beta1.TextClassificationConfig" do
|
58
|
-
optional :allow_multi_label, :bool, 1
|
59
|
-
optional :annotation_spec_set, :string, 2
|
60
|
-
optional :sentiment_config, :message, 3, "google.cloud.datalabeling.v1beta1.SentimentConfig"
|
61
|
-
end
|
62
|
-
add_message "google.cloud.datalabeling.v1beta1.SentimentConfig" do
|
63
|
-
optional :enable_label_sentiment_selection, :bool, 1
|
64
|
-
end
|
65
|
-
add_message "google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig" do
|
66
|
-
optional :annotation_spec_set, :string, 1
|
67
|
-
end
|
68
|
-
add_enum "google.cloud.datalabeling.v1beta1.StringAggregationType" do
|
69
|
-
value :STRING_AGGREGATION_TYPE_UNSPECIFIED, 0
|
70
|
-
value :MAJORITY_VOTE, 1
|
71
|
-
value :UNANIMOUS_VOTE, 2
|
72
|
-
value :NO_AGGREGATION, 3
|
10
|
+
|
11
|
+
descriptor_data = "\n?google/cloud/datalabeling/v1beta1/human_annotation_config.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\"\xd4\x02\n\x15HumanAnnotationConfig\x12\x18\n\x0binstruction\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\x1e\x61nnotated_dataset_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12*\n\x1d\x61nnotated_dataset_description\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0blabel_group\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rreplica_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x39\n\x11question_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1f\n\x12\x63ontributor_emails\x18\t \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\x12user_email_address\x18\n \x01(\t\"\xbd\x01\n\x19ImageClassificationConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x61llow_multi_label\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12^\n\x17\x61nswer_aggregation_type\x18\x03 \x01(\x0e\x32\x38.google.cloud.datalabeling.v1beta1.StringAggregationTypeB\x03\xe0\x41\x01\"X\n\x12\x42oundingPolyConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13instruction_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"T\n\x0ePolylineConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13instruction_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"S\n\x12SegmentationConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13instruction_message\x18\x02 \x01(\t\"\x9b\x02\n\x19VideoClassificationConfig\x12~\n\x1b\x61nnotation_spec_set_configs\x18\x01 \x03(\x0b\x32T.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigB\x03\xe0\x41\x02\x12!\n\x14\x61pply_shot_detection\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a[\n\x17\x41nnotationSpecSetConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x61llow_multi_label\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"]\n\x15ObjectDetectionConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\"\n\x15\x65xtraction_frame_rate\x18\x03 \x01(\x01\x42\x03\xe0\x41\x02\"8\n\x14ObjectTrackingConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\"0\n\x0b\x45ventConfig\x12!\n\x14\x61nnotation_spec_sets\x18\x01 \x03(\tB\x03\xe0\x41\x02\"\xaf\x01\n\x18TextClassificationConfig\x12\x1e\n\x11\x61llow_multi_label\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13\x61nnotation_spec_set\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x10sentiment_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.SentimentConfigB\x03\xe0\x41\x01\";\n\x0fSentimentConfig\x12(\n enable_label_sentiment_selection\x18\x01 \x01(\x08\">\n\x1aTextEntityExtractionConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02*{\n\x15StringAggregationType\x12\'\n#STRING_AGGREGATION_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rMAJORITY_VOTE\x10\x01\x12\x12\n\x0eUNANIMOUS_VOTE\x10\x02\x12\x12\n\x0eNO_AGGREGATION\x10\x03\x42\xe3\x01\n%com.google.cloud.datalabeling.v1beta1P\x01ZIcloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb\xaa\x02!Google.Cloud.DataLabeling.V1Beta1\xca\x02!Google\\Cloud\\DataLabeling\\V1beta1\xea\x02$Google::Cloud::DataLabeling::V1beta1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
73
32
|
end
|
74
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
75
36
|
end
|
76
37
|
|
77
38
|
module Google
|
@@ -1,32 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/datalabeling/v1beta1/instruction.proto
|
3
4
|
|
4
|
-
require 'google/
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/datalabeling/v1beta1/dataset_pb'
|
7
9
|
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'google/protobuf'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
11
|
+
|
12
|
+
descriptor_data = "\n3google/cloud/datalabeling/v1beta1/instruction.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x19google/api/resource.proto\x1a/google/cloud/datalabeling/v1beta1/dataset.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\x03\n\x0bInstruction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\tdata_type\x18\x06 \x01(\x0e\x32+.google.cloud.datalabeling.v1beta1.DataType\x12N\n\x0f\x63sv_instruction\x18\x07 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.CsvInstructionB\x02\x18\x01\x12J\n\x0fpdf_instruction\x18\t \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.PdfInstruction\x12\x1a\n\x12\x62locking_resources\x18\n \x03(\t:[\xea\x41X\n\'datalabeling.googleapis.com/Instruction\x12-projects/{project}/instructions/{instruction}\"&\n\x0e\x43svInstruction\x12\x14\n\x0cgcs_file_uri\x18\x01 \x01(\t\"&\n\x0ePdfInstruction\x12\x14\n\x0cgcs_file_uri\x18\x01 \x01(\tB\xe3\x01\n%com.google.cloud.datalabeling.v1beta1P\x01ZIcloud.google.com/go/datalabeling/apiv1beta1/datalabelingpb;datalabelingpb\xaa\x02!Google.Cloud.DataLabeling.V1Beta1\xca\x02!Google\\Cloud\\DataLabeling\\V1beta1\xea\x02$Google::Cloud::DataLabeling::V1beta1b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
33
|
end
|
29
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
30
37
|
end
|
31
38
|
|
32
39
|
module Google
|