google-cloud-language-v1 0.4.2 → 0.4.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 260cee76948e05419a367ee02612f2bbcfecef486e4f4226e3b3e6999986d152
|
4
|
+
data.tar.gz: 3d40b49de737e75e0f91ccc1c8ec02f777a0c26f6bd68eb3457290bda44f3472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 891ac3c588ce8d60f501e29bd2ee08e649ec55cbce37d86ea1ee842d7dd98c0343094c89998960700da6ca6447c12a0a52fec06751c4e4d283927ad0c3e08da2
|
7
|
+
data.tar.gz: e2a702001b37c2dbd00e201cf4d0c49a9836a86345a0b97e16b57dce9f9865528164758c779677aeeb820c3295f14f01c52088e8a0b02097cb9acadf37265a8b
|
@@ -40,13 +40,12 @@ module Google
|
|
40
40
|
# See {::Google::Cloud::Language::V1::LanguageService::Client::Configuration}
|
41
41
|
# for a description of the configuration fields.
|
42
42
|
#
|
43
|
-
#
|
43
|
+
# @example
|
44
44
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
# end
|
45
|
+
# # Modify the configuration for all LanguageService clients
|
46
|
+
# ::Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
|
47
|
+
# config.timeout = 10.0
|
48
|
+
# end
|
50
49
|
#
|
51
50
|
# @yield [config] Configure the Client client.
|
52
51
|
# @yieldparam config [Client::Configuration]
|
@@ -123,19 +122,15 @@ module Google
|
|
123
122
|
##
|
124
123
|
# Create a new LanguageService client object.
|
125
124
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
# To create a new LanguageService client with the default
|
129
|
-
# configuration:
|
125
|
+
# @example
|
130
126
|
#
|
131
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Language::V1::LanguageService::Client.new
|
132
129
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
# config.timeout = 10.0
|
138
|
-
# end
|
130
|
+
# # Create a client using a custom configuration
|
131
|
+
# client = ::Google::Cloud::Language::V1::LanguageService::Client.new do |config|
|
132
|
+
# config.timeout = 10.0
|
133
|
+
# end
|
139
134
|
#
|
140
135
|
# @yield [config] Configure the LanguageService client.
|
141
136
|
# @yieldparam config [Client::Configuration]
|
@@ -155,10 +150,9 @@ module Google
|
|
155
150
|
|
156
151
|
# Create credentials
|
157
152
|
credentials = @config.credentials
|
158
|
-
# Use self-signed JWT if the
|
153
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
159
154
|
# but only if the default endpoint does not have a region prefix.
|
160
|
-
enable_self_signed_jwt = @config.
|
161
|
-
@config.endpoint == Client.configure.endpoint &&
|
155
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
162
156
|
!@config.endpoint.split(".").first.include?("-")
|
163
157
|
credentials ||= Credentials.default scope: @config.scope,
|
164
158
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -230,7 +224,9 @@ module Google
|
|
230
224
|
options.apply_defaults timeout: @config.rpcs.analyze_sentiment.timeout,
|
231
225
|
metadata: metadata,
|
232
226
|
retry_policy: @config.rpcs.analyze_sentiment.retry_policy
|
233
|
-
|
227
|
+
|
228
|
+
options.apply_defaults timeout: @config.timeout,
|
229
|
+
metadata: @config.metadata,
|
234
230
|
retry_policy: @config.retry_policy
|
235
231
|
|
236
232
|
@language_service_stub.call_rpc :analyze_sentiment, request, options: options do |response, operation|
|
@@ -294,7 +290,9 @@ module Google
|
|
294
290
|
options.apply_defaults timeout: @config.rpcs.analyze_entities.timeout,
|
295
291
|
metadata: metadata,
|
296
292
|
retry_policy: @config.rpcs.analyze_entities.retry_policy
|
297
|
-
|
293
|
+
|
294
|
+
options.apply_defaults timeout: @config.timeout,
|
295
|
+
metadata: @config.metadata,
|
298
296
|
retry_policy: @config.retry_policy
|
299
297
|
|
300
298
|
@language_service_stub.call_rpc :analyze_entities, request, options: options do |response, operation|
|
@@ -357,7 +355,9 @@ module Google
|
|
357
355
|
options.apply_defaults timeout: @config.rpcs.analyze_entity_sentiment.timeout,
|
358
356
|
metadata: metadata,
|
359
357
|
retry_policy: @config.rpcs.analyze_entity_sentiment.retry_policy
|
360
|
-
|
358
|
+
|
359
|
+
options.apply_defaults timeout: @config.timeout,
|
360
|
+
metadata: @config.metadata,
|
361
361
|
retry_policy: @config.retry_policy
|
362
362
|
|
363
363
|
@language_service_stub.call_rpc :analyze_entity_sentiment, request, options: options do |response, operation|
|
@@ -421,7 +421,9 @@ module Google
|
|
421
421
|
options.apply_defaults timeout: @config.rpcs.analyze_syntax.timeout,
|
422
422
|
metadata: metadata,
|
423
423
|
retry_policy: @config.rpcs.analyze_syntax.retry_policy
|
424
|
-
|
424
|
+
|
425
|
+
options.apply_defaults timeout: @config.timeout,
|
426
|
+
metadata: @config.metadata,
|
425
427
|
retry_policy: @config.retry_policy
|
426
428
|
|
427
429
|
@language_service_stub.call_rpc :analyze_syntax, request, options: options do |response, operation|
|
@@ -481,7 +483,9 @@ module Google
|
|
481
483
|
options.apply_defaults timeout: @config.rpcs.classify_text.timeout,
|
482
484
|
metadata: metadata,
|
483
485
|
retry_policy: @config.rpcs.classify_text.retry_policy
|
484
|
-
|
486
|
+
|
487
|
+
options.apply_defaults timeout: @config.timeout,
|
488
|
+
metadata: @config.metadata,
|
485
489
|
retry_policy: @config.retry_policy
|
486
490
|
|
487
491
|
@language_service_stub.call_rpc :classify_text, request, options: options do |response, operation|
|
@@ -546,7 +550,9 @@ module Google
|
|
546
550
|
options.apply_defaults timeout: @config.rpcs.annotate_text.timeout,
|
547
551
|
metadata: metadata,
|
548
552
|
retry_policy: @config.rpcs.annotate_text.retry_policy
|
549
|
-
|
553
|
+
|
554
|
+
options.apply_defaults timeout: @config.timeout,
|
555
|
+
metadata: @config.metadata,
|
550
556
|
retry_policy: @config.retry_policy
|
551
557
|
|
552
558
|
@language_service_stub.call_rpc :annotate_text, request, options: options do |response, operation|
|
@@ -570,22 +576,21 @@ module Google
|
|
570
576
|
# Configuration can be applied globally to all clients, or to a single client
|
571
577
|
# on construction.
|
572
578
|
#
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
576
|
-
# to 20 seconds,
|
577
|
-
#
|
578
|
-
#
|
579
|
-
#
|
580
|
-
#
|
581
|
-
#
|
582
|
-
#
|
583
|
-
#
|
584
|
-
#
|
585
|
-
#
|
586
|
-
#
|
587
|
-
#
|
588
|
-
# end
|
579
|
+
# @example
|
580
|
+
#
|
581
|
+
# # Modify the global config, setting the timeout for
|
582
|
+
# # analyze_sentiment to 20 seconds,
|
583
|
+
# # and all remaining timeouts to 10 seconds.
|
584
|
+
# ::Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
|
585
|
+
# config.timeout = 10.0
|
586
|
+
# config.rpcs.analyze_sentiment.timeout = 20.0
|
587
|
+
# end
|
588
|
+
#
|
589
|
+
# # Apply the above configuration only to a new client.
|
590
|
+
# client = ::Google::Cloud::Language::V1::LanguageService::Client.new do |config|
|
591
|
+
# config.timeout = 10.0
|
592
|
+
# config.rpcs.analyze_sentiment.timeout = 20.0
|
593
|
+
# end
|
589
594
|
#
|
590
595
|
# @!attribute [rw] endpoint
|
591
596
|
# The hostname or hostname:port of the service endpoint.
|
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.
|
4
|
+
version: 0.4.3
|
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-
|
11
|
+
date: 2021-08-11 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.7'
|
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.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|