google-cloud-video_intelligence 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/video_intelligence.rb +4 -0
  3. data/lib/google/cloud/video_intelligence/v1.rb +8 -0
  4. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +46 -46
  5. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +19 -10
  6. data/lib/google/cloud/video_intelligence/v1beta1.rb +8 -0
  7. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb +22 -22
  8. data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb +19 -10
  9. data/lib/google/cloud/video_intelligence/v1beta2.rb +8 -0
  10. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb +28 -28
  11. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +19 -10
  12. data/lib/google/cloud/video_intelligence/v1p1beta1.rb +8 -0
  13. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/cloud/videointelligence/v1p1beta1/video_intelligence.rb +27 -27
  14. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb +19 -10
  15. data/lib/google/cloud/video_intelligence/v1p2beta1.rb +8 -0
  16. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/video_intelligence.rb +34 -34
  17. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb +19 -10
  18. data/lib/google/cloud/video_intelligence/version.rb +1 -1
  19. data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +42 -41
  20. data/lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb +21 -20
  21. data/lib/google/cloud/videointelligence/v1beta1/video_intelligence_pb.rb +21 -20
  22. data/lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb +21 -20
  23. data/lib/google/cloud/videointelligence/v1beta2/video_intelligence_pb.rb +28 -27
  24. data/lib/google/cloud/videointelligence/v1beta2/video_intelligence_services_pb.rb +21 -20
  25. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_pb.rb +28 -27
  26. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_services_pb.rb +21 -20
  27. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_pb.rb +32 -31
  28. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_services_pb.rb +21 -20
  29. metadata +4 -4
@@ -147,6 +147,10 @@ module Google
147
147
  # The default timeout, in seconds, for calls made through this client.
148
148
  # @param metadata [Hash]
149
149
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
150
+ # @param service_address [String]
151
+ # Override for the service hostname, or `nil` to leave as the default.
152
+ # @param service_port [Integer]
153
+ # Override for the service port, or `nil` to leave as the default.
150
154
  # @param exception_transformer [Proc]
151
155
  # An optional proc that intercepts any exceptions raised during an API call to inject
152
156
  # custom error handling.
@@ -156,6 +160,8 @@ module Google
156
160
  client_config: nil,
157
161
  timeout: nil,
158
162
  metadata: nil,
163
+ service_address: nil,
164
+ service_port: nil,
159
165
  exception_transformer: nil,
160
166
  lib_name: nil,
161
167
  lib_version: nil
@@ -167,6 +173,8 @@ module Google
167
173
  metadata: metadata,
168
174
  exception_transformer: exception_transformer,
169
175
  lib_name: lib_name,
176
+ service_address: service_address,
177
+ service_port: service_port,
170
178
  lib_version: lib_version
171
179
  }.select { |_, v| v != nil }
172
180
  Google::Cloud::VideoIntelligence::V1p1beta1::VideoIntelligenceServiceClient.new(**kwargs)
@@ -15,7 +15,7 @@
15
15
 
16
16
  module Google
17
17
  module Cloud
18
- module Videointelligence
18
+ module VideoIntelligence
19
19
  module V1p1beta1
20
20
  # Video annotation request.
21
21
  # @!attribute [rw] input_uri
@@ -36,10 +36,10 @@ module Google
36
36
  # If unset, the input video(s) should be specified via `input_uri`.
37
37
  # If set, `input_uri` should be unset.
38
38
  # @!attribute [rw] features
39
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::Feature>]
39
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::Feature>]
40
40
  # Requested video annotation features.
41
41
  # @!attribute [rw] video_context
42
- # @return [Google::Cloud::Videointelligence::V1p1beta1::VideoContext]
42
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::VideoContext]
43
43
  # Additional video context and/or feature-specific parameters.
44
44
  # @!attribute [rw] output_uri
45
45
  # @return [String]
@@ -58,27 +58,27 @@ module Google
58
58
 
59
59
  # Video context and/or feature-specific parameters.
60
60
  # @!attribute [rw] segments
61
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::VideoSegment>]
61
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::VideoSegment>]
62
62
  # Video segments to annotate. The segments may overlap and are not required
63
63
  # to be contiguous or span the whole video. If unspecified, each video is
64
64
  # treated as a single segment.
65
65
  # @!attribute [rw] label_detection_config
