google-cloud-language-v2 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2f86a03189b4d8fd5709d2dcaf88db737405743502cb9b1ece0ec6576c66b3e
|
4
|
+
data.tar.gz: b41070fab34bedb1455357f811f26a6165512346c03c6b9dc908e80569452cf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ccf5b0989f5e46cc7710bc55a4a86651065a2b95170728f2301603d9ea703ba6faf2144509f2cebe9e72d3f817fa3b0b5568b411e74a93be2199a558952b51
|
7
|
+
data.tar.gz: a4ff47ffab0295a5015095844d9647edafddeca7dc532e7a97462b3bb654dfe9d979df3a8cddad4e708c44d7084c1f8e219fc8f7d53eef4b844e8048b7114363
|
@@ -162,7 +162,8 @@ module Google
|
|
162
162
|
credentials: credentials,
|
163
163
|
endpoint: @config.endpoint,
|
164
164
|
channel_args: @config.channel_args,
|
165
|
-
interceptors: @config.interceptors
|
165
|
+
interceptors: @config.interceptors,
|
166
|
+
channel_pool_config: @config.channel_pool
|
166
167
|
)
|
167
168
|
end
|
168
169
|
|
@@ -682,6 +683,14 @@ module Google
|
|
682
683
|
end
|
683
684
|
end
|
684
685
|
|
686
|
+
##
|
687
|
+
# Configuration for the channel pool
|
688
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
689
|
+
#
|
690
|
+
def channel_pool
|
691
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
692
|
+
end
|
693
|
+
|
685
694
|
##
|
686
695
|
# Configuration RPC class for the LanguageService API.
|
687
696
|
#
|
@@ -188,6 +188,22 @@ module Google
|
|
188
188
|
# @return [::Google::Cloud::Language::V2::AnalyzeSentimentResponse]
|
189
189
|
#
|
190
190
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
191
|
+
#
|
192
|
+
# @example Basic example
|
193
|
+
# require "google/cloud/language/v2"
|
194
|
+
#
|
195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
196
|
+
# client = Google::Cloud::Language::V2::LanguageService::Rest::Client.new
|
197
|
+
#
|
198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
199
|
+
# request = Google::Cloud::Language::V2::AnalyzeSentimentRequest.new
|
200
|
+
#
|
201
|
+
# # Call the analyze_sentiment method.
|
202
|
+
# result = client.analyze_sentiment request
|
203
|
+
#
|
204
|
+
# # The returned object is of type Google::Cloud::Language::V2::AnalyzeSentimentResponse.
|
205
|
+
# p result
|
206
|
+
#
|
191
207
|
def analyze_sentiment request, options = nil
|
192
208
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
193
209
|
|
@@ -254,6 +270,22 @@ module Google
|
|
254
270
|
# @return [::Google::Cloud::Language::V2::AnalyzeEntitiesResponse]
|
255
271
|
#
|
256
272
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
273
|
+
#
|
274
|
+
# @example Basic example
|
275
|
+
# require "google/cloud/language/v2"
|
276
|
+
#
|
277
|
+
# # Create a client object. The client can be reused for multiple calls.
|
278
|
+
# client = Google::Cloud::Language::V2::LanguageService::Rest::Client.new
|
279
|
+
#
|
280
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
281
|
+
# request = Google::Cloud::Language::V2::AnalyzeEntitiesRequest.new
|
282
|
+
#
|
283
|
+
# # Call the analyze_entities method.
|
284
|
+
# result = client.analyze_entities request
|
285
|
+
#
|
286
|
+
# # The returned object is of type Google::Cloud::Language::V2::AnalyzeEntitiesResponse.
|
287
|
+
# p result
|
288
|
+
#
|
257
289
|
def analyze_entities request, options = nil
|
258
290
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
259
291
|
|
@@ -316,6 +348,22 @@ module Google
|
|
316
348
|
# @return [::Google::Cloud::Language::V2::ClassifyTextResponse]
|
317
349
|
#
|
318
350
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
351
|
+
#
|
352
|
+
# @example Basic example
|
353
|
+
# require "google/cloud/language/v2"
|
354
|
+
#
|
355
|
+
# # Create a client object. The client can be reused for multiple calls.
|
356
|
+
# client = Google::Cloud::Language::V2::LanguageService::Rest::Client.new
|
357
|
+
#
|
358
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
359
|
+
# request = Google::Cloud::Language::V2::ClassifyTextRequest.new
|
360
|
+
#
|
361
|
+
# # Call the classify_text method.
|
362
|
+
# result = client.classify_text request
|
363
|
+
#
|
364
|
+
# # The returned object is of type Google::Cloud::Language::V2::ClassifyTextResponse.
|
365
|
+
# p result
|
366
|
+
#
|
319
367
|
def classify_text request, options = nil
|
320
368
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
321
369
|
|
@@ -378,6 +426,22 @@ module Google
|
|
378
426
|
# @return [::Google::Cloud::Language::V2::ModerateTextResponse]
|
379
427
|
#
|
380
428
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
429
|
+
#
|
430
|
+
# @example Basic example
|
431
|
+
# require "google/cloud/language/v2"
|
432
|
+
#
|
433
|
+
# # Create a client object. The client can be reused for multiple calls.
|
434
|
+
# client = Google::Cloud::Language::V2::LanguageService::Rest::Client.new
|
435
|
+
#
|
436
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
437
|
+
# request = Google::Cloud::Language::V2::ModerateTextRequest.new
|
438
|
+
#
|
439
|
+
# # Call the moderate_text method.
|
440
|
+
# result = client.moderate_text request
|
441
|
+
#
|
442
|
+
# # The returned object is of type Google::Cloud::Language::V2::ModerateTextResponse.
|
443
|
+
# p result
|
444
|
+
#
|
381
445
|
def moderate_text request, options = nil
|
382
446
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
383
447
|
|
@@ -444,6 +508,22 @@ module Google
|
|
444
508
|
# @return [::Google::Cloud::Language::V2::AnnotateTextResponse]
|
445
509
|
#
|
446
510
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
511
|
+
#
|
512
|
+
# @example Basic example
|
513
|
+
# require "google/cloud/language/v2"
|
514
|
+
#
|
515
|
+
# # Create a client object. The client can be reused for multiple calls.
|
516
|
+
# client = Google::Cloud::Language::V2::LanguageService::Rest::Client.new
|
517
|
+
#
|
518
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
519
|
+
# request = Google::Cloud::Language::V2::AnnotateTextRequest.new
|
520
|
+
#
|
521
|
+
# # Call the annotate_text method.
|
522
|
+
# result = client.annotate_text request
|
523
|
+
#
|
524
|
+
# # The returned object is of type Google::Cloud::Language::V2::AnnotateTextResponse.
|
525
|
+
# p result
|
526
|
+
#
|
447
527
|
def annotate_text request, options = nil
|
448
528
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
529
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-language-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|