google-apis-language_v2 0.6.0 → 0.8.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: 121e9e895b755e29662dd504e44fe5b7011086e65ce8c6a9d71f54da432dff90
4
- data.tar.gz: 8f8f97b998f071a90509d4471b9cbdfd58fa9e091f7778bdb4ad83861960f426
3
+ metadata.gz: 7ee495f3722160241ad2963a5b07bae6d1d3f996617c932bcb4cfb46f785a3f6
4
+ data.tar.gz: 5f76f2a19b3f65c96ef00c3f813293ba077850e407a57c349577dff04c215548
5
5
  SHA512:
6
- metadata.gz: d99f62fafdcc47ff16dbdb7eb86832b923e7d6d572713055ad30849c03218205737afdc8f8204ff02297a531d6b4fa79790d5b8836917164c61b645618c3343f
7
- data.tar.gz: c2940f2889b50e2698ac1ce1001e4c3765956e8828411036f7c8654ea8620f4d404905a5f2498be7e715d503f2b3d033d0e80dbb5fba153c7dcee6ea2d7ab98d
6
+ metadata.gz: 8bffdfc889ee8074144a6162c9399ecb67da02eccbedd2db1d01e93bb7f657ce664c1324f9b3a6be114ab2ed9e413edb82661f8735ae77bd52ac4d47d539ba04
7
+ data.tar.gz: 69d578634191a1892b5aa6d5d54936436e6a2cc2cf509f6082dcf322659802c84dd968649939bfdd9a2a7071518869c66cbc367454c79eafde882966d43d151c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-language_v2
2
2
 
3
+ ### v0.8.0 (2024-11-10)
4
+
5
+ * Regenerated from discovery document revision 20241103
6
+
7
+ ### v0.7.0 (2024-10-06)
8
+
9
+ * Regenerated from discovery document revision 20240929
10
+ * Regenerated using generator version 0.15.1
11
+
3
12
  ### v0.6.0 (2024-05-19)
4
13
 
5
14
  * Regenerated from discovery document revision 20240303
@@ -301,6 +301,13 @@ module Google
301
301
  # @return [String]
302
302
  attr_accessor :name
303
303
 
304
+ # Optional. The classifier's severity of the category. This is only present when
305
+ # the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the
306
+ # corresponding category has a severity score.
307
+ # Corresponds to the JSON property `severity`
308
+ # @return [Float]
309
+ attr_accessor :severity
310
+
304
311
  def initialize(**args)
305
312
  update!(**args)
306
313
  end
@@ -309,6 +316,7 @@ module Google
309
316
  def update!(**args)
310
317
  @confidence = args[:confidence] if args.key?(:confidence)
311
318
  @name = args[:name] if args.key?(:name)
319
+ @severity = args[:severity] if args.key?(:severity)
312
320
  end
313
321
  end
314
322
 
@@ -698,7 +706,7 @@ module Google
698
706
  end
699
707
  end
700
708
 
701
- # Infra Usage of billing metrics. Next ID: 6
709
+ # Infra Usage of billing metrics.
702
710
  class InfraUsage
703
711
  include Google::Apis::Core::Hashable
704
712
 
@@ -750,6 +758,11 @@ module Google
750
758
  # @return [Google::Apis::LanguageV2::Document]
751
759
  attr_accessor :document
752
760
 
761
+ # Optional. The model version to use for ModerateText.
762
+ # Corresponds to the JSON property `modelVersion`
763
+ # @return [String]
764
+ attr_accessor :model_version
765
+
753
766
  def initialize(**args)
754
767
  update!(**args)
755
768
  end
@@ -757,6 +770,7 @@ module Google
757
770
  # Update properties of this object
758
771
  def update!(**args)
759
772
  @document = args[:document] if args.key?(:document)
773
+ @model_version = args[:model_version] if args.key?(:model_version)
760
774
  end
761
775
  end