66
- # @return [Google::Cloud::Videointelligence::V1p1beta1::LabelDetectionConfig]
66
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::LabelDetectionConfig]
67
67
  # Config for LABEL_DETECTION.
68
68
  # @!attribute [rw] shot_change_detection_config
69
- # @return [Google::Cloud::Videointelligence::V1p1beta1::ShotChangeDetectionConfig]
69
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::ShotChangeDetectionConfig]
70
70
  # Config for SHOT_CHANGE_DETECTION.
71
71
  # @!attribute [rw] explicit_content_detection_config
72
- # @return [Google::Cloud::Videointelligence::V1p1beta1::ExplicitContentDetectionConfig]
72
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::ExplicitContentDetectionConfig]
73
73
  # Config for EXPLICIT_CONTENT_DETECTION.
74
74
  # @!attribute [rw] speech_transcription_config
75
- # @return [Google::Cloud::Videointelligence::V1p1beta1::SpeechTranscriptionConfig]
75
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::SpeechTranscriptionConfig]
76
76
  # Config for SPEECH_TRANSCRIPTION.
77
77
  class VideoContext; end
78
78
 
79
79
  # Config for LABEL_DETECTION.
80
80
  # @!attribute [rw] label_detection_mode
81
- # @return [Google::Cloud::Videointelligence::V1p1beta1::LabelDetectionMode]
81
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::LabelDetectionMode]
82
82
  # What labels should be detected with LABEL_DETECTION, in addition to
83
83
  # video-level labels or segment-level labels.
84
84
  # If unspecified, defaults to `SHOT_MODE`.
@@ -123,7 +123,7 @@ module Google
123
123
 
124
124
  # Video segment level annotation results for label detection.
125
125
  # @!attribute [rw] segment
126
- # @return [Google::Cloud::Videointelligence::V1p1beta1::VideoSegment]
126
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::VideoSegment]
127
127
  # Video segment where a label was detected.
128
128
  # @!attribute [rw] confidence
129
129
  # @return [Float]
@@ -156,19 +156,19 @@ module Google
156
156
 
157
157
  # Label annotation.
158
158
  # @!attribute [rw] entity
159
- # @return [Google::Cloud::Videointelligence::V1p1beta1::Entity]
159
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::Entity]
160
160
  # Detected entity.
161
161
  # @!attribute [rw] category_entities
162
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::Entity>]
162
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::Entity>]
163
163
  # Common categories for the detected entity.
164
164
  # E.g. when the label is `Terrier` the category is likely `dog`. And in some
165
165
  # cases there might be more than one categories e.g. `Terrier` could also be
166
166
  # a `pet`.
167
167
  # @!attribute [rw] segments
168
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::LabelSegment>]
168
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::LabelSegment>]
169
169
  # All video segments where a label was detected.
170
170
  # @!attribute [rw] frames
171
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::LabelFrame>]
171
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::LabelFrame>]
172
172
  # All video frames where a label was detected.
173
173
  class LabelAnnotation; end
174
174
 
@@ -178,7 +178,7 @@ module Google
178
178
  # Time-offset, relative to the beginning of the video, corresponding to the
179
179
  # video frame for this location.
180
180
  # @!attribute [rw] pornography_likelihood
181
- # @return [Google::Cloud::Videointelligence::V1p1beta1::Likelihood]
181
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::Likelihood]
182
182
  # Likelihood of the pornography content..
183
183
  class ExplicitContentFrame; end
184
184
 
@@ -186,7 +186,7 @@ module Google
186
186
  # If no explicit content has been detected in a frame, no annotations are
187
187
  # present for that frame.
188
188
  # @!attribute [rw] frames
189
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::ExplicitContentFrame>]
189
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::ExplicitContentFrame>]
190
190
  # All video frames where explicit content was detected.
191
191
  class ExplicitContentAnnotation; end
192
192
 
@@ -196,25 +196,25 @@ module Google
196
196
  # Output only. Video file location in
197
197
  # [Google Cloud Storage](https://cloud.google.com/storage/).
198
198
  # @!attribute [rw] segment_label_annotations
199
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::LabelAnnotation>]
199
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::LabelAnnotation>]
200
200
  # Label annotations on video level or user specified segment level.
201
201
  # There is exactly one element for each unique label.
202
202
  # @!attribute [rw] shot_label_annotations
