google-apis-language_v1beta2 0.12.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: 90a39971bebb973d20980cd405b4769fce823d936a7f5f18c511571c767d779d
4
- data.tar.gz: fcce1ac9637452c53b49cbfb5809cea4a671d932791b7f3f9d8a8fa857dbcaf4
3
+ metadata.gz: 386ddb35811dc966efc2e848173e3158c52243309942c75dab0bb87f06456ead
4
+ data.tar.gz: 589efbb4df53076df5a4ed632cedf729bda6ec0f80ed6524c0774c9055bafc4e
5
5
  SHA512:
6
- metadata.gz: 0a30084a8ecc77f11ea309017a5b866a5341553c7100041e08dca74691be5d94cf5e6595f254c5195c2e2c9780df14a39adb64607ff48b7039fab59ab5234b27
7
- data.tar.gz: 47a19226552ad8441be91f4f9de5ea7ea126defd65e118072cb32adaf032b8527254c54edc5211227dd1255a92f11e43ed4141e34164aeb253e812af7f04ac25
6
+ metadata.gz: cacdc7abdeb0768961e996a718d75a9a933564e96b9719987df39da10f5321499432114db73ce36a71bfa428d4adf4d1f10e858aee44dd8ee4141a3dd4faecb5
7
+ data.tar.gz: 3c2a4989f9f36620c876937a43018f801e9b937c283637f873f84a6d2c9dfe79f9e39a15ad30d695102851c1adbddbeace0ffff20cce3b6a638c9aabcc9fab25
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-language_v1beta2
2
2
 
3
+ ### v0.14.0 (2022-09-21)
4
+
5
+ * Regenerated from discovery document revision 20220916
6
+ * Regenerated using generator version 0.10.0
7
+
8
+ ### v0.13.0 (2022-08-03)
9
+
10
+ * Regenerated from discovery document revision 20220801
11
+ * Regenerated using generator version 0.9.0
12
+
3
13
  ### v0.12.0 (2022-07-02)
4
14
 
5
15
  * Regenerated using generator version 0.8.0
@@ -265,7 +265,7 @@ module Google
265
265
  attr_accessor :encoding_type
266
266
 
267
267
  # All available features for sentiment, syntax, and semantic analysis. Setting
268
- # each one to true will enable that specific analysis for the input. Next ID: 10
268
+ # each one to true will enable that specific analysis for the input. Next ID: 11
269
269
  # Corresponds to the JSON property `features`
270
270
  # @return [Google::Apis::LanguageV1beta2::Features]
271
271
  attr_accessor :features
@@ -364,10 +364,40 @@ module Google
364
364
  end
365
365
  end
366
366
 
367
+ # Model options available for classification requests.
368
+ class ClassificationModelOptions
369
+ include Google::Apis::Core::Hashable
370
+
371
+ # Options for the V1 model.
372
+ # Corresponds to the JSON property `v1Model`
373
+ # @return [Google::Apis::LanguageV1beta2::V1Model]
374
+ attr_accessor :v1_model
375
+
376
+ # Options for the V2 model.
377
+ # Corresponds to the JSON property `v2Model`
378
+ # @return [Google::Apis::LanguageV1beta2::V2Model]
379
+ attr_accessor :v2_model
380
+
381
+ def initialize(**args)
382
+ update!(**args)
383
+ end
384
+
385
+ # Update properties of this object
386
+ def update!(**args)
387
+ @v1_model = args[:v1_model] if args.key?(:v1_model)
388
+ @v2_model = args[:v2_model] if args.key?(:v2_model)
389
+ end
390
+ end
391
+
367
392
  # The document classification request message.
368
393
  class ClassifyTextRequest
369
394
  include Google::Apis::Core::Hashable
370
395
 
396
+ # Model options available for classification requests.
397
+ # Corresponds to the JSON property `classificationModelOptions`
398
+ # @return [Google::Apis::LanguageV1beta2::ClassificationModelOptions]
399
+ attr_accessor :classification_model_options
400
+
371
401
  # ################################################################ # Represents
372
402
  # the input to API methods.
373
403
  # Corresponds to the JSON property `document`
@@ -380,6 +410,7 @@ module Google
380
410
 
381
411
  # Update properties of this object
382
412
  def update!(**args)
413
+ @classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
383
414
  @document = args[:document] if args.key?(:document)
384
415
  end
