google-cloud-language-v1beta2 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: 1bf0a1abb75d69498f531284997148b17100306a41636ced5557e143ffac5814
4
- data.tar.gz: b497feb904bbdff7b68720f3cc5a4da21f98d45894156537b524b34236fd59c0
3
+ metadata.gz: 0ca7035c5dc5378b3679e68e709bd3fc57ca47fda1fda5b597ffa4e111868715
4
+ data.tar.gz: e6dad3548258bb684e364ac0d857de31865c77258d056a07f7c045a6e97aa50e
5
5
  SHA512:
6
- metadata.gz: 0efc9ae71db1669cf11339358663787921de7efea18526db4673d41426ddc4840bc1c4182802674542b24e4abb02918c3736a396e921dccf0494a8a4532ac898
7
- data.tar.gz: d60a203078249a2cf1dc1d9eafd57e3c2c06d714ebc565c55a2ed80b5251ded646bfd8af111403e9264c97265aa30c28356887513eadb09579167d9b66bf010c
6
+ metadata.gz: 3bc8073e5ef9a746bd7ced06f5561de77b91becb60612a9c392a8602f6605002153a07310ab294fde36faddd1a205a3f16ec896c23dcce2bd2c04b6c35713ce9
7
+ data.tar.gz: 3c38f86561c98d6a0319f0e4d2c8024b4130dabf36c15ebeb057aa0600cef4a843c39173826ba8faf4642928e010cbd1d827bc2bd18d576773b5977c50fa464a
@@ -40,13 +40,12 @@ module Google
40
40
  # See {::Google::Cloud::Language::V1beta2::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::V1beta2::LanguageService::Client.configure do |config|
48
- # config.timeout = 10.0
49
- # end
45
+ # # Modify the configuration for all LanguageService clients
46
+ # ::Google::Cloud::Language::V1beta2::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::V1beta2::LanguageService::Client.new
127
+ # # Create a client using the default configuration
128
+ # client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new
132
129
  #
133
- # To create a new LanguageService client with a custom
134
- # configuration:
135
- #
136
- # client = ::Google::Cloud::Language::V1beta2::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::V1beta2::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
@@ -231,7 +225,9 @@ module Google
231
225
  options.apply_defaults timeout: @config.rpcs.analyze_sentiment.timeout,
232
226
  metadata: metadata,
233
227
  retry_policy: @config.rpcs.analyze_sentiment.retry_policy
234
- options.apply_defaults metadata: @config.metadata,
228
+
229
+ options.apply_defaults timeout: @config.timeout,
230
+ metadata: @config.metadata,
235
231
  retry_policy: @config.retry_policy
236
232
 
237
233
  @language_service_stub.call_rpc :analyze_sentiment, request, options: options do |response, operation|
@@ -295,7 +291,9 @@ module Google
295
291
  options.apply_defaults timeout: @config.rpcs.analyze_entities.timeout,
296
292
  metadata: metadata,
297
293
  retry_policy: @config.rpcs.analyze_entities.retry_policy
298
- options.apply_defaults metadata: @config.metadata,
294
+
295
+ options.apply_defaults timeout: @config.timeout,
296
+ metadata: @config.metadata,
299
297
  retry_policy: @config.retry_policy
300
298
 
301
299
  @language_service_stub.call_rpc :analyze_entities, request, options: options do |response, operation|
@@ -358,7 +356,9 @@ module Google
358
356
  options.apply_defaults timeout: @config.rpcs.analyze_entity_sentiment.timeout,
359
357
  metadata: metadata,
360
358
  retry_policy: @config.rpcs.analyze_entity_sentiment.retry_policy
361
- options.apply_defaults metadata: @config.metadata,
359
+
360
+ options.apply_defaults timeout: @config.timeout,
361
+ metadata: @config.metadata,
362
362
  retry_policy: @config.retry_policy
363
363
 
364
364
  @language_service_stub.call_rpc :analyze_entity_sentiment, request, options: options do |response, operation|
@@ -422,7 +422,9 @@ module Google
422
422
  options.apply_defaults timeout: @config.rpcs.analyze_syntax.timeout,
423
423
  metadata: metadata,
424
424
  retry_policy: @config.rpcs.analyze_syntax.retry_policy
425
- options.apply_defaults metadata: @config.metadata,
425
+
426
+ options.apply_defaults timeout: @config.timeout,
427
+ metadata: @config.metadata,
426
428
  retry_policy: @config.retry_policy
427
429
 
428
430
  @language_service_stub.call_rpc :analyze_syntax, request, options: options do |response, operation|
@@ -482,7 +484,9 @@ module Google
482
484
  options.apply_defaults timeout: @config.rpcs.classify_text.timeout,
483
485
  metadata: metadata,
484
486
  retry_policy: @config.rpcs.classify_text.retry_policy
485
- options.apply_defaults metadata: @config.metadata,
487
+
488
+ options.apply_defaults timeout: @config.timeout,
489
+ metadata: @config.metadata,
486
490
  retry_policy: @config.retry_policy
487
491
 
488
492
  @language_service_stub.call_rpc :classify_text, request, options: options do |response, operation|
@@ -547,7 +551,9 @@ module Google
547
551
  options.apply_defaults timeout: @config.rpcs.annotate_text.timeout,
548
552
  metadata: metadata,
549
553
  retry_policy: @config.rpcs.annotate_text.retry_policy
550
- options.apply_defaults metadata: @config.metadata,
554
+
555
+ options.apply_defaults timeout: @config.timeout,
556
+ metadata: @config.metadata,
551
557
  retry_policy: @config.retry_policy
552
558
 
553
559
  @language_service_stub.call_rpc :annotate_text, request, options: options do |response, operation|
@@ -571,22 +577,21 @@ module Google
571
577
  # Configuration can be applied globally to all clients, or to a single client
572
578
  # on construction.
573
579
  #
574
- # # Examples
575
- #
576
- # To modify the global config, setting the timeout for analyze_sentiment
577
- # to 20 seconds, and all remaining timeouts to 10 seconds:
578
- #
579
- # ::Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
580
- # config.timeout = 10.0
581
- # config.rpcs.analyze_sentiment.timeout = 20.0
582
- # end
583
- #
584
- # To apply the above configuration only to a new client:
585
- #
586
- # client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
587
- # config.timeout = 10.0
588
- # config.rpcs.analyze_sentiment.timeout = 20.0
589
- # end
580
+ # @example
581
+ #
582
+ # # Modify the global config, setting the timeout for
583
+ # # analyze_sentiment to 20 seconds,
584
+ # # and all remaining timeouts to 10 seconds.
585
+ # ::Google::Cloud::Language::V1beta2::LanguageService::Client.configure do |config|
586
+ # config.timeout = 10.0
587
+ # config.rpcs.analyze_sentiment.timeout = 20.0
588
+ # end
589
+ #
590
+ # # Apply the above configuration only to a new client.
591
+ # client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
592
+ # config.timeout = 10.0
593
+ # config.rpcs.analyze_sentiment.timeout = 20.0
594
+ # end
590
595
  #
591
596
  # @!attribute [rw] endpoint
592
597
  # 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 V1beta2
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-v1beta2
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