203
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::LabelAnnotation>]
203
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::LabelAnnotation>]
204
204
  # Label annotations on shot level.
205
205
  # There is exactly one element for each unique label.
206
206
  # @!attribute [rw] frame_label_annotations
207
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::LabelAnnotation>]
207
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::LabelAnnotation>]
208
208
  # Label annotations on frame level.
209
209
  # There is exactly one element for each unique label.
210
210
  # @!attribute [rw] shot_annotations
211
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::VideoSegment>]
211
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::VideoSegment>]
212
212
  # Shot annotations. Each shot is represented as a video segment.
213
213
  # @!attribute [rw] explicit_annotation
214
- # @return [Google::Cloud::Videointelligence::V1p1beta1::ExplicitContentAnnotation]
214
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::ExplicitContentAnnotation]
215
215
  # Explicit content annotation.
216
216
  # @!attribute [rw] speech_transcriptions
217
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::SpeechTranscription>]
217
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::SpeechTranscription>]
218
218
  # Speech transcription.
219
219
  # @!attribute [rw] error
220
220
  # @return [Google::Rpc::Status]
@@ -226,7 +226,7 @@ module Google
226
226
  # field of the `Operation` returned by the `GetOperation`
227
227
  # call of the `google::longrunning::Operations` service.
228
228
  # @!attribute [rw] annotation_results
229
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::VideoAnnotationResults>]
229
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::VideoAnnotationResults>]
230
230
  # Annotation results for all videos specified in `AnnotateVideoRequest`.
231
231
  class AnnotateVideoResponse; end
232
232
 
@@ -251,7 +251,7 @@ module Google
251
251
  # field of the `Operation` returned by the `GetOperation`
252
252
  # call of the `google::longrunning::Operations` service.
253
253
  # @!attribute [rw] annotation_progress
254
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::VideoAnnotationProgress>]
254
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::VideoAnnotationProgress>]
255
255
  # Progress metadata for all videos specified in `AnnotateVideoRequest`.
256
256
  class AnnotateVideoProgress; end
257
257
 
@@ -277,7 +277,7 @@ module Google
277
277
  # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
278
278
  # won't be filtered out.
279
279
  # @!attribute [rw] speech_contexts
280
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::SpeechContext>]
280
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::SpeechContext>]
281
281
  # *Optional* A means to provide context to assist the speech recognition.
282
282
  # @!attribute [rw] enable_automatic_punctuation
283
283
  # @return [true, false]
@@ -307,7 +307,7 @@ module Google
307
307
 
308
308
  # A speech recognition result corresponding to a portion of the audio.
309
309
  # @!attribute [rw] alternatives
310
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::SpeechRecognitionAlternative>]
310
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::SpeechRecognitionAlternative>]
311
311
  # Output only. May contain one or more recognition hypotheses (up to the
312
312
  # maximum specified in `max_alternatives`).
313
313
  # These alternatives are ordered in terms of accuracy, with the top (first)
@@ -327,7 +327,7 @@ module Google
327
327
  # `confidence` field as it is not guaranteed to be accurate or consistent.
328
328
  # The default of 0.0 is a sentinel value indicating `confidence` was not set.
329
329
  # @!attribute [rw] words
330
- # @return [Array<Google::Cloud::Videointelligence::V1p1beta1::WordInfo>]
330
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p1beta1::WordInfo>]
331
331
  # Output only. A list of word-specific information for each recognized word.
332
332
  class SpeechRecognitionAlternative; end
333
333
 
@@ -38,7 +38,7 @@ module Google
38
38
  # Service that implements Google Cloud Video Intelligence API.
39
39
  #
40
40
  # @!attribute [r] video_intelligence_service_stub
41
- # @return [Google::Cloud::Videointelligence::V1p1beta1::VideoIntelligenceService::Stub]
41
+ # @return [Google::Cloud::VideoIntelligence::V1p1beta1::VideoIntelligenceService::Stub]
42
42
  class VideoIntelligenceServiceClient
43
43
  # @private
44
44
  attr_reader :video_intelligence_service_stub
@@ -92,6 +92,10 @@ module Google
92
92
  # The default timeout, in seconds, for calls made through this client.
93
93
  # @param metadata [Hash]
