google-cloud-language-v1 0.11.0 → 1.0.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: cf336e51c3a27aaa45fcd4d27a88cae67069a634bf751340d69f2ae640819d2f
4
- data.tar.gz: 2e02e525cb46268b3c4973433d2a2b645413e06327d6c52aea519408caa4f418
3
+ metadata.gz: 4253edd57be388d405680208719659ad94d90f05cb61e5bd6a3e09980583d4e1
4
+ data.tar.gz: 92d5f7979fd57e06c98d3385e0b1470027ba70ad487df35146b29ceaf9b79cc7
5
5
  SHA512:
6
- metadata.gz: e4ef6f5eae9b5a84db0ba43f4f9eebcf5fd92aa245765036f03eaf7d5ee7bf339f1575c696161ed750e482354f2d71a409150dea1566941cf15f12fa95df5ff6
7
- data.tar.gz: b358a7a0bd6134385f90b93b421293ffcb3f80e6a10cf115e375862ac23782021f25cdc66171c3dab917cbc786209245842509861eef4d09e3ea292da50ae66f
6
+ metadata.gz: 4019833be7f46379da1b585530c144e91781f43ea35d232b263db2bbf1947f05c97e4d2d95f9286f1b22a7131b6ab332cb6a5888eaaa115f7bb17ab95d2f0b6c
7
+ data.tar.gz: 2e68a6ca4518170affbc11f6d1a80148a371f7723c20fa6f495fbea33c4f5ca01b853d74ccf35aa3b3123a63624dd53a11d525a2838883979995c674de2ce848
@@ -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
 
@@ -246,10 +249,11 @@ module Google
246
249
  # Customize the options with defaults
247
250
  metadata = @config.rpcs.analyze_sentiment.metadata.to_h
248
251
 
249
- # Set x-goog-api-client and x-goog-user-project headers
252
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
250
253
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
251
254
  lib_name: @config.lib_name, lib_version: @config.lib_version,
252
255
  gapic_version: ::Google::Cloud::Language::V1::VERSION
256
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
253
257
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
254
258
 
255
259
  options.apply_defaults timeout: @config.rpcs.analyze_sentiment.timeout,
@@ -327,10 +331,11 @@ module Google
327
331
  # Customize the options with defaults
328
332
  metadata = @config.rpcs.analyze_entities.metadata.to_h
329
333
 
330
- # Set x-goog-api-client and x-goog-user-project headers
334
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
331
335
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
332
336
  lib_name: @config.lib_name, lib_version: @config.lib_version,
333
337
  gapic_version: ::Google::Cloud::Language::V1::VERSION
338
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
334
339
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
335
340
 
336
341
  options.apply_defaults timeout: @config.rpcs.analyze_entities.timeout,
@@ -409,10 +414,11 @@ module Google
409
414
  # Customize the options with defaults
410
415
  metadata = @config.rpcs.analyze_entity_sentiment.metadata.to_h
411
416
 
412
- # Set x-goog-api-client and x-goog-user-project headers
417
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
413
418
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
419
  lib_name: @config.lib_name, lib_version: @config.lib_version,
415
420
  gapic_version: ::Google::Cloud::Language::V1::VERSION
421
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
416
422
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
423
 
418
424
  options.apply_defaults timeout: @config.rpcs.analyze_entity_sentiment.timeout,
@@ -490,10 +496,11 @@ module Google
490
496
  # Customize the options with defaults
491
497
  metadata = @config.rpcs.analyze_syntax.metadata.to_h
492
498
 
493
- # Set x-goog-api-client and x-goog-user-project headers
499
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
494
500
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
495
501
  lib_name: @config.lib_name, lib_version: @config.lib_version,
496
502
  gapic_version: ::Google::Cloud::Language::V1::VERSION
503
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
497
504
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
498
505
 
499
506
  options.apply_defaults timeout: @config.rpcs.analyze_syntax.timeout,
@@ -570,10 +577,11 @@ module Google
570
577
  # Customize the options with defaults
571
578
  metadata = @config.rpcs.classify_text.metadata.to_h
572
579
 
573
- # Set x-goog-api-client and x-goog-user-project headers
580
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
574
581
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
575
582
  lib_name: @config.lib_name, lib_version: @config.lib_version,
576
583
  gapic_version: ::Google::Cloud::Language::V1::VERSION
584
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
577
585
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
578
586
 
579
587
  options.apply_defaults timeout: @config.rpcs.classify_text.timeout,
@@ -647,10 +655,11 @@ module Google
647
655
  # Customize the options with defaults
648
656
  metadata = @config.rpcs.moderate_text.metadata.to_h
649
657
 
650
- # Set x-goog-api-client and x-goog-user-project headers
658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
651
659
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
652
660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
653
661
  gapic_version: ::Google::Cloud::Language::V1::VERSION
662
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
654
663
  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,
