google-apis-speech_v1p1beta1 0.38.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff57d8b9e5bfa5ea6b723528b88b65fb47bcec0ebf21ed5bcbf04d34b9556806
4
- data.tar.gz: 880920b9dd3e03f16428a8c74d54f716e2c5025355ea0ae56fc8dc0f69e61a13
3
+ metadata.gz: ea79a5c26a078544ba809d365920a91e277ad07579e83ed17896a384ac857418
4
+ data.tar.gz: b9198a7073ed406a9940b3dd335d26a850bf37440ebe1f06eafd1da16066213a
5
5
  SHA512:
6
- metadata.gz: 637610039d277736df464dee15be6d00621eef3992de35c6e567e297059ac21b9e3348127b96edb348a57f0851b95ea8e5bfc2721c3c8093bd7270baef7156be
7
- data.tar.gz: faba737d63319a58e863884191cccf56f84be3c8a94773a6d4ada79a4a3180d0b0c85abb76b84054d47e60af6130dccc6ecd78dd2449a5dd53db3893069b24e7
6
+ metadata.gz: 0c7729255bbd0abf63edc7cf22f16b36afb22a16d0d22bdc845fedc20d6c2593cc3e52a204318f0055a0270292b6d519e8ed7393ca962a5d3359539bfa9fe824
7
+ data.tar.gz: a84ae739206cd2983bfaa4c1b769434986d560ff5348dce5a7326bacc38dec0f8d1ac4546fde923a34d2572b87d80b4e01b7f994af2575e817d1cc101c17c9f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-speech_v1p1beta1
2
2
 
3
+ ### v0.40.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240108
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.39.0 (2023-09-10)
9
+
10
+ * Regenerated from discovery document revision 20230901
11
+
3
12
  ### v0.38.0 (2023-08-13)
4
13
 
5
14
  * Regenerated from discovery document revision 20230804
@@ -126,12 +126,45 @@ module Google
126
126
  class CustomClass
127
127
  include Google::Apis::Core::Hashable
128
128
 
129
+ # Output only. Allows users to store small amounts of arbitrary data. Both the
130
+ # key and the value must be 63 characters or less each. At most 100 annotations.
131
+ # This field is not used.
132
+ # Corresponds to the JSON property `annotations`
133
+ # @return [Hash<String,String>]
134
+ attr_accessor :annotations
135
+
129
136
  # If this custom class is a resource, the custom_class_id is the resource id of
130
137
  # the CustomClass. Case sensitive.
131
138
  # Corresponds to the JSON property `customClassId`
132
139
  # @return [String]
133
140
  attr_accessor :custom_class_id
134
141
 
142
+ # Output only. The time at which this resource was requested for deletion. This
143
+ # field is not used.
144
+ # Corresponds to the JSON property `deleteTime`
145
+ # @return [String]
146
+ attr_accessor :delete_time
147
+
148
+ # Output only. User-settable, human-readable name for the CustomClass. Must be
149
+ # 63 characters or less. This field is not used.
150
+ # Corresponds to the JSON property `displayName`
151
+ # @return [String]
152
+ attr_accessor :display_name
153
+
154
+ # Output only. This checksum is computed by the server based on the value of
155
+ # other fields. This may be sent on update, undelete, and delete requests to
156
+ # ensure the client has an up-to-date value before proceeding. This field is not
157
+ # used.
158
+ # Corresponds to the JSON property `etag`
159
+ # @return [String]
160
+ attr_accessor :etag
161
+
162
+ # Output only. The time at which this resource will be purged. This field is not
163
+ # used.
164
+ # Corresponds to the JSON property `expireTime`
165
+ # @return [String]
166
+ attr_accessor :expire_time
167
+
135
168
  # A collection of class items.
136
169
  # Corresponds to the JSON property `items`
137
170
  # @return [Array<Google::Apis::SpeechV1p1beta1::ClassItem>]
@@ -159,17 +192,43 @@ module Google
159
192
  # @return [String]
160
193
  attr_accessor :name
161
194
 
195
+ # Output only. Whether or not this CustomClass is in the process of being
196
+ # updated. This field is not used.
197
+ # Corresponds to the JSON property `reconciling`
198
+ # @return [Boolean]
199
+ attr_accessor :reconciling
200
+ alias_method :reconciling?, :reconciling
201
+
202
+ # Output only. The CustomClass lifecycle state. This field is not used.
203
+ # Corresponds to the JSON property `state`
204
+ # @return [String]
205
+ attr_accessor :state
206
+
207
+ # Output only. System-assigned unique identifier for the CustomClass. This field
208
+ # is not used.
209
+ # Corresponds to the JSON property `uid`
210
+ # @return [String]
211
+ attr_accessor :uid
212
+
162
213
  def initialize(**args)
