google-cloud-video_intelligence 2.0.3 → 3.0.2

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 -59
  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 -707
  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 -306
  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 -306
  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 -306
  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 -306
  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 -270
  49. data/lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb +0 -51
  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,270 +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.VideoAnnotationResults" do
106
- optional :input_uri, :string, 1
107
- optional :segment, :message, 10, "google.cloud.videointelligence.v1.VideoSegment"
108
- repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1.LabelAnnotation"
109
- repeated :segment_presence_label_annotations, :message, 23, "google.cloud.videointelligence.v1.LabelAnnotation"
110
- repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1.LabelAnnotation"
111
- repeated :shot_presence_label_annotations, :message, 24, "google.cloud.videointelligence.v1.LabelAnnotation"
112
- repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1.LabelAnnotation"
113
- repeated :face_annotations, :message, 5, "google.cloud.videointelligence.v1.FaceAnnotation"
114
- repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1.VideoSegment"
115
- optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1.ExplicitContentAnnotation"
116
- repeated :speech_transcriptions, :message, 11, "google.cloud.videointelligence.v1.SpeechTranscription"
117
- repeated :text_annotations, :message, 12, "google.cloud.videointelligence.v1.TextAnnotation"
118
- repeated :object_annotations, :message, 14, "google.cloud.videointelligence.v1.ObjectTrackingAnnotation"
119
- optional :error, :message, 9, "google.rpc.Status"
120
- end
121
- add_message "google.cloud.videointelligence.v1.AnnotateVideoResponse" do
122
- repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationResults"
123
- end
124
- add_message "google.cloud.videointelligence.v1.VideoAnnotationProgress" do
125
- optional :input_uri, :string, 1
126
- optional :progress_percent, :int32, 2
127
- optional :start_time, :message, 3, "google.protobuf.Timestamp"
128
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
129
- optional :feature, :enum, 5, "google.cloud.videointelligence.v1.Feature"
130
- optional :segment, :message, 6, "google.cloud.videointelligence.v1.VideoSegment"
131
- end
132
- add_message "google.cloud.videointelligence.v1.AnnotateVideoProgress" do
133
- repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationProgress"
134
- end
135
- add_message "google.cloud.videointelligence.v1.SpeechTranscriptionConfig" do
136
- optional :language_code, :string, 1
137
- optional :max_alternatives, :int32, 2
138
- optional :filter_profanity, :bool, 3
139
- repeated :speech_contexts, :message, 4, "google.cloud.videointelligence.v1.SpeechContext"
140
- optional :enable_automatic_punctuation, :bool, 5
141
- repeated :audio_tracks, :int32, 6
142
- optional :enable_speaker_diarization, :bool, 7
143
- optional :diarization_speaker_count, :int32, 8
144
- optional :enable_word_confidence, :bool, 9
145
- end
146
- add_message "google.cloud.videointelligence.v1.SpeechContext" do
147
- repeated :phrases, :string, 1
148
- end
149
- add_message "google.cloud.videointelligence.v1.SpeechTranscription" do
150
- repeated :alternatives, :message, 1, "google.cloud.videointelligence.v1.SpeechRecognitionAlternative"
151
- optional :language_code, :string, 2
152
- end
153
- add_message "google.cloud.videointelligence.v1.SpeechRecognitionAlternative" do
154
- optional :transcript, :string, 1
155
- optional :confidence, :float, 2
156
- repeated :words, :message, 3, "google.cloud.videointelligence.v1.WordInfo"
157
- end
158
- add_message "google.cloud.videointelligence.v1.WordInfo" do
159
- optional :start_time, :message, 1, "google.protobuf.Duration"
160
- optional :end_time, :message, 2, "google.protobuf.Duration"
161
- optional :word, :string, 3
162
- optional :confidence, :float, 4
163
- optional :speaker_tag, :int32, 5
164
- end
165
- add_message "google.cloud.videointelligence.v1.NormalizedVertex" do
166
- optional :x, :float, 1
167
- optional :y, :float, 2
168
- end
169
- add_message "google.cloud.videointelligence.v1.NormalizedBoundingPoly" do
170
- repeated :vertices, :message, 1, "google.cloud.videointelligence.v1.NormalizedVertex"
171
- end
172
- add_message "google.cloud.videointelligence.v1.TextSegment" do
173
- optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
174
- optional :confidence, :float, 2
175
- repeated :frames, :message, 3, "google.cloud.videointelligence.v1.TextFrame"
176
- end
177
- add_message "google.cloud.videointelligence.v1.TextFrame" do
178
- optional :rotated_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingPoly"
179
- optional :time_offset, :message, 2, "google.protobuf.Duration"
180
- end
181
- add_message "google.cloud.videointelligence.v1.TextAnnotation" do
182
- optional :text, :string, 1
183
- repeated :segments, :message, 2, "google.cloud.videointelligence.v1.TextSegment"
184
- end
185
- add_message "google.cloud.videointelligence.v1.ObjectTrackingFrame" do
186
- optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox"
187
- optional :time_offset, :message, 2, "google.protobuf.Duration"
188
- end
189
- add_message "google.cloud.videointelligence.v1.ObjectTrackingAnnotation" do
190
- optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity"
191
- optional :confidence, :float, 4
192
- repeated :frames, :message, 2, "google.cloud.videointelligence.v1.ObjectTrackingFrame"
193
- oneof :track_info do
194
- optional :segment, :message, 3, "google.cloud.videointelligence.v1.VideoSegment"
195
- optional :track_id, :int64, 5
196
- end
197
- end
198
- add_enum "google.cloud.videointelligence.v1.Feature" do
199
- value :FEATURE_UNSPECIFIED, 0
200
- value :LABEL_DETECTION, 1
201
- value :SHOT_CHANGE_DETECTION, 2
202
- value :EXPLICIT_CONTENT_DETECTION, 3
203
- value :FACE_DETECTION, 4
204
- value :SPEECH_TRANSCRIPTION, 6
205
- value :TEXT_DETECTION, 7
206
- value :OBJECT_TRACKING, 9
207
- end
208
- add_enum "google.cloud.videointelligence.v1.LabelDetectionMode" do
209
- value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
210
- value :SHOT_MODE, 1
211
- value :FRAME_MODE, 2
212
- value :SHOT_AND_FRAME_MODE, 3
213
- end
214
- add_enum "google.cloud.videointelligence.v1.Likelihood" do
215
- value :LIKELIHOOD_UNSPECIFIED, 0
216
- value :VERY_UNLIKELY, 1
217
- value :UNLIKELY, 2
218
- value :POSSIBLE, 3
219
- value :LIKELY, 4
220
- value :VERY_LIKELY, 5
221
- end
222
- end
223
-
224
- module Google
225
- module Cloud
226
- module VideoIntelligence
227
- end
228
- Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
229
- end
230
- end
231
- module Google::Cloud::VideoIntelligence::V1
232
- AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoRequest").msgclass
233
- VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass
234
- LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass
235
- ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
236
- ObjectTrackingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass
237
- FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
238
- ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
239
- TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").msgclass
240
- VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
241
- LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
242
- LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelFrame").msgclass
243
- Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Entity").msgclass
244
- LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelAnnotation").msgclass
245
- ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentFrame").msgclass
246
- ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentAnnotation").msgclass
247
- NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingBox").msgclass
248
- FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass
249
- FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass
250
- FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass
251
- VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass
252
- AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
253
- VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
254
- AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass
255
- SpeechTranscriptionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscriptionConfig").msgclass
256
- SpeechContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechContext").msgclass
257
- SpeechTranscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscription").msgclass
258
- SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechRecognitionAlternative").msgclass
259
- WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.WordInfo").msgclass
260
- NormalizedVertex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedVertex").msgclass
261
- NormalizedBoundingPoly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingPoly").msgclass
262
- TextSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextSegment").msgclass
263
- TextFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextFrame").msgclass
264
- TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextAnnotation").msgclass
265
- ObjectTrackingFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingFrame").msgclass
266
- ObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingAnnotation").msgclass
267
- Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
268
- LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
269
- Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
270
- end
@@ -1,51 +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 2019 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
-
21
- require 'grpc'
22
- require 'google/cloud/videointelligence/v1/video_intelligence_pb'
23
-
24
- module Google
25
- module Cloud
26
- module VideoIntelligence
27
- end
28
- Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
29
- end
30
- end
31
- module Google::Cloud::VideoIntelligence::V1
32
- module VideoIntelligenceService
33
- # Service that implements Google Cloud Video Intelligence API.
34
- class Service
35
-
36
- include GRPC::GenericService
37
-
38
- self.marshal_class_method = :encode
39
- self.unmarshal_class_method = :decode
40
- self.service_name = 'google.cloud.videointelligence.v1.VideoIntelligenceService'
41
-
42
- # Performs asynchronous video annotation. Progress and results can be
43
- # retrieved through the `google.longrunning.Operations` interface.
44
- # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
45
- # `Operation.response` contains `AnnotateVideoResponse` (results).
46
- rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
47
- end
48
-
49
- Stub = Service.rpc_stub_class
50
- end
51
- 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