google-cloud-video_intelligence 1.1.1 → 1.1.2

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/README.md +5 -5
  3. data/lib/google/cloud/video_intelligence.rb +4 -4
  4. data/lib/google/cloud/video_intelligence/v1.rb +4 -4
  5. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +23 -23
  6. data/lib/google/cloud/video_intelligence/v1/doc/google/longrunning/operations.rb +9 -9
  7. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb +8 -8
  8. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb +3 -3
  9. data/lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb +11 -11
  10. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +10 -10
  11. data/lib/google/cloud/video_intelligence/v1beta1.rb +4 -4
  12. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb +21 -21
  13. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/longrunning/operations.rb +9 -9
  14. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb +8 -8
  15. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb +11 -11
  16. data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb +9 -9
  17. data/lib/google/cloud/video_intelligence/v1beta2.rb +4 -4
  18. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb +23 -23
  19. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/longrunning/operations.rb +9 -9
  20. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb +8 -8
  21. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb +3 -3
  22. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb +11 -11
  23. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +10 -10
  24. metadata +3 -6
  25. data/lib/google/cloud/video_intelligence/v1/doc/overview.rb +0 -118
  26. data/lib/google/cloud/video_intelligence/v1beta1/doc/overview.rb +0 -80
  27. data/lib/google/cloud/video_intelligence/v1beta2/doc/overview.rb +0 -80
@@ -21,7 +21,7 @@ module Google
21
21
  # @return [String]
22
22
  # The server-assigned name, which is only unique within the same service that
23
23
  # originally returns it. If you use the default HTTP mapping, the
24
- # +name+ should have the format of +operations/some/unique/name+.
24
+ # `name` should have the format of `operations/some/unique/name`.
25
25
  # @!attribute [rw] metadata
26
26
  # @return [Google::Protobuf::Any]
27
27
  # Service-specific metadata associated with the operation. It typically
@@ -30,8 +30,8 @@ module Google
30
30
  # long-running operation should document the metadata type, if any.
31
31
  # @!attribute [rw] done
32
32
  # @return [true, false]
33
- # If the value is +false+, it means the operation is still in progress.
34
- # If true, the operation is completed, and either +error+ or +response+ is
33
+ # If the value is `false`, it means the operation is still in progress.
34
+ # If true, the operation is completed, and either `error` or `response` is
35
35
  # available.
36
36
  # @!attribute [rw] error
37
37
  # @return [Google::Rpc::Status]
@@ -39,13 +39,13 @@ module Google
39
39
  # @!attribute [rw] response
40
40
  # @return [Google::Protobuf::Any]
41
41
  # The normal response of the operation in case of success. If the original
42
- # method returns no data on success, such as +Delete+, the response is
43
- # +google.protobuf.Empty+. If the original method is standard
44
- # +Get+/+Create+/+Update+, the response should be the resource. For other
45
- # methods, the response should have the type +XxxResponse+, where +Xxx+
42
+ # method returns no data on success, such as `Delete`, the response is
43
+ # `google.protobuf.Empty`. If the original method is standard
44
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
45
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
46
46
  # is the original method name. For example, if the original method name
47
- # is +TakeSnapshot()+, the inferred response type is
48
- # +TakeSnapshotResponse+.
47
+ # is `TakeSnapshot()`, the inferred response type is
48
+ # `TakeSnapshotResponse`.
49
49
  class Operation; end
50
50
 
51
51
  # The request message for {Google::Longrunning::Operations::GetOperation Operations::GetOperation}.
@@ -15,7 +15,7 @@
15
15
 
16
16
  module Google
17
17
  module Protobuf
18
- # +Any+ contains an arbitrary serialized protocol buffer message along with a
18
+ # `Any` contains an arbitrary serialized protocol buffer message along with a
19
19
  # URL that describes the type of the serialized message.
20
20
  #
21
21
  # Protobuf library provides support to pack/unpack Any values in the form