385
416
  end
@@ -587,10 +618,15 @@ module Google
587
618
  end
588
619
 
589
620
  # All available features for sentiment, syntax, and semantic analysis. Setting
590
- # each one to true will enable that specific analysis for the input. Next ID: 10
621
+ # each one to true will enable that specific analysis for the input. Next ID: 11
591
622
  class Features
592
623
  include Google::Apis::Core::Hashable
593
624
 
625
+ # Model options available for classification requests.
626
+ # Corresponds to the JSON property `classificationModelOptions`
627
+ # @return [Google::Apis::LanguageV1beta2::ClassificationModelOptions]
628
+ attr_accessor :classification_model_options
629
+
594
630
  # Classify the full document into categories. If this is true, the API will use
595
631
  # the default model which classifies into a [predefined taxonomy](https://cloud.
596
632
  # google.com/natural-language/docs/categories).
@@ -629,6 +665,7 @@ module Google
629
665
 
630
666
  # Update properties of this object
631
667
  def update!(**args)
668
+ @classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
632
669
  @classify_text = args[:classify_text] if args.key?(:classify_text)
633
670
  @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
634
671
  @extract_entities = args[:extract_entities] if args.key?(:extract_entities)
@@ -876,6 +913,38 @@ module Google
876
913
  @text = args[:text] if args.key?(:text)
877
914
  end
878
915
  end
916
+
917
+ # Options for the V1 model.
918
+ class V1Model
919
+ include Google::Apis::Core::Hashable
920
+
921
+ def initialize(**args)
922
+ update!(**args)
923
+ end
924
+
925
+ # Update properties of this object
926
+ def update!(**args)
927
+ end
928
+ end
929
+
930
+ # Options for the V2 model.
931
+ class V2Model
932
+ include Google::Apis::Core::Hashable
933
+
934
+ # The content categories used for classification.
935
+ # Corresponds to the JSON property `contentCategoriesVersion`
936
+ # @return [String]
937
+ attr_accessor :content_categories_version
938
+
939
+ def initialize(**args)
940
+ update!(**args)
941
+ end
942
+
943
+ # Update properties of this object
944
+ def update!(**args)
945
+ @content_categories_version = args[:content_categories_version] if args.key?(:content_categories_version)
946
+ end
947
+ end
879
948
  end
880
949
  end
881
950
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module LanguageV1beta2
18
18
  # Version of the google-apis-language_v1beta2 gem
19
- GEM_VERSION = "0.12.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.8.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210807"
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::LanguageV1beta2::V1Model, decorator: Google::Apis::LanguageV1beta2::V1Model::Representation
303
+
304
+ property :v2_model, as: 'v2Model', class: Google::Apis::LanguageV1beta2::V2Model, decorator: Google::Apis::LanguageV1beta2::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::LanguageV1beta2::ClassificationModelOptions, decorator: Google::Apis::LanguageV1beta2::ClassificationModelOptions::Representation
313
+
284
314
  property :document, as: 'document', class: Google::Apis::LanguageV1beta2::Document, decorator: Google::Apis::LanguageV1beta2::Document::Representation
285
315
 
286
316
  end
@@ -342,6 +372,8 @@ module Google
342
372
  class Features
343
373
  # @private
344
374
  class Representation < Google::Apis::Core::JsonRepresentation
375
+ property :classification_model_options, as: 'classificationModelOptions', class: Google::Apis::LanguageV1beta2::ClassificationModelOptions, decorator: Google::Apis::LanguageV1beta2::ClassificationModelOptions::Representation
376
+
345
377
  property :classify_text, as: 'classifyText'
346
378
  property :extract_document_sentiment, as: 'extractDocumentSentiment'
347
379
  property :extract_entities, as: 'extractEntities'
@@ -415,6 +447,19 @@ module Google
415
447
 
416
448
  end
417
449
  end
450
+
451
+ class V1Model
452
+ # @private
453
+ class Representation < Google::Apis::Core::JsonRepresentation
454
+ end
455
+ end
456
+
457
+ class V2Model
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ property :content_categories_version, as: 'contentCategoriesVersion'
461
+ end
462
+ end
418
463
  end
419
464
  end
420
465
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-language_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.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-07-04 00:00:00.000000000 Z
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.7'
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.7'
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_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-language_v1beta2/v0.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-language_v1beta2/v0.14.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-language_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []