google-cloud-data_labeling-v1beta1 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +76 -83
  5. data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +27 -18
  6. data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service.rb +1 -1
  7. data/lib/google/cloud/data_labeling/v1beta1/version.rb +1 -1
  8. data/lib/google/cloud/data_labeling/v1beta1.rb +2 -2
  9. data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +26 -134
  10. data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +24 -13
  11. data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +31 -224
  12. data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +25 -23
  13. data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +28 -104
  14. data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +29 -43
  15. data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +26 -61
  16. data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +25 -65
  17. data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +25 -19
  18. data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +28 -85
  19. data/proto_docs/google/api/client.rb +381 -0
  20. data/proto_docs/google/api/field_behavior.rb +14 -0
  21. data/proto_docs/google/api/launch_stage.rb +71 -0
  22. data/proto_docs/google/protobuf/any.rb +7 -4
  23. data/proto_docs/google/protobuf/empty.rb +0 -2
  24. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  25. data/proto_docs/google/rpc/status.rb +4 -2
  26. metadata +10 -8
@@ -1,9 +1,9 @@
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
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/datalabeling/v1beta1/annotation_pb'
9
9
  require 'google/cloud/datalabeling/v1beta1/annotation_spec_set_pb'
@@ -11,111 +11,35 @@ require 'google/cloud/datalabeling/v1beta1/data_payloads_pb'
11
11
  require 'google/cloud/datalabeling/v1beta1/human_annotation_config_pb'
12
12
  require 'google/protobuf/timestamp_pb'
13
13
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/datalabeling/v1beta1/dataset.proto", :syntax => :proto3) do
16
- add_message "google.cloud.datalabeling.v1beta1.Dataset" do
17
- optional :name, :string, 1
18
- optional :display_name, :string, 2
19
- optional :description, :string, 3
20
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
21
- repeated :input_configs, :message, 5, "google.cloud.datalabeling.v1beta1.InputConfig"
22
- repeated :blocking_resources, :string, 6
23
- optional :data_item_count, :int64, 7
24
- end
25
- add_message "google.cloud.datalabeling.v1beta1.InputConfig" do
26
- optional :data_type, :enum, 1, "google.cloud.datalabeling.v1beta1.DataType"
27
- optional :annotation_type, :enum, 3, "google.cloud.datalabeling.v1beta1.AnnotationType"
28
- optional :classification_metadata, :message, 4, "google.cloud.datalabeling.v1beta1.ClassificationMetadata"
29
- oneof :data_type_metadata do
30
- optional :text_metadata, :message, 6, "google.cloud.datalabeling.v1beta1.TextMetadata"
31
- end
32
- oneof :source do
33
- optional :gcs_source, :message, 2, "google.cloud.datalabeling.v1beta1.GcsSource"
34
- optional :bigquery_source, :message, 5, "google.cloud.datalabeling.v1beta1.BigQuerySource"
35
- end
36
- end
37
- add_message "google.cloud.datalabeling.v1beta1.TextMetadata" do
38
- optional :language_code, :string, 1
39
- end
40
- add_message "google.cloud.datalabeling.v1beta1.ClassificationMetadata" do
41
- optional :is_multi_label, :bool, 1
42
- end
43
- add_message "google.cloud.datalabeling.v1beta1.GcsSource" do
44
- optional :input_uri, :string, 1
45
- optional :mime_type, :string, 2
46
- end
47
- add_message "google.cloud.datalabeling.v1beta1.BigQuerySource" do
48
- optional :input_uri, :string, 1
49
- end
50
- add_message "google.cloud.datalabeling.v1beta1.OutputConfig" do
51
- oneof :destination do
52
- optional :gcs_destination, :message, 1, "google.cloud.datalabeling.v1beta1.GcsDestination"
53
- optional :gcs_folder_destination, :message, 2, "google.cloud.datalabeling.v1beta1.GcsFolderDestination"
54
- end
55
- end
56
- add_message "google.cloud.datalabeling.v1beta1.GcsDestination" do
57
- optional :output_uri, :string, 1
58
- optional :mime_type, :string, 2
59
- end
60
- add_message "google.cloud.datalabeling.v1beta1.GcsFolderDestination" do
61
- optional :output_folder_uri, :string, 1
62
- end
63
- add_message "google.cloud.datalabeling.v1beta1.DataItem" do
64
- optional :name, :string, 1
65
- oneof :payload do
66
- optional :image_payload, :message, 2, "google.cloud.datalabeling.v1beta1.ImagePayload"
67
- optional :text_payload, :message, 3, "google.cloud.datalabeling.v1beta1.TextPayload"
68
- optional :video_payload, :message, 4, "google.cloud.datalabeling.v1beta1.VideoPayload"
69
- end
70
- end
71
- add_message "google.cloud.datalabeling.v1beta1.AnnotatedDataset" do
72
- optional :name, :string, 1
73
- optional :display_name, :string, 2
74
- optional :description, :string, 9
75
- optional :annotation_source, :enum, 3, "google.cloud.datalabeling.v1beta1.AnnotationSource"
76
- optional :annotation_type, :enum, 8, "google.cloud.datalabeling.v1beta1.AnnotationType"
77
- optional :example_count, :int64, 4
78
- optional :completed_example_count, :int64, 5
79
- optional :label_stats, :message, 6, "google.cloud.datalabeling.v1beta1.LabelStats"
80
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
81
- optional :metadata, :message, 10, "google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata"
82
- repeated :blocking_resources, :string, 11
83
- end
84
- add_message "google.cloud.datalabeling.v1beta1.LabelStats" do
85
- map :example_count, :string, :int64, 1
86
- end
87
- add_message "google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata" do
88
- optional :human_annotation_config, :message, 1, "google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"
89
- oneof :annotation_request_config do
90
- optional :image_classification_config, :message, 2, "google.cloud.datalabeling.v1beta1.ImageClassificationConfig"
91
- optional :bounding_poly_config, :message, 3, "google.cloud.datalabeling.v1beta1.BoundingPolyConfig"
92
- optional :polyline_config, :message, 4, "google.cloud.datalabeling.v1beta1.PolylineConfig"
93
- optional :segmentation_config, :message, 5, "google.cloud.datalabeling.v1beta1.SegmentationConfig"
94
- optional :video_classification_config, :message, 6, "google.cloud.datalabeling.v1beta1.VideoClassificationConfig"
95
- optional :object_detection_config, :message, 7, "google.cloud.datalabeling.v1beta1.ObjectDetectionConfig"
96
- optional :object_tracking_config, :message, 8, "google.cloud.datalabeling.v1beta1.ObjectTrackingConfig"
97
- optional :event_config, :message, 9, "google.cloud.datalabeling.v1beta1.EventConfig"
98
- optional :text_classification_config, :message, 10, "google.cloud.datalabeling.v1beta1.TextClassificationConfig"
99
- optional :text_entity_extraction_config, :message, 11, "google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig"
100
- end
101
- end
102
- add_message "google.cloud.datalabeling.v1beta1.Example" do
103
- optional :name, :string, 1
104
- repeated :annotations, :message, 5, "google.cloud.datalabeling.v1beta1.Annotation"
105
- oneof :payload do
106
- optional :image_payload, :message, 2, "google.cloud.datalabeling.v1beta1.ImagePayload"
107
- optional :text_payload, :message, 6, "google.cloud.datalabeling.v1beta1.TextPayload"
108
- optional :video_payload, :message, 7, "google.cloud.datalabeling.v1beta1.VideoPayload"
109
- end
110
- end
111
- add_enum "google.cloud.datalabeling.v1beta1.DataType" do
112
- value :DATA_TYPE_UNSPECIFIED, 0
113
- value :IMAGE, 1
114
- value :VIDEO, 2
115
- value :TEXT, 4
116
- 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}"
117
39
  end
