Skip to content

Commit a9a41bb

Browse files
feat: Automated regeneration of speech v1p1beta1 client (#17456)
1 parent 9801afe commit a9a41bb

File tree

7 files changed

+22
-5
lines changed

7 files changed

+22
-5
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294871,6 +294871,7 @@
294871294871
"/speech:v1p1beta1/RecognizeResponse/results/result": result
294872294872
"/speech:v1p1beta1/RecognizeResponse/speechAdaptationInfo": speech_adaptation_info
294873294873
"/speech:v1p1beta1/RecognizeResponse/totalBilledTime": total_billed_time
294874+
"/speech:v1p1beta1/RecognizeResponse/usingLegacyModels": using_legacy_models
294874294875
"/speech:v1p1beta1/RefreshDataRequest": refresh_data_request
294875294876
"/speech:v1p1beta1/RefreshDataRequest/uri": uri
294876294877
"/speech:v1p1beta1/SpeakerDiarizationConfig": speaker_diarization_config

generated/google-apis-speech_v1p1beta1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-speech_v1p1beta1
22

3+
### v0.40.0 (2024-01-23)
4+
5+
* Regenerated from discovery document revision 20240108
6+
* Regenerated using generator version 0.13.0
7+
38
### v0.39.0 (2023-09-10)
49

510
* Regenerated from discovery document revision 20230901

generated/google-apis-speech_v1p1beta1/google-apis-speech_v1p1beta1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
2929
gem.require_paths = ["lib"]
3030

3131
gem.required_ruby_version = '>= 2.5'
32-
gem.add_runtime_dependency "google-apis-core", ">= 0.11.0", "< 2.a"
32+
gem.add_runtime_dependency "google-apis-core", ">= 0.12.0", "< 2.a"
3333
end

generated/google-apis-speech_v1p1beta1/lib/google/apis/speech_v1p1beta1/classes.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,13 @@ class RecognizeResponse
11321132
# @return [String]
11331133
attr_accessor :total_billed_time
11341134

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+
11351142
def initialize(**args)
11361143
update!(**args)
11371144
end
@@ -1142,6 +1149,7 @@ def update!(**args)
11421149
@results = args[:results] if args.key?(:results)
11431150
@speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
11441151
@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)
11451153
end
11461154
end
11471155

generated/google-apis-speech_v1p1beta1/lib/google/apis/speech_v1p1beta1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module SpeechV1p1beta1
1818
# Version of the google-apis-speech_v1p1beta1 gem
19-
GEM_VERSION = "0.39.0"
19+
GEM_VERSION = "0.40.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.12.0"
22+
GENERATOR_VERSION = "0.13.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230901"
25+
REVISION = "20240108"
2626
end
2727
end
2828
end

generated/google-apis-speech_v1p1beta1/lib/google/apis/speech_v1p1beta1/representations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
457457
property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1p1beta1::SpeechAdaptationInfo::Representation
458458

459459
property :total_billed_time, as: 'totalBilledTime'
460+
property :using_legacy_models, as: 'usingLegacyModels'
460461
end
461462
end
462463

generated/google-apis-speech_v1p1beta1/lib/google/apis/speech_v1p1beta1/service.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ module SpeechV1p1beta1
3232
#
3333
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
3434
class SpeechService < Google::Apis::Core::BaseService
35+
DEFAULT_ENDPOINT_TEMPLATE = "https://speech.$UNIVERSE_DOMAIN$/"
36+
3537
# @return [String]
3638
# API key. Your API key identifies your project and provides you with API access,
3739
# quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ class SpeechService < Google::Apis::Core::BaseService
4345
attr_accessor :quota_user
4446

4547
def initialize
46-
super('https://speech.googleapis.com/', '',
48+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
4749
client_name: 'google-apis-speech_v1p1beta1',
4850
client_version: Google::Apis::SpeechV1p1beta1::GEM_VERSION)
4951
@batch_path = 'batch'

0 commit comments

Comments
 (0)