google-cloud-language-v1 0.8.1 → 0.9.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71e72c9da0fbf33ce83e5215d419c7a6c90919841494e4aca31f70a0c22af05a
4
- data.tar.gz: 11afd32a7f9db2feebca1688c6fbc7f20975e883254ba4f4df826fef23c378df
3
+ metadata.gz: bd8756a09f78601b9b50da2da7b46aad5f876a8d115e20f3944e35ae066c8469
4
+ data.tar.gz: 1af2459d215cc64f0bde68a4e9d6cf3b8900219f3b338814d2ab73520e4803c7
5
5
  SHA512:
6
- metadata.gz: be7b9e3a9bf09b1bbfb340638fa69921bc45976d0f5a2fa74f195858af14c2c30197efa2586c0b2715d20e9096cc078cd634ec62194668705a57bb7571160f08
7
- data.tar.gz: 3beaba77e6ea94368e17318bac432a41b43b1d2ec762004594e01b0651bc49509f461bd537cc160ebba16072e163872433e02495ad3f4d5b3fb4bce6bff93f48
6
+ metadata.gz: 30ff07f6bcf676a97d68fcd9487ad97f6aa826d48314e181669c01ee59c2e66f3a4eb02d6d88e4e66456e1c32dc6012c2f7df7bfef83f796d9204e5c0a1e8df1
7
+ data.tar.gz: 1a49ecc77f4c2377793883d2518fb6f2e265c7c80778b7c39177741358f3b187468e7fc44975e8020579fd9af096aa659490728f7253239a95b64d8067528dd4
@@ -167,7 +167,8 @@ module Google
167
167
  credentials: credentials,
168
168
  endpoint: @config.endpoint,
169
169
  channel_args: @config.channel_args,
170
- interceptors: @config.interceptors
170
+ interceptors: @config.interceptors,
171
+ channel_pool_config: @config.channel_pool
171
172
  )
172
173
  end
173
174
 
@@ -854,6 +855,14 @@ module Google
854
855
  end
855
856
  end
856
857
 
858
+ ##
859
+ # Configuration for the channel pool
860
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
861
+ #
862
+ def channel_pool
863
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
864
+ end
865
+
857
866
  ##
858
867
  # Configuration RPC class for the LanguageService API.
859
868
  #
@@ -193,6 +193,22 @@ module Google
193
193
  # @return [::Google::Cloud::Language::V1::AnalyzeSentimentResponse]
194
194
  #
195
195
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
196
+ #
197
+ # @example Basic example
198
+ # require "google/cloud/language/v1"
199
+ #
200
+ # # Create a client object. The client can be reused for multiple calls.
201
+ # client = Google::Cloud::Language::V1::LanguageService::Rest::Client.new
202
+ #
203
+ # # Create a request. To set request fields, pass in keyword arguments.
204
+ # request = Google::Cloud::Language::V1::AnalyzeSentimentRequest.new
205
+ #
206
+ # # Call the analyze_sentiment method.
207
+ # result = client.analyze_sentiment request
208
+ #
209
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeSentimentResponse.
210
+ # p result
211
+ #
196
212
  def analyze_sentiment request, options = nil
197
213
  raise ::ArgumentError, "request must be provided" if request.nil?
198
214
 
@@ -259,6 +275,22 @@ module Google
259
275
  # @return [::Google::Cloud::Language::V1::AnalyzeEntitiesResponse]
260
276
  #
261
277
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
278
+ #
279
+ # @example Basic example
280
+ # require "google/cloud/language/v1"
281
+ #
282
+ # # Create a client object. The client can be reused for multiple calls.
283
+ # client = Google::Cloud::Language::V1::LanguageService::Rest::Client.new
284
+ #
285
+ # # Create a request. To set request fields, pass in keyword arguments.
286
+ # request = Google::Cloud::Language::V1::AnalyzeEntitiesRequest.new
287
+ #
288
+ # # Call the analyze_entities method.
289
+ # result = client.analyze_entities request
290
+ #
291
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeEntitiesResponse.
292
+ # p result
293
+ #
262
294
  def analyze_entities request, options = nil
263
295
  raise ::ArgumentError, "request must be provided" if request.nil?
264
296
 
@@ -326,6 +358,22 @@ module Google
326
358
  # @return [::Google::Cloud::Language::V1::AnalyzeEntitySentimentResponse]
327
359
  #