94
94
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
95
+ # @param service_address [String]
96
+ # Override for the service hostname, or `nil` to leave as the default.
97
+ # @param service_port [Integer]
98
+ # Override for the service port, or `nil` to leave as the default.
95
99
  # @param exception_transformer [Proc]
96
100
  # An optional proc that intercepts any exceptions raised during an API call to inject
97
101
  # custom error handling.
@@ -101,6 +105,8 @@ module Google
101
105
  client_config: {},
102
106
  timeout: DEFAULT_TIMEOUT,
103
107
  metadata: nil,
108
+ service_address: nil,
109
+ service_port: nil,
104
110
  exception_transformer: nil,
105
111
  lib_name: nil,
106
112
  lib_version: ""
@@ -118,7 +124,10 @@ module Google
118
124
  client_config: client_config,
119
125
  timeout: timeout,
120
126
  lib_name: lib_name,
127
+ service_address: service_address,
128
+ service_port: service_port,
121
129
  lib_version: lib_version,
130
+ metadata: metadata,
122
131
  )
123
132
 
124
133
  if credentials.is_a?(String) || credentials.is_a?(Hash)
@@ -163,8 +172,8 @@ module Google
163
172
  end
164
173
 
165
174
  # Allow overriding the service path/port in subclasses.
166
- service_path = self.class::SERVICE_ADDRESS
167
- port = self.class::DEFAULT_SERVICE_PORT
175
+ service_path = service_address || self.class::SERVICE_ADDRESS
176
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
168
177
  interceptors = self.class::GRPC_INTERCEPTORS
169
178
  @video_intelligence_service_stub = Google::Gax::Grpc.create_stub(
170
179
  service_path,
@@ -174,7 +183,7 @@ module Google
174
183
  updater_proc: updater_proc,
175
184
  scopes: scopes,
176
185
  interceptors: interceptors,
177
- &Google::Cloud::Videointelligence::V1p1beta1::VideoIntelligenceService::Stub.method(:new)
186
+ &Google::Cloud::VideoIntelligence::V1p1beta1::VideoIntelligenceService::Stub.method(:new)
178
187
  )
179
188
 
180
189
  @annotate_video = Google::Gax.create_api_call(
@@ -206,11 +215,11 @@ module Google
206
215
  # The video data bytes.
207
216
  # If unset, the input video(s) should be specified via `input_uri`.
208
217
  # If set, `input_uri` should be unset.
209
- # @param features [Array<Google::Cloud::Videointelligence::V1p1beta1::Feature>]
218
+ # @param features [Array<Google::Cloud::VideoIntelligence::V1p1beta1::Feature>]
210
219
  # Requested video annotation features.
211
- # @param video_context [Google::Cloud::Videointelligence::V1p1beta1::VideoContext | Hash]
220
+ # @param video_context [Google::Cloud::VideoIntelligence::V1p1beta1::VideoContext | Hash]
212
221
  # Additional video context and/or feature-specific parameters.
213
- # A hash of the same form as `Google::Cloud::Videointelligence::V1p1beta1::VideoContext`
222
+ # A hash of the same form as `Google::Cloud::VideoIntelligence::V1p1beta1::VideoContext`
214
223
  # can also be provided.
215
224
  # @param output_uri [String]
216
225
  # Optional location where the output (in JSON format) should be stored.
@@ -279,12 +288,12 @@ module Google
279
288
  output_uri: output_uri,
280
289
  location_id: location_id
281
290
  }.delete_if { |_, v| v.nil? }
282
- req = Google::Gax::to_proto(req, Google::Cloud::Videointelligence::V1p1beta1::AnnotateVideoRequest)
291
+ req = Google::Gax::to_proto(req, Google::Cloud::VideoIntelligence::V1p1beta1::AnnotateVideoRequest)
283
292
  operation = Google::Gax::Operation.new(
284
293
  @annotate_video.call(req, options),
285
294
  @operations_client,
286
- Google::Cloud::Videointelligence::V1p1beta1::AnnotateVideoResponse,
287
- Google::Cloud::Videointelligence::V1p1beta1::AnnotateVideoProgress,
295
+ Google::Cloud::VideoIntelligence::V1p1beta1::AnnotateVideoResponse,
296
+ Google::Cloud::VideoIntelligence::V1p1beta1::AnnotateVideoProgress,
288
297
  call_options: options
289
298
  )
290
299
  operation.on_done { |operation| yield(operation) } if block_given?