@@ -69,9 +69,9 @@ module Google
69
69
  #
70
70
  # = JSON
71
71
  #
72
- # The JSON representation of an +Any+ value uses the regular
72
+ # The JSON representation of an `Any` value uses the regular
73
73
  # representation of the deserialized, embedded message, with an
74
- # additional field +@type+ which contains the type URL. Example:
74
+ # additional field `@type` which contains the type URL. Example:
75
75
  #
76
76
  # package google.profile;
77
77
  # message Person {
@@ -87,7 +87,7 @@ module Google
87
87
  #
88
88
  # If the embedded message type is well-known and has a custom JSON
89
89
  # representation, that representation will be embedded adding a field
90
- # +value+ which holds the custom JSON in addition to the +@type+
90
+ # `value` which holds the custom JSON in addition to the `@type`
91
91
  # field. Example (for message {Google::Protobuf::Duration}):
92
92
  #
93
93
  # {
@@ -99,15 +99,15 @@ module Google
99
99
  # A URL/resource name that uniquely identifies the type of the serialized
100
100
  # protocol buffer message. The last segment of the URL's path must represent
101
101
  # the fully qualified name of the type (as in
102
- # +path/google.protobuf.Duration+). The name should be in a canonical form
102
+ # `path/google.protobuf.Duration`). The name should be in a canonical form
103
103
  # (e.g., leading "." is not accepted).
104
104
  #
105
105
  # In practice, teams usually precompile into the binary all types that they
106
106
  # expect it to use in the context of Any. However, for URLs which use the
107
- # scheme +http+, +https+, or no scheme, one can optionally set up a type
107
+ # scheme `http`, `https`, or no scheme, one can optionally set up a type
108
108
  # server that maps type URLs to message definitions as follows:
109
109
  #
110
- # * If no scheme is provided, +https+ is assumed.
110
+ # * If no scheme is provided, `https` is assumed.
111
111
  # * An HTTP GET on the URL must yield a {Google::Protobuf::Type}
112
112
  # value in binary format, or produce an error.
113
113
  # * Applications are allowed to cache lookup results based on the
@@ -120,7 +120,7 @@ module Google
120
120
  # protobuf release, and it is not used for type URLs beginning with
121
121
  # type.googleapis.com.
122
122
  #
123
- # Schemes other than +http+, +https+ (or the empty scheme) might be
123
+ # Schemes other than `http`, `https` (or the empty scheme) might be
124
124
  # used with implementation specific semantics.
125
125
  # @!attribute [rw] value
126
126
  # @return [String]
@@ -82,9 +82,9 @@ module Google
82
82
  # @return [Integer]
83
83
  # Signed fractions of a second at nanosecond resolution of the span
84
84
  # of time. Durations less than one second are represented with a 0
85
- # +seconds+ field and a positive or negative +nanos+ field. For durations
86
- # of one second or more, a non-zero value for the +nanos+ field must be
87
- # of the same sign as the +seconds+ field. Must be from -999,999,999
85
+ # `seconds` field and a positive or negative `nanos` field. For durations
86
+ # of one second or more, a non-zero value for the `nanos` field must be
87
+ # of the same sign as the `seconds` field. Must be from -999,999,999
88
88
  # to +999,999,999 inclusive.
89
89
  class Duration; end
90
90
  end
@@ -15,7 +15,7 @@
15
15
 
16
16
  module Google
17
17
  module Rpc
18
- # The +Status+ type defines a logical error model that is suitable for different
18
+ # The `Status` type defines a logical error model that is suitable for different
19
19
  # programming environments, including REST APIs and RPC APIs. It is used by
20
20
  # [gRPC](https://github.com/grpc). The error model is designed to be:
21
21
  #
@@ -24,7 +24,7 @@ module Google
24
24
  #
25
25
  # = Overview
26
26
  #
27
- # The +Status+ message contains three pieces of data: error code, error message,
27
+ # The `Status` message contains three pieces of data: error code, error message,
28
28
  # and error details. The error code should be an enum value of
