google-cloud-language-v1 0.4.3 → 0.4.4

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: 260cee76948e05419a367ee02612f2bbcfecef486e4f4226e3b3e6999986d152
4
- data.tar.gz: 3d40b49de737e75e0f91ccc1c8ec02f777a0c26f6bd68eb3457290bda44f3472
3
+ metadata.gz: bbcc94c308a251c418ef0fe5643cbe4c8d17f3af4772ee218637111af4a0f0ec
4
+ data.tar.gz: e6418d2c570381facac07163133f1d5b557996e08d5cf2763705bcf238029aa8
5
5
  SHA512:
6
- metadata.gz: 891ac3c588ce8d60f501e29bd2ee08e649ec55cbce37d86ea1ee842d7dd98c0343094c89998960700da6ca6447c12a0a52fec06751c4e4d283927ad0c3e08da2
7
- data.tar.gz: e2a702001b37c2dbd00e201cf4d0c49a9836a86345a0b97e16b57dce9f9865528164758c779677aeeb820c3295f14f01c52088e8a0b02097cb9acadf37265a8b
6
+ metadata.gz: d95a3c1fd8317c3f854caedb538246cb752ead140975094d63595166f87a7e8935076a10c9810db7df5f071ec4536153c06cd06baccbe738c8fcffd531872b6e
7
+ data.tar.gz: b78562de34b89c7d6f47e18e6881d70fc0df436f54560014b815923f69ea966671fb3a9c81c64c86a7ff5616193c8bcb04ec12801452a766836311a494f772d8
@@ -204,6 +204,21 @@ module Google
204
204
  #
205
205
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
206
206
  #
207
+ # @example Basic example
208
+ # require "google/cloud/language/v1"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::Language::V1::LanguageService::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Cloud::Language::V1::AnalyzeSentimentRequest.new
215
+ #
216
+ # # Call the analyze_sentiment method.
217
+ # result = client.analyze_sentiment request
218
+ #
219
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeSentimentResponse.
220
+ # p result
221
+ #
207
222
  def analyze_sentiment request, options = nil
208
223
  raise ::ArgumentError, "request must be provided" if request.nil?
209
224
 
@@ -270,6 +285,21 @@ module Google
270
285
  #
271
286
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
272
287
  #
288
+ # @example Basic example
289
+ # require "google/cloud/language/v1"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Cloud::Language::V1::LanguageService::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Cloud::Language::V1::AnalyzeEntitiesRequest.new
296
+ #
297
+ # # Call the analyze_entities method.
298
+ # result = client.analyze_entities request
299
+ #
300
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeEntitiesResponse.
301
+ # p result
302
+ #
273
303
  def analyze_entities request, options = nil
274
304
  raise ::ArgumentError, "request must be provided" if request.nil?
275
305
 
@@ -335,6 +365,21 @@ module Google
335
365
  #
336
366
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
337
367
  #
368
+ # @example Basic example
369
+ # require "google/cloud/language/v1"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Cloud::Language::V1::LanguageService::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Cloud::Language::V1::AnalyzeEntitySentimentRequest.new
376
+ #
377
+ # # Call the analyze_entity_sentiment method.
378
+ # result = client.analyze_entity_sentiment request
379
+ #
380
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeEntitySentimentResponse.
381
+ # p result
382
+ #
338
383
  def analyze_entity_sentiment request, options = nil
339
384
  raise ::ArgumentError, "request must be provided" if request.nil?
340
385
 
@@ -401,6 +446,21 @@ module Google
401
446
  #
402
447
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
403
448
  #
449
+ # @example Basic example
450
+ # require "google/cloud/language/v1"
451
+ #
452
+ # # Create a client object. The client can be reused for multiple calls.
453
+ # client = Google::Cloud::Language::V1::LanguageService::Client.new
454
+ #
455
+ # # Create a request. To set request fields, pass in keyword arguments.
456
+ # request = Google::Cloud::Language::V1::AnalyzeSyntaxRequest.new
457
+ #
458
+ # # Call the analyze_syntax method.
459
+ # result = client.analyze_syntax request
460
+ #
461
+ # # The returned object is of type Google::Cloud::Language::V1::AnalyzeSyntaxResponse.
462
+ # p result
463
+ #
404
464
  def analyze_syntax request, options = nil
405
465
  raise ::ArgumentError, "request must be provided" if request.nil?
406
466
 
@@ -463,6 +523,21 @@ module Google
463
523
  #
464
524
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
465
525
  #
526
+ # @example Basic example
527
+ # require "google/cloud/language/v1"
528
+ #
529
+ # # Create a client object. The client can be reused for multiple calls.
530
+ # client = Google::Cloud::Language::V1::LanguageService::Client.new
531
+ #
532
+ # # Create a request. To set request fields, pass in keyword arguments.
533
+ # request = Google::Cloud::Language::V1::ClassifyTextRequest.new
534
+ #
535
+ # # Call the classify_text method.
536
+ # result = client.classify_text request
537
+ #
538
+ # # The returned object is of type Google::Cloud::Language::V1::ClassifyTextResponse.
539
+ # p result
540
+ #
466
541
  def classify_text request, options = nil
467
542
  raise ::ArgumentError, "request must be provided" if request.nil?
468
543
 
@@ -530,6 +605,21 @@ module Google
530
605
  #
531
606
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
532
607
  #
608
+ # @example Basic example
609
+ # require "google/cloud/language/v1"
610
+ #
611
+ # # Create a client object. The client can be reused for multiple calls.
612
+ # client = Google::Cloud::Language::V1::LanguageService::Client.new
613
+ #
614
+ # # Create a request. To set request fields, pass in keyword arguments.
615
+ # request = Google::Cloud::Language::V1::AnnotateTextRequest.new
616
+ #
617
+ # # Call the annotate_text method.
618
+ # result = client.annotate_text request
619
+ #
620
+ # # The returned object is of type Google::Cloud::Language::V1::AnnotateTextResponse.
621
+ # p result
622
+ #
533
623
  def annotate_text request, options = nil
534
624
  raise ::ArgumentError, "request must be provided" if request.nil?
535
625
 
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/language/v1/language_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/language/v1/language_service.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.language.v1.Document" do
@@ -29,7 +29,7 @@ module Google
29
29
  # recognition.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Language
23
23
  module V1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  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.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common