google-cloud-language-v1 0.11.0 → 1.0.0

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: cf336e51c3a27aaa45fcd4d27a88cae67069a634bf751340d69f2ae640819d2f
4
- data.tar.gz: 2e02e525cb46268b3c4973433d2a2b645413e06327d6c52aea519408caa4f418
3
+ metadata.gz: 1f72255be51f314054a4b17d370f4d236e129a85036b8f5741ad1427fb9f2222
4
+ data.tar.gz: 838a68af3f6871ff3c9364a32b164f658e0c61926e62d61763628bd0d347165a
5
5
  SHA512:
6
- metadata.gz: e4ef6f5eae9b5a84db0ba43f4f9eebcf5fd92aa245765036f03eaf7d5ee7bf339f1575c696161ed750e482354f2d71a409150dea1566941cf15f12fa95df5ff6
7
- data.tar.gz: b358a7a0bd6134385f90b93b421293ffcb3f80e6a10cf115e375862ac23782021f25cdc66171c3dab917cbc786209245842509861eef4d09e3ea292da50ae66f
6
+ metadata.gz: 823a79a036c296545e7ce5fc2677f6dd46a4b08b27f5dcd52f251d08acaa752eb29450d202f0f5c798ff2157c0843535c9a509029f6826056f709db810dae71a
7
+ data.tar.gz: a0ccfa209b3361362f01403e700e3dae86cdbdd638b2da2d3f6455d3bcea5d74bdd6c881660bfda776a98c7cae311963fbd8b927b0afd8d9cae2e49f318574e6
@@ -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.0"
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
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.0
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-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common