google-cloud-language-v1beta2 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/language/v1beta2.rb +1 -1
- data/lib/google/cloud/language/v1beta2/language_service.rb +1 -1
- data/lib/google/cloud/language/v1beta2/language_service/client.rb +139 -139
- data/lib/google/cloud/language/v1beta2/language_service/credentials.rb +1 -1
- data/lib/google/cloud/language/v1beta2/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/language/v1beta2/language_service.rb +136 -136
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f39c5ba576ccb2d2d9bea98e3cf6ea0c21597e7d8f0795507b1a9344f9fbfec
|
4
|
+
data.tar.gz: 2aa2fccd6cb05bcb4e32661f09f267d3905114de2df113fe58eb46f77aeebfdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b51f498f1148781a7268fad4abe2a0390631bc58f4211f7808235f93b4df26c63f712092acd68a2c58b1673016c144bed7222fbc5b2dbd11c9f0462ebd2919d
|
7
|
+
data.tar.gz: 89a0ffe571cf0a8ee656c21ec6850ea3a3ea75c50d1626046fc852f1919799679984a100060a0557c8c00df0eecdf77bafa906b2e3ac0c9916eb95acad1556af
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export LANGUAGE_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/language/v1beta2"
|
29
29
|
|
30
|
-
client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
30
|
+
client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-language-v1beta2
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::Language::V1beta2::LanguageService::Credentials}):
|
67
|
+
{::Google::Cloud::Language::V1beta2::LanguageService::Credentials}):
|
68
68
|
|
69
69
|
1. `LANGUAGE_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `LANGUAGE_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/language/v1beta2"
|
|
77
77
|
|
78
78
|
ENV["LANGUAGE_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
80
|
+
client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/language/v1beta2"
|
90
90
|
|
91
|
-
client = Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/language/v1beta2"
|
100
100
|
|
101
|
-
Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
|
101
|
+
::Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
105
|
+
client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
25
|
```ruby
|
26
26
|
require "google/cloud/language/v1beta2"
|
27
27
|
|
28
|
-
client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
28
|
+
client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
29
29
|
request = my_create_request
|
30
30
|
response = client.analyze_sentiment request
|
31
31
|
```
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# To load this package, including all its services, and instantiate a client:
|
27
27
|
#
|
28
28
|
# require "google/cloud/language/v1beta2"
|
29
|
-
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
29
|
+
# client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
30
30
|
#
|
31
31
|
module V1beta2
|
32
32
|
end
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
# To load this service and instantiate a client:
|
37
37
|
#
|
38
38
|
# require "google/cloud/language/v1beta2/language_service"
|
39
|
-
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
39
|
+
# client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
40
40
|
#
|
41
41
|
module LanguageService
|
42
42
|
end
|
@@ -37,15 +37,15 @@ module Google
|
|
37
37
|
##
|
38
38
|
# Configure the LanguageService Client class.
|
39
39
|
#
|
40
|
-
# See {Google::Cloud::Language::V1beta2::LanguageService::Client::Configuration}
|
40
|
+
# See {::Google::Cloud::Language::V1beta2::LanguageService::Client::Configuration}
|
41
41
|
# for a description of the configuration fields.
|
42
42
|
#
|
43
43
|
# ## Example
|
44
44
|
#
|
45
45
|
# To modify the configuration for all LanguageService clients:
|
46
46
|
#
|
47
|
-
# Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
|
48
|
-
# config.timeout =
|
47
|
+
# ::Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
49
|
# end
|
50
50
|
#
|
51
51
|
# @yield [config] Configure the Client client.
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
126
126
|
# should be made on {Client.configure}.
|
127
127
|
#
|
128
|
-
# See {Google::Cloud::Language::V1beta2::LanguageService::Client::Configuration}
|
128
|
+
# See {::Google::Cloud::Language::V1beta2::LanguageService::Client::Configuration}
|
129
129
|
# for a description of the configuration fields.
|
130
130
|
#
|
131
131
|
# @yield [config] Configure the Client client.
|
@@ -146,13 +146,13 @@ module Google
|
|
146
146
|
# To create a new LanguageService client with the default
|
147
147
|
# configuration:
|
148
148
|
#
|
149
|
-
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
149
|
+
# client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
150
150
|
#
|
151
151
|
# To create a new LanguageService client with a custom
|
152
152
|
# configuration:
|
153
153
|
#
|
154
|
-
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
|
155
|
-
# config.timeout =
|
154
|
+
# client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
|
155
|
+
# config.timeout = 10.0
|
156
156
|
# end
|
157
157
|
#
|
158
158
|
# @yield [config] Configure the LanguageService client.
|
@@ -179,8 +179,8 @@ module Google
|
|
179
179
|
end
|
180
180
|
@quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
|
181
181
|
|
182
|
-
@language_service_stub = Gapic::ServiceStub.new(
|
183
|
-
Google::Cloud::Language::V1beta2::LanguageService::Stub,
|
182
|
+
@language_service_stub = ::Gapic::ServiceStub.new(
|
183
|
+
::Google::Cloud::Language::V1beta2::LanguageService::Stub,
|
184
184
|
credentials: credentials,
|
185
185
|
endpoint: @config.endpoint,
|
186
186
|
channel_args: @config.channel_args,
|
@@ -195,12 +195,12 @@ module Google
|
|
195
195
|
#
|
196
196
|
# @overload analyze_sentiment(request, options = nil)
|
197
197
|
# Pass arguments to `analyze_sentiment` via a request object, either of type
|
198
|
-
# {Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest} or an equivalent Hash.
|
198
|
+
# {::Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest} or an equivalent Hash.
|
199
199
|
#
|
200
|
-
# @param request [Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest, Hash]
|
200
|
+
# @param request [::Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest, ::Hash]
|
201
201
|
# A request object representing the call parameters. Required. To specify no
|
202
202
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
203
|
-
# @param options [Gapic::CallOptions, Hash]
|
203
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
204
204
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
205
205
|
#
|
206
206
|
# @overload analyze_sentiment(document: nil, encoding_type: nil)
|
@@ -208,33 +208,33 @@ module Google
|
|
208
208
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
209
209
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
210
210
|
#
|
211
|
-
# @param document [Google::Cloud::Language::V1beta2::Document, Hash]
|
211
|
+
# @param document [::Google::Cloud::Language::V1beta2::Document, ::Hash]
|
212
212
|
# Required. Input document.
|
213
|
-
# @param encoding_type [Google::Cloud::Language::V1beta2::EncodingType]
|
213
|
+
# @param encoding_type [::Google::Cloud::Language::V1beta2::EncodingType]
|
214
214
|
# The encoding type used by the API to calculate sentence offsets for the
|
215
215
|
# sentence sentiment.
|
216
216
|
#
|
217
217
|
# @yield [response, operation] Access the result along with the RPC operation
|
218
|
-
# @yieldparam response [Google::Cloud::Language::V1beta2::AnalyzeSentimentResponse]
|
219
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
218
|
+
# @yieldparam response [::Google::Cloud::Language::V1beta2::AnalyzeSentimentResponse]
|
219
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
220
220
|
#
|
221
|
-
# @return [Google::Cloud::Language::V1beta2::AnalyzeSentimentResponse]
|
221
|
+
# @return [::Google::Cloud::Language::V1beta2::AnalyzeSentimentResponse]
|
222
222
|
#
|
223
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
223
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
224
224
|
#
|
225
225
|
def analyze_sentiment request, options = nil
|
226
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
226
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
227
227
|
|
228
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest
|
228
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest
|
229
229
|
|
230
230
|
# Converts hash and nil to an options object
|
231
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
231
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
232
232
|
|
233
233
|
# Customize the options with defaults
|
234
234
|
metadata = @config.rpcs.analyze_sentiment.metadata.to_h
|
235
235
|
|
236
236
|
# Set x-goog-api-client and x-goog-user-project headers
|
237
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
237
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
238
238
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
239
239
|
gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
|
240
240
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -249,8 +249,8 @@ module Google
|
|
249
249
|
yield response, operation if block_given?
|
250
250
|
return response
|
251
251
|
end
|
252
|
-
rescue GRPC::BadStatus => e
|
253
|
-
raise Google::Cloud::Error.from_error(e)
|
252
|
+
rescue ::GRPC::BadStatus => e
|
253
|
+
raise ::Google::Cloud::Error.from_error(e)
|
254
254
|
end
|
255
255
|
|
256
256
|
##
|
@@ -260,12 +260,12 @@ module Google
|
|
260
260
|
#
|
261
261
|
# @overload analyze_entities(request, options = nil)
|
262
262
|
# Pass arguments to `analyze_entities` via a request object, either of type
|
263
|
-
# {Google::Cloud::Language::V1beta2::AnalyzeEntitiesRequest} or an equivalent Hash.
|
263
|
+
# {::Google::Cloud::Language::V1beta2::AnalyzeEntitiesRequest} or an equivalent Hash.
|
264
264
|
#
|
265
|
-
# @param request [Google::Cloud::Language::V1beta2::AnalyzeEntitiesRequest, Hash]
|
265
|
+
# @param request [::Google::Cloud::Language::V1beta2::AnalyzeEntitiesRequest, ::Hash]
|
266
266
|
# A request object representing the call parameters. Required. To specify no
|
267
267
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
268
|
-
# @param options [Gapic::CallOptions, Hash]
|
268
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
269
269
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
270
270
|
#
|
271
271
|
# @overload analyze_entities(document: nil, encoding_type: nil)
|
@@ -273,32 +273,32 @@ module Google
|
|
273
273
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
274
274
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
275
275
|
#
|
276
|
-
# @param document [Google::Cloud::Language::V1beta2::Document, Hash]
|
276
|
+
# @param document [::Google::Cloud::Language::V1beta2::Document, ::Hash]
|
277
277
|
# Required. Input document.
|
278
|
-
# @param encoding_type [Google::Cloud::Language::V1beta2::EncodingType]
|
278
|
+
# @param encoding_type [::Google::Cloud::Language::V1beta2::EncodingType]
|
279
279
|
# The encoding type used by the API to calculate offsets.
|
280
280
|
#
|
281
281
|
# @yield [response, operation] Access the result along with the RPC operation
|
282
|
-
# @yieldparam response [Google::Cloud::Language::V1beta2::AnalyzeEntitiesResponse]
|
283
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
282
|
+
# @yieldparam response [::Google::Cloud::Language::V1beta2::AnalyzeEntitiesResponse]
|
283
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
284
284
|
#
|
285
|
-
# @return [Google::Cloud::Language::V1beta2::AnalyzeEntitiesResponse]
|
285
|
+
# @return [::Google::Cloud::Language::V1beta2::AnalyzeEntitiesResponse]
|
286
286
|
#
|
287
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
287
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
288
288
|
#
|
289
289
|
def analyze_entities request, options = nil
|
290
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
290
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
291
291
|
|
292
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Language::V1beta2::AnalyzeEntitiesRequest
|
292
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Language::V1beta2::AnalyzeEntitiesRequest
|
293
293
|
|
294
294
|
# Converts hash and nil to an options object
|
295
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
295
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
296
296
|
|
297
297
|
# Customize the options with defaults
|
298
298
|
metadata = @config.rpcs.analyze_entities.metadata.to_h
|
299
299
|
|
300
300
|
# Set x-goog-api-client and x-goog-user-project headers
|
301
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
301
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
302
302
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
303
303
|
gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
|
304
304
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -313,22 +313,22 @@ module Google
|
|
313
313
|
yield response, operation if block_given?
|
314
314
|
return response
|
315
315
|
end
|
316
|
-
rescue GRPC::BadStatus => e
|
317
|
-
raise Google::Cloud::Error.from_error(e)
|
316
|
+
rescue ::GRPC::BadStatus => e
|
317
|
+
raise ::Google::Cloud::Error.from_error(e)
|
318
318
|
end
|
319
319
|
|
320
320
|
##
|
321
|
-
# Finds entities, similar to {Google::Cloud::Language::V1beta2::LanguageService::Client#analyze_entities AnalyzeEntities} in the text and analyzes
|
321
|
+
# Finds entities, similar to {::Google::Cloud::Language::V1beta2::LanguageService::Client#analyze_entities AnalyzeEntities} in the text and analyzes
|
322
322
|
# sentiment associated with each entity and its mentions.
|
323
323
|
#
|
324
324
|
# @overload analyze_entity_sentiment(request, options = nil)
|
325
325
|
# Pass arguments to `analyze_entity_sentiment` via a request object, either of type
|
326
|
-
# {Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentRequest} or an equivalent Hash.
|
326
|
+
# {::Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentRequest} or an equivalent Hash.
|
327
327
|
#
|
328
|
-
# @param request [Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentRequest, Hash]
|
328
|
+
# @param request [::Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentRequest, ::Hash]
|
329
329
|
# A request object representing the call parameters. Required. To specify no
|
330
330
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
331
|
-
# @param options [Gapic::CallOptions, Hash]
|
331
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
332
332
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
333
333
|
#
|
334
334
|
# @overload analyze_entity_sentiment(document: nil, encoding_type: nil)
|
@@ -336,32 +336,32 @@ module Google
|
|
336
336
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
337
337
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
338
338
|
#
|
339
|
-
# @param document [Google::Cloud::Language::V1beta2::Document, Hash]
|
339
|
+
# @param document [::Google::Cloud::Language::V1beta2::Document, ::Hash]
|
340
340
|
# Required. Input document.
|
341
|
-
# @param encoding_type [Google::Cloud::Language::V1beta2::EncodingType]
|
341
|
+
# @param encoding_type [::Google::Cloud::Language::V1beta2::EncodingType]
|
342
342
|
# The encoding type used by the API to calculate offsets.
|
343
343
|
#
|
344
344
|
# @yield [response, operation] Access the result along with the RPC operation
|
345
|
-
# @yieldparam response [Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentResponse]
|
346
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
345
|
+
# @yieldparam response [::Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentResponse]
|
346
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
347
347
|
#
|
348
|
-
# @return [Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentResponse]
|
348
|
+
# @return [::Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentResponse]
|
349
349
|
#
|
350
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
350
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
351
351
|
#
|
352
352
|
def analyze_entity_sentiment request, options = nil
|
353
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
353
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
354
354
|
|
355
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentRequest
|
355
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentRequest
|
356
356
|
|
357
357
|
# Converts hash and nil to an options object
|
358
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
358
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
359
359
|
|
360
360
|
# Customize the options with defaults
|
361
361
|
metadata = @config.rpcs.analyze_entity_sentiment.metadata.to_h
|
362
362
|
|
363
363
|
# Set x-goog-api-client and x-goog-user-project headers
|
364
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
364
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
365
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
366
366
|
gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
|
367
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -376,8 +376,8 @@ module Google
|
|
376
376
|
yield response, operation if block_given?
|
377
377
|
return response
|
378
378
|
end
|
379
|
-
rescue GRPC::BadStatus => e
|
380
|
-
raise Google::Cloud::Error.from_error(e)
|
379
|
+
rescue ::GRPC::BadStatus => e
|
380
|
+
raise ::Google::Cloud::Error.from_error(e)
|
381
381
|
end
|
382
382
|
|
383
383
|
##
|
@@ -387,12 +387,12 @@ module Google
|
|
387
387
|
#
|
388
388
|
# @overload analyze_syntax(request, options = nil)
|
389
389
|
# Pass arguments to `analyze_syntax` via a request object, either of type
|
390
|
-
# {Google::Cloud::Language::V1beta2::AnalyzeSyntaxRequest} or an equivalent Hash.
|
390
|
+
# {::Google::Cloud::Language::V1beta2::AnalyzeSyntaxRequest} or an equivalent Hash.
|
391
391
|
#
|
392
|
-
# @param request [Google::Cloud::Language::V1beta2::AnalyzeSyntaxRequest, Hash]
|
392
|
+
# @param request [::Google::Cloud::Language::V1beta2::AnalyzeSyntaxRequest, ::Hash]
|
393
393
|
# A request object representing the call parameters. Required. To specify no
|
394
394
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
395
|
-
# @param options [Gapic::CallOptions, Hash]
|
395
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
396
396
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
397
397
|
#
|
398
398
|
# @overload analyze_syntax(document: nil, encoding_type: nil)
|
@@ -400,32 +400,32 @@ module Google
|
|
400
400
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
401
401
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
402
402
|
#
|
403
|
-
# @param document [Google::Cloud::Language::V1beta2::Document, Hash]
|
403
|
+
# @param document [::Google::Cloud::Language::V1beta2::Document, ::Hash]
|
404
404
|
# Required. Input document.
|
405
|
-
# @param encoding_type [Google::Cloud::Language::V1beta2::EncodingType]
|
405
|
+
# @param encoding_type [::Google::Cloud::Language::V1beta2::EncodingType]
|
406
406
|
# The encoding type used by the API to calculate offsets.
|
407
407
|
#
|
408
408
|
# @yield [response, operation] Access the result along with the RPC operation
|
409
|
-
# @yieldparam response [Google::Cloud::Language::V1beta2::AnalyzeSyntaxResponse]
|
410
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
409
|
+
# @yieldparam response [::Google::Cloud::Language::V1beta2::AnalyzeSyntaxResponse]
|
410
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
411
411
|
#
|
412
|
-
# @return [Google::Cloud::Language::V1beta2::AnalyzeSyntaxResponse]
|
412
|
+
# @return [::Google::Cloud::Language::V1beta2::AnalyzeSyntaxResponse]
|
413
413
|
#
|
414
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
414
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
415
415
|
#
|
416
416
|
def analyze_syntax request, options = nil
|
417
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
417
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
418
418
|
|
419
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Language::V1beta2::AnalyzeSyntaxRequest
|
419
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Language::V1beta2::AnalyzeSyntaxRequest
|
420
420
|
|
421
421
|
# Converts hash and nil to an options object
|
422
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
422
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
423
423
|
|
424
424
|
# Customize the options with defaults
|
425
425
|
metadata = @config.rpcs.analyze_syntax.metadata.to_h
|
426
426
|
|
427
427
|
# Set x-goog-api-client and x-goog-user-project headers
|
428
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
428
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
429
429
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
430
430
|
gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
|
431
431
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -440,8 +440,8 @@ module Google
|
|
440
440
|
yield response, operation if block_given?
|
441
441
|
return response
|
442
442
|
end
|
443
|
-
rescue GRPC::BadStatus => e
|
444
|
-
raise Google::Cloud::Error.from_error(e)
|
443
|
+
rescue ::GRPC::BadStatus => e
|
444
|
+
raise ::Google::Cloud::Error.from_error(e)
|
445
445
|
end
|
446
446
|
|
447
447
|
##
|
@@ -449,12 +449,12 @@ module Google
|
|
449
449
|
#
|
450
450
|
# @overload classify_text(request, options = nil)
|
451
451
|
# Pass arguments to `classify_text` via a request object, either of type
|
452
|
-
# {Google::Cloud::Language::V1beta2::ClassifyTextRequest} or an equivalent Hash.
|
452
|
+
# {::Google::Cloud::Language::V1beta2::ClassifyTextRequest} or an equivalent Hash.
|
453
453
|
#
|
454
|
-
# @param request [Google::Cloud::Language::V1beta2::ClassifyTextRequest, Hash]
|
454
|
+
# @param request [::Google::Cloud::Language::V1beta2::ClassifyTextRequest, ::Hash]
|
455
455
|
# A request object representing the call parameters. Required. To specify no
|
456
456
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
457
|
-
# @param options [Gapic::CallOptions, Hash]
|
457
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
458
458
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
459
459
|
#
|
460
460
|
# @overload classify_text(document: nil)
|
@@ -462,30 +462,30 @@ module Google
|
|
462
462
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
463
463
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
464
464
|
#
|
465
|
-
# @param document [Google::Cloud::Language::V1beta2::Document, Hash]
|
465
|
+
# @param document [::Google::Cloud::Language::V1beta2::Document, ::Hash]
|
466
466
|
# Required. Input document.
|
467
467
|
#
|
468
468
|
# @yield [response, operation] Access the result along with the RPC operation
|
469
|
-
# @yieldparam response [Google::Cloud::Language::V1beta2::ClassifyTextResponse]
|
470
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
469
|
+
# @yieldparam response [::Google::Cloud::Language::V1beta2::ClassifyTextResponse]
|
470
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
471
471
|
#
|
472
|
-
# @return [Google::Cloud::Language::V1beta2::ClassifyTextResponse]
|
472
|
+
# @return [::Google::Cloud::Language::V1beta2::ClassifyTextResponse]
|
473
473
|
#
|
474
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
474
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
475
475
|
#
|
476
476
|
def classify_text request, options = nil
|
477
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
477
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
478
478
|
|
479
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Language::V1beta2::ClassifyTextRequest
|
479
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Language::V1beta2::ClassifyTextRequest
|
480
480
|
|
481
481
|
# Converts hash and nil to an options object
|
482
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
482
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
483
483
|
|
484
484
|
# Customize the options with defaults
|
485
485
|
metadata = @config.rpcs.classify_text.metadata.to_h
|
486
486
|
|
487
487
|
# Set x-goog-api-client and x-goog-user-project headers
|
488
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
488
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
489
489
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
490
490
|
gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
|
491
491
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -500,8 +500,8 @@ module Google
|
|
500
500
|
yield response, operation if block_given?
|
501
501
|
return response
|
502
502
|
end
|
503
|
-
rescue GRPC::BadStatus => e
|
504
|
-
raise Google::Cloud::Error.from_error(e)
|
503
|
+
rescue ::GRPC::BadStatus => e
|
504
|
+
raise ::Google::Cloud::Error.from_error(e)
|
505
505
|
end
|
506
506
|
|
507
507
|
##
|
@@ -510,12 +510,12 @@ module Google
|
|
510
510
|
#
|
511
511
|
# @overload annotate_text(request, options = nil)
|
512
512
|
# Pass arguments to `annotate_text` via a request object, either of type
|
513
|
-
# {Google::Cloud::Language::V1beta2::AnnotateTextRequest} or an equivalent Hash.
|
513
|
+
# {::Google::Cloud::Language::V1beta2::AnnotateTextRequest} or an equivalent Hash.
|
514
514
|
#
|
515
|
-
# @param request [Google::Cloud::Language::V1beta2::AnnotateTextRequest, Hash]
|
515
|
+
# @param request [::Google::Cloud::Language::V1beta2::AnnotateTextRequest, ::Hash]
|
516
516
|
# A request object representing the call parameters. Required. To specify no
|
517
517
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
518
|
-
# @param options [Gapic::CallOptions, Hash]
|
518
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
519
519
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
520
520
|
#
|
521
521
|
# @overload annotate_text(document: nil, features: nil, encoding_type: nil)
|
@@ -523,34 +523,34 @@ module Google
|
|
523
523
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
524
524
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
525
525
|
#
|
526
|
-
# @param document [Google::Cloud::Language::V1beta2::Document, Hash]
|
526
|
+
# @param document [::Google::Cloud::Language::V1beta2::Document, ::Hash]
|
527
527
|
# Required. Input document.
|
528
|
-
# @param features [Google::Cloud::Language::V1beta2::AnnotateTextRequest::Features, Hash]
|
528
|
+
# @param features [::Google::Cloud::Language::V1beta2::AnnotateTextRequest::Features, ::Hash]
|
529
529
|
# Required. The enabled features.
|
530
|
-
# @param encoding_type [Google::Cloud::Language::V1beta2::EncodingType]
|
530
|
+
# @param encoding_type [::Google::Cloud::Language::V1beta2::EncodingType]
|
531
531
|
# The encoding type used by the API to calculate offsets.
|
532
532
|
#
|
533
533
|
# @yield [response, operation] Access the result along with the RPC operation
|
534
|
-
# @yieldparam response [Google::Cloud::Language::V1beta2::AnnotateTextResponse]
|
535
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
534
|
+
# @yieldparam response [::Google::Cloud::Language::V1beta2::AnnotateTextResponse]
|
535
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
536
536
|
#
|
537
|
-
# @return [Google::Cloud::Language::V1beta2::AnnotateTextResponse]
|
537
|
+
# @return [::Google::Cloud::Language::V1beta2::AnnotateTextResponse]
|
538
538
|
#
|
539
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
539
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
540
540
|
#
|
541
541
|
def annotate_text request, options = nil
|
542
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
542
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
543
543
|
|
544
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Language::V1beta2::AnnotateTextRequest
|
544
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Language::V1beta2::AnnotateTextRequest
|
545
545
|
|
546
546
|
# Converts hash and nil to an options object
|
547
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
547
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
548
548
|
|
549
549
|
# Customize the options with defaults
|
550
550
|
metadata = @config.rpcs.annotate_text.metadata.to_h
|
551
551
|
|
552
552
|
# Set x-goog-api-client and x-goog-user-project headers
|
553
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
553
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
554
554
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
555
555
|
gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
|
556
556
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -565,8 +565,8 @@ module Google
|
|
565
565
|
yield response, operation if block_given?
|
566
566
|
return response
|
567
567
|
end
|
568
|
-
rescue GRPC::BadStatus => e
|
569
|
-
raise Google::Cloud::Error.from_error(e)
|
568
|
+
rescue ::GRPC::BadStatus => e
|
569
|
+
raise ::Google::Cloud::Error.from_error(e)
|
570
570
|
end
|
571
571
|
|
572
572
|
##
|
@@ -576,7 +576,7 @@ module Google
|
|
576
576
|
# providing control over timeouts, retry behavior, logging, transport
|
577
577
|
# parameters, and other low-level controls. Certain parameters can also be
|
578
578
|
# applied individually to specific RPCs. See
|
579
|
-
# {Google::Cloud::Language::V1beta2::LanguageService::Client::Configuration::Rpcs}
|
579
|
+
# {::Google::Cloud::Language::V1beta2::LanguageService::Client::Configuration::Rpcs}
|
580
580
|
# for a list of RPCs that can be configured independently.
|
581
581
|
#
|
582
582
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -587,22 +587,22 @@ module Google
|
|
587
587
|
# To modify the global config, setting the timeout for analyze_sentiment
|
588
588
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
589
589
|
#
|
590
|
-
# Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
|
591
|
-
# config.timeout =
|
592
|
-
# config.rpcs.analyze_sentiment.timeout =
|
590
|
+
# ::Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
|
591
|
+
# config.timeout = 10.0
|
592
|
+
# config.rpcs.analyze_sentiment.timeout = 20.0
|
593
593
|
# end
|
594
594
|
#
|
595
595
|
# To apply the above configuration only to a new client:
|
596
596
|
#
|
597
|
-
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
|
598
|
-
# config.timeout =
|
599
|
-
# config.rpcs.analyze_sentiment.timeout =
|
597
|
+
# client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
|
598
|
+
# config.timeout = 10.0
|
599
|
+
# config.rpcs.analyze_sentiment.timeout = 20.0
|
600
600
|
# end
|
601
601
|
#
|
602
602
|
# @!attribute [rw] endpoint
|
603
603
|
# The hostname or hostname:port of the service endpoint.
|
604
604
|
# Defaults to `"language.googleapis.com"`.
|
605
|
-
# @return [String]
|
605
|
+
# @return [::String]
|
606
606
|
# @!attribute [rw] credentials
|
607
607
|
# Credentials to send with calls. You may provide any of the following types:
|
608
608
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -614,29 +614,29 @@ module Google
|
|
614
614
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
615
615
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
616
616
|
# * (`nil`) indicating no credentials
|
617
|
-
# @return [Object]
|
617
|
+
# @return [::Object]
|
618
618
|
# @!attribute [rw] scope
|
619
619
|
# The OAuth scopes
|
620
|
-
# @return [Array
|
620
|
+
# @return [::Array<::String>]
|
621
621
|
# @!attribute [rw] lib_name
|
622
622
|
# The library name as recorded in instrumentation and logging
|
623
|
-
# @return [String]
|
623
|
+
# @return [::String]
|
624
624
|
# @!attribute [rw] lib_version
|
625
625
|
# The library version as recorded in instrumentation and logging
|
626
|
-
# @return [String]
|
626
|
+
# @return [::String]
|
627
627
|
# @!attribute [rw] channel_args
|
628
628
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
629
629
|
# `GRPC::Core::Channel` object is provided as the credential.
|
630
|
-
# @return [Hash]
|
630
|
+
# @return [::Hash]
|
631
631
|
# @!attribute [rw] interceptors
|
632
632
|
# An array of interceptors that are run before calls are executed.
|
633
|
-
# @return [Array
|
633
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
634
634
|
# @!attribute [rw] timeout
|
635
|
-
# The call timeout in
|
636
|
-
# @return [Numeric]
|
635
|
+
# The call timeout in seconds.
|
636
|
+
# @return [::Numeric]
|
637
637
|
# @!attribute [rw] metadata
|
638
638
|
# Additional gRPC headers to be sent with the call.
|
639
|
-
# @return [Hash{Symbol
|
639
|
+
# @return [::Hash{::Symbol=>::String}]
|
640
640
|
# @!attribute [rw] retry_policy
|
641
641
|
# The retry policy. The value is a hash with the following keys:
|
642
642
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -644,10 +644,10 @@ module Google
|
|
644
644
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
645
645
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
646
646
|
# trigger a retry.
|
647
|
-
# @return [Hash]
|
647
|
+
# @return [::Hash]
|
648
648
|
#
|
649
649
|
class Configuration
|
650
|
-
extend Gapic::Config
|
650
|
+
extend ::Gapic::Config
|
651
651
|
|
652
652
|
config_attr :endpoint, "language.googleapis.com", String
|
653
653
|
config_attr :credentials, nil do |value|
|
@@ -655,14 +655,14 @@ module Google
|
|
655
655
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
656
656
|
allowed.any? { |klass| klass === value }
|
657
657
|
end
|
658
|
-
config_attr :scope, nil, String, Array, nil
|
659
|
-
config_attr :lib_name, nil, String, nil
|
660
|
-
config_attr :lib_version, nil, String, nil
|
661
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
|
662
|
-
config_attr :interceptors, nil, Array, nil
|
663
|
-
config_attr :timeout, nil, Numeric, nil
|
664
|
-
config_attr :metadata, nil, Hash, nil
|
665
|
-
config_attr :retry_policy, nil, Hash, Proc, nil
|
658
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
659
|
+
config_attr :lib_name, nil, ::String, nil
|
660
|
+
config_attr :lib_version, nil, ::String, nil
|
661
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
662
|
+
config_attr :interceptors, nil, ::Array, nil
|
663
|
+
config_attr :timeout, nil, ::Numeric, nil
|
664
|
+
config_attr :metadata, nil, ::Hash, nil
|
665
|
+
config_attr :retry_policy, nil, ::Hash, Proc, nil
|
666
666
|
|
667
667
|
# @private
|
668
668
|
def initialize parent_config = nil
|
@@ -703,49 +703,49 @@ module Google
|
|
703
703
|
class Rpcs
|
704
704
|
##
|
705
705
|
# RPC-specific configuration for `analyze_sentiment`
|
706
|
-
# @return [Gapic::Config::Method]
|
706
|
+
# @return [::Gapic::Config::Method]
|
707
707
|
#
|
708
708
|
attr_reader :analyze_sentiment
|
709
709
|
##
|
710
710
|
# RPC-specific configuration for `analyze_entities`
|
711
|
-
# @return [Gapic::Config::Method]
|
711
|
+
# @return [::Gapic::Config::Method]
|
712
712
|
#
|
713
713
|
attr_reader :analyze_entities
|
714
714
|
##
|
715
715
|
# RPC-specific configuration for `analyze_entity_sentiment`
|
716
|
-
# @return [Gapic::Config::Method]
|
716
|
+
# @return [::Gapic::Config::Method]
|
717
717
|
#
|
718
718
|
attr_reader :analyze_entity_sentiment
|
719
719
|
##
|
720
720
|
# RPC-specific configuration for `analyze_syntax`
|
721
|
-
# @return [Gapic::Config::Method]
|
721
|
+
# @return [::Gapic::Config::Method]
|
722
722
|
#
|
723
723
|
attr_reader :analyze_syntax
|
724
724
|
##
|
725
725
|
# RPC-specific configuration for `classify_text`
|
726
|
-
# @return [Gapic::Config::Method]
|
726
|
+
# @return [::Gapic::Config::Method]
|
727
727
|
#
|
728
728
|
attr_reader :classify_text
|
729
729
|
##
|
730
730
|
# RPC-specific configuration for `annotate_text`
|
731
|
-
# @return [Gapic::Config::Method]
|
731
|
+
# @return [::Gapic::Config::Method]
|
732
732
|
#
|
733
733
|
attr_reader :annotate_text
|
734
734
|
|
735
735
|
# @private
|
736
736
|
def initialize parent_rpcs = nil
|
737
737
|
analyze_sentiment_config = parent_rpcs&.analyze_sentiment if parent_rpcs&.respond_to? :analyze_sentiment
|
738
|
-
@analyze_sentiment = Gapic::Config::Method.new analyze_sentiment_config
|
738
|
+
@analyze_sentiment = ::Gapic::Config::Method.new analyze_sentiment_config
|
739
739
|
analyze_entities_config = parent_rpcs&.analyze_entities if parent_rpcs&.respond_to? :analyze_entities
|
740
|
-
@analyze_entities = Gapic::Config::Method.new analyze_entities_config
|
740
|
+
@analyze_entities = ::Gapic::Config::Method.new analyze_entities_config
|
741
741
|
analyze_entity_sentiment_config = parent_rpcs&.analyze_entity_sentiment if parent_rpcs&.respond_to? :analyze_entity_sentiment
|
742
|
-
@analyze_entity_sentiment = Gapic::Config::Method.new analyze_entity_sentiment_config
|
742
|
+
@analyze_entity_sentiment = ::Gapic::Config::Method.new analyze_entity_sentiment_config
|
743
743
|
analyze_syntax_config = parent_rpcs&.analyze_syntax if parent_rpcs&.respond_to? :analyze_syntax
|
744
|
-
@analyze_syntax = Gapic::Config::Method.new analyze_syntax_config
|
744
|
+
@analyze_syntax = ::Gapic::Config::Method.new analyze_syntax_config
|
745
745
|
classify_text_config = parent_rpcs&.classify_text if parent_rpcs&.respond_to? :classify_text
|
746
|
-
@classify_text = Gapic::Config::Method.new classify_text_config
|
746
|
+
@classify_text = ::Gapic::Config::Method.new classify_text_config
|
747
747
|
annotate_text_config = parent_rpcs&.annotate_text if parent_rpcs&.respond_to? :annotate_text
|
748
|
-
@annotate_text = Gapic::Config::Method.new annotate_text_config
|
748
|
+
@annotate_text = ::Gapic::Config::Method.new annotate_text_config
|
749
749
|
|
750
750
|
yield self if block_given?
|
751
751
|
end
|