google-cloud-video_intelligence 0.21.0 → 0.22.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.v1beta2.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/v1beta2/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.v1beta2.AnnotateVideoRequest" do
13
+ optional :input_uri, :string, 1
14
+ optional :input_content, :bytes, 6
15
+ repeated :features, :enum, 2, "google.cloud.videointelligence.v1beta2.Feature"
16
+ optional :video_context, :message, 3, "google.cloud.videointelligence.v1beta2.VideoContext"
17
+ optional :output_uri, :string, 4
18
+ optional :location_id, :string, 5
19
+ end
20
+ add_message "google.cloud.videointelligence.v1beta2.VideoContext" do
21
+ repeated :segments, :message, 1, "google.cloud.videointelligence.v1beta2.VideoSegment"
22
+ optional :label_detection_config, :message, 2, "google.cloud.videointelligence.v1beta2.LabelDetectionConfig"
23
+ optional :shot_change_detection_config, :message, 3, "google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig"
24
+ optional :explicit_content_detection_config, :message, 4, "google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig"
25
+ optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1beta2.FaceDetectionConfig"
26
+ end
27
+ add_message "google.cloud.videointelligence.v1beta2.LabelDetectionConfig" do
28
+ optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1beta2.LabelDetectionMode"
29
+ optional :stationary_camera, :bool, 2
30
+ optional :model, :string, 3
31
+ end
32
+ add_message "google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig" do
33
+ optional :model, :string, 1
34
+ end
35
+ add_message "google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig" do
36
+ optional :model, :string, 1
37
+ end
38
+ add_message "google.cloud.videointelligence.v1beta2.FaceDetectionConfig" do
39
+ optional :model, :string, 1
40
+ optional :include_bounding_boxes, :bool, 2
41
+ end
42
+ add_message "google.cloud.videointelligence.v1beta2.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.v1beta2.LabelSegment" do
47
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1beta2.VideoSegment"
48
+ optional :confidence, :float, 2
49
+ end
50
+ add_message "google.cloud.videointelligence.v1beta2.LabelFrame" do
51
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
52
+ optional :confidence, :float, 2
53
+ end
54
+ add_message "google.cloud.videointelligence.v1beta2.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.v1beta2.LabelAnnotation" do
60
+ optional :entity, :message, 1, "google.cloud.videointelligence.v1beta2.Entity"
61
+ repeated :category_entities, :message, 2, "google.cloud.videointelligence.v1beta2.Entity"
62
+ repeated :segments, :message, 3, "google.cloud.videointelligence.v1beta2.LabelSegment"
63
+ repeated :frames, :message, 4, "google.cloud.videointelligence.v1beta2.LabelFrame"
64
+ end
65
+ add_message "google.cloud.videointelligence.v1beta2.ExplicitContentFrame" do
66
+ optional :time_offset, :message, 1, "google.protobuf.Duration"
67
+ optional :pornography_likelihood, :enum, 2, "google.cloud.videointelligence.v1beta2.Likelihood"
68
+ end
69
+ add_message "google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation" do
70
+ repeated :frames, :message, 1, "google.cloud.videointelligence.v1beta2.ExplicitContentFrame"
71
+ end
72
+ add_message "google.cloud.videointelligence.v1beta2.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.v1beta2.FaceSegment" do
79
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1beta2.VideoSegment"
80
+ end
81
+ add_message "google.cloud.videointelligence.v1beta2.FaceFrame" do
82
+ repeated :normalized_bounding_boxes, :message, 1, "google.cloud.videointelligence.v1beta2.NormalizedBoundingBox"
83
+ optional :time_offset, :message, 2, "google.protobuf.Duration"
84
+ end
85
+ add_message "google.cloud.videointelligence.v1beta2.FaceAnnotation" do
86
+ optional :thumbnail, :bytes, 1
87
+ repeated :segments, :message, 2, "google.cloud.videointelligence.v1beta2.FaceSegment"
88
+ repeated :frames, :message, 3, "google.cloud.videointelligence.v1beta2.FaceFrame"
89
+ end
90
+ add_message "google.cloud.videointelligence.v1beta2.VideoAnnotationResults" do
91
+ optional :input_uri, :string, 1
92
+ repeated :segment_label_annotations, :message, 2, "google.cloud.videointelligence.v1beta2.LabelAnnotation"
93
+ repeated :shot_label_annotations, :message, 3, "google.cloud.videointelligence.v1beta2.LabelAnnotation"
94
+ repeated :frame_label_annotations, :message, 4, "google.cloud.videointelligence.v1beta2.LabelAnnotation"
95
+ repeated :face_annotations, :message, 5, "google.cloud.videointelligence.v1beta2.FaceAnnotation"
96
+ repeated :shot_annotations, :message, 6, "google.cloud.videointelligence.v1beta2.VideoSegment"
97
+ optional :explicit_annotation, :message, 7, "google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation"
98
+ optional :error, :message, 9, "google.rpc.Status"
99
+ end
100
+ add_message "google.cloud.videointelligence.v1beta2.AnnotateVideoResponse" do
101
+ repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1beta2.VideoAnnotationResults"
102
+ end
103
+ add_message "google.cloud.videointelligence.v1beta2.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.v1beta2.AnnotateVideoProgress" do
110
+ repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1beta2.VideoAnnotationProgress"
111
+ end
112
+ add_enum "google.cloud.videointelligence.v1beta2.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.v1beta2.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.v1beta2.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 V1beta2
139
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoRequest").msgclass
140
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoContext").msgclass
141
+ LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionConfig").msgclass
142
+ ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig").msgclass
143
+ ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig").msgclass
144
+ FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceDetectionConfig").msgclass
145
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoSegment").msgclass
146
+ LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelSegment").msgclass
147
+ LabelFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelFrame").msgclass
148
+ Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Entity").msgclass
149
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelAnnotation").msgclass
150
+ ExplicitContentFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentFrame").msgclass
151
+ ExplicitContentAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation").msgclass
152
+ NormalizedBoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.NormalizedBoundingBox").msgclass
153
+ FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceSegment").msgclass
154
+ FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceFrame").msgclass
155
+ FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.FaceAnnotation").msgclass
156
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationResults").msgclass
157
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoResponse").msgclass
158
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.VideoAnnotationProgress").msgclass
159
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.AnnotateVideoProgress").msgclass
160
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.Feature").enummodule
161
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.LabelDetectionMode").enummodule
162
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta2.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/v1beta2/video_intelligence.proto for package 'google.cloud.videointelligence.v1beta2'
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/v1beta2/video_intelligence_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Videointelligence
25
+ module V1beta2
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.v1beta2.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.21.0
4
+ version: 0.22.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-07-11 00:00:00.000000000 Z
11
+ date: 2017-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.0
19
+ version: 0.8.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.0
26
+ version: 0.8.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: googleapis-common-protos
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.3.1
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: minitest
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +80,34 @@ dependencies:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0.9'
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard-doctest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "<="
102
+ - !ruby/object:Gem::Version
103
+ version: 0.1.8
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "<="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.1.8
69
111
  description: google-cloud-video_intelligence is the official library for Google Cloud
