google-apis-language_v1 0.13.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/google/apis/language_v1/classes.rb +76 -14
- data/lib/google/apis/language_v1/gem_version.rb +3 -3
- data/lib/google/apis/language_v1/representations.rb +45 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc9281608a2c1245ceaae009dd8c7c7220c216eb5efeb37f07c66ac6aa89b9d6
|
4
|
+
data.tar.gz: 50464e1171e5595dd64769bd3dda7604476aaa4271e4ebfcc6051d2ba5d1cee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 536b3b9856d48a2a4bb002cc79ee4b3079523bee80fdacc17cdbc0702d8369e2520a879a5361ec6db65041d35edd72c501daa66d0f344625dd041a68719c2629
|
7
|
+
data.tar.gz: c72330e4cde7db764c969b1042738ffefae35949c6ae633ba33061a76e8c113c8154949cab52532ba35cfd9e37a0b052aff53613b31235a3d10d6f798da787d6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-language_v1
|
2
2
|
|
3
|
+
### v0.15.0 (2022-11-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221015
|
6
|
+
* Regenerated using generator version 0.11.0
|
7
|
+
|
8
|
+
### v0.14.0 (2022-09-20)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220916
|
11
|
+
* Regenerated using generator version 0.10.0
|
12
|
+
|
3
13
|
### v0.13.0 (2022-09-18)
|
4
14
|
|
5
15
|
* Regenerated using generator version 0.9.0
|
@@ -26,8 +26,7 @@ module Google
|
|
26
26
|
class AnalyzeEntitiesRequest
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
#
|
30
|
-
# the input to API methods.
|
29
|
+
# Represents the input to API methods.
|
31
30
|
# Corresponds to the JSON property `document`
|
32
31
|
# @return [Google::Apis::LanguageV1::Document]
|
33
32
|
attr_accessor :document
|
@@ -79,8 +78,7 @@ module Google
|
|
79
78
|
class AnalyzeEntitySentimentRequest
|
80
79
|
include Google::Apis::Core::Hashable
|
81
80
|
|
82
|
-
#
|
83
|
-
# the input to API methods.
|
81
|
+
# Represents the input to API methods.
|
84
82
|
# Corresponds to the JSON property `document`
|
85
83
|
# @return [Google::Apis::LanguageV1::Document]
|
86
84
|
attr_accessor :document
|
@@ -132,8 +130,7 @@ module Google
|
|
132
130
|
class AnalyzeSentimentRequest
|
133
131
|
include Google::Apis::Core::Hashable
|
134
132
|
|
135
|
-
#
|
136
|
-
# the input to API methods.
|
133
|
+
# Represents the input to API methods.
|
137
134
|
# Corresponds to the JSON property `document`
|
138
135
|
# @return [Google::Apis::LanguageV1::Document]
|
139
136
|
attr_accessor :document
|
@@ -191,8 +188,7 @@ module Google
|
|
191
188
|
class AnalyzeSyntaxRequest
|
192
189
|
include Google::Apis::Core::Hashable
|
193
190
|
|
194
|
-
#
|
195
|
-
# the input to API methods.
|
191
|
+
# Represents the input to API methods.
|
196
192
|
# Corresponds to the JSON property `document`
|
197
193
|
# @return [Google::Apis::LanguageV1::Document]
|
198
194
|
attr_accessor :document
|
@@ -251,8 +247,7 @@ module Google
|
|
251
247
|
class AnnotateTextRequest
|
252
248
|
include Google::Apis::Core::Hashable
|
253
249
|
|
254
|
-
#
|
255
|
-
# the input to API methods.
|
250
|
+
# Represents the input to API methods.
|
256
251
|
# Corresponds to the JSON property `document`
|
257
252
|
# @return [Google::Apis::LanguageV1::Document]
|
258
253
|
attr_accessor :document
|
@@ -361,12 +356,41 @@ module Google
|
|
361
356
|
end
|
362
357
|
end
|
363
358
|
|
359
|
+
# Model options available for classification requests.
|
360
|
+
class ClassificationModelOptions
|
361
|
+
include Google::Apis::Core::Hashable
|
362
|
+
|
363
|
+
# Options for the V1 model.
|
364
|
+
# Corresponds to the JSON property `v1Model`
|
365
|
+
# @return [Google::Apis::LanguageV1::V1Model]
|
366
|
+
attr_accessor :v1_model
|
367
|
+
|
368
|
+
# Options for the V2 model.
|
369
|
+
# Corresponds to the JSON property `v2Model`
|
370
|
+
# @return [Google::Apis::LanguageV1::V2Model]
|
371
|
+
attr_accessor :v2_model
|
372
|
+
|
373
|
+
def initialize(**args)
|
374
|
+
update!(**args)
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update properties of this object
|
378
|
+
def update!(**args)
|
379
|
+
@v1_model = args[:v1_model] if args.key?(:v1_model)
|
380
|
+
@v2_model = args[:v2_model] if args.key?(:v2_model)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
364
384
|
# The document classification request message.
|
365
385
|
class ClassifyTextRequest
|
366
386
|
include Google::Apis::Core::Hashable
|
367
387
|
|
368
|
-
#
|
369
|
-
# the
|
388
|
+
# Model options available for classification requests.
|
389
|
+
# Corresponds to the JSON property `classificationModelOptions`
|
390
|
+
# @return [Google::Apis::LanguageV1::ClassificationModelOptions]
|
391
|
+
attr_accessor :classification_model_options
|
392
|
+
|
393
|
+
# Represents the input to API methods.
|
370
394
|
# Corresponds to the JSON property `document`
|
371
395
|
# @return [Google::Apis::LanguageV1::Document]
|
372
396
|
attr_accessor :document
|
@@ -377,6 +401,7 @@ module Google
|
|
377
401
|
|
378
402
|
# Update properties of this object
|
379
403
|
def update!(**args)
|
404
|
+
@classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
|
380
405
|
@document = args[:document] if args.key?(:document)
|
381
406
|
end
|
382
407
|
end
|
@@ -429,8 +454,7 @@ module Google
|
|
429
454
|
end
|
430
455
|
end
|
431
456
|
|
432
|
-
#
|
433
|
-
# the input to API methods.
|
457
|
+
# Represents the input to API methods.
|
434
458
|
class Document
|
435
459
|
include Google::Apis::Core::Hashable
|
436
460
|
|
@@ -572,6 +596,11 @@ module Google
|
|
572
596
|
class Features
|
573
597
|
include Google::Apis::Core::Hashable
|
574
598
|
|
599
|
+
# Model options available for classification requests.
|
600
|
+
# Corresponds to the JSON property `classificationModelOptions`
|
601
|
+
# @return [Google::Apis::LanguageV1::ClassificationModelOptions]
|
602
|
+
attr_accessor :classification_model_options
|
603
|
+
|
575
604
|
# Classify the full document into categories.
|
576
605
|
# Corresponds to the JSON property `classifyText`
|
577
606
|
# @return [Boolean]
|
@@ -608,6 +637,7 @@ module Google
|
|
608
637
|
|
609
638
|
# Update properties of this object
|
610
639
|
def update!(**args)
|
640
|
+
@classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
|
611
641
|
@classify_text = args[:classify_text] if args.key?(:classify_text)
|
612
642
|
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
613
643
|
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
@@ -856,6 +886,38 @@ module Google
|
|
856
886
|
@text = args[:text] if args.key?(:text)
|
857
887
|
end
|
858
888
|
end
|
889
|
+
|
890
|
+
# Options for the V1 model.
|
891
|
+
class V1Model
|
892
|
+
include Google::Apis::Core::Hashable
|
893
|
+
|
894
|
+
def initialize(**args)
|
895
|
+
update!(**args)
|
896
|
+
end
|
897
|
+
|
898
|
+
# Update properties of this object
|
899
|
+
def update!(**args)
|
900
|
+
end
|
901
|
+
end
|
902
|
+
|
903
|
+
# Options for the V2 model.
|
904
|
+
class V2Model
|
905
|
+
include Google::Apis::Core::Hashable
|
906
|
+
|
907
|
+
# The content categories used for classification.
|
908
|
+
# Corresponds to the JSON property `contentCategoriesVersion`
|
909
|
+
# @return [String]
|
910
|
+
attr_accessor :content_categories_version
|
911
|
+
|
912
|
+
def initialize(**args)
|
913
|
+
update!(**args)
|
914
|
+
end
|
915
|
+
|
916
|
+
# Update properties of this object
|
917
|
+
def update!(**args)
|
918
|
+
@content_categories_version = args[:content_categories_version] if args.key?(:content_categories_version)
|
919
|
+
end
|
920
|
+
end
|
859
921
|
end
|
860
922
|
end
|
861
923
|
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.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221015"
|
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.15.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-
|
11
|
+
date: 2022-12-12 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.1
|
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.1
|
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.15.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: []
|