google-cloud-language-v1 1.1.0 → 1.2.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/language/v1/language_service/client.rb +9 -2
- data/lib/google/cloud/language/v1/language_service/rest/client.rb +8 -1
- data/lib/google/cloud/language/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/cloud/language/v1/language_service.rb +8 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9b6f8e1ef5a320afd9295e683e44ca64b5b814bfcf5842c98e5abea2c4e32cb
|
4
|
+
data.tar.gz: '03058f0871755b8abcdd70434d51c4d8810d2df4565f0146991672dd82a18bf2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 288e0a5eede7f3ece8cc27503c6e2f013e579188914e8ef3d162951c7a8b243a8cedc2472ca92bcc79d787c752c30a28f56c2eee3b63255613de56e1d5dd55da
|
7
|
+
data.tar.gz: 533cdf3b3e9bca11d7cedb0f1fb147078bcfe66b9f01c49b65874e22a91dac0e2c2bd698ab3689369d8d18fd279d844c1b97d4a0adcc34f68c757dca16ebfe37
|
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
|
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
|
@@ -818,6 +818,13 @@ module Google
|
|
818
818
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
819
819
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
820
820
|
# * (`nil`) indicating no credentials
|
821
|
+
#
|
822
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
823
|
+
# external source for authentication to Google Cloud, you must validate it before
|
824
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
825
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
826
|
+
# For more information, refer to [Validate credential configurations from external
|
827
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
821
828
|
# @return [::Object]
|
822
829
|
# @!attribute [rw] scope
|
823
830
|
# The OAuth scopes
|
@@ -872,8 +879,8 @@ module Google
|
|
872
879
|
|
873
880
|
config_attr :endpoint, nil, ::String, nil
|
874
881
|
config_attr :credentials, nil do |value|
|
875
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
876
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
882
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
883
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
877
884
|
allowed.any? { |klass| klass === value }
|
878
885
|
end
|
879
886
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -816,6 +816,13 @@ module Google
|
|
816
816
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
817
817
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
818
818
|
# * (`nil`) indicating no credentials
|
819
|
+
#
|
820
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
821
|
+
# external source for authentication to Google Cloud, you must validate it before
|
822
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
823
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
824
|
+
# For more information, refer to [Validate credential configurations from external
|
825
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
819
826
|
# @return [::Object]
|
820
827
|
# @!attribute [rw] scope
|
821
828
|
# The OAuth scopes
|
@@ -863,7 +870,7 @@ module Google
|
|
863
870
|
|
864
871
|
config_attr :endpoint, nil, ::String, nil
|
865
872
|
config_attr :credentials, nil do |value|
|
866
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
873
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
867
874
|
allowed.any? { |klass| klass === value }
|
868
875
|
end
|
869
876
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -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
|
@@ -906,10 +910,14 @@ module Google
|
|
906
910
|
# Setting this field will use the V1 model and V1 content categories
|
907
911
|
# version. The V1 model is a legacy model; support for this will be
|
908
912
|
# discontinued in the future.
|
913
|
+
#
|
914
|
+
# 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.
|
909
915
|
# @!attribute [rw] v2_model
|
910
916
|
# @return [::Google::Cloud::Language::V1::ClassificationModelOptions::V2Model]
|
911
917
|
# Setting this field will use the V2 model with the appropriate content
|
912
918
|
# categories version. The V2 model is a better performing model.
|
919
|
+
#
|
920
|
+
# 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.
|
913
921
|
class ClassificationModelOptions
|
914
922
|
include ::Google::Protobuf::MessageExts
|
915
923
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-language-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
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.
|
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.
|
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: '
|
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.
|
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.
|