70
112
  Video Intelligence API.
71
113
  email: googleapis-packages@google.com
@@ -76,14 +118,25 @@ files:
76
118
  - ".yardopts"
77
119
  - LICENSE
78
120
  - README.md
121
+ - lib/google/cloud/video_intelligence.rb
122
+ - lib/google/cloud/video_intelligence/credentials.rb
79
123
  - lib/google/cloud/video_intelligence/v1beta1.rb
80
124
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb
81
125
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb
82
126
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb
83
127
  - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb
84
128
  - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client_config.json
129
+ - lib/google/cloud/video_intelligence/v1beta2.rb
130
+ - lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb
131
+ - lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb
132
+ - lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb
133
+ - lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb
134
+ - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb
135
+ - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client_config.json
85
136
  - lib/google/cloud/videointelligence/v1beta1/video_intelligence_pb.rb
86
137
  - lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb
138
+ - lib/google/cloud/videointelligence/v1beta2/video_intelligence_pb.rb
139
+ - lib/google/cloud/videointelligence/v1beta2/video_intelligence_services_pb.rb
87
140
  homepage: https://github.com/googleapis/googleapis
88
141
  licenses:
89
142
  - Apache-2.0
@@ -104,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
157
  version: '0'
105
158
  requirements: []
106
159
  rubyforge_project:
107
- rubygems_version: 2.6.12
160
+ rubygems_version: 2.6.13
108
161
  signing_key:
109
162
  specification_version: 4
110
163
  summary: API Client library for Google Cloud Video Intelligence API