google-apis-language_v1 0.13.0 → 0.14.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ae2a9425e892fe1a46fd6eded247a9714305fb3493fb651def746d783d170a
|
4
|
+
data.tar.gz: '08ec031904337965c8e2ea63160a32657b9eceaaa5ee949ad7f67463339f4543'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78d6bc20f729acac58bac57ddc7fa599b33ee569efa468f334cbed4b40a26c66e3e3a376fe43eff6698a3c198949d4cd854b558d50908431ec191791680e545f
|
7
|
+
data.tar.gz: 856686e3a59e00a2315de1ebdf143df327b09d47d22525a845dde19f8fc998bf3deed2d4cf2314f3cf55f7d813520a4eac106e77d2b8da8c474b0f17c8d6980a
|
data/CHANGELOG.md
CHANGED
@@ -361,10 +361,40 @@ module Google
|
|
361
361
|
end
|
362
362
|
end
|
363
363
|
|
364
|
+
# Model options available for classification requests.
|
365
|
+
class ClassificationModelOptions
|
366
|
+
include Google::Apis::Core::Hashable
|
367
|
+
|
368
|
+
# Options for the V1 model.
|
369
|
+
# Corresponds to the JSON property `v1Model`
|
370
|
+
# @return [Google::Apis::LanguageV1::V1Model]
|
371
|
+
attr_accessor :v1_model
|
372
|
+
|
373
|
+
# Options for the V2 model.
|
374
|
+
# Corresponds to the JSON property `v2Model`
|
375
|
+
# @return [Google::Apis::LanguageV1::V2Model]
|
376
|
+
attr_accessor :v2_model
|
377
|
+
|
378
|
+
def initialize(**args)
|
379
|
+
update!(**args)
|
380
|
+
end
|
381
|
+
|
382
|
+
# Update properties of this object
|
383
|
+
def update!(**args)
|
384
|
+
@v1_model = args[:v1_model] if args.key?(:v1_model)
|
385
|
+
@v2_model = args[:v2_model] if args.key?(:v2_model)
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
364
389
|
# The document classification request message.
|
365
390
|
class ClassifyTextRequest
|
366
391
|
include Google::Apis::Core::Hashable
|
367
392
|
|
393
|
+
# Model options available for classification requests.
|
394
|
+
# Corresponds to the JSON property `classificationModelOptions`
|
395
|
+
# @return [Google::Apis::LanguageV1::ClassificationModelOptions]
|
396
|
+
attr_accessor :classification_model_options
|
397
|
+
|
368
398
|
# ################################################################ # Represents
|
369
399
|
# the input to API methods.
|
370
400
|
# Corresponds to the JSON property `document`
|
@@ -377,6 +407,7 @@ module Google
|
|
377
407
|
|
378
408
|
# Update properties of this object
|
379
409
|
def update!(**args)
|
410
|
+
@classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
|
380
411
|
@document = args[:document] if args.key?(:document)
|
381
412
|
end
|
382
413
|
end
|
@@ -572,6 +603,11 @@ module Google
|
|
572
603
|
class Features
|
573
604
|
include Google::Apis::Core::Hashable
|
574
605
|
|
606
|
+
# Model options available for classification requests.
|
607
|
+
# Corresponds to the JSON property `classificationModelOptions`
|
608
|
+
# @return [Google::Apis::LanguageV1::ClassificationModelOptions]
|
609
|
+
attr_accessor :classification_model_options
|
610
|
+
|
575
611
|
# Classify the full document into categories.
|
576
612
|
# Corresponds to the JSON property `classifyText`
|
577
613
|
# @return [Boolean]
|
@@ -608,6 +644,7 @@ module Google
|
|
608
644
|
|
609
645
|
# Update properties of this object
|
610
646
|
def update!(**args)
|
647
|
+
@classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
|
611
648
|
@classify_text = args[:classify_text] if args.key?(:classify_text)
|
612
649
|
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
613
650
|
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
@@ -856,6 +893,38 @@ module Google
|
|
856
893
|
@text = args[:text] if args.key?(:text)
|
857
894
|
end
|
858
895
|
end
|
896
|
+
|
897
|
+
# Options for the V1 model.
|
898
|
+
class V1Model
|
899
|
+
include Google::Apis::Core::Hashable
|
900
|
+
|
901
|
+
def initialize(**args)
|
902
|
+
update!(**args)
|
903
|
+
end
|
904
|
+
|
905
|
+
# Update properties of this object
|
906
|
+
def update!(**args)
|
907
|
+
end
|
908
|
+
end
|
909
|
+
|
910
|
+
# Options for the V2 model.
|
911
|
+
class V2Model
|
912
|
+
include Google::Apis::Core::Hashable
|
913
|
+
|
914
|
+
# The content categories used for classification.
|
915
|
+
# Corresponds to the JSON property `contentCategoriesVersion`
|
916
|
+
# @return [String]
|
917
|
+
attr_accessor :content_categories_version
|
918
|
+
|
919
|
+
def initialize(**args)
|
920
|
+
update!(**args)
|
921
|
+
end
|
922
|
+
|
923
|
+
# Update properties of this object
|
924
|
+
def update!(**args)
|
925
|
+
@content_categories_version = args[:content_categories_version] if args.key?(:content_categories_version)
|
926
|
+
end
|
927
|
+
end
|
859
928
|
end
|
860
929
|
end
|
861
930
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module LanguageV1
|
18
18
|
# Version of the google-apis-language_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.10.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220916"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,6 +88,12 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class ClassificationModelOptions
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
91
97
|
class ClassifyTextRequest
|
92
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
99
|
|
@@ -166,6 +172,18 @@ module Google
|
|
166
172
|
include Google::Apis::Core::JsonObjectSupport
|
167
173
|
end
|
168
174
|
|
175
|
+
class V1Model
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class V2Model
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
169
187
|
class AnalyzeEntitiesRequest
|
170
188
|
# @private
|
171
189
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -278,9 +296,21 @@ module Google
|
|
278
296
|
end
|
279
297
|
end
|
280
298
|
|
299
|
+
class ClassificationModelOptions
|
300
|
+
# @private
|
301
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
+
property :v1_model, as: 'v1Model', class: Google::Apis::LanguageV1::V1Model, decorator: Google::Apis::LanguageV1::V1Model::Representation
|
303
|
+
|
304
|
+
property :v2_model, as: 'v2Model', class: Google::Apis::LanguageV1::V2Model, decorator: Google::Apis::LanguageV1::V2Model::Representation
|
305
|
+
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
281
309
|
class ClassifyTextRequest
|
282
310
|
# @private
|
283
311
|
class Representation < Google::Apis::Core::JsonRepresentation
|
312
|
+
property :classification_model_options, as: 'classificationModelOptions', class: Google::Apis::LanguageV1::ClassificationModelOptions, decorator: Google::Apis::LanguageV1::ClassificationModelOptions::Representation
|
313
|
+
|
284
314
|
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
285
315
|
|
286
316
|
end
|
@@ -340,6 +370,8 @@ module Google
|
|
340
370
|
class Features
|
341
371
|
# @private
|
342
372
|
class Representation < Google::Apis::Core::JsonRepresentation
|
373
|
+
property :classification_model_options, as: 'classificationModelOptions', class: Google::Apis::LanguageV1::ClassificationModelOptions, decorator: Google::Apis::LanguageV1::ClassificationModelOptions::Representation
|
374
|
+
|
343
375
|
property :classify_text, as: 'classifyText'
|
344
376
|
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
345
377
|
property :extract_entities, as: 'extractEntities'
|
@@ -413,6 +445,19 @@ module Google
|
|
413
445
|
|
414
446
|
end
|
415
447
|
end
|
448
|
+
|
449
|
+
class V1Model
|
450
|
+
# @private
|
451
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
455
|
+
class V2Model
|
456
|
+
# @private
|
457
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
458
|
+
property :content_categories_version, as: 'contentCategoriesVersion'
|
459
|
+
end
|
460
|
+
end
|
416
461
|
end
|
417
462
|
end
|
418
463
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-language_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.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: 2022-09-
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.9.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.9.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-language_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-language_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-language_v1/v0.14.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-language_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|