118
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."
119
43
  end
120
44
 
121
45
  module Google
@@ -1,9 +1,9 @@
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
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/datalabeling/v1beta1/dataset_pb'
9
9
  require 'google/cloud/datalabeling/v1beta1/evaluation_pb'
@@ -11,50 +11,36 @@ require 'google/cloud/datalabeling/v1beta1/human_annotation_config_pb'
11
11
  require 'google/protobuf/timestamp_pb'
12
12
  require 'google/rpc/status_pb'
13
13
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/datalabeling/v1beta1/evaluation_job.proto", :syntax => :proto3) do
16
- add_message "google.cloud.datalabeling.v1beta1.EvaluationJob" do
17
- optional :name, :string, 1
18
- optional :description, :string, 2
19
- optional :state, :enum, 3, "google.cloud.datalabeling.v1beta1.EvaluationJob.State"
20
- optional :schedule, :string, 4
21
- optional :model_version, :string, 5
22
- optional :evaluation_job_config, :message, 6, "google.cloud.datalabeling.v1beta1.EvaluationJobConfig"
23
- optional :annotation_spec_set, :string, 7
24
- optional :label_missing_ground_truth, :bool, 8
25
- repeated :attempts, :message, 9, "google.cloud.datalabeling.v1beta1.Attempt"
26
- optional :create_time, :message, 10, "google.protobuf.Timestamp"
27
- end
28
- add_enum "google.cloud.datalabeling.v1beta1.EvaluationJob.State" do
29
- value :STATE_UNSPECIFIED, 0
30
- value :SCHEDULED, 1
31
- value :RUNNING, 2
32
- value :PAUSED, 3
33
- value :STOPPED, 4
34
- end
35
- add_message "google.cloud.datalabeling.v1beta1.EvaluationJobConfig" do
36
- optional :input_config, :message, 1, "google.cloud.datalabeling.v1beta1.InputConfig"
37
- optional :evaluation_config, :message, 2, "google.cloud.datalabeling.v1beta1.EvaluationConfig"
38
- optional :human_annotation_config, :message, 3, "google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"
39
- map :bigquery_import_keys, :string, :string, 9
40
- optional :example_count, :int32, 10
41
- optional :example_sample_percentage, :double, 11
42
- optional :evaluation_job_alert_config, :message, 13, "google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig"
43
- oneof :human_annotation_request_config do
44
- optional :image_classification_config, :message, 4, "google.cloud.datalabeling.v1beta1.ImageClassificationConfig"
45
- optional :bounding_poly_config, :message, 5, "google.cloud.datalabeling.v1beta1.BoundingPolyConfig"
46
- optional :text_classification_config, :message, 8, "google.cloud.datalabeling.v1beta1.TextClassificationConfig"
47
- end
48
- end
49
- add_message "google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig" do
50
- optional :email, :string, 1
51
- optional :min_acceptable_mean_average_precision, :double, 2
52
- end
53
- add_message "google.cloud.datalabeling.v1beta1.Attempt" do
54
- optional :attempt_time, :message, 1, "google.protobuf.Timestamp"
55
- 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}"
56
40
  end
