google-cloud-video_intelligence 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +149 -4
  3. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json +1 -1
  4. data/lib/google/cloud/video_intelligence/v1p1beta1.rb +177 -0
  5. data/lib/google/cloud/video_intelligence/v1p1beta1/credentials.rb +41 -0
  6. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/cloud/videointelligence/v1p1beta1/video_intelligence.rb +410 -0
  7. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/longrunning/operations.rb +93 -0
  8. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/any.rb +130 -0
  9. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/duration.rb +91 -0
  10. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/rpc/status.rb +84 -0
  11. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb +296 -0
  12. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client_config.json +31 -0
  13. data/lib/google/cloud/video_intelligence/v1p2beta1.rb +177 -0
  14. data/lib/google/cloud/video_intelligence/v1p2beta1/credentials.rb +41 -0
  15. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/video_intelligence.rb +442 -0
  16. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/longrunning/operations.rb +93 -0
  17. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/any.rb +130 -0
  18. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/duration.rb +91 -0
  19. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/rpc/status.rb +84 -0
  20. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb +296 -0
  21. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client_config.json +31 -0
  22. data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +38 -0
  23. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_pb.rb +169 -0
  24. data/lib/google/cloud/videointelligence/v1p1beta1/video_intelligence_services_pb.rb +49 -0
  25. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_pb.rb +190 -0
  26. data/lib/google/cloud/videointelligence/v1p2beta1/video_intelligence_services_pb.rb +50 -0
  27. metadata +26 -4