29
29
  # {Google::Rpc::Code}, but it may accept additional error codes if needed. The
30
30
  # error message should be a developer-facing English message that helps
@@ -32,40 +32,40 @@ module Google
32
32
  # error message is needed, put the localized message in the error details or
33
33
  # localize it in the client. The optional error details may contain arbitrary
34
34
  # information about the error. There is a predefined set of error detail types
35
- # in the package +google.rpc+ that can be used for common error conditions.
35
+ # in the package `google.rpc` that can be used for common error conditions.
36
36
  #
37
37
  # = Language mapping
38
38
  #
39
- # The +Status+ message is the logical representation of the error model, but it
40
- # is not necessarily the actual wire format. When the +Status+ message is
39
+ # The `Status` message is the logical representation of the error model, but it
40
+ # is not necessarily the actual wire format. When the `Status` message is
41
41
  # exposed in different client libraries and different wire protocols, it can be
42
42
  # mapped differently. For example, it will likely be mapped to some exceptions
43
43
  # in Java, but more likely mapped to some error codes in C.
44
44
  #
45
45
  # = Other uses
46
46
  #
47
- # The error model and the +Status+ message can be used in a variety of
47
+ # The error model and the `Status` message can be used in a variety of
48
48
  # environments, either with or without APIs, to provide a
49
49
  # consistent developer experience across different environments.
50
50
  #
51
51
  # Example uses of this error model include:
52
52
  #
53
53
  # * Partial errors. If a service needs to return partial errors to the client,
54
- # it may embed the +Status+ in the normal response to indicate the partial
54
+ # it may embed the `Status` in the normal response to indicate the partial
55
55
  # errors.
56
56
  #
57
57
  # * Workflow errors. A typical workflow has multiple steps. Each step may
58
- # have a +Status+ message for error reporting.
58
+ # have a `Status` message for error reporting.
59
59
  #
60
60
  # * Batch operations. If a client uses batch request and batch response, the
61
- # +Status+ message should be used directly inside batch response, one for
61
+ # `Status` message should be used directly inside batch response, one for
62
62
  # each error sub-response.
63
63
  #
64
64
  # * Asynchronous operations. If an API call embeds asynchronous operation
65
65
  # results in its response, the status of those operations should be
66
- # represented directly using the +Status+ message.
66
+ # represented directly using the `Status` message.
67
67
  #
68
- # * Logging. If some API errors are stored in logs, the message +Status+ could
68
+ # * Logging. If some API errors are stored in logs, the message `Status` could
69
69
  # be used directly after any stripping needed for security/privacy reasons.
70
70
  # @!attribute [rw] code
71
71
  # @return [Integer]
@@ -186,25 +186,25 @@ module Google
186
186
  # Service calls
187
187
 
188
188
  # Performs asynchronous video annotation. Progress and results can be
189
- # retrieved through the +google.longrunning.Operations+ interface.
190
- # +Operation.metadata+ contains +AnnotateVideoProgress+ (progress).
191
- # +Operation.response+ contains +AnnotateVideoResponse+ (results).
189
+ # retrieved through the `google.longrunning.Operations` interface.
190
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
191
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
192
192
  #
193
193
  # @param input_uri [String]
194
194
  # Input video location. Currently, only
195
195
  # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
196
196
  # supported, which must be specified in the following format:
197
- # +gs://bucket-id/object-id+ (other URI formats return
197
+ # `gs://bucket-id/object-id` (other URI formats return
198
198
  # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
199
199
  # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
200
- # A video URI may include wildcards in +object-id+, and thus identify
200
+ # A video URI may include wildcards in `object-id`, and thus identify
201
201
  # multiple videos. Supported wildcards: '*' to match 0 or more characters;
202
202
  # '?' to match 1 character. If unset, the input video should be embedded
