google-cloud-language-v1beta2 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/language/v1beta2/language_service/client.rb +5 -2
- data/lib/google/cloud/language/v1beta2/language_service/rest/client.rb +740 -0
- data/lib/google/cloud/language/v1beta2/language_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/language/v1beta2/language_service/rest.rb +52 -0
- data/lib/google/cloud/language/v1beta2/language_service.rb +7 -1
- data/lib/google/cloud/language/v1beta2/language_service_pb.rb +30 -1
- data/lib/google/cloud/language/v1beta2/language_service_services_pb.rb +2 -3
- data/lib/google/cloud/language/v1beta2/rest.rb +37 -0
- data/lib/google/cloud/language/v1beta2/version.rb +1 -1
- data/lib/google/cloud/language/v1beta2.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/language/v1beta2/language_service.rb +74 -1
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -8
- data/proto_docs/google/protobuf/timestamp.rb +0 -129
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dddeea614becb799dc91e71459880ec7d5343fbeb5df4176f0c1ca85b06235f1
|
4
|
+
data.tar.gz: 580d69c72399fc603406c9152bac3ea5059f40258eec877396316842a2b306b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 148a6f47ec09ff3171702bbfc01fd49b4b94e5b11bd27ae51f89e6d5c71514307bf1bf7f981059bdd2d1b25edf8f7ce4cc433d65aa6968e925d4a2e8e0737424
|
7
|
+
data.tar.gz: 59ca928bd7a1b20dfb7e810c1de895130f9272049ebfeed2a7f6dd5c8c0c73b7b981a82bed15e65a2a4dc446fede17c5d9733b5d54ef71083633048ce9e93525
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -416,7 +416,7 @@ module Google
|
|
416
416
|
|
417
417
|
##
|
418
418
|
# Analyzes the syntax of the text and provides sentence boundaries and
|
419
|
-
# tokenization along with part
|
419
|
+
# tokenization along with part of speech tags, dependency trees, and other
|
420
420
|
# properties.
|
421
421
|
#
|
422
422
|
# @overload analyze_syntax(request, options = nil)
|
@@ -508,13 +508,16 @@ module Google
|
|
508
508
|
# @param options [::Gapic::CallOptions, ::Hash]
|
509
509
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
510
510
|
#
|
511
|
-
# @overload classify_text(document: nil)
|
511
|
+
# @overload classify_text(document: nil, classification_model_options: nil)
|
512
512
|
# Pass arguments to `classify_text` via keyword arguments. Note that at
|
513
513
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
514
514
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
515
515
|
#
|
516
516
|
# @param document [::Google::Cloud::Language::V1beta2::Document, ::Hash]
|
517
517
|
# Required. Input document.
|
518
|
+
# @param classification_model_options [::Google::Cloud::Language::V1beta2::ClassificationModelOptions, ::Hash]
|
519
|
+
# Model options to use for classification. Defaults to v1 options if not
|
520
|
+
# specified.
|
518
521
|
#
|
519
522
|
# @yield [response, operation] Access the result along with the RPC operation
|
520
523
|
# @yieldparam response [::Google::Cloud::Language::V1beta2::ClassifyTextResponse]
|