@@ -147,6 +147,10 @@ module Google
147
147
  # The default timeout, in seconds, for calls made through this client.
148
148
  # @param metadata [Hash]
149
149
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
150
+ # @param service_address [String]
151
+ # Override for the service hostname, or `nil` to leave as the default.
152
+ # @param service_port [Integer]
153
+ # Override for the service port, or `nil` to leave as the default.
150
154
  # @param exception_transformer [Proc]
151
155
  # An optional proc that intercepts any exceptions raised during an API call to inject
152
156
  # custom error handling.
@@ -156,6 +160,8 @@ module Google
156
160
  client_config: nil,
157
161
  timeout: nil,
158
162
  metadata: nil,
163
+ service_address: nil,
164
+ service_port: nil,
159
165
  exception_transformer: nil,
160
166
  lib_name: nil,
161
167
  lib_version: nil
@@ -167,6 +173,8 @@ module Google
167
173
  metadata: metadata,
168
174
  exception_transformer: exception_transformer,
169
175
  lib_name: lib_name,
176
+ service_address: service_address,
177
+ service_port: service_port,
170
178
  lib_version: lib_version
171
179
  }.select { |_, v| v != nil }
172
180
  Google::Cloud::VideoIntelligence::V1p2beta1::VideoIntelligenceServiceClient.new(**kwargs)
@@ -15,7 +15,7 @@
15
15
 
16
16
  module Google
17
17
  module Cloud
18
- module Videointelligence
18
+ module VideoIntelligence
19
19
  module V1p2beta1
20
20
  # Video annotation request.
21
21
  # @!attribute [rw] input_uri
@@ -36,10 +36,10 @@ module Google
36
36
  # If unset, the input video(s) should be specified via `input_uri`.
37
37
  # If set, `input_uri` should be unset.
38
38
  # @!attribute [rw] features
39
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::Feature>]
39
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::Feature>]
40
40
  # Requested video annotation features.
41
41
  # @!attribute [rw] video_context
42
- # @return [Google::Cloud::Videointelligence::V1p2beta1::VideoContext]
42
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::VideoContext]
43
43
  # Additional video context and/or feature-specific parameters.
44
44
  # @!attribute [rw] output_uri
45
45
  # @return [String]
@@ -58,27 +58,27 @@ module Google
58
58
 
59
59
  # Video context and/or feature-specific parameters.
60
60
  # @!attribute [rw] segments
61
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::VideoSegment>]
61
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment>]
62
62
  # Video segments to annotate. The segments may overlap and are not required
63
63
  # to be contiguous or span the whole video. If unspecified, each video is
64
64
  # treated as a single segment.
65
65
  # @!attribute [rw] label_detection_config
66
- # @return [Google::Cloud::Videointelligence::V1p2beta1::LabelDetectionConfig]
66
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::LabelDetectionConfig]
67
67
  # Config for LABEL_DETECTION.
68
68
  # @!attribute [rw] shot_change_detection_config
69
- # @return [Google::Cloud::Videointelligence::V1p2beta1::ShotChangeDetectionConfig]
69
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::ShotChangeDetectionConfig]
70
70
  # Config for SHOT_CHANGE_DETECTION.
71
71
  # @!attribute [rw] explicit_content_detection_config
72
- # @return [Google::Cloud::Videointelligence::V1p2beta1::ExplicitContentDetectionConfig]
72
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::ExplicitContentDetectionConfig]
73
73
  # Config for EXPLICIT_CONTENT_DETECTION.
74
74
  # @!attribute [rw] text_detection_config
75
- # @return [Google::Cloud::Videointelligence::V1p2beta1::TextDetectionConfig]
75
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::TextDetectionConfig]
76
76
  # Config for TEXT_DETECTION.
77
77
  class VideoContext; end
78
78
 
79
79
  # Config for LABEL_DETECTION.
80
80
  # @!attribute [rw] label_detection_mode
81
- # @return [Google::Cloud::Videointelligence::V1p2beta1::LabelDetectionMode]
81
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::LabelDetectionMode]
82
82
  # What labels should be detected with LABEL_DETECTION, in addition to
83
83
  # video-level labels or segment-level labels.
84
84
  # If unspecified, defaults to `SHOT_MODE`.
@@ -133,7 +133,7 @@ module Google
133
133
 