203
- # in the request as +input_content+. If set, +input_content+ should be unset.
203
+ # in the request as `input_content`. If set, `input_content` should be unset.
204
204
  # @param input_content [String]
205
205
  # The video data bytes.
206
- # If unset, the input video(s) should be specified via +input_uri+.
207
- # If set, +input_uri+ should be unset.
206
+ # If unset, the input video(s) should be specified via `input_uri`.
207
+ # If set, `input_uri` should be unset.
208
208
  # @param features [Array<Google::Cloud::Videointelligence::V1beta2::Feature>]
209
209
  # Requested video annotation features.
210
210
  # @param video_context [Google::Cloud::Videointelligence::V1beta2::VideoContext | Hash]
@@ -215,12 +215,12 @@ module Google
215
215
  # Optional location where the output (in JSON format) should be stored.
216
216
  # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
217
217
  # URIs are supported, which must be specified in the following format:
218
- # +gs://bucket-id/object-id+ (other URI formats return
218
+ # `gs://bucket-id/object-id` (other URI formats return
219
219
  # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
220
220
  # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
221
221
  # @param location_id [String]
222
222
  # Optional cloud region where annotation should take place. Supported cloud
223
- # regions: +us-east1+, +us-west1+, +europe-west1+, +asia-east1+. If no region
223
+ # regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
224
224
  # is specified, a region will be determined based on video file location.
225
225
  # @param options [Google::Gax::CallOptions]
226
226
  # Overrides the default settings for this call, e.g, timeout,
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: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-10 00:00:00.000000000 Z
11
+ date: 2018-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -113,7 +113,6 @@ files:
113
113
  - lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb
114
114
  - lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb
115
115
  - lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb
116
- - lib/google/cloud/video_intelligence/v1/doc/overview.rb
117
116
  - lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb
118
117
  - lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json
119
118
  - lib/google/cloud/video_intelligence/v1beta1.rb
@@ -122,7 +121,6 @@ files:
122
121
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/longrunning/operations.rb
123
122
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb
124
123
  - lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb
125
- - lib/google/cloud/video_intelligence/v1beta1/doc/overview.rb
126
124
  - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb
127
125
  - lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client_config.json
128
126
  - lib/google/cloud/video_intelligence/v1beta2.rb
@@ -132,7 +130,6 @@ files:
132
130
  - lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb
133
131
  - lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb
134
132
  - lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb
135
- - lib/google/cloud/video_intelligence/v1beta2/doc/overview.rb
136
133
  - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb
137
134
  - lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client_config.json
138
135
  - lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb
@@ -141,7 +138,7 @@ files:
141
138
  - lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb
142
139
  - lib/google/cloud/videointelligence/v1beta2/video_intelligence_pb.rb
143
140
  - lib/google/cloud/videointelligence/v1beta2/video_intelligence_services_pb.rb
144
- homepage: https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-video_intelligence
141
+ homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-video_intelligence
145
142
  licenses:
146
143
  - Apache-2.0
147
144
  metadata: {}