@@ -0,0 +1,31 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 1000,
14
+ "retry_delay_multiplier": 2.5,
15
+ "max_retry_delay_millis": 120000,
16
+ "initial_rpc_timeout_millis": 120000,
17
+ "rpc_timeout_multiplier": 1.0,
18
+ "max_rpc_timeout_millis": 120000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "AnnotateVideo": {
24
+ "timeout_millis": 600000,
25
+ "retry_codes_name": "idempotent",
26
+ "retry_params_name": "default"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
24
  optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1.ShotChangeDetectionConfig"
25
25
  optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig"
26
26
  optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1.FaceDetectionConfig"
27
+ optional :speech_transcription_config, :message, 6, "google.cloud.videointelligence.v1.SpeechTranscriptionConfig"
27
28
  end
28
29
  add_message "google.cloud.videointelligence.v1.LabelDetectionConfig" do
29
30
  optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1.LabelDetectionMode"
@@ -96,6 +97,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
96
97
  repeated :face_annotations, :message, 5, "google.cloud.videointelligence.v1.FaceAnnotation"
97
98
  repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1.VideoSegment"
98
99
  optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1.ExplicitContentAnnotation"
100
+ repeated :speech_transcriptions, :message, 11, "google.cloud.videointelligence.v1.SpeechTranscription"
99
101
  optional :error, :message, 9, "google.rpc.Status"
100
102
  end
101
103
  add_message "google.cloud.videointelligence.v1.AnnotateVideoResponse" do
@@ -110,12 +112,43 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
110
112
  add_message "google.cloud.videointelligence.v1.AnnotateVideoProgress" do
111
113
  repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationProgress"
112
114
  end
115
+ add_message "google.cloud.videointelligence.v1.SpeechTranscriptionConfig" do
116
+ optional :language_code, :string, 1
117
+ optional :max_alternatives, :int32, 2
118
+ optional :filter_profanity, :bool, 3
119
+ repeated :speech_contexts, :message, 4, "google.cloud.videointelligence.v1.SpeechContext"
120
+ optional :enable_automatic_punctuation, :bool, 5
121
+ repeated :audio_tracks, :int32, 6
122
+ optional :enable_speaker_diarization, :bool, 7
123
+ optional :diarization_speaker_count, :int32, 8
124
+ optional :enable_word_confidence, :bool, 9
125
+ end
126
+ add_message "google.cloud.videointelligence.v1.SpeechContext" do
127
+ repeated :phrases, :string, 1
128
+ end
129
+ add_message "google.cloud.videointelligence.v1.SpeechTranscription" do
130
+ repeated :alternatives, :message, 1, "google.cloud.videointelligence.v1.SpeechRecognitionAlternative"
131
+ optional :language_code, :string, 2
132
+ end
133
+ add_message "google.cloud.videointelligence.v1.SpeechRecognitionAlternative" do
134
+ optional :transcript, :string, 1
135
+ optional :confidence, :float, 2
136
+ repeated :words, :message, 3, "google.cloud.videointelligence.v1.WordInfo"
137
+ end
138
+ add_message "google.cloud.videointelligence.v1.WordInfo" do
139
+ optional :start_time, :message, 1, "google.protobuf.Duration"
140
+ optional :end_time, :message, 2, "google.protobuf.Duration"
141
+ optional :word, :string, 3
142
+ optional :confidence, :float, 4
143
+ optional :speaker_tag, :int32, 5
144
+ end
113
145
  add_enum "google.cloud.videointelligence.v1.Feature" do
114
146
  value :FEATURE_UNSPECIFIED, 0
115
147
  value :LABEL_DETECTION, 1
116
148
  value :SHOT_CHANGE_DETECTION, 2
117
149
  value :EXPLICIT_CONTENT_DETECTION, 3
118
150
  value :FACE_DETECTION, 4
151
+ value :SPEECH_TRANSCRIPTION, 6
119
152
  end
120
153
  add_enum "google.cloud.videointelligence.v1.LabelDetectionMode" do
121
154
  value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
@@ -158,6 +191,11 @@ module Google
158
191
  AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
159
192
  VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
160
193
  AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass
194
+ SpeechTranscriptionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscriptionConfig").msgclass
195
+ SpeechContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechContext").msgclass
196
+ SpeechTranscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechTranscription").msgclass
197
+ SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.SpeechRecognitionAlternative").msgclass
198
+ WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.WordInfo").msgclass
161
199
  Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
162
200
  LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
163
201
  Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
@@ -0,0 +1,169 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/videointelligence/v1p1beta1/video_intelligence.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/longrunning/operations_pb'
9
+ require 'google/protobuf/duration_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/rpc/status_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_message "google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest" do
14
+ optional :input_uri, :string, 1
15
+ optional :input_content, :bytes, 6
16
+ repeated :features, :enum, 2, "google.cloud.videointelligence.v1p1beta1.Feature"
17
+ optional :video_context, :message, 3, "google.cloud.videointelligence.v1p1beta1.VideoContext"
18
+ optional :output_uri, :string, 4
19
+ optional :location_id, :string, 5
20
+ end
21
+ add_message "google.cloud.videointelligence.v1p1beta1.VideoContext" do
22
+ repeated :segments, :message, 1, "google.cloud.videointelligence.v1p1beta1.VideoSegment"
23
+ optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig"
24
+ optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig"
25
+ optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig"
26
+ optional :speech_transcription_config, :message, 6, "google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig"
27
+ end
28
+ add_message "google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig" do
29
+ optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1p1beta1.LabelDetectionMode"
30
+ optional :stationary_camera, :bool, 2
31
+ optional :model, :string, 3
32
+ end
33
+ add_message "google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig" do
34
+ optional :model, :string, 1
35
+ end
36
+ add_message "google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig" do
37
+ optional :model, :string, 1
38
+ end
39
+ add_message "google.cloud.videointelligence.v1p1beta1.VideoSegment" do
40
+ optional :start_time_offset, :message, 1, "google.protobuf.Duration"
41
+ optional :end_time_offset, :message, 2, "google.protobuf.Duration"
42
+ end
43
+ add_message "google.cloud.videointelligence.v1p1beta1.LabelSegment" do
44
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1p1beta1.VideoSegment"
45
+ optional :confidence, :float, 2
46
+ end
47
+ add_message "google.cloud.videointelligence.v1p1beta1.LabelFrame" do
48
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
49
+ optional :confidence, :float, 2
50
+ end
51
+ add_message "google.cloud.videointelligence.v1p1beta1.Entity" do
52
+ optional :entity_id, :string, 1
53
+ optional :description, :string, 2
54
+ optional :language_code, :string, 3
55
+ end
56
+ add_message "google.cloud.videointelligence.v1p1beta1.LabelAnnotation" do
57
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1p1beta1.Entity"
58
+ repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1p1beta1.Entity"
59
+ repeated :segments, :message, 3, "google.cloud.videointelligence.v1p1beta1.LabelSegment"
60
+ repeated :frames, :message, 4, "google.cloud.videointelligence.v1p1beta1.LabelFrame"
61
+ end
62
+ add_message "google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame" do
63
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
64
+ optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1p1beta1.Likelihood"
65
+ end
66
+ add_message "google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation" do
67
+ repeated :frames, :message, 1, "google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame"
68
+ end
69
+ add_message "google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults" do
70
+ optional :input_uri, :string, 1
71
+ repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1p1beta1.LabelAnnotation"
72
+ repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1p1beta1.LabelAnnotation"
73
+ repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1p1beta1.LabelAnnotation"
74
+ repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1p1beta1.VideoSegment"
75
+ optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation"
76
+ repeated :speech_transcriptions, :message, 11, "google.cloud.videointelligence.v1p1beta1.SpeechTranscription"
77
+ optional :error, :message, 9, "google.rpc.Status"
78
+ end
79
+ add_message "google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse" do
80
+ repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults"
81
+ end
82
+ add_message "google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress" do
83
+ optional :input_uri, :string, 1
84
+ optional :progress_percent, :int32, 2
85
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
86
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
87
+ end
88
+ add_message "google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress" do
89
+ repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress"
90
+ end
91
+ add_message "google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig" do
92
+ optional :language_code, :string, 1
93
+ optional :max_alternatives, :int32, 2
94
+ optional :filter_profanity, :bool, 3
95
+ repeated :speech_contexts, :message, 4, "google.cloud.videointelligence.v1p1beta1.SpeechContext"
96
+ optional :enable_automatic_punctuation, :bool, 5
97
+ repeated :audio_tracks, :int32, 6
98
+ end
99
+ add_message "google.cloud.videointelligence.v1p1beta1.SpeechContext" do
100
+ repeated :phrases, :string, 1
101
+ end
102
+ add_message "google.cloud.videointelligence.v1p1beta1.SpeechTranscription" do
103
+ repeated :alternatives, :message, 1, "google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative"
104
+ end
105
+ add_message "google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative" do
106
+ optional :transcript, :string, 1
107
+ optional :confidence, :float, 2
108
+ repeated :words, :message, 3, "google.cloud.videointelligence.v1p1beta1.WordInfo"
109
+ end
110
+ add_message "google.cloud.videointelligence.v1p1beta1.WordInfo" do
111
+ optional :start_time, :message, 1, "google.protobuf.Duration"
112
+ optional :end_time, :message, 2, "google.protobuf.Duration"
113
+ optional :word, :string, 3
114
+ end
115
+ add_enum "google.cloud.videointelligence.v1p1beta1.Feature" do
116
+ value :FEATURE_UNSPECIFIED, 0
117
+ value :LABEL_DETECTION, 1
118
+ value :SHOT_CHANGE_DETECTION, 2
119
+ value :EXPLICIT_CONTENT_DETECTION, 3
120
+ value :SPEECH_TRANSCRIPTION, 6
121
+ end
122
+ add_enum "google.cloud.videointelligence.v1p1beta1.LabelDetectionMode" do
123
+ value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
124
+ value :SHOT_MODE, 1
125
+ value :FRAME_MODE, 2
126
+ value :SHOT_AND_FRAME_MODE, 3
127
+ end
128
+ add_enum "google.cloud.videointelligence.v1p1beta1.Likelihood" do
129
+ value :LIKELIHOOD_UNSPECIFIED, 0
130
+ value :VERY_UNLIKELY, 1
131
+ value :UNLIKELY, 2
132
+ value :POSSIBLE, 3
133
+ value :LIKELY, 4
134
+ value :VERY_LIKELY, 5
135
+ end
136
+ end
137
+
138
+ module Google
139
+ module Cloud
140
+ module Videointelligence
141
+ module V1p1beta1
142
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest").msgclass
143
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.VideoContext").msgclass
144
+ LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig").msgclass
145
+ ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig").msgclass
146
+ ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig").msgclass
147
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.VideoSegment").msgclass
148
+ LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.LabelSegment").msgclass
149
+ LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.LabelFrame").msgclass
150
+ Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.Entity").msgclass
151
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.LabelAnnotation").msgclass
152
+ ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame").msgclass
153
+ ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.ExplicitContentAnnotation").msgclass
154
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.VideoAnnotationResults").msgclass
155
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse").msgclass
156
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.VideoAnnotationProgress").msgclass
157
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress").msgclass
158
+ SpeechTranscriptionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig").msgclass
159
+ SpeechContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.SpeechContext").msgclass
160
+ SpeechTranscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.SpeechTranscription").msgclass
161
+ SpeechRecognitionAlternative = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative").msgclass
162
+ WordInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.WordInfo").msgclass
163
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.Feature").enummodule
164
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.LabelDetectionMode").enummodule
165
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p1beta1.Likelihood").enummodule
166
+ end
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/videointelligence/v1p1beta1/video_intelligence.proto for package 'google.cloud.videointelligence.v1p1beta1'
3
+ # Original file comments:
4
+ # Copyright 2018 Google Inc.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+
20
+ require 'grpc'
21
+ require 'google/cloud/videointelligence/v1p1beta1/video_intelligence_pb'
22
+
23
+ module Google
24
+ module Cloud
25
+ module Videointelligence
26
+ module V1p1beta1
27
+ module VideoIntelligenceService
28
+ # Service that implements Google Cloud Video Intelligence API.
29
+ class Service
30
+
31
+ include GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService'
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
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,190 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/longrunning/operations_pb'
9
+ require 'google/protobuf/duration_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/rpc/status_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_message "google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest" do
14
+ optional :input_uri, :string, 1
15
+ optional :input_content, :bytes, 6
16
+ repeated :features, :enum, 2, "google.cloud.videointelligence.v1p2beta1.Feature"
17
+ optional :video_context, :message, 3, "google.cloud.videointelligence.v1p2beta1.VideoContext"
18
+ optional :output_uri, :string, 4
19
+ optional :location_id, :string, 5
20
+ end
21
+ add_message "google.cloud.videointelligence.v1p2beta1.VideoContext" do
22
+ repeated :segments, :message, 1, "google.cloud.videointelligence.v1p2beta1.VideoSegment"
23
+ optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig"
24
+ optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig"
25
+ optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig"
26
+ optional :text_detection_config, :message, 8, "google.cloud.videointelligence.v1p2beta1.TextDetectionConfig"
27
+ end
28
+ add_message "google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig" do
29
+ optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1p2beta1.LabelDetectionMode"
30
+ optional :stationary_camera, :bool, 2
31
+ optional :model, :string, 3
32
+ end
33
+ add_message "google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig" do
34
+ optional :model, :string, 1
35
+ end
36
+ add_message "google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig" do
37
+ optional :model, :string, 1
38
+ end
39
+ add_message "google.cloud.videointelligence.v1p2beta1.TextDetectionConfig" do
40
+ repeated :language_hints, :string, 1
41
+ end
42
+ add_message "google.cloud.videointelligence.v1p2beta1.VideoSegment" do
43
+ optional :start_time_offset, :message, 1, "google.protobuf.Duration"
44
+ optional :end_time_offset, :message, 2, "google.protobuf.Duration"
45
+ end
46
+ add_message "google.cloud.videointelligence.v1p2beta1.LabelSegment" do
47
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1p2beta1.VideoSegment"
48
+ optional :confidence, :float, 2
49
+ end
50
+ add_message "google.cloud.videointelligence.v1p2beta1.LabelFrame" do
51
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
52
+ optional :confidence, :float, 2
53
+ end
54
+ add_message "google.cloud.videointelligence.v1p2beta1.Entity" do
55
+ optional :entity_id, :string, 1
56
+ optional :description, :string, 2
57
+ optional :language_code, :string, 3
58
+ end
59
+ add_message "google.cloud.videointelligence.v1p2beta1.LabelAnnotation" do
60
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1p2beta1.Entity"
61
+ repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1p2beta1.Entity"
62
+ repeated :segments, :message, 3, "google.cloud.videointelligence.v1p2beta1.LabelSegment"
63
+ repeated :frames, :message, 4, "google.cloud.videointelligence.v1p2beta1.LabelFrame"
64
+ end
65
+ add_message "google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame" do
66
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
67
+ optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1p2beta1.Likelihood"
68
+ end
69
+ add_message "google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation" do
70
+ repeated :frames, :message, 1, "google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame"
71
+ end
72
+ add_message "google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox" do
73
+ optional :left, :float, 1
74
+ optional :top, :float, 2
75
+ optional :right, :float, 3
76
+ optional :bottom, :float, 4
77
+ end
78
+ add_message "google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults" do
79
+ optional :input_uri, :string, 1
80
+ repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1p2beta1.LabelAnnotation"
81
+ repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1p2beta1.LabelAnnotation"
82
+ repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1p2beta1.LabelAnnotation"
83
+ repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1p2beta1.VideoSegment"
84
+ optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation"
85
+ repeated :text_annotations, :message, 12, "google.cloud.videointelligence.v1p2beta1.TextAnnotation"
86
+ repeated :object_annotations, :message, 14, "google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation"
87
+ optional :error, :message, 9, "google.rpc.Status"
88
+ end
89
+ add_message "google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse" do
90
+ repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults"
91
+ end
92
+ add_message "google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress" do
93
+ optional :input_uri, :string, 1
94
+ optional :progress_percent, :int32, 2
95
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
96
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
97
+ end
98
+ add_message "google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress" do
99
+ repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress"
100
+ end
101
+ add_message "google.cloud.videointelligence.v1p2beta1.NormalizedVertex" do
102
+ optional :x, :float, 1
103
+ optional :y, :float, 2
104
+ end
105
+ add_message "google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly" do
106
+ repeated :vertices, :message, 1, "google.cloud.videointelligence.v1p2beta1.NormalizedVertex"
107
+ end
108
+ add_message "google.cloud.videointelligence.v1p2beta1.TextSegment" do
109
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1p2beta1.VideoSegment"
110
+ optional :confidence, :float, 2
111
+ repeated :frames, :message, 3, "google.cloud.videointelligence.v1p2beta1.TextFrame"
112
+ end
113
+ add_message "google.cloud.videointelligence.v1p2beta1.TextFrame" do
114
+ optional :rotated_bounding_box, :message, 1, "google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly"
115
+ optional :time_offset, :message, 2, "google.protobuf.Duration"
116
+ end
117
+ add_message "google.cloud.videointelligence.v1p2beta1.TextAnnotation" do
118
+ optional :text, :string, 1
119
+ repeated :segments, :message, 2, "google.cloud.videointelligence.v1p2beta1.TextSegment"
120
+ end
121
+ add_message "google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame" do
122
+ optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox"
123
+ optional :time_offset, :message, 2, "google.protobuf.Duration"
124
+ end
125
+ add_message "google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation" do
126
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1p2beta1.Entity"
127
+ optional :confidence, :float, 4
128
+ repeated :frames, :message, 2, "google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame"
129
+ optional :segment, :message, 3, "google.cloud.videointelligence.v1p2beta1.VideoSegment"
130
+ end
131
+ add_enum "google.cloud.videointelligence.v1p2beta1.Feature" do
132
+ value :FEATURE_UNSPECIFIED, 0
133
+ value :LABEL_DETECTION, 1
134
+ value :SHOT_CHANGE_DETECTION, 2
135
+ value :EXPLICIT_CONTENT_DETECTION, 3
136
+ value :TEXT_DETECTION, 7
137
+ value :OBJECT_TRACKING, 9
138
+ end
139
+ add_enum "google.cloud.videointelligence.v1p2beta1.LabelDetectionMode" do
140
+ value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
141
+ value :SHOT_MODE, 1
142
+ value :FRAME_MODE, 2
143
+ value :SHOT_AND_FRAME_MODE, 3
144
+ end
145
+ add_enum "google.cloud.videointelligence.v1p2beta1.Likelihood" do
146
+ value :LIKELIHOOD_UNSPECIFIED, 0
147
+ value :VERY_UNLIKELY, 1
148
+ value :UNLIKELY, 2
149
+ value :POSSIBLE, 3
150
+ value :LIKELY, 4
151
+ value :VERY_LIKELY, 5
152
+ end
153
+ end
154
+
155
+ module Google
156
+ module Cloud
157
+ module Videointelligence
158
+ module V1p2beta1
159
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest").msgclass
160
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.VideoContext").msgclass
161
+ LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig").msgclass
162
+ ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig").msgclass
163
+ ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig").msgclass
164
+ TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.TextDetectionConfig").msgclass
165
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.VideoSegment").msgclass
166
+ LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.LabelSegment").msgclass
167
+ LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.LabelFrame").msgclass
168
+ Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.Entity").msgclass
169
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.LabelAnnotation").msgclass
170
+ ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.ExplicitContentFrame").msgclass
171
+ ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.ExplicitContentAnnotation").msgclass
172
+ NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.NormalizedBoundingBox").msgclass
173
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults").msgclass
174
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse").msgclass
175
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress").msgclass
176
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress").msgclass
177
+ NormalizedVertex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.NormalizedVertex").msgclass
178
+ NormalizedBoundingPoly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly").msgclass
179
+ TextSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.TextSegment").msgclass
180
+ TextFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.TextFrame").msgclass
181
+ TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.TextAnnotation").msgclass
182
+ ObjectTrackingFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame").msgclass
183
+ ObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation").msgclass
184
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.Feature").enummodule
185
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.LabelDetectionMode").enummodule
186
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1p2beta1.Likelihood").enummodule
187
+ end
188
+ end
189
+ end
190
+ end