google-cloud-language-v1beta2 0.4.3 → 0.4.4
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/lib/google/cloud/language/v1beta2/language_service/client.rb +90 -0
- data/lib/google/cloud/language/v1beta2/language_service_pb.rb +2 -2
- data/lib/google/cloud/language/v1beta2/language_service_services_pb.rb +1 -1
- data/lib/google/cloud/language/v1beta2/version.rb +1 -1
- 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: d9bed2375baece2b05f28490d372af501819f44e5083e36d3fca388f9ec1c687
|
4
|
+
data.tar.gz: 89d25beb14bca36ac4f9794620e83cf9bac2e8aa40ff7d44304578f8a4edd752
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e55a9b5ea21e4bfc4b95ca3459068a26970800c3a777a53a0b02ce5a68d09ba4ff4dbf61454b0f56df521affcf2798f8156326440f8922bf1a7c755bfedd3b9
|
7
|
+
data.tar.gz: 666ca9335f7d5ac81d943f36d146c6bcc7094daec968efa7ee88486ab753868b41d87643bf2bc2256f916cd23ff6adc66aad99b4c9bc4502f6ba213fb6d585ae
|
@@ -205,6 +205,21 @@ module Google
|
|
205
205
|
#
|
206
206
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
207
207
|
#
|
208
|
+
# @example Basic example
|
209
|
+
# require "google/cloud/language/v1beta2"
|
210
|
+
#
|
211
|
+
# # Create a client object. The client can be reused for multiple calls.
|
212
|
+
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
213
|
+
#
|
214
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
215
|
+
# request = Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest.new
|
216
|
+
#
|
217
|
+
# # Call the analyze_sentiment method.
|
218
|
+
# result = client.analyze_sentiment request
|
219
|
+
#
|
220
|
+
# # The returned object is of type Google::Cloud::Language::V1beta2::AnalyzeSentimentResponse.
|
221
|
+
# p result
|
222
|
+
#
|
208
223
|
def analyze_sentiment request, options = nil
|
209
224
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
210
225
|
|
@@ -271,6 +286,21 @@ module Google
|
|
271
286
|
#
|
272
287
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
273
288
|
#
|
289
|
+
# @example Basic example
|
290
|
+
# require "google/cloud/language/v1beta2"
|
291
|
+
#
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
293
|
+
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
294
|
+
#
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
296
|
+
# request = Google::Cloud::Language::V1beta2::AnalyzeEntitiesRequest.new
|
297
|
+
#
|
298
|
+
# # Call the analyze_entities method.
|
299
|
+
# result = client.analyze_entities request
|
300
|
+
#
|
301
|
+
# # The returned object is of type Google::Cloud::Language::V1beta2::AnalyzeEntitiesResponse.
|
302
|
+
# p result
|
303
|
+
#
|
274
304
|
def analyze_entities request, options = nil
|
275
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
306
|
|
@@ -336,6 +366,21 @@ module Google
|
|
336
366
|
#
|
337
367
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
338
368
|
#
|
369
|
+
# @example Basic example
|
370
|
+
# require "google/cloud/language/v1beta2"
|
371
|
+
#
|
372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
373
|
+
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
374
|
+
#
|
375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
376
|
+
# request = Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentRequest.new
|
377
|
+
#
|
378
|
+
# # Call the analyze_entity_sentiment method.
|
379
|
+
# result = client.analyze_entity_sentiment request
|
380
|
+
#
|
381
|
+
# # The returned object is of type Google::Cloud::Language::V1beta2::AnalyzeEntitySentimentResponse.
|
382
|
+
# p result
|
383
|
+
#
|
339
384
|
def analyze_entity_sentiment request, options = nil
|
340
385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
341
386
|
|
@@ -402,6 +447,21 @@ module Google
|
|
402
447
|
#
|
403
448
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
404
449
|
#
|
450
|
+
# @example Basic example
|
451
|
+
# require "google/cloud/language/v1beta2"
|
452
|
+
#
|
453
|
+
# # Create a client object. The client can be reused for multiple calls.
|
454
|
+
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
455
|
+
#
|
456
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
457
|
+
# request = Google::Cloud::Language::V1beta2::AnalyzeSyntaxRequest.new
|
458
|
+
#
|
459
|
+
# # Call the analyze_syntax method.
|
460
|
+
# result = client.analyze_syntax request
|
461
|
+
#
|
462
|
+
# # The returned object is of type Google::Cloud::Language::V1beta2::AnalyzeSyntaxResponse.
|
463
|
+
# p result
|
464
|
+
#
|
405
465
|
def analyze_syntax request, options = nil
|
406
466
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
407
467
|
|
@@ -464,6 +524,21 @@ module Google
|
|
464
524
|
#
|
465
525
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
466
526
|
#
|
527
|
+
# @example Basic example
|
528
|
+
# require "google/cloud/language/v1beta2"
|
529
|
+
#
|
530
|
+
# # Create a client object. The client can be reused for multiple calls.
|
531
|
+
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
532
|
+
#
|
533
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
534
|
+
# request = Google::Cloud::Language::V1beta2::ClassifyTextRequest.new
|
535
|
+
#
|
536
|
+
# # Call the classify_text method.
|
537
|
+
# result = client.classify_text request
|
538
|
+
#
|
539
|
+
# # The returned object is of type Google::Cloud::Language::V1beta2::ClassifyTextResponse.
|
540
|
+
# p result
|
541
|
+
#
|
467
542
|
def classify_text request, options = nil
|
468
543
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
469
544
|
|
@@ -531,6 +606,21 @@ module Google
|
|
531
606
|
#
|
532
607
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
533
608
|
#
|
609
|
+
# @example Basic example
|
610
|
+
# require "google/cloud/language/v1beta2"
|
611
|
+
#
|
612
|
+
# # Create a client object. The client can be reused for multiple calls.
|
613
|
+
# client = Google::Cloud::Language::V1beta2::LanguageService::Client.new
|
614
|
+
#
|
615
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
616
|
+
# request = Google::Cloud::Language::V1beta2::AnnotateTextRequest.new
|
617
|
+
#
|
618
|
+
# # Call the annotate_text method.
|
619
|
+
# result = client.annotate_text request
|
620
|
+
#
|
621
|
+
# # The returned object is of type Google::Cloud::Language::V1beta2::AnnotateTextResponse.
|
622
|
+
# p result
|
623
|
+
#
|
534
624
|
def annotate_text request, options = nil
|
535
625
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
536
626
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/language/v1beta2/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'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/language/v1beta2/language_service.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.language.v1beta2.Document" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-language-v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
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
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|