762
776
 
@@ -871,7 +885,7 @@ module Google
871
885
  class Sentiment
872
886
  include Google::Apis::Core::Hashable
873
887
 
874
- # A non-negative number in the [0, +inf) range, which represents the absolute
888
+ # A non-negative number in the [0, +inf] range, which represents the absolute
875
889
  # magnitude of sentiment regardless of score (positive or negative).
876
890
  # Corresponds to the JSON property `magnitude`
877
891
  # @return [Float]
@@ -1350,8 +1364,7 @@ module Google
1350
1364
  # @return [String]
1351
1365
  attr_accessor :display_name
1352
1366
 
1353
- # =========================================================================== #
1354
- # The fields below are used exclusively for Forecasting.
1367
+ #
1355
1368
  # Corresponds to the JSON property `forecastingMetadata`
1356
1369
  # @return [Google::Apis::LanguageV2::XpsColumnSpecForecastingMetadata]
1357
1370
  attr_accessor :forecasting_metadata
@@ -1404,8 +1417,7 @@ module Google
1404
1417
  end
1405
1418
  end
1406
1419
 
1407
- # =========================================================================== #
1408
- # The fields below are used exclusively for Forecasting.
1420
+ #
1409
1421
  class XpsColumnSpecForecastingMetadata
1410
1422
  include Google::Apis::Core::Hashable
1411
1423
 
@@ -2003,7 +2015,8 @@ module Google
2003
2015
  # @return [Array<Google::Apis::LanguageV2::XpsEvaluationMetrics>]
2004
2016
  attr_accessor :evaluation_metrics
2005
2017
 
2006
- # Spec of input and output files, on external file systems (CNS, GCS, etc).
2018
+ # Spec of input and output files, on external file systems (for example,
2019
+ # Colossus Namespace System or Google Cloud Storage).
2007
2020
  # Corresponds to the JSON property `fileSpec`
2008
2021
  # @return [Google::Apis::LanguageV2::XpsFileSpec]
2009
2022
  attr_accessor :file_spec
@@ -2029,7 +2042,8 @@ module Google
2029
2042
  class XpsExampleSet
2030
2043
  include Google::Apis::Core::Hashable
2031
2044
 
2032
- # Spec of input and output files, on external file systems (CNS, GCS, etc).
2045
+ # Spec of input and output files, on external file systems (for example,
2046
+ # Colossus Namespace System or Google Cloud Storage).
2033
2047
  # Corresponds to the JSON property `fileSpec`
2034
2048
  # @return [Google::Apis::LanguageV2::XpsFileSpec]
2035
2049
  attr_accessor :file_spec
@@ -2090,14 +2104,14 @@ module Google
2090
2104
  attr_accessor :export_firebase_auxiliary_info
2091
2105
  alias_method :export_firebase_auxiliary_info?, :export_firebase_auxiliary_info
2092
2106
 
2093
- # The Google Contained Registry (GCR) path the exported files to be pushed to.
2094
- # This location is set if the exported format is DOCKDER.
2107
+ # The Google Contained Registry path the exported files to be pushed to. This
2108
+ # location is set if the exported format is DOCKDER.
2095
2109
  # Corresponds to the JSON property `outputGcrUri`
2096
2110
  # @return [String]
2097
2111
  attr_accessor :output_gcr_uri
2098
2112
 
2099
- # The Google Cloud Storage (GCS) directory where XPS will output the exported
2100
- # models and related files. Format: gs://bucket/directory
2113
+ # The Google Cloud Storage directory where XPS will output the exported models
2114
+ # and related files. Format: gs://bucket/directory
2101
2115
  # Corresponds to the JSON property `outputGcsUri`
2102
2116
  # @return [String]
2103
2117
  attr_accessor :output_gcs_uri
@@ -2137,7 +2151,8 @@ module Google
2137
2151
  end
2138
2152
  end
2139
2153
 