163
214
  update!(**args)
164
215
  end
165
216
 
166
217
  # Update properties of this object
167
218
  def update!(**args)
219
+ @annotations = args[:annotations] if args.key?(:annotations)
168
220
  @custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id)
221
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
222
+ @display_name = args[:display_name] if args.key?(:display_name)
223
+ @etag = args[:etag] if args.key?(:etag)
224
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
169
225
  @items = args[:items] if args.key?(:items)
170
226
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
171
227
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
172
228
  @name = args[:name] if args.key?(:name)
229
+ @reconciling = args[:reconciling] if args.key?(:reconciling)
230
+ @state = args[:state] if args.key?(:state)
231
+ @uid = args[:uid] if args.key?(:uid)
173
232
  end
174
233
  end
175
234
 
@@ -559,6 +618,13 @@ module Google
559
618
  class PhraseSet
560
619
  include Google::Apis::Core::Hashable
561
620
 
621
+ # Output only. Allows users to store small amounts of arbitrary data. Both the
622
+ # key and the value must be 63 characters or less each. At most 100 annotations.
623
+ # This field is not used.
624
+ # Corresponds to the JSON property `annotations`
625
+ # @return [Hash<String,String>]
626
+ attr_accessor :annotations
627
+
562
628
  # Hint Boost. Positive value will increase the probability that a specific
563
629
  # phrase will be recognized over other similar sounding phrases. The higher the
564
630
  # boost, the higher the chance of false positive recognition as well. Negative
@@ -572,6 +638,32 @@ module Google
572
638
  # @return [Float]
573
639
  attr_accessor :boost
574
640
 
641
+ # Output only. The time at which this resource was requested for deletion. This
642
+ # field is not used.
643
+ # Corresponds to the JSON property `deleteTime`
644
+ # @return [String]
645
+ attr_accessor :delete_time
646
+
647
+ # Output only. User-settable, human-readable name for the PhraseSet. Must be 63
648
+ # characters or less. This field is not used.
649
+ # Corresponds to the JSON property `displayName`
650
+ # @return [String]
651
+ attr_accessor :display_name
652
+
653
+ # Output only. This checksum is computed by the server based on the value of
654
+ # other fields. This may be sent on update, undelete, and delete requests to
655
+ # ensure the client has an up-to-date value before proceeding. This field is not
656
+ # used.
657
+ # Corresponds to the JSON property `etag`
658
+ # @return [String]
659
+ attr_accessor :etag
660
+
661
+ # Output only. The time at which this resource will be purged. This field is not
662
+ # used.
663
+ # Corresponds to the JSON property `expireTime`
664
+ # @return [String]
665
+ attr_accessor :expire_time
666
+
575
667
  # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-
576
668
  # hierarchy#keys) with which the content of the PhraseSet is encrypted. The
577
669
  # expected format is `projects/`project`/locations/`location`/keyRings/`key_ring`
@@ -599,17 +691,43 @@ module Google
599
691
  # @return [Array<Google::Apis::SpeechV1p1beta1::Phrase>]
600
692
  attr_accessor :phrases
601
693
 
694
+ # Output only. Whether or not this PhraseSet is in the process of being updated.
695
+ # This field is not used.
696
+ # Corresponds to the JSON property `reconciling`
697
+ # @return [Boolean]
698
+ attr_accessor :reconciling
699
+ alias_method :reconciling?, :reconciling
700
+
701
+ # Output only. The CustomClass lifecycle state. This field is not used.
702
+ # Corresponds to the JSON property `state`
703
+ # @return [String]
704
+ attr_accessor :state
705
+
706
+ # Output only. System-assigned unique identifier for the PhraseSet. This field
707
+ # is not used.
708
+ # Corresponds to the JSON property `uid`
709
+ # @return [String]
710
+ attr_accessor :uid
711
+
602
712
  def initialize(**args)
603
713
  update!(**args)
604
714
  end
605
715
 
606
716
  # Update properties of this object
607
717
  def update!(**args)
718
+ @annotations = args[:annotations] if args.key?(:annotations)
608
719
  @boost = args[:boost] if args.key?(:boost)