134
134
  # Video segment level annotation results for label detection.
135
135
  # @!attribute [rw] segment
136
- # @return [Google::Cloud::Videointelligence::V1p2beta1::VideoSegment]
136
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment]
137
137
  # Video segment where a label was detected.
138
138
  # @!attribute [rw] confidence
139
139
  # @return [Float]
@@ -166,19 +166,19 @@ module Google
166
166
 
167
167
  # Label annotation.
168
168
  # @!attribute [rw] entity
169
- # @return [Google::Cloud::Videointelligence::V1p2beta1::Entity]
169
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::Entity]
170
170
  # Detected entity.
171
171
  # @!attribute [rw] category_entities
172
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::Entity>]
172
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::Entity>]
173
173
  # Common categories for the detected entity.
174
174
  # E.g. when the label is `Terrier` the category is likely `dog`. And in some
175
175
  # cases there might be more than one categories e.g. `Terrier` could also be
176
176
  # a `pet`.
177
177
  # @!attribute [rw] segments
178
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::LabelSegment>]
178
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::LabelSegment>]
179
179
  # All video segments where a label was detected.
180
180
  # @!attribute [rw] frames
181
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::LabelFrame>]
181
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::LabelFrame>]
182
182
  # All video frames where a label was detected.
183
183
  class LabelAnnotation; end
184
184
 
@@ -188,7 +188,7 @@ module Google
188
188
  # Time-offset, relative to the beginning of the video, corresponding to the
189
189
  # video frame for this location.
190
190
  # @!attribute [rw] pornography_likelihood
191
- # @return [Google::Cloud::Videointelligence::V1p2beta1::Likelihood]
191
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::Likelihood]
192
192
  # Likelihood of the pornography content..
193
193
  class ExplicitContentFrame; end
194
194
 
@@ -196,7 +196,7 @@ module Google
196
196
  # If no explicit content has been detected in a frame, no annotations are
197
197
  # present for that frame.
198
198
  # @!attribute [rw] frames
199
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::ExplicitContentFrame>]
199
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::ExplicitContentFrame>]
200
200
  # All video frames where explicit content was detected.
201
201
  class ExplicitContentAnnotation; end
202
202
 
@@ -223,30 +223,30 @@ module Google
223
223
  # Video file location in
224
224
  # [Google Cloud Storage](https://cloud.google.com/storage/).
225
225
  # @!attribute [rw] segment_label_annotations
226
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::LabelAnnotation>]
226
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::LabelAnnotation>]
227
227
  # Label annotations on video level or user specified segment level.
228
228
  # There is exactly one element for each unique label.
229
229
  # @!attribute [rw] shot_label_annotations
230
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::LabelAnnotation>]
230
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::LabelAnnotation>]
231
231
  # Label annotations on shot level.
232
232
  # There is exactly one element for each unique label.
233
233
  # @!attribute [rw] frame_label_annotations
234
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::LabelAnnotation>]
234
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::LabelAnnotation>]
235
235
  # Label annotations on frame level.
236
236
  # There is exactly one element for each unique label.
237
237
  # @!attribute [rw] shot_annotations
238
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::VideoSegment>]
238
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment>]
239
239
  # Shot annotations. Each shot is represented as a video segment.
240
240
  # @!attribute [rw] explicit_annotation
241
- # @return [Google::Cloud::Videointelligence::V1p2beta1::ExplicitContentAnnotation]
241
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::ExplicitContentAnnotation]
242
242
  # Explicit content annotation.
243
243
  # @!attribute [rw] text_annotations
244
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::TextAnnotation>]
244
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::TextAnnotation>]
245
245
  # OCR text detection and tracking.
246
246
  # Annotations for list of detected text snippets. Each will have list of
247
247
  # frame information associated with it.
248
248
  # @!attribute [rw] object_annotations
249
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::ObjectTrackingAnnotation>]
249
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::ObjectTrackingAnnotation>]
250
250
  # Annotations for list of objects detected and tracked in video.
251
251
  # @!attribute [rw] error
252
252
  # @return [Google::Rpc::Status]
@@ -258,7 +258,7 @@ module Google
258
258
  # field of the `Operation` returned by the `GetOperation`
259
259
  # call of the `google::longrunning::Operations` service.
260
260
  # @!attribute [rw] annotation_results
