google-cloud-video_intelligence-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/video_intelligence/v1/version"
24
+
25
+ require "google/cloud/video_intelligence/v1/video_intelligence_service/credentials"
26
+ require "google/cloud/video_intelligence/v1/video_intelligence_service/operations"
27
+ require "google/cloud/video_intelligence/v1/video_intelligence_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module VideoIntelligence
32
+ module V1
33
+ ##
34
+ # Service that implements Google Cloud Video Intelligence API.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/video_intelligence/v1/video_intelligence_service"
39
+ # client = Google::Cloud::VideoIntelligence::V1::VideoIntelligenceService::Client.new
40
+ #
41
+ module VideoIntelligenceService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "video_intelligence_service", "helpers.rb"
49
+ require "google/cloud/video_intelligence/v1/video_intelligence_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/video_intelligence/v1/video_intelligence_service"
20
+ require "google/cloud/video_intelligence/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module VideoIntelligence
25
+ ##
26
+ # To load this package, including all its services, and instantiate a client:
27
+ #
28
+ # require "google/cloud/video_intelligence/v1"
29
+ # client = Google::Cloud::VideoIntelligence::V1::VideoIntelligenceService::Client.new
30
+ #
31
+ module V1
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,304 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/videointelligence/v1/video_intelligence.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/longrunning/operations_pb'
10
+ require 'google/protobuf/duration_pb'
11
+ require 'google/protobuf/timestamp_pb'
12
+ require 'google/rpc/status_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/videointelligence/v1/video_intelligence.proto", :syntax => :proto3) 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
+ end
253
+
254
+ module Google
255
+ module Cloud
256
+ module VideoIntelligence
257
+ module V1
258
+ AnnotateVideoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoRequest").msgclass
259
+ VideoContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass
260
+ LabelDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass
261
+ ShotChangeDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
262
+ ObjectTrackingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass
263
+ FaceDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
264
+ ExplicitContentDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
265
+ TextDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").msgclass
266
+ VideoSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
267
+ LabelSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
268
+ LabelFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelFrame").msgclass
269
+ Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Entity").msgclass
270
+ LabelAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelAnnotation").msgclass
271
+ ExplicitContentFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentFrame").msgclass
272
+ ExplicitContentAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentAnnotation").msgclass
273
+ NormalizedBoundingBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingBox").msgclass
274
+ FaceSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass
275
+ FaceFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass
276
+ FaceAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass
277
+ TimestampedObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TimestampedObject").msgclass
278
+ Track = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Track").msgclass
279
+ DetectedAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedAttribute").msgclass
280
+ DetectedLandmark = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedLandmark").msgclass
281
+ VideoAnnotationResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass
282
+ AnnotateVideoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
283
+ VideoAnnotationProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
284
+ AnnotateVideoProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass
285
+ SpeechTranscriptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscriptionConfig").msgclass
286
+ SpeechContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechContext").msgclass
287
+ SpeechTranscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscription").msgclass
288
+ SpeechRecognitionAlternative = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechRecognitionAlternative").msgclass
289
+ WordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.WordInfo").msgclass
290
+ NormalizedVertex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedVertex").msgclass
291
+ NormalizedBoundingPoly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingPoly").msgclass
292
+ TextSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextSegment").msgclass
293
+ TextFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextFrame").msgclass
294
+ TextAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextAnnotation").msgclass
295
+ ObjectTrackingFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingFrame").msgclass
296
+ ObjectTrackingAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingAnnotation").msgclass
297
+ LogoRecognitionAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LogoRecognitionAnnotation").msgclass
298
+ Feature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
299
+ LabelDetectionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
300
+ Likelihood = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
301
+ end
302
+ end
303
+ end
304
+ end
@@ -0,0 +1,48 @@
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
+ require 'grpc'
20
+ require 'google/cloud/videointelligence/v1/video_intelligence_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module VideoIntelligence
25
+ module V1
26
+ module VideoIntelligenceService
27
+ # Service that implements Google Cloud Video Intelligence API.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.videointelligence.v1.VideoIntelligenceService'
35
+
36
+ # Performs asynchronous video annotation. Progress and results can be
37
+ # retrieved through the `google.longrunning.Operations` interface.
38
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
39
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
40
+ rpc :AnnotateVideo, Google::Cloud::VideoIntelligence::V1::AnnotateVideoRequest, Google::Longrunning::Operation
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/video_intelligence/v1"