google-cloud-language-v1 0.5.0 → 0.7.0
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/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/language/v1/language_service/client.rb +11 -8
- data/lib/google/cloud/language/v1/language_service/rest/client.rb +739 -0
- data/lib/google/cloud/language/v1/language_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/language/v1/language_service/rest.rb +52 -0
- data/lib/google/cloud/language/v1/language_service.rb +7 -1
- data/lib/google/cloud/language/v1/language_service_pb.rb +22 -0
- data/lib/google/cloud/language/v1/language_service_services_pb.rb +1 -2
- data/lib/google/cloud/language/v1/rest.rb +37 -0
- data/lib/google/cloud/language/v1/version.rb +1 -1
- data/lib/google/cloud/language/v1.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/v1/language_service.rb +94 -34
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +14 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abb61f0c742d5cad958648c8dd75ecdef4df43c0c300e04790cfb8d8c4817aa1
|
4
|
+
data.tar.gz: 1b653cb913255b96aacd5b13238ee3f3cd45db0335d9a10ec06e37cc68aa2b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bef382fad9261f0becff13664607ac7a40d84d4df3468fe5ac7151457a4f2f6773c4d1855a4b477b134caaf934b63ea3608b0fc8edf9ef4defaebd6192c55c7
|
7
|
+
data.tar.gz: 8acc473da3977fe26bb0ddecc0294355e2fe1b48b486072ee0f0572d35f039457d45fe7693327b89b48d6a4b19edc2dc048d051861bbc6b2e02c02d3923686a3
|
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.
|
@@ -192,7 +192,7 @@ module Google
|
|
192
192
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
193
193
|
#
|
194
194
|
# @param document [::Google::Cloud::Language::V1::Document, ::Hash]
|
195
|
-
# Input document.
|
195
|
+
# Required. Input document.
|
196
196
|
# @param encoding_type [::Google::Cloud::Language::V1::EncodingType]
|
197
197
|
# The encoding type used by the API to calculate sentence offsets.
|
198
198
|
#
|
@@ -273,7 +273,7 @@ module Google
|
|
273
273
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
274
274
|
#
|
275
275
|
# @param document [::Google::Cloud::Language::V1::Document, ::Hash]
|
276
|
-
# Input document.
|
276
|
+
# Required. Input document.
|
277
277
|
# @param encoding_type [::Google::Cloud::Language::V1::EncodingType]
|
278
278
|
# The encoding type used by the API to calculate offsets.
|
279
279
|
#
|
@@ -353,7 +353,7 @@ module Google
|
|
353
353
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
354
354
|
#
|
355
355
|
# @param document [::Google::Cloud::Language::V1::Document, ::Hash]
|
356
|
-
# Input document.
|
356
|
+
# Required. Input document.
|
357
357
|
# @param encoding_type [::Google::Cloud::Language::V1::EncodingType]
|
358
358
|
# The encoding type used by the API to calculate offsets.
|
359
359
|
#
|
@@ -434,7 +434,7 @@ module Google
|
|
434
434
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
435
435
|
#
|
436
436
|
# @param document [::Google::Cloud::Language::V1::Document, ::Hash]
|
437
|
-
# Input document.
|
437
|
+
# Required. Input document.
|
438
438
|
# @param encoding_type [::Google::Cloud::Language::V1::EncodingType]
|
439
439
|
# The encoding type used by the API to calculate offsets.
|
440
440
|
#
|
@@ -507,13 +507,16 @@ module Google
|
|
507
507
|
# @param options [::Gapic::CallOptions, ::Hash]
|
508
508
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
509
509
|
#
|
510
|
-
# @overload classify_text(document: nil)
|
510
|
+
# @overload classify_text(document: nil, classification_model_options: nil)
|
511
511
|
# Pass arguments to `classify_text` via keyword arguments. Note that at
|
512
512
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
513
513
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
514
514
|
#
|
515
515
|
# @param document [::Google::Cloud::Language::V1::Document, ::Hash]
|
516
|
-
# Input document.
|
516
|
+
# Required. Input document.
|
517
|
+
# @param classification_model_options [::Google::Cloud::Language::V1::ClassificationModelOptions, ::Hash]
|
518
|
+
# Model options to use for classification. Defaults to v1 options if not
|
519
|
+
# specified.
|
517
520
|
#
|
518
521
|
# @yield [response, operation] Access the result along with the RPC operation
|
519
522
|
# @yieldparam response [::Google::Cloud::Language::V1::ClassifyTextResponse]
|
@@ -591,9 +594,9 @@ module Google
|
|
591
594
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
592
595
|
#
|
593
596
|
# @param document [::Google::Cloud::Language::V1::Document, ::Hash]
|
594
|
-
# Input document.
|
597
|
+
# Required. Input document.
|
595
598
|
# @param features [::Google::Cloud::Language::V1::AnnotateTextRequest::Features, ::Hash]
|
596
|
-
# The enabled features.
|
599
|
+
# Required. The enabled features.
|
597
600
|
# @param encoding_type [::Google::Cloud::Language::V1::EncodingType]
|
598
601
|
# The encoding type used by the API to calculate offsets.
|
599
602
|
#
|