google-cloud-language-v1beta2 0.12.0 → 0.13.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: f9fa73d531286cb58d982defab1159a6d726fd4ce471f9ca847b12a8f34a93c2
4
- data.tar.gz: 27b08c92d6778bcb8807bc3f9a02e3139a3c5ea98131d87aa98048651ae72dc3
3
+ metadata.gz: 7ed7ba6210ab6363f1b29d57c02f0839249c34f95097ceed8f0bc54866604535
4
+ data.tar.gz: 588b86ef2594afdc3185b829a21dbf02d107320064e28a7059d5e35dc1a6302c
5
5
  SHA512:
6
- metadata.gz: 15b843d67914c06f16e7de71c8442950802720957224783aca122096ce3bc4e6f0080be776aa14a360fb2603c89749d4c0a8b652e7fd548e698c57b8a7331588
7
- data.tar.gz: 147dc7b2e4eb8d672dbaa2e9f328fc43a90c29ade503589b93fdf5c2b9f4375ac4d19e9c242187b4c5f8f45c3498d43c1070bbf267743be6915002d03fbd7e1a
6
+ metadata.gz: 0f09ec5e9c3477aa3a67c2397dcccd1c2e31729052a8c2a1717ff7e321816231ba3ae99476028d07d5318d8cf4dc896905fe9364c0395213e892b8708be32418
7
+ data.tar.gz: 4f85c4d8ee3e90c14c323a46ceb50eac2b0ae624f0161598ad13ddc44897d7449215d351e987079e00af88f5bf5c78370356d01210b092bbf6e8c8f441797352
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -819,6 +819,13 @@ module Google
819
819
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
820
820
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
821
821
  # * (`nil`) indicating no credentials
822
+ #
823
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
824
+ # external source for authentication to Google Cloud, you must validate it before
825
+ # providing it to a Google API client library. Providing an unvalidated credential
826
+ # configuration to Google APIs can compromise the security of your systems and data.
827
+ # For more information, refer to [Validate credential configurations from external
828
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
822
829
  # @return [::Object]
823
830
  # @!attribute [rw] scope
824
831
  # The OAuth scopes
@@ -873,8 +880,8 @@ module Google
873
880
 
874
881
  config_attr :endpoint, nil, ::String, nil
875
882
  config_attr :credentials, nil do |value|
876
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
877
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
883
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
884
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
878
885
  allowed.any? { |klass| klass === value }
879
886
  end
880
887
  config_attr :scope, nil, ::String, ::Array, nil
@@ -817,6 +817,13 @@ module Google
817
817
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
818
818
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
819
819
  # * (`nil`) indicating no credentials
820
+ #
821
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
822
+ # external source for authentication to Google Cloud, you must validate it before
823
+ # providing it to a Google API client library. Providing an unvalidated credential
824
+ # configuration to Google APIs can compromise the security of your systems and data.
825
+ # For more information, refer to [Validate credential configurations from external
826
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
820
827
  # @return [::Object]
821
828
  # @!attribute [rw] scope
822
829
  # The OAuth scopes
@@ -864,7 +871,7 @@ module Google
864
871
 
865
872
  config_attr :endpoint, nil, ::String, nil
866
873
  config_attr :credentials, nil do |value|
867
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
874
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
868
875
  allowed.any? { |klass| klass === value }
869
876
  end
870
877
  config_attr :scope, nil, ::String, ::Array, nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Language
23
23
  module V1beta2
24
- VERSION = "0.12.0"
24
+ VERSION = "0.13.1"
25
25
  end
26
26
  end
27
27
  end
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -30,12 +30,16 @@ module Google
30
30
  # @return [::String]
31
31
  # The content of the input in string format.
32
32
  # Cloud audit logging exempt since it is based on user data.
33
+ #
34
+ # Note: The following fields are mutually exclusive: `content`, `gcs_content_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
33
35
  # @!attribute [rw] gcs_content_uri
34
36
  # @return [::String]
35
37
  # The Google Cloud Storage URI where the file content is located.
36
38
  # This URI must be of the form: gs://bucket_name/object_name. For more
37
39
  # details, see https://cloud.google.com/storage/docs/reference-uris.
38
40
  # NOTE: Cloud Storage object versioning is not supported.
41
+ #
42
+ # Note: The following fields are mutually exclusive: `gcs_content_uri`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
39
43
  # @!attribute [rw] language
40
44
  # @return [::String]
41
45
  # The language of the document (if not specified, the language is
@@ -925,10 +929,14 @@ module Google
925
929
  # Setting this field will use the V1 model and V1 content categories
926
930
  # version. The V1 model is a legacy model; support for this will be
927
931
  # discontinued in the future.
932
+ #
933
+ # Note: The following fields are mutually exclusive: `v1_model`, `v2_model`. If a field in that set is populated, all other fields in the set will automatically be cleared.
928
934
  # @!attribute [rw] v2_model
929
935
  # @return [::Google::Cloud::Language::V1beta2::ClassificationModelOptions::V2Model]
930
936
  # Setting this field will use the V2 model with the appropriate content
931
937
  # categories version. The V2 model is a better performing model.
938
+ #
939
+ # Note: The following fields are mutually exclusive: `v2_model`, `v1_model`. If a field in that set is populated, all other fields in the set will automatically be cleared.
932
940
  class ClassificationModelOptions
933
941
  include ::Google::Protobuf::MessageExts
934
942
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-language-v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -81,7 +80,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
81
80
  licenses:
82
81
  - Apache-2.0
83
82
  metadata: {}
84
- post_install_message:
85
83
  rdoc_options: []
86
84
  require_paths:
87
85
  - lib
@@ -89,15 +87,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
87
  requirements:
90
88
  - - ">="
91
89
  - !ruby/object:Gem::Version
92
- version: '2.7'
90
+ version: '3.0'
93
91
  required_rubygems_version: !ruby/object:Gem::Requirement
94
92
  requirements:
95
93
  - - ">="
96
94
  - !ruby/object:Gem::Version
97
95
  version: '0'
98
96
  requirements: []
99
- rubygems_version: 3.5.23
100
- signing_key:
97
+ rubygems_version: 3.6.8
101
98
  specification_version: 4
102
99
  summary: Provides natural language understanding technologies, such as sentiment analysis,
103
100
  entity recognition, entity sentiment analysis, and other text annotations, to developers.