@@ -1,118 +0,0 @@
1
- # Copyright 2018 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- # rubocop:disable LineLength
19
-
20
- ##
21
- # # Ruby Client for Cloud Video Intelligence API ([GA](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
22
- #
23
- # [Cloud Video Intelligence API][Product Documentation]:
24
- # Cloud Video Intelligence API.
25
- # - [Product Documentation][]
26
- #
27
- # ## Quick Start
28
- # In order to use this library, you first need to go through the following
29
- # steps:
30
- #
31
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
32
- # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
33
- # 3. [Enable the Cloud Video Intelligence API.](https://console.cloud.google.com/apis/library/videointelligence.googleapis.com)
34
- # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
- #
36
- # ### Installation
37
- # ```
38
- # $ gem install google-cloud-video_intelligence
39
- # ```
40
- #
41
- # ### Preview
42
- # #### VideoIntelligenceServiceClient
43
- # ```rb
44
- # require "google/cloud/video_intelligence"
45
- #
46
- # video_intelligence_service_client = Google::Cloud::VideoIntelligence.new
47
- # input_uri = "gs://demomaker/cat.mp4"
48
- # features_element = :LABEL_DETECTION
49
- # features = [features_element]
50
- #
51
- # # Register a callback during the method call.
52
- # operation = video_intelligence_service_client.annotate_video(input_uri: input_uri, features: features) do |op|
53
- # raise op.results.message if op.error?
54
- # op_results = op.results
55
- # # Process the results.
56
- #
57
- # metadata = op.metadata
58
- # # Process the metadata.
59
- # end
60
- #
61
- # # Or use the return value to register a callback.
62
- # operation.on_done do |op|
63
- # raise op.results.message if op.error?
64
- # op_results = op.results
65
- # # Process the results.
66
- #
67
- # metadata = op.metadata
68
- # # Process the metadata.
69
- # end
70
- #
71
- # # Manually reload the operation.
72
- # operation.reload!
73
- #
74
- # # Or block until the operation completes, triggering callbacks on
75
- # # completion.
76
- # operation.wait_until_done!
77
- # ```
78
- #
79
- # ### Next Steps
80
- # - Read the [Cloud Video Intelligence API Product documentation][Product Documentation]
81
- # to learn more about the product and see How-to Guides.
82
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
83
- # to see the full list of Cloud APIs that we cover.
84
- #
85
- # [Product Documentation]: https://cloud.google.com/video-intelligence
86
- #
87
- # ## Enabling Logging
88
- #
89
- # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
90
- # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
91
- # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
92
- # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
93
- # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
94
- #
95
- # Configuring a Ruby stdlib logger:
96
- #
97
- # ```ruby
98
- # require "logger"
99
- #
100
- # module MyLogger
101
- # LOGGER = Logger.new $stderr, level: Logger::WARN
102
- # def logger
103
- # LOGGER
104
- # end
105
- # end
106
- #
107
- # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
108
- # module GRPC
109
- # extend MyLogger
110
- # end
111
- # ```
112
- #
113
- module VideoIntelligence
114
- module V1
115
- end
116
- end
117
- end
118
- end
@@ -1,80 +0,0 @@
1
- # Copyright 2018 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- # rubocop:disable LineLength
19
-
20
- ##
21
- # # Ruby Client for Google Cloud Video Intelligence API ([GA](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
22
- #
23
- # [Google Cloud Video Intelligence API][Product Documentation]:
24
- # Google Cloud Video Intelligence API.
25
- # - [Product Documentation][]
26
- #
27
- # ## Quick Start
28
- # In order to use this library, you first need to go through the following
29
- # steps:
30
- #
31
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
32
- # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
33
- # 3. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/library/videointelligence.googleapis.com)
34
- # 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
35
- #
36
- # ### Installation
37
- # ```
38
- # $ gem install google-cloud-video_intelligence
39
- # ```
40
- #
41
- # ### Next Steps
42
- # - Read the [Google Cloud Video Intelligence API Product documentation][Product Documentation]
43
- # to learn more about the product and see How-to Guides.
44
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
45
- # to see the full list of Cloud APIs that we cover.
46
- #
47
- # [Product Documentation]: https://cloud.google.com/video-intelligence
48
- #
49
- # ## Enabling Logging
50
- #
51
- # To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
52
- # The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
53
- # or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
54
- # that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
55
- # and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
56
- #
57
- # Configuring a Ruby stdlib logger:
58
- #
59
- # ```ruby
60
- # require "logger"
61
- #
62
- # module MyLogger
63
- # LOGGER = Logger.new $stderr, level: Logger::WARN
64
- # def logger
65
- # LOGGER
66
- # end
67
- # end
68
- #
69
- # # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
70
- # module GRPC
71
- # extend MyLogger
72
- # end
73
- # ```
74
- #
75
- module VideoIntelligence
76
- module V1beta1
77
- end
78
- end
79
- end
80
- end