google-cloud-video_intelligence 0.24.1 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,31 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.videointelligence.v1.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": 60000,
25
+ "retry_codes_name": "idempotent",
26
+ "retry_params_name": "default"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,166 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/videointelligence/v1/video_intelligence.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/longrunning/operations_pb'
8
+ require 'google/protobuf/duration_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/rpc/status_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_message "google.cloud.videointelligence.v1.AnnotateVideoRequest" do
13
+ optional :input_uri, :string, 1
14
+ optional :input_content, :bytes, 6
15
+ repeated :features, :enum, 2, "google.cloud.videointelligence.v1.Feature"
16
+ optional :video_context, :message, 3, "google.cloud.videointelligence.v1.VideoContext"
17
+ optional :output_uri, :string, 4
18
+ optional :location_id, :string, 5
19
+ end
20
+ add_message "google.cloud.videointelligence.v1.VideoContext" do
21
+ repeated :segments, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
22
+ optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1.LabelDetectionConfig"
23
+ optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1.ShotChangeDetectionConfig"
24
+ optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig"
25
+ optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1.FaceDetectionConfig"
26
+ end
27
+ add_message "google.cloud.videointelligence.v1.LabelDetectionConfig" do
28
+ optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1.LabelDetectionMode"
29
+ optional :stationary_camera, :bool, 2
30
+ optional :model, :string, 3
31
+ end
32
+ add_message "google.cloud.videointelligence.v1.ShotChangeDetectionConfig" do
33
+ optional :model, :string, 1
34
+ end
35
+ add_message "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig" do
36
+ optional :model, :string, 1
37
+ end
38
+ add_message "google.cloud.videointelligence.v1.FaceDetectionConfig" do
39
+ optional :model, :string, 1
40
+ optional :include_bounding_boxes, :bool, 2
41
+ end
42
+ add_message "google.cloud.videointelligence.v1.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.v1.LabelSegment" do
47
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
48
+ optional :confidence, :float, 2
49
+ end
50
+ add_message "google.cloud.videointelligence.v1.LabelFrame" do
51
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
52
+ optional :confidence, :float, 2
53
+ end
54
+ add_message "google.cloud.videointelligence.v1.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.v1.LabelAnnotation" do
60
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity"
61
+ repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1.Entity"
62
+ repeated :segments, :message, 3, "google.cloud.videointelligence.v1.LabelSegment"
63
+ repeated :frames, :message, 4, "google.cloud.videointelligence.v1.LabelFrame"
64
+ end
65
+ add_message "google.cloud.videointelligence.v1.ExplicitContentFrame" do
66
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
67
+ optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1.Likelihood"
68
+ end
69
+ add_message "google.cloud.videointelligence.v1.ExplicitContentAnnotation" do
70
+ repeated :frames, :message, 1, "google.cloud.videointelligence.v1.ExplicitContentFrame"
71
+ end
72
+ add_message "google.cloud.videointelligence.v1.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.v1.FaceSegment" do
79
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
80
+ end
81
+ add_message "google.cloud.videointelligence.v1.FaceFrame" do
82
+ repeated :normalized_bounding_boxes, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox"
83
+ optional :time_offset, :message, 2, "google.protobuf.Duration"
84
+ end
85
+ add_message "google.cloud.videointelligence.v1.FaceAnnotation" do
86
+ optional :thumbnail, :bytes, 1
87
+ repeated :segments, :message, 2, "google.cloud.videointelligence.v1.FaceSegment"
88
+ repeated :frames, :message, 3, "google.cloud.videointelligence.v1.FaceFrame"
89
+ end
90
+ add_message "google.cloud.videointelligence.v1.VideoAnnotationResults" do
91
+ optional :input_uri, :string, 1
92
+ repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1.LabelAnnotation"
93
+ repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1.LabelAnnotation"
94
+ repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1.LabelAnnotation"
95
+ repeated :face_annotations, :message, 5, "google.cloud.videointelligence.v1.FaceAnnotation"
96
+ repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1.VideoSegment"
97
+ optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1.ExplicitContentAnnotation"
98
+ optional :error, :message, 9, "google.rpc.Status"
99
+ end
100
+ add_message "google.cloud.videointelligence.v1.AnnotateVideoResponse" do
101
+ repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationResults"
102
+ end
103
+ add_message "google.cloud.videointelligence.v1.VideoAnnotationProgress" do
104
+ optional :input_uri, :string, 1
105
+ optional :progress_percent, :int32, 2
106
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
107
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
108
+ end
109
+ add_message "google.cloud.videointelligence.v1.AnnotateVideoProgress" do
110
+ repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1.VideoAnnotationProgress"
111
+ end
112
+ add_enum "google.cloud.videointelligence.v1.Feature" do
113
+ value :FEATURE_UNSPECIFIED, 0
114
+ value :LABEL_DETECTION, 1
115
+ value :SHOT_CHANGE_DETECTION, 2
116
+ value :EXPLICIT_CONTENT_DETECTION, 3
117
+ value :FACE_DETECTION, 4
118
+ end
119
+ add_enum "google.cloud.videointelligence.v1.LabelDetectionMode" do
120
+ value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
121
+ value :SHOT_MODE, 1
122
+ value :FRAME_MODE, 2
123
+ value :SHOT_AND_FRAME_MODE, 3
124
+ end
125
+ add_enum "google.cloud.videointelligence.v1.Likelihood" do
126
+ value :LIKELIHOOD_UNSPECIFIED, 0
127
+ value :VERY_UNLIKELY, 1
128
+ value :UNLIKELY, 2
129
+ value :POSSIBLE, 3
130
+ value :LIKELY, 4
131
+ value :VERY_LIKELY, 5
132
+ end
133
+ end
134
+
135
+ module Google
136
+ module Cloud
137
+ module Videointelligence
138
+ module V1
139
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoRequest").msgclass
140
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass
141
+ LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass
142
+ ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
143
+ ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
144
+ FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
145
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
146
+ LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
147
+ LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelFrame").msgclass
148
+ Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Entity").msgclass
149
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelAnnotation").msgclass
150
+ ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentFrame").msgclass
151
+ ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentAnnotation").msgclass
152
+ NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.NormalizedBoundingBox").msgclass
153
+ FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass
154
+ FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass
155
+ FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass
156
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass
157
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
158
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
159
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoProgress").msgclass
160
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
161
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
162
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
163
+ end
164
+ end
165
+ end
166
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/videointelligence/v1/video_intelligence.proto for package 'google.cloud.videointelligence.v1'
3
+ # Original file comments:
4
+ # Copyright 2017 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
+ require 'grpc'
20
+ require 'google/cloud/videointelligence/v1/video_intelligence_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Videointelligence
25
+ module V1
26
+ module VideoIntelligenceService
27
+ # Service that implements Google Cloud Video Intelligence API.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.videointelligence.v1.VideoIntelligenceService'
35
+
36
+ # Performs asynchronous video annotation. Progress and results can be
37
+ # retrieved through the `google.longrunning.Operations` interface.
38
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
39
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
40
+ rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video_intelligence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.1
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2017-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -78,6 +78,14 @@ files:
78
78
  - README.md
79
79
  - lib/google/cloud/video_intelligence.rb
80
80
  - lib/google/cloud/video_intelligence/credentials.rb
81
+ - lib/google/cloud/video_intelligence/v1.rb
82
+ - lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb
83
+ - lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb
84
+ - lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb
85
+ - lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb
86
+ - lib/google/cloud/video_intelligence/v1/doc/overview.rb
87
+ - lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb
88
+ - lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json
81
89
  - lib/google/cloud/video_intelligence/v1beta1.rb
82
90
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb
83
91
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb
@@ -93,6 +101,8 @@ files:
93
101
  - lib/google/cloud/video_intelligence/v1beta2/doc/overview.rb
94
102
  - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb
95
103
  - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client_config.json
104
+ - lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb
105
+ - lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb
96
106
  - lib/google/cloud/videointelligence/v1beta1/video_intelligence_pb.rb
97
107
  - lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb
98
108
  - lib/google/cloud/videointelligence/v1beta2/video_intelligence_pb.rb