@@ -729,10 +738,11 @@ module Google
729
738
  # Customize the options with defaults
730
739
  metadata = @config.rpcs.annotate_text.metadata.to_h
731
740
 
732
- # Set x-goog-api-client and x-goog-user-project headers
741
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
733
742
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
734
743
  lib_name: @config.lib_name, lib_version: @config.lib_version,
735
744
  gapic_version: ::Google::Cloud::Language::V1::VERSION
745
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
736
746
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
747
 
738
748
  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
 
@@ -238,12 +241,13 @@ module Google
238
241
  # Customize the options with defaults
239
242
  call_metadata = @config.rpcs.analyze_sentiment.metadata.to_h
240
243
 
241
- # Set x-goog-api-client and x-goog-user-project headers
244
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
242
245
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
243
246
  lib_name: @config.lib_name, lib_version: @config.lib_version,
244
247
  gapic_version: ::Google::Cloud::Language::V1::VERSION,
245
248
  transports_version_send: [:rest]
246
249
 
250
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
247
251
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
248
252
 
249
253
  options.apply_defaults timeout: @config.rpcs.analyze_sentiment.timeout,
@@ -320,12 +324,13 @@ module Google
320
324
  # Customize the options with defaults
321
325
  call_metadata = @config.rpcs.analyze_entities.metadata.to_h
322
326
 
323
- # Set x-goog-api-client and x-goog-user-project headers
327
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
324
328
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
325
329
  lib_name: @config.lib_name, lib_version: @config.lib_version,
326
330
  gapic_version: ::Google::Cloud::Language::V1::VERSION,
327
331
  transports_version_send: [:rest]
328
332
 
333
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
329
334
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
330
335
 
331
336
  options.apply_defaults timeout: @config.rpcs.analyze_entities.timeout,
@@ -403,12 +408,13 @@ module Google
403
408
  # Customize the options with defaults
404
409
  call_metadata = @config.rpcs.analyze_entity_sentiment.metadata.to_h
405
410
 
406
- # Set x-goog-api-client and x-goog-user-project headers
411
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
407
412
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
408
413
  lib_name: @config.lib_name, lib_version: @config.lib_version,
409
414
  gapic_version: ::Google::Cloud::Language::V1::VERSION,
410
415
  transports_version_send: [:rest]
411
416
 
417
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
412
418
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
413
419
 
414
420
  options.apply_defaults timeout: @config.rpcs.analyze_entity_sentiment.timeout,
@@ -485,12 +491,13 @@ module Google
485
491
  # Customize the options with defaults
486
492
  call_metadata = @config.rpcs.analyze_syntax.metadata.to_h
487
493
 
488
- # Set x-goog-api-client and x-goog-user-project headers
494
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
489
495
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
490
496
  lib_name: @config.lib_name, lib_version: @config.lib_version,
491
497
  gapic_version: ::Google::Cloud::Language::V1::VERSION,
492
498
  transports_version_send: [:rest]
493
499
 
500
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
494
501
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
495
502
 
496
503
  options.apply_defaults timeout: @config.rpcs.analyze_syntax.timeout,
@@ -566,12 +573,13 @@ module Google
566
573
  # Customize the options with defaults
567
574
  call_metadata = @config.rpcs.classify_text.metadata.to_h
568
575
 
569
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
577
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
579
  gapic_version: ::Google::Cloud::Language::V1::VERSION,
573
580
  transports_version_send: [:rest]
574
581
 
582
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
575
583
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
576
584
 
577
585
  options.apply_defaults timeout: @config.rpcs.classify_text.timeout,
@@ -644,12 +652,13 @@ module Google
644
652
  # Customize the options with defaults
645
653
  call_metadata = @config.rpcs.moderate_text.metadata.to_h
646
654
 
647
- # Set x-goog-api-client and x-goog-user-project headers
655
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
648
656
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
649
657
  lib_name: @config.lib_name, lib_version: @config.lib_version,
650
658
  gapic_version: ::Google::Cloud::Language::V1::VERSION,
651
659
  transports_version_send: [:rest]
652
660
 
661
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
653
662
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
654
663
 
655
664
  options.apply_defaults timeout: @config.rpcs.moderate_text.timeout,
@@ -727,12 +736,13 @@ module Google
727
736
  # Customize the options with defaults
728
737
  call_metadata = @config.rpcs.annotate_text.metadata.to_h
729
738
 
730
- # Set x-goog-api-client and x-goog-user-project headers
739
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
731
740
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
732
741
  lib_name: @config.lib_name, lib_version: @config.lib_version,
733
742
  gapic_version: ::Google::Cloud::Language::V1::VERSION,
734
743
  transports_version_send: [:rest]
735
744
 
745
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
736
746
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
747
 
738
748
  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 V1
24
- VERSION = "0.11.0"
24
+ VERSION = "1.0.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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 1.0.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