2140
- # Spec of input and output files, on external file systems (CNS, GCS, etc).
2154
+ # Spec of input and output files, on external file systems (for example,
2155
+ # Colossus Namespace System or Google Cloud Storage).
2141
2156
  class XpsFileSpec
2142
2157
  include Google::Apis::Core::Hashable
2143
2158
 
@@ -2334,8 +2349,8 @@ module Google
2334
2349
  include Google::Apis::Core::Hashable
2335
2350
 
2336
2351
  # Contains the model format and internal location of the model files to be
2337
- # exported/downloaded. Use the GCS bucket name which is provided via
2338
- # TrainRequest.gcs_bucket_name to store the model files.
2352
+ # exported/downloaded. Use the Google Cloud Storage bucket name which is
2353
+ # provided via TrainRequest.gcs_bucket_name to store the model files.
2339
2354
  # Corresponds to the JSON property `exportModelOutputConfig`
2340
2355
  # @return [Array<Google::Apis::LanguageV2::XpsExportModelOutputConfig>]
2341
2356
  attr_accessor :export_model_output_config
@@ -2365,7 +2380,7 @@ module Google
2365
2380
  # @return [Array<Google::Apis::LanguageV2::XpsModelArtifactItem>]
2366
2381
  attr_accessor :export_artifact
2367
2382
 
2368
- # GCS uri of decoded labels file for model export 'dict.txt'.
2383
+ # Google Cloud Storage URI of decoded labels file for model export 'dict.txt'.
2369
2384
  # Corresponds to the JSON property `labelGcsUri`
2370
2385
  # @return [String]
2371
2386
  attr_accessor :label_gcs_uri
@@ -2375,13 +2390,13 @@ module Google
2375
2390
  # @return [Google::Apis::LanguageV2::XpsModelArtifactItem]
2376
2391
  attr_accessor :serving_artifact
2377
2392
 
2378
- # GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin'
2379
- # Deprecated.
2393
+ # Google Cloud Storage URI prefix of Tensorflow JavaScript binary files 'groupX-
2394
+ # shardXofX.bin'. Deprecated.
2380
2395
  # Corresponds to the JSON property `tfJsBinaryGcsPrefix`
2381
2396
  # @return [String]
2382
2397
  attr_accessor :tf_js_binary_gcs_prefix
2383
2398
 
2384
- # GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'.
2399
+ # Google Cloud Storage URI of Tensorflow Lite metadata 'tflite_metadata.json'.
2385
2400
  # Corresponds to the JSON property `tfLiteMetadataGcsUri`
2386
2401
  # @return [String]
2387
2402
  attr_accessor :tf_lite_metadata_gcs_uri
@@ -2796,7 +2811,7 @@ module Google
2796
2811
  # @return [String]
2797
2812
  attr_accessor :artifact_format
2798
2813
 
2799
- # The Google Cloud Storage (GCS) uri that stores the model binary files.
2814
+ # The Google Cloud Storage URI that stores the model binary files.
2800
2815
  # Corresponds to the JSON property `gcsUri`
2801
2816
  # @return [String]
2802
2817
  attr_accessor :gcs_uri
@@ -2812,7 +2827,7 @@ module Google
2812
2827
  end
2813
2828
  end
2814
2829
 
2815
- # Next ID: 8
2830
+ #
2816
2831
  class XpsPreprocessResponse
2817
2832
  include Google::Apis::Core::Hashable
2818
2833
 
@@ -3056,7 +3071,7 @@ module Google
3056
3071
  end
3057
3072
 
3058
3073
  # Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is
3059
- # deprecated, see b/288407203 for context.
3074
+ # deprecated.
3060
3075
  class XpsResponseExplanationSpec
3061
3076
  include Google::Apis::Core::Hashable
3062
3077
 
@@ -3666,7 +3681,7 @@ module Google
3666
3681
  end
3667
3682
  end