720
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
721
+ @display_name = args[:display_name] if args.key?(:display_name)
722
+ @etag = args[:etag] if args.key?(:etag)
723
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
609
724
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
610
725
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
611
726
  @name = args[:name] if args.key?(:name)
612
727
  @phrases = args[:phrases] if args.key?(:phrases)
728
+ @reconciling = args[:reconciling] if args.key?(:reconciling)
729
+ @state = args[:state] if args.key?(:state)
730
+ @uid = args[:uid] if args.key?(:uid)
613
731
  end
614
732
  end
615
733
 
@@ -1014,6 +1132,13 @@ module Google
1014
1132
  # @return [String]
1015
1133
  attr_accessor :total_billed_time
1016
1134
 
1135
+ # Whether request used legacy asr models (was not automatically migrated to use
1136
+ # conformer models).
1137
+ # Corresponds to the JSON property `usingLegacyModels`
1138
+ # @return [Boolean]
1139
+ attr_accessor :using_legacy_models
1140
+ alias_method :using_legacy_models?, :using_legacy_models
1141
+
1017
1142
  def initialize(**args)
1018
1143
  update!(**args)
1019
1144
  end
@@ -1024,6 +1149,7 @@ module Google
1024
1149
  @results = args[:results] if args.key?(:results)
1025
1150
  @speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
1026
1151
  @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
1152
+ @using_legacy_models = args[:using_legacy_models] if args.key?(:using_legacy_models)
1027
1153
  end
1028
1154
  end
1029
1155
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpeechV1p1beta1
18
18
  # Version of the google-apis-speech_v1p1beta1 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230804"
25
+ REVISION = "20240108"
26
26
  end
27
27
  end
28
28
  end
@@ -243,12 +243,20 @@ module Google
243
243
  class CustomClass
244
244
  # @private
245
245
  class Representation < Google::Apis::Core::JsonRepresentation
246
+ hash :annotations, as: 'annotations'
246
247
  property :custom_class_id, as: 'customClassId'
248
+ property :delete_time, as: 'deleteTime'
249
+ property :display_name, as: 'displayName'
250
+ property :etag, as: 'etag'
251
+ property :expire_time, as: 'expireTime'
247
252
  collection :items, as: 'items', class: Google::Apis::SpeechV1p1beta1::ClassItem, decorator: Google::Apis::SpeechV1p1beta1::ClassItem::Representation
248
253
 
249
254
  property :kms_key_name, as: 'kmsKeyName'
250
255
  property :kms_key_version_name, as: 'kmsKeyVersionName'
251
256
  property :name, as: 'name'
257
+ property :reconciling, as: 'reconciling'
258
+ property :state, as: 'state'
259
+ property :uid, as: 'uid'
252
260
  end
253
261
  end
254
262
 
@@ -357,12 +365,20 @@ module Google
357
365
  class PhraseSet
358
366
  # @private
359
367
  class Representation < Google::Apis::Core::JsonRepresentation
368
+ hash :annotations, as: 'annotations'
360
369
  property :boost, as: 'boost'
370
+ property :delete_time, as: 'deleteTime'
371
+ property :display_name, as: 'displayName'
372
+ property :etag, as: 'etag'
373
+ property :expire_time, as: 'expireTime'
361
374
  property :kms_key_name, as: 'kmsKeyName'
362
375
  property :kms_key_version_name, as: 'kmsKeyVersionName'
363
376
  property :name, as: 'name'
364
377
  collection :phrases, as: 'phrases', class: Google::Apis::SpeechV1p1beta1::Phrase, decorator: Google::Apis::SpeechV1p1beta1::Phrase::Representation
365
378
 
379
+ property :reconciling, as: 'reconciling'
380
+ property :state, as: 'state'
381
+ property :uid, as: 'uid'
366
382
  end
367
383
  end
368
384
 
@@ -441,6 +457,7 @@ module Google
441
457
  property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo::Representation
442
458
 
443
459
  property :total_billed_time, as: 'totalBilledTime'
460
+ property :using_legacy_models, as: 'usingLegacyModels'
444
461
  end
445
462
  end
446
463
 
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
34
34
  class SpeechService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://speech.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://speech.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-speech_v1p1beta1',
48
50
  client_version: Google::Apis::SpeechV1p1beta1::GEM_VERSION)
49
51
  @batch_path = 'batch'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-speech_v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.40.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: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2024-01-23 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.11.0
19
+ version: 0.12.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.11.0
29
+ version: 0.12.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-speech_v1p1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.40.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1p1beta1
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.4.2
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Speech-to-Text API V1p1beta1