google-cloud-language-v1beta2 0.11.0 → 0.11.1

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: 3ed4c296c2364d4d580ee27df8d1e538664a3cf9d25685f6a6b1ef520f984665
4
- data.tar.gz: 0ad77c4c60772be86522bfd1a9713f40875d1ff97023e876ac3502b4efbe24d9
3
+ metadata.gz: 97d9549992c1ef6a8caaa7f14c82e72e2536bbb76156f03b146400a6170fb4dd
4
+ data.tar.gz: 90474f547b44255b306652a3fae2fed6912ba8f88dec36719197d548caf7e681
5
5
  SHA512:
6
- metadata.gz: e6ea5fc6e36b59362760b3a4cd2d01de1848f3af2920e2147d0acf869cb3c2c7c0d2f04e9b203bf6a735e91880d653a59e14dfee0dd7d95b42bef1b649da3124
7
- data.tar.gz: af20370916c1204efde8e888c1eba0921cdeb6f7be0be798e16a4a207f809b04fc74b1c688232fa1fcd6c7b3d09529ac0ba0d89ebdfb9a18a60de32f6dc21f38
6
+ metadata.gz: 561e1a8c24905353de91cafdd82ea4eadb3eef1ef60473cc491a3070d0e5e61a5e8883877c3eae3983130266650937eb56278897dbacbb61e32ce0f549a066fb
7
+ data.tar.gz: f6f9059ab9d0fb6d3b61a03e0ec5866eaf9b19d95cbf2668b12a72987476128d3a6a4c1f16e6b1c7bbc4eb36cc1558d852b990f525f77ff13163bef2ad82501c
@@ -31,6 +31,9 @@ module Google
31
31
  # recognition.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "language.$UNIVERSE_DOMAIN$"
36
39
 
@@ -247,10 +250,11 @@ module Google
247
250
  # Customize the options with defaults
248
251
  metadata = @config.rpcs.analyze_sentiment.metadata.to_h
249
252
 
250
- # Set x-goog-api-client and x-goog-user-project headers
253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
251
254
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
252
255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
253
256
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
257
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
254
258
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
255
259
 
256
260
  options.apply_defaults timeout: @config.rpcs.analyze_sentiment.timeout,
@@ -328,10 +332,11 @@ module Google
328
332
  # Customize the options with defaults
329
333
  metadata = @config.rpcs.analyze_entities.metadata.to_h
330
334
 
331
- # Set x-goog-api-client and x-goog-user-project headers
335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
332
336
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
333
337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
334
338
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
339
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
335
340
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
341
 
337
342
  options.apply_defaults timeout: @config.rpcs.analyze_entities.timeout,
@@ -410,10 +415,11 @@ module Google
410
415
  # Customize the options with defaults
411
416
  metadata = @config.rpcs.analyze_entity_sentiment.metadata.to_h
412
417
 
413
- # Set x-goog-api-client and x-goog-user-project headers
418
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
414
419
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
415
420
  lib_name: @config.lib_name, lib_version: @config.lib_version,
416
421
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
422
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
417
423
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
424
 
419
425
  options.apply_defaults timeout: @config.rpcs.analyze_entity_sentiment.timeout,
@@ -491,10 +497,11 @@ module Google
491
497
  # Customize the options with defaults
492
498
  metadata = @config.rpcs.analyze_syntax.metadata.to_h
493
499
 
494
- # Set x-goog-api-client and x-goog-user-project headers
500
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
495
501
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
496
502
  lib_name: @config.lib_name, lib_version: @config.lib_version,
497
503
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
504
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
498
505
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
499
506
 
500
507
  options.apply_defaults timeout: @config.rpcs.analyze_syntax.timeout,
@@ -571,10 +578,11 @@ module Google
571
578
  # Customize the options with defaults
572
579
  metadata = @config.rpcs.classify_text.metadata.to_h
573
580
 
574
- # Set x-goog-api-client and x-goog-user-project headers
581
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
575
582
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
576
583
  lib_name: @config.lib_name, lib_version: @config.lib_version,
577
584
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
585
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
578
586
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
587
 
580
588
  options.apply_defaults timeout: @config.rpcs.classify_text.timeout,
@@ -648,10 +656,11 @@ module Google
648
656
  # Customize the options with defaults
649
657
  metadata = @config.rpcs.moderate_text.metadata.to_h
650
658
 
651
- # Set x-goog-api-client and x-goog-user-project headers
659
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
652
660
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
653
661
  lib_name: @config.lib_name, lib_version: @config.lib_version,
654
662
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
663
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
655
664
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
656
665
 
657
666
  options.apply_defaults timeout: @config.rpcs.moderate_text.timeout,
@@ -730,10 +739,11 @@ module Google
730
739
  # Customize the options with defaults
