google-cloud-language-v1 0.4.2 → 0.4.3

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: 13251079105af2026cbbd1657c2f09ef60df156038846dff5f53d64d7cc3e8fb
4
- data.tar.gz: 4423eb7454db9f6753ae4a3a1f33744c6fb02a3820ecc074aab4082e725bc601
3
+ metadata.gz: 260cee76948e05419a367ee02612f2bbcfecef486e4f4226e3b3e6999986d152
4
+ data.tar.gz: 3d40b49de737e75e0f91ccc1c8ec02f777a0c26f6bd68eb3457290bda44f3472
5
5
  SHA512:
6
- metadata.gz: f790e5bb7aaa65641b86148c10aa1e9556d953c56537bd1db8d9b36840cc42eb0fca1761dbfe1c0a4aed7c42568c250367e9525c0b7eb8d06b987e7cc8978749
7
- data.tar.gz: c21b93ef3e18a332dffc2c6e09afc34226135575e8f518e02b13608e6523f25e00e5b89245a1e88ebb632e0b6c494c68b63f64a19a9f993cde8277abb189741a
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
- # ## Example
43
+ # @example
44
44
  #
45
- # To modify the configuration for all LanguageService clients:
46
- #
47
- # ::Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
48
- # config.timeout = 10.0
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
- # ## Examples
127
- #
128
- # To create a new LanguageService client with the default
129
- # configuration:
125
+ # @example
130
126
  #
131
- # client = ::Google::Cloud::Language::V1::LanguageService::Client.new
127
+ # # Create a client using the default configuration
128
+ # client = ::Google::Cloud::Language::V1::LanguageService::Client.new
132
129
  #
133
- # To create a new LanguageService client with a custom
134
- # configuration:
135
- #
136
- # client = ::Google::Cloud::Language::V1::LanguageService::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
574
- #
575
- # To modify the global config, setting the timeout for analyze_sentiment
576
- # to 20 seconds, and all remaining timeouts to 10 seconds:
577
- #
578
- # ::Google::Cloud::Language::V1::LanguageService::Client.configure do |config|
579
- # config.timeout = 10.0
580
- # config.rpcs.analyze_sentiment.timeout = 20.0
581
- # end
582
- #
583
- # To apply the above configuration only to a new client:
584
- #
585
- # client = ::Google::Cloud::Language::V1::LanguageService::Client.new do |config|
586
- # config.timeout = 10.0
587
- # config.rpcs.analyze_sentiment.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Language
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
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.2
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a