google-cloud-video_intelligence 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -28
  3. data/README.md +3 -3
  4. data/lib/google/cloud/video_intelligence.rb +1 -1
  5. data/lib/google/cloud/video_intelligence/v1.rb +1 -2
  6. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +37 -34
  7. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +14 -14
  8. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json +7 -7
  9. data/lib/google/cloud/video_intelligence/version.rb +1 -1
  10. data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +5 -4
  11. metadata +9 -19
  12. data/lib/google/cloud/video_intelligence/v1beta1.rb +0 -149
  13. data/lib/google/cloud/video_intelligence/v1beta1/credentials.rb +0 -41
  14. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb +0 -322
  15. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/longrunning/operations.rb +0 -51
  16. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb +0 -131
  17. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb +0 -87
  18. data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb +0 -305
  19. data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client_config.json +0 -31
  20. data/lib/google/cloud/videointelligence/v1beta1/video_intelligence_pb.rb +0 -141
  21. data/lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb +0 -50
@@ -1,31 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.cloud.videointelligence.v1beta1.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
- }
@@ -1,141 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/videointelligence/v1beta1/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/timestamp_pb'
10
- require 'google/rpc/status_pb'
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoRequest" do
13
- optional :input_uri, :string, 1
14
- optional :input_content, :string, 6
15
- repeated :features, :enum, 2, "google.cloud.videointelligence.v1beta1.Feature"
16
- optional :video_context, :message, 3, "google.cloud.videointelligence.v1beta1.VideoContext"
17
- optional :output_uri, :string, 4
18
- optional :location_id, :string, 5
19
- end
20
- add_message "google.cloud.videointelligence.v1beta1.VideoContext" do
21
- repeated :segments, :message, 1, "google.cloud.videointelligence.v1beta1.VideoSegment"
22
- optional :label_detection_mode, :enum, 2, "google.cloud.videointelligence.v1beta1.LabelDetectionMode"
23
- optional :stationary_camera, :bool, 3
24
- optional :label_detection_model, :string, 4
25
- optional :face_detection_model, :string, 5
26
- optional :shot_change_detection_model, :string, 6
27
- optional :safe_search_detection_model, :string, 7
28
- end
29
- add_message "google.cloud.videointelligence.v1beta1.VideoSegment" do
30
- optional :start_time_offset, :int64, 1
31
- optional :end_time_offset, :int64, 2
32
- end
33
- add_message "google.cloud.videointelligence.v1beta1.LabelLocation" do
34
- optional :segment, :message, 1, "google.cloud.videointelligence.v1beta1.VideoSegment"
35
- optional :confidence, :float, 2
36
- optional :level, :enum, 3, "google.cloud.videointelligence.v1beta1.LabelLevel"
37
- end
38
- add_message "google.cloud.videointelligence.v1beta1.LabelAnnotation" do
39
- optional :description, :string, 1
40
- optional :language_code, :string, 2
41
- repeated :locations, :message, 3, "google.cloud.videointelligence.v1beta1.LabelLocation"
42
- end
43
- add_message "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation" do
44
- optional :adult, :enum, 1, "google.cloud.videointelligence.v1beta1.Likelihood"
45
- optional :spoof, :enum, 2, "google.cloud.videointelligence.v1beta1.Likelihood"
46
- optional :medical, :enum, 3, "google.cloud.videointelligence.v1beta1.Likelihood"
47
- optional :violent, :enum, 4, "google.cloud.videointelligence.v1beta1.Likelihood"
48
- optional :racy, :enum, 5, "google.cloud.videointelligence.v1beta1.Likelihood"
49
- optional :time_offset, :int64, 6
50
- end
51
- add_message "google.cloud.videointelligence.v1beta1.BoundingBox" do
52
- optional :left, :int32, 1
53
- optional :right, :int32, 2
54
- optional :bottom, :int32, 3
55
- optional :top, :int32, 4
56
- end
57
- add_message "google.cloud.videointelligence.v1beta1.FaceLocation" do
58
- optional :bounding_box, :message, 1, "google.cloud.videointelligence.v1beta1.BoundingBox"
59
- optional :time_offset, :int64, 2
60
- end
61
- add_message "google.cloud.videointelligence.v1beta1.FaceAnnotation" do
62
- optional :thumbnail, :string, 1
63
- repeated :segments, :message, 2, "google.cloud.videointelligence.v1beta1.VideoSegment"
64
- repeated :locations, :message, 3, "google.cloud.videointelligence.v1beta1.FaceLocation"
65
- end
66
- add_message "google.cloud.videointelligence.v1beta1.VideoAnnotationResults" do
67
- optional :input_uri, :string, 1
68
- repeated :label_annotations, :message, 2, "google.cloud.videointelligence.v1beta1.LabelAnnotation"
69
- repeated :face_annotations, :message, 3, "google.cloud.videointelligence.v1beta1.FaceAnnotation"
70
- repeated :shot_annotations, :message, 4, "google.cloud.videointelligence.v1beta1.VideoSegment"
71
- repeated :safe_search_annotations, :message, 6, "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation"
72
- optional :error, :message, 5, "google.rpc.Status"
73
- end
74
- add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoResponse" do
75
- repeated :annotation_results, :message, 1, "google.cloud.videointelligence.v1beta1.VideoAnnotationResults"
76
- end
77
- add_message "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress" do
78
- optional :input_uri, :string, 1
79
- optional :progress_percent, :int32, 2
80
- optional :start_time, :message, 3, "google.protobuf.Timestamp"
81
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
82
- end
83
- add_message "google.cloud.videointelligence.v1beta1.AnnotateVideoProgress" do
84
- repeated :annotation_progress, :message, 1, "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress"
85
- end
86
- add_enum "google.cloud.videointelligence.v1beta1.Feature" do
87
- value :FEATURE_UNSPECIFIED, 0
88
- value :LABEL_DETECTION, 1
89
- value :FACE_DETECTION, 2
90
- value :SHOT_CHANGE_DETECTION, 3
91
- value :SAFE_SEARCH_DETECTION, 4
92
- end
93
- add_enum "google.cloud.videointelligence.v1beta1.LabelLevel" do
94
- value :LABEL_LEVEL_UNSPECIFIED, 0
95
- value :VIDEO_LEVEL, 1
96
- value :SEGMENT_LEVEL, 2
97
- value :SHOT_LEVEL, 3
98
- value :FRAME_LEVEL, 4
99
- end
100
- add_enum "google.cloud.videointelligence.v1beta1.LabelDetectionMode" do
101
- value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
102
- value :SHOT_MODE, 1
103
- value :FRAME_MODE, 2
104
- value :SHOT_AND_FRAME_MODE, 3
105
- end
106
- add_enum "google.cloud.videointelligence.v1beta1.Likelihood" do
107
- value :UNKNOWN, 0
108
- value :VERY_UNLIKELY, 1
109
- value :UNLIKELY, 2
110
- value :POSSIBLE, 3
111
- value :LIKELY, 4
112
- value :VERY_LIKELY, 5
113
- end
114
- end
115
-
116
- module Google
117
- module Cloud
118
- module VideoIntelligence
119
- end
120
- Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
121
- end
122
- end
123
- module Google::Cloud::VideoIntelligence::V1beta1
124
- AnnotateVideoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoRequest").msgclass
125
- VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoContext").msgclass
126
- VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoSegment").msgclass
127
- LabelLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLocation").msgclass
128
- LabelAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelAnnotation").msgclass
129
- SafeSearchAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.SafeSearchAnnotation").msgclass
130
- BoundingBox = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.BoundingBox").msgclass
131
- FaceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceLocation").msgclass
132
- FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.FaceAnnotation").msgclass
133
- VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationResults").msgclass
134
- AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoResponse").msgclass
135
- VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.VideoAnnotationProgress").msgclass
136
- AnnotateVideoProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.AnnotateVideoProgress").msgclass
137
- Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Feature").enummodule
138
- LabelLevel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelLevel").enummodule
139
- LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.LabelDetectionMode").enummodule
140
- Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1beta1.Likelihood").enummodule
141
- end
@@ -1,50 +0,0 @@
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
-
20
- require 'grpc'
21
- require 'google/cloud/videointelligence/v1beta1/video_intelligence_pb'
22
-
23
- module Google
24
- module Cloud
25
- module VideoIntelligence
26
- end
27
- Videointelligence = VideoIntelligence unless const_defined? :Videointelligence
28
- end
29
- end
30
- module Google::Cloud::VideoIntelligence::V1beta1
31
- module VideoIntelligenceService
32
- # Service that implements Google Cloud Video Intelligence API.
33
- class Service
34
-
35
- include GRPC::GenericService
36
-
37
- self.marshal_class_method = :encode
38
- self.unmarshal_class_method = :decode
39
- self.service_name = 'google.cloud.videointelligence.v1beta1.VideoIntelligenceService'
40
-
41
- # Performs asynchronous video annotation. Progress and results can be
42
- # retrieved through the `google.longrunning.Operations` interface.
43
- # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
44
- # `Operation.response` contains `AnnotateVideoResponse` (results).
45
- rpc :AnnotateVideo, AnnotateVideoRequest, Google::Longrunning::Operation
46
- end
47
-
48
- Stub = Service.rpc_stub_class
49
- end
50
- end