57
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."
58
44
  end
59
45
 
60
46
  module Google
@@ -1,76 +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
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/datalabeling/v1beta1/annotation_pb'
9
9
  require 'google/cloud/datalabeling/v1beta1/annotation_spec_set_pb'
10
10
  require 'google/protobuf/timestamp_pb'
11
11
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/datalabeling/v1beta1/evaluation.proto", :syntax => :proto3) do
14
- add_message "google.cloud.datalabeling.v1beta1.Evaluation" do
15
- optional :name, :string, 1
16
- optional :config, :message, 2, "google.cloud.datalabeling.v1beta1.EvaluationConfig"
17
- optional :evaluation_job_run_time, :message, 3, "google.protobuf.Timestamp"
18
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
19
- optional :evaluation_metrics, :message, 5, "google.cloud.datalabeling.v1beta1.EvaluationMetrics"
20
- optional :annotation_type, :enum, 6, "google.cloud.datalabeling.v1beta1.AnnotationType"
21
- optional :evaluated_item_count, :int64, 7
22
- end
23
- add_message "google.cloud.datalabeling.v1beta1.EvaluationConfig" do
24
- oneof :vertical_option do
25
- optional :bounding_box_evaluation_options, :message, 1, "google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions"
26
- end
27
- end
28
- add_message "google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions" do
29
- optional :iou_threshold, :float, 1
30
- end
31
- add_message "google.cloud.datalabeling.v1beta1.EvaluationMetrics" do
32
- oneof :metrics do
33
- optional :classification_metrics, :message, 1, "google.cloud.datalabeling.v1beta1.ClassificationMetrics"
34
- optional :object_detection_metrics, :message, 2, "google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics"
35
- end
36
- end
37
- add_message "google.cloud.datalabeling.v1beta1.ClassificationMetrics" do
38
- optional :pr_curve, :message, 1, "google.cloud.datalabeling.v1beta1.PrCurve"
39
- optional :confusion_matrix, :message, 2, "google.cloud.datalabeling.v1beta1.ConfusionMatrix"
40
- end
41
- add_message "google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics" do
42
- optional :pr_curve, :message, 1, "google.cloud.datalabeling.v1beta1.PrCurve"
43
- end
44
- add_message "google.cloud.datalabeling.v1beta1.PrCurve" do
45
- optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
46
- optional :area_under_curve, :float, 2
47
- repeated :confidence_metrics_entries, :message, 3, "google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry"
48
- optional :mean_average_precision, :float, 4
49
- end
50
- add_message "google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry" do
51
- optional :confidence_threshold, :float, 1
52
- optional :recall, :float, 2
53
- optional :precision, :float, 3
54
- optional :f1_score, :float, 4
55
- optional :recall_at1, :float, 5
56
- optional :precision_at1, :float, 6
57
- optional :f1_score_at1, :float, 7
58
- optional :recall_at5, :float, 8
59
- optional :precision_at5, :float, 9
60
- optional :f1_score_at5, :float, 10
61
- end
62
- add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix" do
63
- repeated :row, :message, 1, "google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row"
64
- end
65
- add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry" do
66
- optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
67
- optional :item_count, :int32, 2
68
- end
69
- add_message "google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row" do
70
- optional :annotation_spec, :message, 1, "google.cloud.datalabeling.v1beta1.AnnotationSpec"
71
- 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}"
72
35
  end
73
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."
74
39
  end
75
40
 
76
41
  module Google
@@ -1,78 +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
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  require 'google/api/field_behavior_pb'
8
8
  require 'google/protobuf/duration_pb'
9
9
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/datalabeling/v1beta1/human_annotation_config.proto", :syntax => :proto3) do
12
- add_message "google.cloud.datalabeling.v1beta1.HumanAnnotationConfig" do
13
- optional :instruction, :string, 1
14
- optional :annotated_dataset_display_name, :string, 2
15
- optional :annotated_dataset_description, :string, 3
16
- optional :label_group, :string, 4
17
- optional :language_code, :string, 5
18
- optional :replica_count, :int32, 6
19
- optional :question_duration, :message, 7, "google.protobuf.Duration"
20
- repeated :contributor_emails, :string, 9
21
- optional :user_email_address, :string, 10
22
- end
23
- add_message "google.cloud.datalabeling.v1beta1.ImageClassificationConfig" do
24
- optional :annotation_spec_set, :string, 1
25
- optional :allow_multi_label, :bool, 2
26
- optional :answer_aggregation_type, :enum, 3, "google.cloud.datalabeling.v1beta1.StringAggregationType"
27
- end
28
- add_message "google.cloud.datalabeling.v1beta1.BoundingPolyConfig" do
29
- optional :annotation_spec_set, :string, 1
30
- optional :instruction_message, :string, 2
31
- end
32
- add_message "google.cloud.datalabeling.v1beta1.PolylineConfig" do
33
- optional :annotation_spec_set, :string, 1
34
- optional :instruction_message, :string, 2
35
- end
36
- add_message "google.cloud.datalabeling.v1beta1.SegmentationConfig" do
37
- optional :annotation_spec_set, :string, 1
38
- optional :instruction_message, :string, 2
39
- end
40
- add_message "google.cloud.datalabeling.v1beta1.VideoClassificationConfig" do
41
- repeated :annotation_spec_set_configs, :message, 1, "google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig"
42
- optional :apply_shot_detection, :bool, 2
43
- end
44
- add_message "google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig" do
45
- optional :annotation_spec_set, :string, 1
46
- optional :allow_multi_label, :bool, 2
47
- end
48
- add_message "google.cloud.datalabeling.v1beta1.ObjectDetectionConfig" do
49
- optional :annotation_spec_set, :string, 1
50
- optional :extraction_frame_rate, :double, 3
51
- end
52
- add_message "google.cloud.datalabeling.v1beta1.ObjectTrackingConfig" do
53
- optional :annotation_spec_set, :string, 1
54
- end
55
- add_message "google.cloud.datalabeling.v1beta1.EventConfig" do
56
- repeated :annotation_spec_sets, :string, 1
57
- end
58
- add_message "google.cloud.datalabeling.v1beta1.TextClassificationConfig" do
59
- optional :allow_multi_label, :bool, 1
60
- optional :annotation_spec_set, :string, 2
61
- optional :sentiment_config, :message, 3, "google.cloud.datalabeling.v1beta1.SentimentConfig"
62
- end
63
- add_message "google.cloud.datalabeling.v1beta1.SentimentConfig" do
64
- optional :enable_label_sentiment_selection, :bool, 1
65
- end
66
- add_message "google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig" do
67
- optional :annotation_spec_set, :string, 1
68
- end
69
- add_enum "google.cloud.datalabeling.v1beta1.StringAggregationType" do
70
- value :STRING_AGGREGATION_TYPE_UNSPECIFIED, 0
71
- value :MAJORITY_VOTE, 1
72
- value :UNANIMOUS_VOTE, 2
73
- 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}"
74
32
  end
75
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."
76
36
  end
77
37
 
78
38
  module Google
@@ -1,33 +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
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/datalabeling/v1beta1/dataset_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/datalabeling/v1beta1/instruction.proto", :syntax => :proto3) do
13
- add_message "google.cloud.datalabeling.v1beta1.Instruction" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :description, :string, 3
17
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
18
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
19
- optional :data_type, :enum, 6, "google.cloud.datalabeling.v1beta1.DataType"
20
- optional :csv_instruction, :message, 7, "google.cloud.datalabeling.v1beta1.CsvInstruction"
21
- optional :pdf_instruction, :message, 9, "google.cloud.datalabeling.v1beta1.PdfInstruction"
22
- repeated :blocking_resources, :string, 10
23
- end
24
- add_message "google.cloud.datalabeling.v1beta1.CsvInstruction" do
25
- optional :gcs_file_uri, :string, 1
26
- end
27
- add_message "google.cloud.datalabeling.v1beta1.PdfInstruction" do
28
- optional :gcs_file_uri, :string, 1
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}"
29
33
  end
30
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."
31
37
  end
32
38
 
33
39
  module Google