google-cloud-video_intelligence 2.1.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -54
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +274 -0
  6. data/README.md +36 -62
  7. data/lib/{google/cloud/video_intelligence/credentials.rb → google-cloud-video_intelligence.rb} +5 -13
  8. data/lib/google/cloud/video_intelligence.rb +87 -156
  9. data/lib/google/cloud/video_intelligence/version.rb +6 -2
  10. metadata +99 -83
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/video_intelligence/v1.rb +0 -186
  13. data/lib/google/cloud/video_intelligence/v1/credentials.rb +0 -41
  14. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +0 -789
  15. data/lib/google/cloud/video_intelligence/v1/doc/google/longrunning/operations.rb +0 -51
  16. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb +0 -131
  17. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb +0 -91
  18. data/lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb +0 -39
  19. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +0 -309
  20. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json +0 -31
  21. data/lib/google/cloud/video_intelligence/v1beta2.rb +0 -149
  22. data/lib/google/cloud/video_intelligence/v1beta2/credentials.rb +0 -41
  23. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb +0 -372
  24. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/longrunning/operations.rb +0 -51
  25. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb +0 -131
  26. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb +0 -91
  27. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb +0 -39
  28. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +0 -309
  29. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client_config.json +0 -31
  30. data/lib/google/cloud/video_intelligence/v1p1beta1.rb +0 -187
  31. data/lib/google/cloud/video_intelligence/v1p1beta1/credentials.rb +0 -41
  32. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/cloud/videointelligence/v1p1beta1/video_intelligence.rb +0 -410
  33. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/longrunning/operations.rb +0 -51
  34. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/any.rb +0 -131
  35. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/duration.rb +0 -91
  36. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/rpc/status.rb +0 -39
  37. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb +0 -309
  38. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client_config.json +0 -31
  39. data/lib/google/cloud/video_intelligence/v1p2beta1.rb +0 -187
  40. data/lib/google/cloud/video_intelligence/v1p2beta1/credentials.rb +0 -41
  41. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/video_intelligence.rb +0 -442
  42. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/longrunning/operations.rb +0 -51
  43. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/any.rb +0 -131
  44. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/duration.rb +0 -91
  45. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/rpc/status.rb +0 -39
  46. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb +0 -309
  47. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client_config.json +0 -31
  48. data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +0 -304
  49. data/lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb +0 -50
  50. data/lib/google/cloud/videointelligence/v1beta2/video_intelligence_pb.rb +0 -170
  51. data/lib/google/cloud/videointelligence/v1beta2/video_intelligence_services_pb.rb +0 -51
  52. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_pb.rb +0 -172
  53. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_services_pb.rb +0 -51
  54. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_pb.rb +0 -193
  55. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_services_pb.rb +0 -51
