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
@@ -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::V1p2beta1::VideoIntelligenceService::Stub]
41
+ # @return [Google::Cloud::VideoIntelligence::V1p2beta1::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::V1p2beta1::VideoIntelligenceService::Stub.method(:new)
186
+ &Google::Cloud::VideoIntelligence::V1p2beta1::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::V1p2beta1::Feature>]
218
+ # @param features [Array<Google::Cloud::VideoIntelligence::V1p2beta1::Feature>]
210
219
  # Requested video annotation features.
211
- # @param video_context [Google::Cloud::Videointelligence::V1p2beta1::VideoContext | Hash]
220
+ # @param video_context [Google::Cloud::VideoIntelligence::V1p2beta1::VideoContext | Hash]
212
221
  # Additional video context and/or feature-specific parameters.
213
- # A hash of the same form as `Google::Cloud::Videointelligence::V1p2beta1::VideoContext`
222
+ # A hash of the same form as `Google::Cloud::VideoIntelligence::V1p2beta1::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::V1p2beta1::AnnotateVideoRequest)
291
+ req = Google::Gax::to_proto(req, Google::Cloud::VideoIntelligence::V1p2beta1::AnnotateVideoRequest)
283
292
  operation = Google::Gax::Operation.new(
284
293
  @annotate_video.call(req, options),
285
294
  @operations_client,
286
- Google::Cloud::Videointelligence::V1p2beta1::AnnotateVideoResponse,
287
- Google::Cloud::Videointelligence::V1p2beta1::AnnotateVideoProgress,
295
+ Google::Cloud::VideoIntelligence::V1p2beta1::AnnotateVideoResponse,
296
+ Google::Cloud::VideoIntelligence::V1p2beta1::AnnotateVideoProgress,
288
297
  call_options: options
289
298
  )
290
299
  operation.on_done { |operation| yield(operation) } if block_given?
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module VideoIntelligence
19
- VERSION = "1.2.0".freeze
19
+ VERSION = "1.3.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -216,47 +216,48 @@ end
216
216
 
217
217
  module Google
218
218
  module Cloud
219
- module Videointelligence
220
- module V1
221
- AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoRequest").msgclass
222
- VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass
223
- LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass
224
- ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
225
- ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
226
- FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
227
- ObjectTrackingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass
228
- TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").msgclass
229
- VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
230
- LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
231
- LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelFrame").msgclass
232
- Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Entity").msgclass
233
- LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelAnnotation").msgclass
234
- ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentFrame").msgclass
235
- ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentAnnotation").msgclass
236
- NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingBox").msgclass
237
- FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass
238
- FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass
239
- FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass
240
- VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass
241
- AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
242
- VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
243
- AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass
244
- SpeechTranscriptionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscriptionConfig").msgclass
245
- SpeechContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechContext").msgclass
246
- SpeechTranscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscription").msgclass
247
- SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechRecognitionAlternative").msgclass
248
- WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.WordInfo").msgclass
249
- NormalizedVertex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedVertex").msgclass
250
- NormalizedBoundingPoly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingPoly").msgclass
251
- TextSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextSegment").msgclass
252
- TextFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextFrame").msgclass
253
- TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextAnnotation").msgclass
254
- ObjectTrackingFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingFrame").msgclass
255
- ObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingAnnotation").msgclass
256
- Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
257
- LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
258
- Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
259
- end
219
+ module VideoIntelligence
260
220
  end
221
+ Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
261
222
  end
262
223
  end
224
+ module Google::Cloud::VideoIntelligence::V1
225
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoRequest").msgclass
226
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass
227
+ LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass
228
+ ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
229
+ ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
230
+ FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
231
+ ObjectTrackingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass
232
+ TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").msgclass
233
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
234
+ LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
235
+ LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelFrame").msgclass
236
+ Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Entity").msgclass
237
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelAnnotation").msgclass
238
+ ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentFrame").msgclass
239
+ ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentAnnotation").msgclass
240
+ NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingBox").msgclass
241
+ FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass
242
+ FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass
243
+ FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass
244
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass
245
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
246
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
247
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass
248
+ SpeechTranscriptionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscriptionConfig").msgclass
249
+ SpeechContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechContext").msgclass
250
+ SpeechTranscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscription").msgclass
251
+ SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechRecognitionAlternative").msgclass
252
+ WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.WordInfo").msgclass
253
+ NormalizedVertex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedVertex").msgclass
254
+ NormalizedBoundingPoly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingPoly").msgclass
255
+ TextSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextSegment").msgclass
256
+ TextFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextFrame").msgclass
257
+ TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextAnnotation").msgclass
258
+ ObjectTrackingFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingFrame").msgclass
259
+ ObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingAnnotation").msgclass
260
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
261
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
262
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
263
+ end
@@ -1,5 +1,5 @@
1
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'
2
+ # Source: google/cloud/videointelligence/v1/video_intelligence.proto for package 'Google::Cloud::VideoIntelligence::V1'
3
3
  # Original file comments:
4
4
  # Copyright 2018 Google LLC.
5
5
  #
@@ -23,28 +23,29 @@ require 'google/cloud/videointelligence/v1/video_intelligence_pb'
23
23
 
24
24
  module Google
25
25
  module Cloud
26
- module Videointelligence
27
- module V1
28
- module VideoIntelligenceService
29
- # Service that implements Google Cloud Video Intelligence API.
30
- class Service
31
-
32
- include GRPC::GenericService
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
33
35
 
34
- self.marshal_class_method = :encode
35
- self.unmarshal_class_method = :decode
36
- self.service_name = 'google.cloud.videointelligence.v1.VideoIntelligenceService'
36
+ include GRPC::GenericService
37
37
 
38
- # Performs asynchronous video annotation. Progress and results can be
39
- # retrieved through the `google.longrunning.Operations` interface.
40
- # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
41
- # `Operation.response` contains `AnnotateVideoResponse` (results).
42
- rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
43
- end
38
+ self.marshal_class_method = :encode
39
+ self.unmarshal_class_method = :decode
40
+ self.service_name = 'google.cloud.videointelligence.v1.VideoIntelligenceService'
44
41
 
45
- Stub = Service.rpc_stub_class
46
- end
47
- end
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
48
47
  end
48
+
49
+ Stub = Service.rpc_stub_class
49
50
  end
50
51
  end
@@ -115,26 +115,27 @@ end
115
115
 
116
116
  module Google
117
117
  module Cloud
118
- module Videointelligence
119
- module V1beta1
120
- AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoRequest").msgclass
121
- VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoContext").msgclass
122
- VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoSegment").msgclass
123
- LabelLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLocation").msgclass
124
- LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelAnnotation").msgclass
125
- SafeSearchAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.SafeSearchAnnotation").msgclass
126
- BoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.BoundingBox").msgclass
127
- FaceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceLocation").msgclass
128
- FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceAnnotation").msgclass
129
- VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationResults").msgclass
130
- AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoResponse").msgclass
131
- VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationProgress").msgclass
132
- AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoProgress").msgclass
133
- Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Feature").enummodule
134
- LabelLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLevel").enummodule
135
- LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelDetectionMode").enummodule
136
- Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Likelihood").enummodule
137
- end
118
+ module VideoIntelligence
138
119
  end
120
+ Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
139
121
  end
140
122
  end
123
+ module Google::Cloud::VideoIntelligence::V1beta1
124
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoRequest").msgclass
125
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoContext").msgclass
126
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoSegment").msgclass
127
+ LabelLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLocation").msgclass
128
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelAnnotation").msgclass
129
+ SafeSearchAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.SafeSearchAnnotation").msgclass
130
+ BoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.BoundingBox").msgclass
131
+ FaceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceLocation").msgclass
132
+ FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceAnnotation").msgclass
133
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationResults").msgclass
134
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoResponse").msgclass
135
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationProgress").msgclass
136
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoProgress").msgclass
137
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Feature").enummodule
138
+ LabelLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLevel").enummodule
139
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelDetectionMode").enummodule
140
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Likelihood").enummodule
141
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/videointelligence/v1beta1/video_intelligence.proto for package 'google.cloud.videointelligence.v1beta1'
2
+ # Source: google/cloud/videointelligence/v1beta1/video_intelligence.proto for package 'Google::Cloud::VideoIntelligence::V1beta1'
3
3
  # Original file comments:
4
4
  # Copyright 2017 Google Inc.
5
5
  #
@@ -22,28 +22,29 @@ require 'google/cloud/videointelligence/v1beta1/video_intelligence_pb'
22
22
 
23
23
  module Google
24
24
  module Cloud
25
- module Videointelligence
26
- module V1beta1
27
- module VideoIntelligenceService
28
- # Service that implements Google Cloud Video Intelligence API.
29
- class Service
30
-
31
- include GRPC::GenericService
25
+ module VideoIntelligence
26
+ end
27
+ Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
28
+ end
29
+ end
30
+ module Google::Cloud::VideoIntelligence::V1beta1
31
+ module VideoIntelligenceService
32
+ # Service that implements Google Cloud Video Intelligence API.
33
+ class Service
32
34
 
33
- self.marshal_class_method = :encode
34
- self.unmarshal_class_method = :decode
35
- self.service_name = 'google.cloud.videointelligence.v1beta1.VideoIntelligenceService'
35
+ include GRPC::GenericService
36
36
 
37
- # Performs asynchronous video annotation. Progress and results can be
38
- # retrieved through the `google.longrunning.Operations` interface.
39
- # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
40
- # `Operation.response` contains `AnnotateVideoResponse` (results).
41
- rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
42
- end
37
+ self.marshal_class_method = :encode
38
+ self.unmarshal_class_method = :decode
39
+ self.service_name = 'google.cloud.videointelligence.v1beta1.VideoIntelligenceService'
43
40
 
