google-cloud-video_intelligence-v1p3beta1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/video_intelligence/v1p3beta1/streaming_video_intelligence_service/client.rb +361 -0
  7. data/lib/google/cloud/video_intelligence/v1p3beta1/streaming_video_intelligence_service/credentials.rb +51 -0
  8. data/lib/google/cloud/video_intelligence/v1p3beta1/streaming_video_intelligence_service.rb +48 -0
  9. data/lib/google/cloud/video_intelligence/v1p3beta1/version.rb +28 -0
  10. data/lib/google/cloud/video_intelligence/v1p3beta1/video_intelligence_service/client.rb +414 -0
  11. data/lib/google/cloud/video_intelligence/v1p3beta1/video_intelligence_service/credentials.rb +51 -0
  12. data/lib/google/cloud/video_intelligence/v1p3beta1/video_intelligence_service/operations.rb +664 -0
  13. data/lib/google/cloud/video_intelligence/v1p3beta1/video_intelligence_service.rb +49 -0
  14. data/lib/google/cloud/video_intelligence/v1p3beta1.rb +39 -0
  15. data/lib/google/cloud/videointelligence/v1p3beta1/video_intelligence_pb.rb +405 -0
  16. data/lib/google/cloud/videointelligence/v1p3beta1/video_intelligence_services_pb.rb +66 -0
  17. data/lib/google-cloud-video_intelligence-v1p3beta1.rb +21 -0
  18. data/proto_docs/README.md +4 -0
  19. data/proto_docs/google/api/field_behavior.rb +71 -0
  20. data/proto_docs/google/api/resource.rb +283 -0
  21. data/proto_docs/google/cloud/videointelligence/v1p3beta1/video_intelligence.rb +1196 -0
  22. data/proto_docs/google/longrunning/operations.rb +164 -0
  23. data/proto_docs/google/protobuf/any.rb +141 -0
  24. data/proto_docs/google/protobuf/duration.rb +98 -0
  25. data/proto_docs/google/protobuf/empty.rb +36 -0
  26. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  27. data/proto_docs/google/rpc/status.rb +46 -0
  28. metadata +219 -0
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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/v1p3beta1/version"
24
+
25
+ require "google/cloud/video_intelligence/v1p3beta1/video_intelligence_service/credentials"
26
+ require "google/cloud/video_intelligence/v1p3beta1/video_intelligence_service/operations"
27
+ require "google/cloud/video_intelligence/v1p3beta1/video_intelligence_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module VideoIntelligence
32
+ module V1p3beta1
33
+ ##
34
+ # Service that implements the Video Intelligence API.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/video_intelligence/v1p3beta1/video_intelligence_service"
39
+ # client = ::Google::Cloud::VideoIntelligence::V1p3beta1::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/v1p3beta1/video_intelligence_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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/v1p3beta1/video_intelligence_service"
20
+ require "google/cloud/video_intelligence/v1p3beta1/streaming_video_intelligence_service"
21
+ require "google/cloud/video_intelligence/v1p3beta1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module VideoIntelligence
26
+ ##
27
+ # To load this package, including all its services, and instantiate a client:
28
+ #
29
+ # require "google/cloud/video_intelligence/v1p3beta1"
30
+ # client = ::Google::Cloud::VideoIntelligence::V1p3beta1::VideoIntelligenceService::Client.new
31
+ #
32
+ module V1p3beta1
33
+ end
34
+ end
35
+ end
36
+ end
37
+
38
+ helper_path = ::File.join __dir__, "v1p3beta1", "_helpers.rb"
39
+ require "google/cloud/video_intelligence/v1p3beta1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,405 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/videointelligence/v1p3beta1/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/v1p3beta1/video_intelligence.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest" do
16
+ optional :input_uri, :string, 1
17
+ optional :input_content, :bytes, 6
18
+ repeated :features, :enum, 2, "google.cloud.videointelligence.v1p3beta1.Feature"
19
+ optional :video_context, :message, 3, "google.cloud.videointelligence.v1p3beta1.VideoContext"
20
+ optional :output_uri, :string, 4
21
+ optional :location_id, :string, 5
22
+ end
23
+ add_message "google.cloud.videointelligence.v1p3beta1.VideoContext" do
24
+ repeated :segments, :message, 1, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
25
+ optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig"
26
+ optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig"
27
+ optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig"
28
+ optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig"
29
+ optional :speech_transcription_config, :message, 6, "google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig"
30
+ optional :text_detection_config, :message, 8, "google.cloud.videointelligence.v1p3beta1.TextDetectionConfig"
31
+ optional :person_detection_config, :message, 11, "google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig"
32
+ optional :object_tracking_config, :message, 13, "google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig"
33
+ end
34
+ add_message "google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig" do
35
+ optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1p3beta1.LabelDetectionMode"
36
+ optional :stationary_camera, :bool, 2
37
+ optional :model, :string, 3
38
+ optional :frame_confidence_threshold, :float, 4
39
+ optional :video_confidence_threshold, :float, 5
40
+ end
41
+ add_message "google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig" do
42
+ optional :model, :string, 1
43
+ end
44
+ add_message "google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig" do
45
+ optional :model, :string, 1
46
+ end
47
+ add_message "google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig" do
48
+ optional :model, :string, 1
49
+ end
50
+ add_message "google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig" do
51
+ optional :model, :string, 1
52
+ optional :include_bounding_boxes, :bool, 2
53
+ optional :include_attributes, :bool, 5
54
+ end
55
+ add_message "google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig" do
56
+ optional :include_bounding_boxes, :bool, 1
57
+ optional :include_pose_landmarks, :bool, 2
58
+ optional :include_attributes, :bool, 3
59
+ end
60
+ add_message "google.cloud.videointelligence.v1p3beta1.TextDetectionConfig" do
61
+ repeated :language_hints, :string, 1
62
+ optional :model, :string, 2
63
+ end
64
+ add_message "google.cloud.videointelligence.v1p3beta1.VideoSegment" do
65
+ optional :start_time_offset, :message, 1, "google.protobuf.Duration"
66
+ optional :end_time_offset, :message, 2, "google.protobuf.Duration"
67
+ end
68
+ add_message "google.cloud.videointelligence.v1p3beta1.LabelSegment" do
69
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
70
+ optional :confidence, :float, 2
71
+ end
72
+ add_message "google.cloud.videointelligence.v1p3beta1.LabelFrame" do
73
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
74
+ optional :confidence, :float, 2
75
+ end
76
+ add_message "google.cloud.videointelligence.v1p3beta1.Entity" do
77
+ optional :entity_id, :string, 1
78
+ optional :description, :string, 2
79
+ optional :language_code, :string, 3
80
+ end
81
+ add_message "google.cloud.videointelligence.v1p3beta1.LabelAnnotation" do
82
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1p3beta1.Entity"
83
+ repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1p3beta1.Entity"
84
+ repeated :segments, :message, 3, "google.cloud.videointelligence.v1p3beta1.LabelSegment"
85
+ repeated :frames, :message, 4, "google.cloud.videointelligence.v1p3beta1.LabelFrame"
86
+ end
87
+ add_message "google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame" do
88
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
89
+ optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1p3beta1.Likelihood"
90
+ end
91
+ add_message "google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation" do
92
+ repeated :frames, :message, 1, "google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame"
93
+ end
94
+ add_message "google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox" do
95
+ optional :left, :float, 1
96
+ optional :top, :float, 2
97
+ optional :right, :float, 3
98
+ optional :bottom, :float, 4
99
+ end
100
+ add_message "google.cloud.videointelligence.v1p3beta1.TimestampedObject" do
101
+ optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox"
102
+ optional :time_offset, :message, 2, "google.protobuf.Duration"
103
+ repeated :attributes, :message, 3, "google.cloud.videointelligence.v1p3beta1.DetectedAttribute"
104
+ repeated :landmarks, :message, 4, "google.cloud.videointelligence.v1p3beta1.DetectedLandmark"
105
+ end
106
+ add_message "google.cloud.videointelligence.v1p3beta1.Track" do
107
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
108
+ repeated :timestamped_objects, :message, 2, "google.cloud.videointelligence.v1p3beta1.TimestampedObject"
109
+ repeated :attributes, :message, 3, "google.cloud.videointelligence.v1p3beta1.DetectedAttribute"
110
+ optional :confidence, :float, 4
111
+ end
112
+ add_message "google.cloud.videointelligence.v1p3beta1.DetectedAttribute" do
113
+ optional :name, :string, 1
114
+ optional :confidence, :float, 2
115
+ optional :value, :string, 3
116
+ end
117
+ add_message "google.cloud.videointelligence.v1p3beta1.Celebrity" do
118
+ optional :name, :string, 1
119
+ optional :display_name, :string, 2
120
+ optional :description, :string, 3
121
+ end
122
+ add_message "google.cloud.videointelligence.v1p3beta1.CelebrityTrack" do
123
+ repeated :celebrities, :message, 1, "google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity"
124
+ optional :face_track, :message, 3, "google.cloud.videointelligence.v1p3beta1.Track"
125
+ end
126
+ add_message "google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity" do
127
+ optional :celebrity, :message, 1, "google.cloud.videointelligence.v1p3beta1.Celebrity"
128
+ optional :confidence, :float, 2
129
+ end
130
+ add_message "google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation" do
131
+ repeated :celebrity_tracks, :message, 1, "google.cloud.videointelligence.v1p3beta1.CelebrityTrack"
132
+ end
133
+ add_message "google.cloud.videointelligence.v1p3beta1.DetectedLandmark" do
134
+ optional :name, :string, 1
135
+ optional :point, :message, 2, "google.cloud.videointelligence.v1p3beta1.NormalizedVertex"
136
+ optional :confidence, :float, 3
137
+ end
138
+ add_message "google.cloud.videointelligence.v1p3beta1.FaceDetectionAnnotation" do
139
+ repeated :tracks, :message, 3, "google.cloud.videointelligence.v1p3beta1.Track"
140
+ optional :thumbnail, :bytes, 4
141
+ end
142
+ add_message "google.cloud.videointelligence.v1p3beta1.PersonDetectionAnnotation" do
143
+ repeated :tracks, :message, 1, "google.cloud.videointelligence.v1p3beta1.Track"
144
+ end
145
+ add_message "google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults" do
146
+ optional :input_uri, :string, 1
147
+ optional :segment, :message, 10, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
148
+ repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1p3beta1.LabelAnnotation"
149
+ repeated :segment_presence_label_annotations, :message, 23, "google.cloud.videointelligence.v1p3beta1.LabelAnnotation"
150
+ repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1p3beta1.LabelAnnotation"
151
+ repeated :shot_presence_label_annotations, :message, 24, "google.cloud.videointelligence.v1p3beta1.LabelAnnotation"
152
+ repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1p3beta1.LabelAnnotation"
153
+ repeated :face_detection_annotations, :message, 13, "google.cloud.videointelligence.v1p3beta1.FaceDetectionAnnotation"
154
+ repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
155
+ optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation"
156
+ repeated :speech_transcriptions, :message, 11, "google.cloud.videointelligence.v1p3beta1.SpeechTranscription"
157
+ repeated :text_annotations, :message, 12, "google.cloud.videointelligence.v1p3beta1.TextAnnotation"
158
+ repeated :object_annotations, :message, 14, "google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation"
159
+ repeated :logo_recognition_annotations, :message, 19, "google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation"
160
+ repeated :person_detection_annotations, :message, 20, "google.cloud.videointelligence.v1p3beta1.PersonDetectionAnnotation"
161
+ optional :celebrity_recognition_annotations, :message, 21, "google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation"
162
+ optional :error, :message, 9, "google.rpc.Status"
163
+ end
164
+ add_message "google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse" do
165
+ repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults"
166
+ end
167
+ add_message "google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress" do
168
+ optional :input_uri, :string, 1
169
+ optional :progress_percent, :int32, 2
170
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
171
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
172
+ optional :feature, :enum, 5, "google.cloud.videointelligence.v1p3beta1.Feature"
173
+ optional :segment, :message, 6, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
174
+ end
175
+ add_message "google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress" do
176
+ repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress"
177
+ end
178
+ add_message "google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig" do
179
+ optional :language_code, :string, 1
180
+ optional :max_alternatives, :int32, 2
181
+ optional :filter_profanity, :bool, 3
182
+ repeated :speech_contexts, :message, 4, "google.cloud.videointelligence.v1p3beta1.SpeechContext"
183
+ optional :enable_automatic_punctuation, :bool, 5
184
+ repeated :audio_tracks, :int32, 6
185
+ optional :enable_speaker_diarization, :bool, 7
186
+ optional :diarization_speaker_count, :int32, 8
187
+ optional :enable_word_confidence, :bool, 9
188
+ end
189
+ add_message "google.cloud.videointelligence.v1p3beta1.SpeechContext" do
190
+ repeated :phrases, :string, 1
191
+ end
192
+ add_message "google.cloud.videointelligence.v1p3beta1.SpeechTranscription" do
193
+ repeated :alternatives, :message, 1, "google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative"
194
+ optional :language_code, :string, 2
195
+ end
196
+ add_message "google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative" do
197
+ optional :transcript, :string, 1
198
+ optional :confidence, :float, 2
199
+ repeated :words, :message, 3, "google.cloud.videointelligence.v1p3beta1.WordInfo"
200
+ end
201
+ add_message "google.cloud.videointelligence.v1p3beta1.WordInfo" do
202
+ optional :start_time, :message, 1, "google.protobuf.Duration"
203
+ optional :end_time, :message, 2, "google.protobuf.Duration"
204
+ optional :word, :string, 3
205
+ optional :confidence, :float, 4
206
+ optional :speaker_tag, :int32, 5
207
+ end
208
+ add_message "google.cloud.videointelligence.v1p3beta1.NormalizedVertex" do
209
+ optional :x, :float, 1
210
+ optional :y, :float, 2
211
+ end
212
+ add_message "google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly" do
213
+ repeated :vertices, :message, 1, "google.cloud.videointelligence.v1p3beta1.NormalizedVertex"
214
+ end
215
+ add_message "google.cloud.videointelligence.v1p3beta1.TextSegment" do
216
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
217
+ optional :confidence, :float, 2
218
+ repeated :frames, :message, 3, "google.cloud.videointelligence.v1p3beta1.TextFrame"
219
+ end
220
+ add_message "google.cloud.videointelligence.v1p3beta1.TextFrame" do
221
+ optional :rotated_bounding_box, :message, 1, "google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly"
222
+ optional :time_offset, :message, 2, "google.protobuf.Duration"
223
+ end
224
+ add_message "google.cloud.videointelligence.v1p3beta1.TextAnnotation" do
225
+ optional :text, :string, 1
226
+ repeated :segments, :message, 2, "google.cloud.videointelligence.v1p3beta1.TextSegment"
227
+ end
228
+ add_message "google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame" do
229
+ optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox"
230
+ optional :time_offset, :message, 2, "google.protobuf.Duration"
231
+ end
232
+ add_message "google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation" do
233
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1p3beta1.Entity"
234
+ optional :confidence, :float, 4
235
+ repeated :frames, :message, 2, "google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame"
236
+ oneof :track_info do
237
+ optional :segment, :message, 3, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
238
+ optional :track_id, :int64, 5
239
+ end
240
+ end
241
+ add_message "google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation" do
242
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1p3beta1.Entity"
243
+ repeated :tracks, :message, 2, "google.cloud.videointelligence.v1p3beta1.Track"
244
+ repeated :segments, :message, 3, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
245
+ end
246
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest" do
247
+ oneof :streaming_request do
248
+ optional :video_config, :message, 1, "google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig"
249
+ optional :input_content, :bytes, 2
250
+ end
251
+ end
252
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig" do
253
+ optional :feature, :enum, 1, "google.cloud.videointelligence.v1p3beta1.StreamingFeature"
254
+ optional :storage_config, :message, 30, "google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig"
255
+ oneof :streaming_config do
256
+ optional :shot_change_detection_config, :message, 2, "google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig"
257
+ optional :label_detection_config, :message, 3, "google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig"
258
+ optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig"
259
+ optional :object_tracking_config, :message, 5, "google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig"
260
+ optional :automl_action_recognition_config, :message, 23, "google.cloud.videointelligence.v1p3beta1.StreamingAutomlActionRecognitionConfig"
261
+ optional :automl_classification_config, :message, 21, "google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig"
262
+ optional :automl_object_tracking_config, :message, 22, "google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig"
263
+ end
264
+ end
265
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse" do
266
+ optional :error, :message, 1, "google.rpc.Status"
267
+ optional :annotation_results, :message, 2, "google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults"
268
+ optional :annotation_results_uri, :string, 3
269
+ end
270
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults" do
271
+ repeated :shot_annotations, :message, 1, "google.cloud.videointelligence.v1p3beta1.VideoSegment"
272
+ repeated :label_annotations, :message, 2, "google.cloud.videointelligence.v1p3beta1.LabelAnnotation"
273
+ optional :explicit_annotation, :message, 3, "google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation"
274
+ repeated :object_annotations, :message, 4, "google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation"
275
+ end
276
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig" do
277
+ end
278
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig" do
279
+ optional :stationary_camera, :bool, 1
280
+ end
281
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig" do
282
+ end
283
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig" do
284
+ end
285
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingAutomlActionRecognitionConfig" do
286
+ optional :model_name, :string, 1
287
+ end
288
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig" do
289
+ optional :model_name, :string, 1
290
+ end
291
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig" do
292
+ optional :model_name, :string, 1
293
+ end
294
+ add_message "google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig" do
295
+ optional :enable_storage_annotation_result, :bool, 1
296
+ optional :annotation_result_storage_directory, :string, 3
297
+ end
298
+ add_enum "google.cloud.videointelligence.v1p3beta1.LabelDetectionMode" do
299
+ value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
300
+ value :SHOT_MODE, 1
301
+ value :FRAME_MODE, 2
302
+ value :SHOT_AND_FRAME_MODE, 3
303
+ end
304
+ add_enum "google.cloud.videointelligence.v1p3beta1.Likelihood" do
305
+ value :LIKELIHOOD_UNSPECIFIED, 0
306
+ value :VERY_UNLIKELY, 1
307
+ value :UNLIKELY, 2
308
+ value :POSSIBLE, 3
309
+ value :LIKELY, 4
310
+ value :VERY_LIKELY, 5
311
+ end
312
+ add_enum "google.cloud.videointelligence.v1p3beta1.StreamingFeature" do
313
+ value :STREAMING_FEATURE_UNSPECIFIED, 0
314
+ value :STREAMING_LABEL_DETECTION, 1
315
+ value :STREAMING_SHOT_CHANGE_DETECTION, 2
316
+ value :STREAMING_EXPLICIT_CONTENT_DETECTION, 3
317
+ value :STREAMING_OBJECT_TRACKING, 4
318
+ value :STREAMING_AUTOML_ACTION_RECOGNITION, 23
319
+ value :STREAMING_AUTOML_CLASSIFICATION, 21
320
+ value :STREAMING_AUTOML_OBJECT_TRACKING, 22
321
+ end
322
+ add_enum "google.cloud.videointelligence.v1p3beta1.Feature" do
323
+ value :FEATURE_UNSPECIFIED, 0
324
+ value :LABEL_DETECTION, 1
325
+ value :SHOT_CHANGE_DETECTION, 2
326
+ value :EXPLICIT_CONTENT_DETECTION, 3
327
+ value :FACE_DETECTION, 4
328
+ value :SPEECH_TRANSCRIPTION, 6
329
+ value :TEXT_DETECTION, 7
330
+ value :OBJECT_TRACKING, 9
331
+ value :LOGO_RECOGNITION, 12
332
+ value :CELEBRITY_RECOGNITION, 13
333
+ value :PERSON_DETECTION, 14
334
+ end
335
+ end
336
+ end
337
+
338
+ module Google
339
+ module Cloud
340
+ module VideoIntelligence
341
+ module V1p3beta1
342
+ AnnotateVideoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.AnnotateVideoRequest").msgclass
343
+ VideoContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.VideoContext").msgclass
344
+ LabelDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.LabelDetectionConfig").msgclass
345
+ ShotChangeDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.ShotChangeDetectionConfig").msgclass
346
+ ObjectTrackingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.ObjectTrackingConfig").msgclass
347
+ ExplicitContentDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.ExplicitContentDetectionConfig").msgclass
348
+ FaceDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.FaceDetectionConfig").msgclass
349
+ PersonDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig").msgclass
350
+ TextDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.TextDetectionConfig").msgclass
351
+ VideoSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.VideoSegment").msgclass
352
+ LabelSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.LabelSegment").msgclass
353
+ LabelFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.LabelFrame").msgclass
354
+ Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.Entity").msgclass
355
+ LabelAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.LabelAnnotation").msgclass
356
+ ExplicitContentFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.ExplicitContentFrame").msgclass
357
+ ExplicitContentAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.ExplicitContentAnnotation").msgclass
358
+ NormalizedBoundingBox = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox").msgclass
359
+ TimestampedObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.TimestampedObject").msgclass
360
+ Track = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.Track").msgclass
361
+ DetectedAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.DetectedAttribute").msgclass
362
+ Celebrity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.Celebrity").msgclass
363
+ CelebrityTrack = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.CelebrityTrack").msgclass
364
+ CelebrityTrack::RecognizedCelebrity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity").msgclass
365
+ CelebrityRecognitionAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation").msgclass
366
+ DetectedLandmark = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.DetectedLandmark").msgclass
367
+ FaceDetectionAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.FaceDetectionAnnotation").msgclass
368
+ PersonDetectionAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.PersonDetectionAnnotation").msgclass
369
+ VideoAnnotationResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.VideoAnnotationResults").msgclass
370
+ AnnotateVideoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse").msgclass
371
+ VideoAnnotationProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.VideoAnnotationProgress").msgclass
372
+ AnnotateVideoProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress").msgclass
373
+ SpeechTranscriptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.SpeechTranscriptionConfig").msgclass
374
+ SpeechContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.SpeechContext").msgclass
375
+ SpeechTranscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.SpeechTranscription").msgclass
376
+ SpeechRecognitionAlternative = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.SpeechRecognitionAlternative").msgclass
377
+ WordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.WordInfo").msgclass
378
+ NormalizedVertex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.NormalizedVertex").msgclass
379
+ NormalizedBoundingPoly = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.NormalizedBoundingPoly").msgclass
380
+ TextSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.TextSegment").msgclass
381
+ TextFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.TextFrame").msgclass
382
+ TextAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.TextAnnotation").msgclass
383
+ ObjectTrackingFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame").msgclass
384
+ ObjectTrackingAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation").msgclass
385
+ LogoRecognitionAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation").msgclass
386
+ StreamingAnnotateVideoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoRequest").msgclass
387
+ StreamingVideoConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig").msgclass
388
+ StreamingAnnotateVideoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse").msgclass
389
+ StreamingVideoAnnotationResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingVideoAnnotationResults").msgclass
390
+ StreamingShotChangeDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig").msgclass
391
+ StreamingLabelDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingLabelDetectionConfig").msgclass
392
+ StreamingExplicitContentDetectionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingExplicitContentDetectionConfig").msgclass
393
+ StreamingObjectTrackingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingObjectTrackingConfig").msgclass
394
+ StreamingAutomlActionRecognitionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingAutomlActionRecognitionConfig").msgclass
395
+ StreamingAutomlClassificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig").msgclass
396
+ StreamingAutomlObjectTrackingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingAutomlObjectTrackingConfig").msgclass
397
+ StreamingStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingStorageConfig").msgclass
398
+ LabelDetectionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.LabelDetectionMode").enummodule
399
+ Likelihood = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.Likelihood").enummodule
400
+ StreamingFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.StreamingFeature").enummodule
401
+ Feature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p3beta1.Feature").enummodule
402
+ end
403
+ end
404
+ end
405
+ end
@@ -0,0 +1,66 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto for package 'Google.Cloud.VideoIntelligence.V1p3beta1'
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/v1p3beta1/video_intelligence_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module VideoIntelligence
25
+ module V1p3beta1
26
+ module VideoIntelligenceService
27
+ # Service that implements the 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.v1p3beta1.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::V1p3beta1::AnnotateVideoRequest, ::Google::Longrunning::Operation
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ module StreamingVideoIntelligenceService
46
+ # Service that implements streaming Video Intelligence API.
47
+ class Service
48
+
49
+ include ::GRPC::GenericService
50
+
51
+ self.marshal_class_method = :encode
52
+ self.unmarshal_class_method = :decode
53
+ self.service_name = 'google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService'
54
+
55
+ # Performs video annotation with bidirectional streaming: emitting results
56
+ # while sending video/audio bytes.
57
+ # This method is only available via the gRPC API (not REST).
58
+ rpc :StreamingAnnotateVideo, stream(::Google::Cloud::VideoIntelligence::V1p3beta1::StreamingAnnotateVideoRequest), stream(::Google::Cloud::VideoIntelligence::V1p3beta1::StreamingAnnotateVideoResponse)
59
+ end
60
+
61
+ Stub = Service.rpc_stub_class
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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/v1p3beta1"
@@ -0,0 +1,4 @@
1
+ # Cloud Video Intelligence V1p3beta1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.