@@ -1,31 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 1000,
14
- "retry_delay_multiplier": 2.5,
15
- "max_retry_delay_millis": 120000,
16
- "initial_rpc_timeout_millis": 120000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 120000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "AnnotateVideo": {
24
- "timeout_millis": 600000,
25
- "retry_codes_name": "idempotent",
26
- "retry_params_name": "default"
27
- }
28
- }
29
- }
30
- }
31
- }
@@ -1,304 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/videointelligence/v1/video_intelligence.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/longrunning/operations_pb'
11
- require 'google/protobuf/duration_pb'
12
- require 'google/protobuf/timestamp_pb'
13
- require 'google/rpc/status_pb'
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_message "google.cloud.videointelligence.v1.AnnotateVideoRequest" do
16
- optional :input_uri, :string, 1
17
- optional :input_content, :bytes, 6
18
- repeated :features, :enum, 2, "google.cloud.videointelligence.v1.Feature"
19
- optional :video_context, :message, 3, "google.cloud.videointelligence.v1.VideoContext"
20
- optional :output_uri, :string, 4
21
- optional :location_id, :string, 5
22
- end
23
- add_message "google.cloud.videointelligence.v1.VideoContext" do
24
- repeated :segments, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
25
- optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1.LabelDetectionConfig"
26
- optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1.ShotChangeDetectionConfig"
27
- optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig"
28
- optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1.FaceDetectionConfig"
29
- optional :speech_transcription_config, :message, 6, "google.cloud.videointelligence.v1.SpeechTranscriptionConfig"
30
- optional :text_detection_config, :message, 8, "google.cloud.videointelligence.v1.TextDetectionConfig"
31
- optional :object_tracking_config, :message, 13, "google.cloud.videointelligence.v1.ObjectTrackingConfig"
32
- end
33
- add_message "google.cloud.videointelligence.v1.LabelDetectionConfig" do
34
- optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1.LabelDetectionMode"
35
- optional :stationary_camera, :bool, 2
36
- optional :model, :string, 3
37
- optional :frame_confidence_threshold, :float, 4
38
- optional :video_confidence_threshold, :float, 5
39
- end
40
- add_message "google.cloud.videointelligence.v1.ShotChangeDetectionConfig" do
41
- optional :model, :string, 1
42
- end
43
- add_message "google.cloud.videointelligence.v1.ObjectTrackingConfig" do
44
- optional :model, :string, 1
45
- end
46
- add_message "google.cloud.videointelligence.v1.FaceDetectionConfig" do
47
- optional :model, :string, 1
48
- optional :include_bounding_boxes, :bool, 2
49
- end
50
- add_message "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig" do
51
- optional :model, :string, 1
52
- end
53
- add_message "google.cloud.videointelligence.v1.TextDetectionConfig" do
54
- repeated :language_hints, :string, 1
55
- optional :model, :string, 2
56
- end
57
- add_message "google.cloud.videointelligence.v1.VideoSegment" do
58
- optional :start_time_offset, :message, 1, "google.protobuf.Duration"
59
- optional :end_time_offset, :message, 2, "google.protobuf.Duration"
60
- end
61
- add_message "google.cloud.videointelligence.v1.LabelSegment" do
62
- optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
63
- optional :confidence, :float, 2
64
- end
65
- add_message "google.cloud.videointelligence.v1.LabelFrame" do
66
- optional :time_offset, :message, 1, "google.protobuf.Duration"
67
- optional :confidence, :float, 2
68
- end
69
- add_message "google.cloud.videointelligence.v1.Entity" do
70
- optional :entity_id, :string, 1
71
- optional :description, :string, 2
72
- optional :language_code, :string, 3
73
- end
74
- add_message "google.cloud.videointelligence.v1.LabelAnnotation" do
75
- optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity"
76
- repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1.Entity"
77
- repeated :segments, :message, 3, "google.cloud.videointelligence.v1.LabelSegment"
78
- repeated :frames, :message, 4, "google.cloud.videointelligence.v1.LabelFrame"
79
- end
80
- add_message "google.cloud.videointelligence.v1.ExplicitContentFrame" do
81
- optional :time_offset, :message, 1, "google.protobuf.Duration"
82
- optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1.Likelihood"
83
- end
84
- add_message "google.cloud.videointelligence.v1.ExplicitContentAnnotation" do
85
- repeated :frames, :message, 1, "google.cloud.videointelligence.v1.ExplicitContentFrame"
86
- end
87
- add_message "google.cloud.videointelligence.v1.NormalizedBoundingBox" do
88
- optional :left, :float, 1
89
- optional :top, :float, 2
90
- optional :right, :float, 3
91
- optional :bottom, :float, 4
92
- end
93
- add_message "google.cloud.videointelligence.v1.FaceSegment" do
94
- optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
95
- end
96
- add_message "google.cloud.videointelligence.v1.FaceFrame" do
97
- repeated :normalized_bounding_boxes, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox"
98
- optional :time_offset, :message, 2, "google.protobuf.Duration"
99
- end
100
- add_message "google.cloud.videointelligence.v1.FaceAnnotation" do
101
- optional :thumbnail, :bytes, 1
102
- repeated :segments, :message, 2, "google.cloud.videointelligence.v1.FaceSegment"
103
- repeated :frames, :message, 3, "google.cloud.videointelligence.v1.FaceFrame"
104
- end
105
- add_message "google.cloud.videointelligence.v1.TimestampedObject" do
106
- optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox"
107
- optional :time_offset, :message, 2, "google.protobuf.Duration"
108
- repeated :attributes, :message, 3, "google.cloud.videointelligence.v1.DetectedAttribute"
109
- repeated :landmarks, :message, 4, "google.cloud.videointelligence.v1.DetectedLandmark"
110
- end
111
- add_message "google.cloud.videointelligence.v1.Track" do
112
- optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
113
- repeated :timestamped_objects, :message, 2, "google.cloud.videointelligence.v1.TimestampedObject"
114
- repeated :attributes, :message, 3, "google.cloud.videointelligence.v1.DetectedAttribute"
115
- optional :confidence, :float, 4
116
- end
117
- add_message "google.cloud.videointelligence.v1.DetectedAttribute" do
118
- optional :name, :string, 1
119
- optional :confidence, :float, 2
120
- optional :value, :string, 3
121
- end
122
- add_message "google.cloud.videointelligence.v1.DetectedLandmark" do
123
- optional :name, :string, 1
124
- optional :point, :message, 2, "google.cloud.videointelligence.v1.NormalizedVertex"
125
- optional :confidence, :float, 3
126
- end
127
- add_message "google.cloud.videointelligence.v1.VideoAnnotationResults" do
128
- optional :input_uri, :string, 1
129
- optional :segment, :message, 10, "google.cloud.videointelligence.v1.VideoSegment"
130
- repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1.LabelAnnotation"
131
- repeated :segment_presence_label_annotations, :message, 23, "google.cloud.videointelligence.v1.LabelAnnotation"
132
- repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1.LabelAnnotation"
133
- repeated :shot_presence_label_annotations, :message, 24, "google.cloud.videointelligence.v1.LabelAnnotation"
134
- repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1.LabelAnnotation"
135
- repeated :face_annotations, :message, 5, "google.cloud.videointelligence.v1.FaceAnnotation"
136
- repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1.VideoSegment"
137
- optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1.ExplicitContentAnnotation"
138
- repeated :speech_transcriptions, :message, 11, "google.cloud.videointelligence.v1.SpeechTranscription"
139
- repeated :text_annotations, :message, 12, "google.cloud.videointelligence.v1.TextAnnotation"
140
- repeated :object_annotations, :message, 14, "google.cloud.videointelligence.v1.ObjectTrackingAnnotation"
141
- repeated :logo_recognition_annotations, :message, 19, "google.cloud.videointelligence.v1.LogoRecognitionAnnotation"
142
- optional :error, :message, 9, "google.rpc.Status"
143
- end
144
- add_message "google.cloud.videointelligence.v1.AnnotateVideoResponse" do
145
- repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationResults"
146
- end
147
- add_message "google.cloud.videointelligence.v1.VideoAnnotationProgress" do
148
- optional :input_uri, :string, 1
149
- optional :progress_percent, :int32, 2
150
- optional :start_time, :message, 3, "google.protobuf.Timestamp"
151
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
152
- optional :feature, :enum, 5, "google.cloud.videointelligence.v1.Feature"
153
- optional :segment, :message, 6, "google.cloud.videointelligence.v1.VideoSegment"
154
- end
155
- add_message "google.cloud.videointelligence.v1.AnnotateVideoProgress" do
156
- repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationProgress"
157
- end
158
- add_message "google.cloud.videointelligence.v1.SpeechTranscriptionConfig" do
159
- optional :language_code, :string, 1
160
- optional :max_alternatives, :int32, 2
161
- optional :filter_profanity, :bool, 3
162
- repeated :speech_contexts, :message, 4, "google.cloud.videointelligence.v1.SpeechContext"
163
- optional :enable_automatic_punctuation, :bool, 5
164
- repeated :audio_tracks, :int32, 6
165
- optional :enable_speaker_diarization, :bool, 7
166
- optional :diarization_speaker_count, :int32, 8
167
- optional :enable_word_confidence, :bool, 9
168
- end
169
- add_message "google.cloud.videointelligence.v1.SpeechContext" do
170
- repeated :phrases, :string, 1
171
- end
172
- add_message "google.cloud.videointelligence.v1.SpeechTranscription" do
173
- repeated :alternatives, :message, 1, "google.cloud.videointelligence.v1.SpeechRecognitionAlternative"
174
- optional :language_code, :string, 2
175
- end
176
- add_message "google.cloud.videointelligence.v1.SpeechRecognitionAlternative" do
177
- optional :transcript, :string, 1
178
- optional :confidence, :float, 2
179
- repeated :words, :message, 3, "google.cloud.videointelligence.v1.WordInfo"
180
- end
181
- add_message "google.cloud.videointelligence.v1.WordInfo" do
182
- optional :start_time, :message, 1, "google.protobuf.Duration"
183
- optional :end_time, :message, 2, "google.protobuf.Duration"
184
- optional :word, :string, 3
185
- optional :confidence, :float, 4
186
- optional :speaker_tag, :int32, 5
187
- end
188
- add_message "google.cloud.videointelligence.v1.NormalizedVertex" do
189
- optional :x, :float, 1
190
- optional :y, :float, 2
191
- end
192
- add_message "google.cloud.videointelligence.v1.NormalizedBoundingPoly" do
193
- repeated :vertices, :message, 1, "google.cloud.videointelligence.v1.NormalizedVertex"
194
- end
195
- add_message "google.cloud.videointelligence.v1.TextSegment" do
196
- optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
197
- optional :confidence, :float, 2
198
- repeated :frames, :message, 3, "google.cloud.videointelligence.v1.TextFrame"
199
- end
200
- add_message "google.cloud.videointelligence.v1.TextFrame" do
201
- optional :rotated_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingPoly"
202
- optional :time_offset, :message, 2, "google.protobuf.Duration"
203
- end
204
- add_message "google.cloud.videointelligence.v1.TextAnnotation" do
205
- optional :text, :string, 1
206
- repeated :segments, :message, 2, "google.cloud.videointelligence.v1.TextSegment"
207
- end
208
- add_message "google.cloud.videointelligence.v1.ObjectTrackingFrame" do
209
- optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox"
210
- optional :time_offset, :message, 2, "google.protobuf.Duration"
211
- end
212
- add_message "google.cloud.videointelligence.v1.ObjectTrackingAnnotation" do
213
- optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity"
214
- optional :confidence, :float, 4
215
- repeated :frames, :message, 2, "google.cloud.videointelligence.v1.ObjectTrackingFrame"
216
- oneof :track_info do
217
- optional :segment, :message, 3, "google.cloud.videointelligence.v1.VideoSegment"
218
- optional :track_id, :int64, 5
219
- end
220
- end
221
- add_message "google.cloud.videointelligence.v1.LogoRecognitionAnnotation" do
222
- optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity"
223
- repeated :tracks, :message, 2, "google.cloud.videointelligence.v1.Track"
224
- repeated :segments, :message, 3, "google.cloud.videointelligence.v1.VideoSegment"
225
- end
226
- add_enum "google.cloud.videointelligence.v1.Feature" do
227
- value :FEATURE_UNSPECIFIED, 0
228
- value :LABEL_DETECTION, 1
229
- value :SHOT_CHANGE_DETECTION, 2
230
- value :EXPLICIT_CONTENT_DETECTION, 3
231
- value :FACE_DETECTION, 4
232
- value :SPEECH_TRANSCRIPTION, 6
233
- value :TEXT_DETECTION, 7
234
- value :OBJECT_TRACKING, 9
235
- value :LOGO_RECOGNITION, 12
236
- end
237
- add_enum "google.cloud.videointelligence.v1.LabelDetectionMode" do
238
- value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
239
- value :SHOT_MODE, 1
240
- value :FRAME_MODE, 2
241
- value :SHOT_AND_FRAME_MODE, 3
242
- end
243
- add_enum "google.cloud.videointelligence.v1.Likelihood" do
244
- value :LIKELIHOOD_UNSPECIFIED, 0
245
- value :VERY_UNLIKELY, 1
246
- value :UNLIKELY, 2
247
- value :POSSIBLE, 3
248
- value :LIKELY, 4
249
- value :VERY_LIKELY, 5
250
- end
251
- end
252
-
253
- module Google
254
- module Cloud
255
- module VideoIntelligence
256
- end
257
- Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
258
- end
259
- end
260
- module Google::Cloud::VideoIntelligence::V1
261
- AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoRequest").msgclass
262
- VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass
263
- LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass
264
- ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
265
- ObjectTrackingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass
266
- FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
267
- ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
268
- TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").msgclass
269
- VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
270
- LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
271
- LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelFrame").msgclass
272
- Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Entity").msgclass
273
- LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelAnnotation").msgclass
274
- ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentFrame").msgclass
275
- ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentAnnotation").msgclass
276
- NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingBox").msgclass
277
- FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass
278
- FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass
279
- FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass
280
- TimestampedObject = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TimestampedObject").msgclass
281
- Track = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Track").msgclass
282
- DetectedAttribute = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedAttribute").msgclass
283
- DetectedLandmark = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedLandmark").msgclass
284
- VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass
285
- AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
286
- VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
287
- AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass
288
- SpeechTranscriptionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscriptionConfig").msgclass
289
- SpeechContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechContext").msgclass
290
- SpeechTranscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscription").msgclass
291
- SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechRecognitionAlternative").msgclass
292
- WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.WordInfo").msgclass
293
- NormalizedVertex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedVertex").msgclass
294
- NormalizedBoundingPoly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingPoly").msgclass
295
- TextSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextSegment").msgclass
296
- TextFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextFrame").msgclass
297
- TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextAnnotation").msgclass
298
- ObjectTrackingFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingFrame").msgclass
299
- ObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingAnnotation").msgclass
300
- LogoRecognitionAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LogoRecognitionAnnotation").msgclass
301
- Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
302
- LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
303
- Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
304
- end
@@ -1,50 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/videointelligence/v1/video_intelligence.proto for package 'Google::Cloud::VideoIntelligence::V1'
3
- # Original file comments:
4
- # Copyright 2020 Google LLC
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/cloud/videointelligence/v1/video_intelligence_pb'
22
-
23
- module Google
24
- module Cloud
25
- module VideoIntelligence
26
- end
27
- Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
28
- end
29
- end
30
- module Google::Cloud::VideoIntelligence::V1
31
- module VideoIntelligenceService
32
- # Service that implements Google Cloud Video Intelligence API.
33
- class Service
34
-
35
- include GRPC::GenericService
36
-
37
- self.marshal_class_method = :encode
38
- self.unmarshal_class_method = :decode
39
- self.service_name = 'google.cloud.videointelligence.v1.VideoIntelligenceService'
40
-
41
- # Performs asynchronous video annotation. Progress and results can be
42
- # retrieved through the `google.longrunning.Operations` interface.
43
- # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
44
- # `Operation.response` contains `AnnotateVideoResponse` (results).
45
- rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
46
- end
47
-
48
- Stub = Service.rpc_stub_class
49
- end
50
- end
@@ -1,170 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/videointelligence/v1beta2/video_intelligence.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/longrunning/operations_pb'
11
- require 'google/protobuf/duration_pb'
12
- require 'google/protobuf/timestamp_pb'
13
- require 'google/rpc/status_pb'
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_message "google.cloud.videointelligence.v1beta2.AnnotateVideoRequest" do
16
- optional :input_uri, :string, 1
17
- optional :input_content, :bytes, 6
18
- repeated :features, :enum, 2, "google.cloud.videointelligence.v1beta2.Feature"
19
- optional :video_context, :message, 3, "google.cloud.videointelligence.v1beta2.VideoContext"
20
- optional :output_uri, :string, 4
21
- optional :location_id, :string, 5
22
- end
23
- add_message "google.cloud.videointelligence.v1beta2.VideoContext" do
24
- repeated :segments, :message, 1, "google.cloud.videointelligence.v1beta2.VideoSegment"
25
- optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1beta2.LabelDetectionConfig"
26
- optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig"
27
- optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig"
28
- optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1beta2.FaceDetectionConfig"
29
- end
30
- add_message "google.cloud.videointelligence.v1beta2.LabelDetectionConfig" do
31
- optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1beta2.LabelDetectionMode"
32
- optional :stationary_camera, :bool, 2
33
- optional :model, :string, 3
34
- end
35
- add_message "google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig" do
36
- optional :model, :string, 1
37
- end
38
- add_message "google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig" do
39
- optional :model, :string, 1
40
- end
41
- add_message "google.cloud.videointelligence.v1beta2.FaceDetectionConfig" do
42
- optional :model, :string, 1
43
- optional :include_bounding_boxes, :bool, 2
44
- end
45
- add_message "google.cloud.videointelligence.v1beta2.VideoSegment" do
46
- optional :start_time_offset, :message, 1, "google.protobuf.Duration"
47
- optional :end_time_offset, :message, 2, "google.protobuf.Duration"
48
- end
49
- add_message "google.cloud.videointelligence.v1beta2.LabelSegment" do
50
- optional :segment, :message, 1, "google.cloud.videointelligence.v1beta2.VideoSegment"
51
- optional :confidence, :float, 2
52
- end
53
- add_message "google.cloud.videointelligence.v1beta2.LabelFrame" do
54
- optional :time_offset, :message, 1, "google.protobuf.Duration"
55
- optional :confidence, :float, 2
56
- end
57
- add_message "google.cloud.videointelligence.v1beta2.Entity" do
58
- optional :entity_id, :string, 1
59
- optional :description, :string, 2
60
- optional :language_code, :string, 3
61
- end
62
- add_message "google.cloud.videointelligence.v1beta2.LabelAnnotation" do
63
- optional :entity, :message, 1, "google.cloud.videointelligence.v1beta2.Entity"
64
- repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1beta2.Entity"
65
- repeated :segments, :message, 3, "google.cloud.videointelligence.v1beta2.LabelSegment"
66
- repeated :frames, :message, 4, "google.cloud.videointelligence.v1beta2.LabelFrame"
67
- end
68
- add_message "google.cloud.videointelligence.v1beta2.ExplicitContentFrame" do
69
- optional :time_offset, :message, 1, "google.protobuf.Duration"
70
- optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1beta2.Likelihood"
71
- end
72
- add_message "google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation" do
73
- repeated :frames, :message, 1, "google.cloud.videointelligence.v1beta2.ExplicitContentFrame"
74
- end
75
- add_message "google.cloud.videointelligence.v1beta2.NormalizedBoundingBox" do
76
- optional :left, :float, 1
77
- optional :top, :float, 2
78
- optional :right, :float, 3
79
- optional :bottom, :float, 4
80
- end
81
- add_message "google.cloud.videointelligence.v1beta2.FaceSegment" do
82
- optional :segment, :message, 1, "google.cloud.videointelligence.v1beta2.VideoSegment"
83
- end
84
- add_message "google.cloud.videointelligence.v1beta2.FaceFrame" do
85
- repeated :normalized_bounding_boxes, :message, 1, "google.cloud.videointelligence.v1beta2.NormalizedBoundingBox"
86
- optional :time_offset, :message, 2, "google.protobuf.Duration"
87
- end
88
- add_message "google.cloud.videointelligence.v1beta2.FaceAnnotation" do
89
- optional :thumbnail, :bytes, 1
90
- repeated :segments, :message, 2, "google.cloud.videointelligence.v1beta2.FaceSegment"
91
- repeated :frames, :message, 3, "google.cloud.videointelligence.v1beta2.FaceFrame"
92
- end
93
- add_message "google.cloud.videointelligence.v1beta2.VideoAnnotationResults" do
94
- optional :input_uri, :string, 1
95
- repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1beta2.LabelAnnotation"
96
- repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1beta2.LabelAnnotation"
97
- repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1beta2.LabelAnnotation"
98
- repeated :face_annotations, :message, 5, "google.cloud.videointelligence.v1beta2.FaceAnnotation"
99
- repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1beta2.VideoSegment"
100
- optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation"
101
- optional :error, :message, 9, "google.rpc.Status"
102
- end
103
- add_message "google.cloud.videointelligence.v1beta2.AnnotateVideoResponse" do
104
- repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1beta2.VideoAnnotationResults"
105
- end
106
- add_message "google.cloud.videointelligence.v1beta2.VideoAnnotationProgress" do
107
- optional :input_uri, :string, 1
108
- optional :progress_percent, :int32, 2
109
- optional :start_time, :message, 3, "google.protobuf.Timestamp"
110
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
111
- end
112
- add_message "google.cloud.videointelligence.v1beta2.AnnotateVideoProgress" do
113
- repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1beta2.VideoAnnotationProgress"
114
- end
115
- add_enum "google.cloud.videointelligence.v1beta2.Feature" do
116
- value :FEATURE_UNSPECIFIED, 0
117
- value :LABEL_DETECTION, 1
118
- value :SHOT_CHANGE_DETECTION, 2
119
- value :EXPLICIT_CONTENT_DETECTION, 3
120
- value :FACE_DETECTION, 4
121
- end
122
- add_enum "google.cloud.videointelligence.v1beta2.LabelDetectionMode" do
123
- value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
124
- value :SHOT_MODE, 1
125
- value :FRAME_MODE, 2
126
- value :SHOT_AND_FRAME_MODE, 3
127
- end
128
- add_enum "google.cloud.videointelligence.v1beta2.Likelihood" do
129
- value :LIKELIHOOD_UNSPECIFIED, 0
130
- value :VERY_UNLIKELY, 1
131
- value :UNLIKELY, 2
132
- value :POSSIBLE, 3
133
- value :LIKELY, 4
134
- value :VERY_LIKELY, 5
135
- end
136
- end
137
-
138
- module Google
139
- module Cloud
140
- module VideoIntelligence
141
- end
142
- Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
143
- end
144
- end
145
- module Google::Cloud::VideoIntelligence::V1beta2
146
- AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoRequest").msgclass
147
- VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoContext").msgclass
148
- LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionConfig").msgclass
149
- ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig").msgclass
150
- ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig").msgclass
151
- FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceDetectionConfig").msgclass
152
- VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoSegment").msgclass
153
- LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelSegment").msgclass
154
- LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelFrame").msgclass
155
- Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Entity").msgclass
156
- LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelAnnotation").msgclass
157
- ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentFrame").msgclass
158
- ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation").msgclass
159
- NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.NormalizedBoundingBox").msgclass
160
- FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceSegment").msgclass
161
- FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceFrame").msgclass
162
- FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceAnnotation").msgclass
163
- VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationResults").msgclass
164
- AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoResponse").msgclass
165
- VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationProgress").msgclass
166
- AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoProgress").msgclass
167
- Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Feature").enummodule
168
- LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionMode").enummodule
169
- Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Likelihood").enummodule
170
- end