328
360
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
361
+ #
362
+ # @example Basic example
363
+ # require "google/cloud/language/v1"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::Language::V1::LanguageService::Rest::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::Language::V1::AnalyzeEntitySentimentRequest.new
370
+ #
371
+ # # Call the analyze_entity_sentiment method.
372
+ # result = client.analyze_entity_sentiment request
373
+ #
374
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeEntitySentimentResponse.
375
+ # p result
376
+ #
329
377
  def analyze_entity_sentiment request, options = nil
330
378
  raise ::ArgumentError, "request must be provided" if request.nil?
331
379
 
@@ -392,6 +440,22 @@ module Google
392
440
  # @return [::Google::Cloud::Language::V1::AnalyzeSyntaxResponse]
393
441
  #
394
442
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
443
+ #
444
+ # @example Basic example
445
+ # require "google/cloud/language/v1"
446
+ #
447
+ # # Create a client object. The client can be reused for multiple calls.
448
+ # client = Google::Cloud::Language::V1::LanguageService::Rest::Client.new
449
+ #
450
+ # # Create a request. To set request fields, pass in keyword arguments.
451
+ # request = Google::Cloud::Language::V1::AnalyzeSyntaxRequest.new
452
+ #
453
+ # # Call the analyze_syntax method.
454
+ # result = client.analyze_syntax request
455
+ #
456
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeSyntaxResponse.
457
+ # p result
458
+ #
395
459
  def analyze_syntax request, options = nil
396
460
  raise ::ArgumentError, "request must be provided" if request.nil?
397
461
 
@@ -457,6 +521,22 @@ module Google
457
521
  # @return [::Google::Cloud::Language::V1::ClassifyTextResponse]
458
522
  #
459
523
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
524
+ #
525
+ # @example Basic example
526
+ # require "google/cloud/language/v1"
527
+ #
528
+ # # Create a client object. The client can be reused for multiple calls.
529
+ # client = Google::Cloud::Language::V1::LanguageService::Rest::Client.new
530
+ #
531
+ # # Create a request. To set request fields, pass in keyword arguments.
532
+ # request = Google::Cloud::Language::V1::ClassifyTextRequest.new
533
+ #
534
+ # # Call the classify_text method.
535
+ # result = client.classify_text request
536
+ #
537
+ # # The returned object is of type Google::Cloud::Language::V1::ClassifyTextResponse.
538
+ # p result
539
+ #
460
540
  def classify_text request, options = nil
461
541
  raise ::ArgumentError, "request must be provided" if request.nil?
462
542
 
@@ -519,6 +599,22 @@ module Google
519
599
  # @return [::Google::Cloud::Language::V1::ModerateTextResponse]
520
600
  #
521
601
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
602
+ #
603
+ # @example Basic example
604
+ # require "google/cloud/language/v1"
605
+ #
606
+ # # Create a client object. The client can be reused for multiple calls.
607
+ # client = Google::Cloud::Language::V1::LanguageService::Rest::Client.new
608
+ #
609
+ # # Create a request. To set request fields, pass in keyword arguments.
610
+ # request = Google::Cloud::Language::V1::ModerateTextRequest.new
611
+ #
612
+ # # Call the moderate_text method.
613
+ # result = client.moderate_text request
614
+ #
615
+ # # The returned object is of type Google::Cloud::Language::V1::ModerateTextResponse.
616
+ # p result
617
+ #
522
618
  def moderate_text request, options = nil
523
619
  raise ::ArgumentError, "request must be provided" if request.nil?
524
620
 
@@ -586,6 +682,22 @@ module Google
586
682
  # @return [::Google::Cloud::Language::V1::AnnotateTextResponse]
587
683
  #
588
684
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
685
+ #
686
+ # @example Basic example
687
+ # require "google/cloud/language/v1"
688
+ #
689
+ # # Create a client object. The client can be reused for multiple calls.
690
+ # client = Google::Cloud::Language::V1::LanguageService::Rest::Client.new
691
+ #
692
+ # # Create a request. To set request fields, pass in keyword arguments.
693
+ # request = Google::Cloud::Language::V1::AnnotateTextRequest.new
694
+ #
695
+ # # Call the annotate_text method.
696
+ # result = client.annotate_text request
697
+ #
698
+ # # The returned object is of type Google::Cloud::Language::V1::AnnotateTextResponse.
699
+ # p result
700
+ #
589
701
  def annotate_text request, options = nil
590
702
  raise ::ArgumentError, "request must be provided" if request.nil?
591
703
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Language
23
23
  module V1
24
- VERSION = "0.8.1"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-language-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.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-06-06 00:00:00.000000000 Z
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.1
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 3.4.2
211
+ rubygems_version: 3.4.19
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Provides natural language understanding technologies, such as sentiment analysis,