google-cloud-video_intelligence 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,33 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.videointelligence.v1beta1.VideoIntelligenceService": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
12
+ },
13
+ "retry_params": {
14
+ "default": {
15
+ "initial_retry_delay_millis": 1000,
16
+ "retry_delay_multiplier": 2.5,
17
+ "max_retry_delay_millis": 120000,
18
+ "initial_rpc_timeout_millis": 120000,
19
+ "rpc_timeout_multiplier": 1.0,
20
+ "max_rpc_timeout_millis": 120000,
21
+ "total_timeout_millis": 600000
22
+ }
23
+ },
24
+ "methods": {
25
+ "AnnotateVideo": {
26
+ "timeout_millis": 60000,
27
+ "retry_codes_name": "idempotent",
28
+ "retry_params_name": "default"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,139 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/videointelligence/v1beta1/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/timestamp_pb'
9
+ require 'google/rpc/status_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoRequest" do
12
+ optional :input_uri, :string, 1
13
+ optional :input_content, :string, 6
14
+ repeated :features, :enum, 2, "google.cloud.videointelligence.v1beta1.Feature"
15
+ optional :video_context, :message, 3, "google.cloud.videointelligence.v1beta1.VideoContext"
16
+ optional :output_uri, :string, 4
17
+ optional :location_id, :string, 5
18
+ end
19
+ add_message "google.cloud.videointelligence.v1beta1.VideoContext" do
20
+ repeated :segments, :message, 1, "google.cloud.videointelligence.v1beta1.VideoSegment"
21
+ optional :label_detection_mode, :enum, 2, "google.cloud.videointelligence.v1beta1.LabelDetectionMode"
22
+ optional :stationary_camera, :bool, 3
23
+ optional :label_detection_model, :string, 4
24
+ optional :face_detection_model, :string, 5
25
+ optional :shot_change_detection_model, :string, 6
26
+ optional :safe_search_detection_model, :string, 7
27
+ end
28
+ add_message "google.cloud.videointelligence.v1beta1.VideoSegment" do
29
+ optional :start_time_offset, :int64, 1
30
+ optional :end_time_offset, :int64, 2
31
+ end
32
+ add_message "google.cloud.videointelligence.v1beta1.LabelLocation" do
33
+ optional :segment, :message, 1, "google.cloud.videointelligence.v1beta1.VideoSegment"
34
+ optional :confidence, :float, 2
35
+ optional :level, :enum, 3, "google.cloud.videointelligence.v1beta1.LabelLevel"
36
+ end
37
+ add_message "google.cloud.videointelligence.v1beta1.LabelAnnotation" do
38
+ optional :description, :string, 1
39
+ optional :language_code, :string, 2
40
+ repeated :locations, :message, 3, "google.cloud.videointelligence.v1beta1.LabelLocation"
41
+ end
42
+ add_message "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation" do
43
+ optional :adult, :enum, 1, "google.cloud.videointelligence.v1beta1.Likelihood"
44
+ optional :spoof, :enum, 2, "google.cloud.videointelligence.v1beta1.Likelihood"
45
+ optional :medical, :enum, 3, "google.cloud.videointelligence.v1beta1.Likelihood"
46
+ optional :violent, :enum, 4, "google.cloud.videointelligence.v1beta1.Likelihood"
47
+ optional :racy, :enum, 5, "google.cloud.videointelligence.v1beta1.Likelihood"
48
+ optional :time_offset, :int64, 6
49
+ end
50
+ add_message "google.cloud.videointelligence.v1beta1.BoundingBox" do
51
+ optional :left, :int32, 1
52
+ optional :right, :int32, 2
53
+ optional :bottom, :int32, 3
54
+ optional :top, :int32, 4
55
+ end
56
+ add_message "google.cloud.videointelligence.v1beta1.FaceLocation" do
57
+ optional :bounding_box, :message, 1, "google.cloud.videointelligence.v1beta1.BoundingBox"
58
+ optional :time_offset, :int64, 2
59
+ end
60
+ add_message "google.cloud.videointelligence.v1beta1.FaceAnnotation" do
61
+ optional :thumbnail, :string, 1
62
+ repeated :segments, :message, 2, "google.cloud.videointelligence.v1beta1.VideoSegment"
63
+ repeated :locations, :message, 3, "google.cloud.videointelligence.v1beta1.FaceLocation"
64
+ end
65
+ add_message "google.cloud.videointelligence.v1beta1.VideoAnnotationResults" do
66
+ optional :input_uri, :string, 1
67
+ repeated :label_annotations, :message, 2, "google.cloud.videointelligence.v1beta1.LabelAnnotation"
68
+ repeated :face_annotations, :message, 3, "google.cloud.videointelligence.v1beta1.FaceAnnotation"
69
+ repeated :shot_annotations, :message, 4, "google.cloud.videointelligence.v1beta1.VideoSegment"
70
+ repeated :safe_search_annotations, :message, 6, "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation"
71
+ optional :error, :message, 5, "google.rpc.Status"
72
+ end
73
+ add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoResponse" do
74
+ repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1beta1.VideoAnnotationResults"
75
+ end
76
+ add_message "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress" do
77
+ optional :input_uri, :string, 1
78
+ optional :progress_percent, :int32, 2
79
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
80
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
81
+ end
82
+ add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoProgress" do
83
+ repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress"
84
+ end
85
+ add_enum "google.cloud.videointelligence.v1beta1.Feature" do
86
+ value :FEATURE_UNSPECIFIED, 0
87
+ value :LABEL_DETECTION, 1
88
+ value :FACE_DETECTION, 2
89
+ value :SHOT_CHANGE_DETECTION, 3
90
+ value :SAFE_SEARCH_DETECTION, 4
91
+ end
92
+ add_enum "google.cloud.videointelligence.v1beta1.LabelLevel" do
93
+ value :LABEL_LEVEL_UNSPECIFIED, 0
94
+ value :VIDEO_LEVEL, 1
95
+ value :SEGMENT_LEVEL, 2
96
+ value :SHOT_LEVEL, 3
97
+ value :FRAME_LEVEL, 4
98
+ end
99
+ add_enum "google.cloud.videointelligence.v1beta1.LabelDetectionMode" do
100
+ value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
101
+ value :SHOT_MODE, 1
102
+ value :FRAME_MODE, 2
103
+ value :SHOT_AND_FRAME_MODE, 3
104
+ end
105
+ add_enum "google.cloud.videointelligence.v1beta1.Likelihood" do
106
+ value :UNKNOWN, 0
107
+ value :VERY_UNLIKELY, 1
108
+ value :UNLIKELY, 2
109
+ value :POSSIBLE, 3
110
+ value :LIKELY, 4
111
+ value :VERY_LIKELY, 5
112
+ end
113
+ end
114
+
115
+ module Google
116
+ module Cloud
117
+ module Videointelligence
118
+ module V1beta1
119
+ AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoRequest").msgclass
120
+ VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoContext").msgclass
121
+ VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoSegment").msgclass
122
+ LabelLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLocation").msgclass
123
+ LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelAnnotation").msgclass
124
+ SafeSearchAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.SafeSearchAnnotation").msgclass
125
+ BoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.BoundingBox").msgclass
126
+ FaceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceLocation").msgclass
127
+ FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceAnnotation").msgclass
128
+ VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationResults").msgclass
129
+ AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoResponse").msgclass
130
+ VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationProgress").msgclass
131
+ AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoProgress").msgclass
132
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Feature").enummodule
133
+ LabelLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLevel").enummodule
134
+ LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelDetectionMode").enummodule
135
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Likelihood").enummodule
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/videointelligence/v1beta1/video_intelligence.proto for package 'google.cloud.videointelligence.v1beta1'
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/v1beta1/video_intelligence_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Videointelligence
25
+ module V1beta1
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.v1beta1.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 ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-cloud-video_intelligence
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.20.0
5
+ platform: ruby
6
+ authors:
7
+ - Google Inc
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-gax
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.8.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "<="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.35.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "<="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.35.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.9'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.9'
69
+ description: google-cloud-video_intelligence is the official library for Google Cloud
70
+ Video Intelligence API.
71
+ email: googleapis-packages@google.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".yardopts"
77
+ - LICENSE
78
+ - README.md
79
+ - lib/google/cloud/video_intelligence/v1beta1.rb
80
+ - lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb
81
+ - lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb
82
+ - lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb
83
+ - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb
84
+ - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client_config.json
85
+ - lib/google/cloud/videointelligence/v1beta1/video_intelligence_pb.rb
86
+ - lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb
87
+ homepage: https://github.com/googleapis/googleapis
88
+ licenses:
89
+ - Apache-2.0
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 2.0.0
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.6.12
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: API Client library for Google Cloud Video Intelligence API
111
+ test_files: []