261
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::VideoAnnotationResults>]
261
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::VideoAnnotationResults>]
262
262
  # Annotation results for all videos specified in `AnnotateVideoRequest`.
263
263
  class AnnotateVideoResponse; end
264
264
 
@@ -283,7 +283,7 @@ module Google
283
283
  # field of the `Operation` returned by the `GetOperation`
284
284
  # call of the `google::longrunning::Operations` service.
285
285
  # @!attribute [rw] annotation_progress
286
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::VideoAnnotationProgress>]
286
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::VideoAnnotationProgress>]
287
287
  # Progress metadata for all videos specified in `AnnotateVideoRequest`.
288
288
  class AnnotateVideoProgress; end
289
289
 
@@ -316,20 +316,20 @@ module Google
316
316
  # than 0, or greater than 1 due to trignometric calculations for location of
317
317
  # the box.
318
318
  # @!attribute [rw] vertices
319
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::NormalizedVertex>]
319
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::NormalizedVertex>]
320
320
  # Normalized vertices of the bounding polygon.
321
321
  class NormalizedBoundingPoly; end
322
322
 
323
323
  # Video segment level annotation results for text detection.
324
324
  # @!attribute [rw] segment
325
- # @return [Google::Cloud::Videointelligence::V1p2beta1::VideoSegment]
325
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment]
326
326
  # Video segment where a text snippet was detected.
327
327
  # @!attribute [rw] confidence
328
328
  # @return [Float]
329
329
  # Confidence for the track of detected text. It is calculated as the highest
330
330
  # over all frames where OCR detected text appears.
331
331
  # @!attribute [rw] frames
332
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::TextFrame>]
332
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::TextFrame>]
333
333
  # Information related to the frames where OCR detected text appears.
334
334
  class TextSegment; end
335
335
 
@@ -337,7 +337,7 @@ module Google
337
337
  # Contains information regarding timestamp and bounding box locations for the
338
338
  # frames containing detected OCR text snippets.
339
339
  # @!attribute [rw] rotated_bounding_box
340
- # @return [Google::Cloud::Videointelligence::V1p2beta1::NormalizedBoundingPoly]
340
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::NormalizedBoundingPoly]
341
341
  # Bounding polygon of the detected text for this frame.
342
342
  # @!attribute [rw] time_offset
343
343
  # @return [Google::Protobuf::Duration]
@@ -351,14 +351,14 @@ module Google
351
351
  # @return [String]
352
352
  # The detected text.
353
353
  # @!attribute [rw] segments
354
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::TextSegment>]
354
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::TextSegment>]
355
355
  # All video segments where OCR detected text appears.
356
356
  class TextAnnotation; end
357
357
 
358
358
  # Video frame level annotations for object detection and tracking. This field
359
359
  # stores per frame location, time offset, and confidence.
360
360
  # @!attribute [rw] normalized_bounding_box
361
- # @return [Google::Cloud::Videointelligence::V1p2beta1::NormalizedBoundingBox]
361
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::NormalizedBoundingBox]
362
362
  # The normalized bounding box location of this object track for the frame.
363
363
  # @!attribute [rw] time_offset
364
364
  # @return [Google::Protobuf::Duration]
@@ -367,16 +367,16 @@ module Google
367
367
 
368
368
  # Annotations corresponding to one tracked object.
369
369
  # @!attribute [rw] entity
370
- # @return [Google::Cloud::Videointelligence::V1p2beta1::Entity]
370
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::Entity]
371
371
  # Entity to specify the object category that this track is labeled as.
372
372
  # @!attribute [rw] confidence
373
373
  # @return [Float]
374
374
  # Object category's labeling confidence of this track.
375
375
  # @!attribute [rw] frames
376
- # @return [Array<Google::Cloud::Videointelligence::V1p2beta1::ObjectTrackingFrame>]
376
+ # @return [Array<Google::Cloud::VideoIntelligence::V1p2beta1::ObjectTrackingFrame>]
377
377
  # Information corresponding to all frames where this object track appears.
378
378
  # @!attribute [rw] segment
379
- # @return [Google::Cloud::Videointelligence::V1p2beta1::VideoSegment]
379
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::VideoSegment]
380
380
  # Each object track corresponds to one video segment where it appears.
381
381
  class ObjectTrackingAnnotation; end
382
382