731
740
  metadata = @config.rpcs.annotate_text.metadata.to_h
732
741
 
733
- # Set x-goog-api-client and x-goog-user-project headers
742
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
734
743
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
735
744
  lib_name: @config.lib_name, lib_version: @config.lib_version,
736
745
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION
746
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
737
747
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
738
748
 
739
749
  options.apply_defaults timeout: @config.rpcs.annotate_text.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # recognition.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "language.$UNIVERSE_DOMAIN$"
38
41
 
@@ -239,12 +242,13 @@ module Google
239
242
  # Customize the options with defaults
240
243
  call_metadata = @config.rpcs.analyze_sentiment.metadata.to_h
241
244
 
242
- # Set x-goog-api-client and x-goog-user-project headers
245
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
243
246
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
244
247
  lib_name: @config.lib_name, lib_version: @config.lib_version,
245
248
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION,
246
249
  transports_version_send: [:rest]
247
250
 
251
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
248
252
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
249
253
 
250
254
  options.apply_defaults timeout: @config.rpcs.analyze_sentiment.timeout,
@@ -321,12 +325,13 @@ module Google
321
325
  # Customize the options with defaults
322
326
  call_metadata = @config.rpcs.analyze_entities.metadata.to_h
323
327
 
324
- # Set x-goog-api-client and x-goog-user-project headers
328
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
325
329
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
326
330
  lib_name: @config.lib_name, lib_version: @config.lib_version,
327
331
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION,
328
332
  transports_version_send: [:rest]
329
333
 
334
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
330
335
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
331
336
 
332
337
  options.apply_defaults timeout: @config.rpcs.analyze_entities.timeout,
@@ -404,12 +409,13 @@ module Google
404
409
  # Customize the options with defaults
405
410
  call_metadata = @config.rpcs.analyze_entity_sentiment.metadata.to_h
406
411
 
407
- # Set x-goog-api-client and x-goog-user-project headers
412
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
408
413
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
409
414
  lib_name: @config.lib_name, lib_version: @config.lib_version,
410
415
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION,
411
416
  transports_version_send: [:rest]
412
417
 
418
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
413
419
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
414
420
 
415
421
  options.apply_defaults timeout: @config.rpcs.analyze_entity_sentiment.timeout,
@@ -486,12 +492,13 @@ module Google
486
492
  # Customize the options with defaults
487
493
  call_metadata = @config.rpcs.analyze_syntax.metadata.to_h
488
494
 
489
- # Set x-goog-api-client and x-goog-user-project headers
495
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
490
496
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
491
497
  lib_name: @config.lib_name, lib_version: @config.lib_version,
492
498
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION,
493
499
  transports_version_send: [:rest]
494
500
 
501
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
495
502
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
496
503
 
497
504
  options.apply_defaults timeout: @config.rpcs.analyze_syntax.timeout,
@@ -567,12 +574,13 @@ module Google
567
574
  # Customize the options with defaults
568
575
  call_metadata = @config.rpcs.classify_text.metadata.to_h
569
576
 
570
- # Set x-goog-api-client and x-goog-user-project headers
577
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
571
578
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
572
579
  lib_name: @config.lib_name, lib_version: @config.lib_version,
573
580
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION,
574
581
  transports_version_send: [:rest]
575
582
 
583
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
576
584
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
577
585
 
578
586
  options.apply_defaults timeout: @config.rpcs.classify_text.timeout,
@@ -645,12 +653,13 @@ module Google
645
653
  # Customize the options with defaults
646
654
  call_metadata = @config.rpcs.moderate_text.metadata.to_h
647
655
 
648
- # Set x-goog-api-client and x-goog-user-project headers
656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
649
657
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
650
658
  lib_name: @config.lib_name, lib_version: @config.lib_version,
651
659
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION,
652
660
  transports_version_send: [:rest]
653
661
 
662
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
654
663
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
655
664
 
656
665
  options.apply_defaults timeout: @config.rpcs.moderate_text.timeout,
@@ -728,12 +737,13 @@ module Google
728
737
  # Customize the options with defaults
729
738
  call_metadata = @config.rpcs.annotate_text.metadata.to_h
730
739
 
731
- # Set x-goog-api-client and x-goog-user-project headers
740
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
732
741
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
733
742
  lib_name: @config.lib_name, lib_version: @config.lib_version,
734
743
  gapic_version: ::Google::Cloud::Language::V1beta2::VERSION,
735
744
  transports_version_send: [:rest]
736
745
 
746
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
737
747
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
738
748
 
739
749
  options.apply_defaults timeout: @config.rpcs.annotate_text.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Language
23
23
  module V1beta2
24
- VERSION = "0.11.0"
24
+ VERSION = "0.11.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
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.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common