44
- Stub = Service.rpc_stub_class
45
- end
46
- end
41
+ # Performs asynchronous video annotation. Progress and results can be
42
+ # retrieved through the `google.longrunning.Operations` interface.
43
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
44
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
45
+ rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
47
46
  end
47
+
48
+ Stub = Service.rpc_stub_class
48
49
  end
49
50
  end
@@ -135,33 +135,34 @@ end
135
135
 
136
136
  module Google
137
137
  module Cloud
138
- module Videointelligence
139
- module V1beta2
140
- AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoRequest").msgclass
141
- VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoContext").msgclass
142
- LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionConfig").msgclass
143
- ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig").msgclass
144
- ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig").msgclass
145
- FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceDetectionConfig").msgclass
146
- VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoSegment").msgclass
147
- LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelSegment").msgclass
148
- LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelFrame").msgclass
149
- Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Entity").msgclass
150
- LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelAnnotation").msgclass
151
- ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentFrame").msgclass
152
- ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation").msgclass
153
- NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.NormalizedBoundingBox").msgclass
154
- FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceSegment").msgclass
155
- FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceFrame").msgclass
156
- FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceAnnotation").msgclass
157
- VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationResults").msgclass
158
- AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoResponse").msgclass
159
- VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationProgress").msgclass
160
- AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoProgress").msgclass
161
- Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Feature").enummodule
162
- LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionMode").enummodule
163
- Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Likelihood").enummodule
164
- end
138
+ module VideoIntelligence
165
139
  end
140
+ Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
166
141
  end
167
142
  end
143
+ module Google::Cloud::VideoIntelligence::V1beta2
144
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoRequest").msgclass
145
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoContext").msgclass
146
+ LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionConfig").msgclass
147
+ ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig").msgclass
148
+ ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig").msgclass
149
+ FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceDetectionConfig").msgclass
150
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoSegment").msgclass
151
+ LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelSegment").msgclass
152
+ LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelFrame").msgclass
153
+ Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Entity").msgclass
154
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelAnnotation").msgclass
155
+ ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentFrame").msgclass
156
+ ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation").msgclass
157
+ NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.NormalizedBoundingBox").msgclass
158
+ FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceSegment").msgclass
159
+ FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceFrame").msgclass
160
+ FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceAnnotation").msgclass
161
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationResults").msgclass
162
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoResponse").msgclass
163
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationProgress").msgclass
164
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoProgress").msgclass
165
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Feature").enummodule
166
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionMode").enummodule
167
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Likelihood").enummodule
168
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/videointelligence/v1beta2/video_intelligence.proto for package 'google.cloud.videointelligence.v1beta2'
2
+ # Source: google/cloud/videointelligence/v1beta2/video_intelligence.proto for package 'Google::Cloud::VideoIntelligence::V1beta2'
3
3
  # Original file comments:
4
4
  # Copyright 2017 Google Inc.
5
5
  #
@@ -22,28 +22,29 @@ require 'google/cloud/videointelligence/v1beta2/video_intelligence_pb'
22
22
 
23
23
  module Google
24
24
  module Cloud
25
- module Videointelligence
26
- module V1beta2
27
- module VideoIntelligenceService
28
- # Service that implements Google Cloud Video Intelligence API.
29
- class Service
30
-
31
- include GRPC::GenericService
25
+ module VideoIntelligence
26
+ end
27
+ Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
28
+ end
29
+ end
30
+ module Google::Cloud::VideoIntelligence::V1beta2
31
+ module VideoIntelligenceService
32
+ # Service that implements Google Cloud Video Intelligence API.
33
+ class Service
32
34
 
33
- self.marshal_class_method = :encode
34
- self.unmarshal_class_method = :decode
35
- self.service_name = 'google.cloud.videointelligence.v1beta2.VideoIntelligenceService'
35
+ include GRPC::GenericService
36
36
 
37
- # Performs asynchronous video annotation. Progress and results can be
38
- # retrieved through the `google.longrunning.Operations` interface.
39
- # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
40
- # `Operation.response` contains `AnnotateVideoResponse` (results).
41
- rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
42
- end
37
+ self.marshal_class_method = :encode
38
+ self.unmarshal_class_method = :decode
39
+ self.service_name = 'google.cloud.videointelligence.v1beta2.VideoIntelligenceService'
43
40
 
44
- Stub = Service.rpc_stub_class
45
- end
46
- end
41
+ # Performs asynchronous video annotation. Progress and results can be
42
+ # retrieved through the `google.longrunning.Operations` interface.
43
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
44
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
45
+ rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
47
46
  end
47
+
48
+ Stub = Service.rpc_stub_class
48
49
  end
49
50
  end