3668
3683
 
3669
- # Metadata for a dataset used for AutoML Tables. Next ID: 6
3684
+ # Metadata for a dataset used for AutoML Tables.
3670
3685
  class XpsTablesDatasetMetadata
3671
3686
  include Google::Apis::Core::Hashable
3672
3687
 
@@ -3847,7 +3862,7 @@ module Google
3847
3862
  class XpsTablesPreprocessResponse
3848
3863
  include Google::Apis::Core::Hashable
3849
3864
 
3850
- # Metadata for a dataset used for AutoML Tables. Next ID: 6
3865
+ # Metadata for a dataset used for AutoML Tables.
3851
3866
  # Corresponds to the JSON property `tablesDatasetMetadata`
3852
3867
  # @return [Google::Apis::LanguageV2::XpsTablesDatasetMetadata]
3853
3868
  attr_accessor :tables_dataset_metadata
@@ -4006,7 +4021,7 @@ module Google
4006
4021
  end
4007
4022
  end
4008
4023
 
4009
- # Component model. Next ID: 10
4024
+ # Component model.
4010
4025
  class XpsTextComponentModel
4011
4026
  include Google::Apis::Core::Hashable
4012
4027
 
@@ -4402,7 +4417,7 @@ module Google
4402
4417
  end
4403
4418
  end
4404
4419
 
4405
- # Next ID: 18
4420
+ #
4406
4421
  class XpsTrainResponse
4407
4422
  include Google::Apis::Core::Hashable
4408
4423
 
@@ -4827,8 +4842,8 @@ module Google
4827
4842
  include Google::Apis::Core::Hashable
4828
4843
 
4829
4844
  # Contains the model format and internal location of the model files to be
4830
- # exported/downloaded. Use the GCS bucket name which is provided via
4831
- # TrainRequest.gcs_bucket_name to store the model files.
4845
+ # exported/downloaded. Use the Google Cloud Storage bucket name which is
4846
+ # provided via TrainRequest.gcs_bucket_name to store the model files.
4832
4847
  # Corresponds to the JSON property `exportModelOutputConfig`
4833
4848
  # @return [Array<Google::Apis::LanguageV2::XpsExportModelOutputConfig>]
4834
4849
  attr_accessor :export_model_output_config
@@ -5030,7 +5045,7 @@ module Google
5030
5045
  class XpsVisionTrainingOperationMetadata
5031
5046
  include Google::Apis::Core::Hashable
5032
5047
 
5033
- # Infra Usage of billing metrics. Next ID: 6
5048
+ # Infra Usage of billing metrics.
5034
5049
  # Corresponds to the JSON property `explanationUsage`
5035
5050
  # @return [Google::Apis::LanguageV2::InfraUsage]
5036
5051
  attr_accessor :explanation_usage
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module LanguageV2
18
18
  # Version of the google-apis-language_v2 gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240303"
25
+ REVISION = "20241103"
26
26
  end
27
27
  end
28
28
  end
@@ -934,6 +934,7 @@ module Google
934
934
  class Representation < Google::Apis::Core::JsonRepresentation
935
935
  property :confidence, as: 'confidence'
936
936
  property :name, as: 'name'
937
+ property :severity, as: 'severity'
937
938
  end
938
939
  end
939
940
 
@@ -1050,6 +1051,7 @@ module Google
1050
1051
  class Representation < Google::Apis::Core::JsonRepresentation
1051
1052
  property :document, as: 'document', class: Google::Apis::LanguageV2::Document, decorator: Google::Apis::LanguageV2::Document::Representation
1052
1053
 
1054
+ property :model_version, as: 'modelVersion'
1053
1055
  end
1054
1056
  end
1055
1057
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-language_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.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: 2024-05-26 00:00:00.000000000 Z
11
+ date: 2024-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-language_v2/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-language_v2/v0.8.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-language_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Natural Language API V2