Skip to content

Commit

Permalink
feat: Automated regeneration of dialogflow v2beta1 client (#19764)
Browse files Browse the repository at this point in the history
Auto-created at 2024-06-26 22:29:52 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jun 26, 2024
1 parent 2002a7c commit d044bfa
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 14 deletions.
6 changes: 6 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168564,7 +168564,13 @@
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechContext/phrases": phrases
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechContext/phrases/phrase": phrase
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig": google_cloud_dialogflow_v2beta1_speech_to_text_config
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/alternativeLanguageCodes": alternative_language_codes
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/alternativeLanguageCodes/alternative_language_code": alternative_language_code
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/audioEncoding": audio_encoding
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/enableWordInfo": enable_word_info
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/languageCode": language_code
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/model": model
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/sampleRateHertz": sample_rate_hertz
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/speechModelVariant": speech_model_variant
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechToTextConfig/useTimeoutBasedEndpointing": use_timeout_based_endpointing
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest": google_cloud_dialogflow_v2beta1_streaming_analyze_content_request
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-dialogflow_v2beta1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-dialogflow_v2beta1

### v0.90.0 (2024-06-26)

* Regenerated from discovery document revision 20240617

### v0.89.0 (2024-06-23)

* Regenerated from discovery document revision 20240614
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3051,18 +3051,16 @@ class GoogleCloudDialogflowCxV3TestConfig

# Flow name to start the test case with. Format: `projects//locations//agents//
# flows/`. Only one of `flow` and `page` should be set to indicate the starting
# point of the test case. If both are set, `page` takes precedence over `flow`.
# If neither is set, the test case will start with start page on the default
# start flow.
# point of the test case. If neither is set, the test case will start with start
# page on the default start flow.
# Corresponds to the JSON property `flow`
# @return [String]
attr_accessor :flow

# The page to start the test case with. Format: `projects//locations//agents//
# flows//pages/`. Only one of `flow` and `page` should be set to indicate the
# starting point of the test case. If both are set, `page` takes precedence over
# `flow`. If neither is set, the test case will start with start page on the
# default start flow.
# starting point of the test case. If neither is set, the test case will start
# with start page on the default start flow.
# Corresponds to the JSON property `page`
# @return [String]
attr_accessor :page
Expand Down Expand Up @@ -6903,18 +6901,16 @@ class GoogleCloudDialogflowCxV3beta1TestConfig

# Flow name to start the test case with. Format: `projects//locations//agents//
# flows/`. Only one of `flow` and `page` should be set to indicate the starting
# point of the test case. If both are set, `page` takes precedence over `flow`.
# If neither is set, the test case will start with start page on the default
# start flow.
# point of the test case. If neither is set, the test case will start with start
# page on the default start flow.
# Corresponds to the JSON property `flow`
# @return [String]
attr_accessor :flow

# The page to start the test case with. Format: `projects//locations//agents//
# flows//pages/`. Only one of `flow` and `page` should be set to indicate the
# starting point of the test case. If both are set, `page` takes precedence over
# `flow`. If neither is set, the test case will start with start page on the
# default start flow.
# starting point of the test case. If neither is set, the test case will start
# with start page on the default start flow.
# Corresponds to the JSON property `page`
# @return [String]
attr_accessor :page
Expand Down Expand Up @@ -18757,6 +18753,37 @@ def update!(**args)
class GoogleCloudDialogflowV2beta1SpeechToTextConfig
include Google::Apis::Core::Hashable

# Defines the list of other language codes in addition to the one provided by
# the conversation profile that may be detected as the language code for the
# utterances over the conversation. See [Language Support](https://cloud.google.
# com/dialogflow/docs/reference/language) for a list of the currently supported
# language codes.
# Corresponds to the JSON property `alternativeLanguageCodes`
# @return [Array<String>]
attr_accessor :alternative_language_codes

# Audio encoding of the audio content to process.
# Corresponds to the JSON property `audioEncoding`
# @return [String]
attr_accessor :audio_encoding

# If `true`, Dialogflow returns SpeechWordInfo in StreamingRecognitionResult
# with information about the recognized speech words, e.g. start and end time
# offsets. If false or unspecified, Speech doesn't return any word-level
# information.
# Corresponds to the JSON property `enableWordInfo`
# @return [Boolean]
attr_accessor :enable_word_info
alias_method :enable_word_info?, :enable_word_info

# The language of the supplied audio. Dialogflow does not do translations. See [
# Language Support](https://cloud.google.com/dialogflow/docs/reference/language)
# for a list of the currently supported language codes. Note that queries in the
# same session do not necessarily need to specify the same language.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code

# Which Speech model to select. Select the model best suited to your domain to
# get best results. If a model is not explicitly specified, then Dialogflow auto-
# selects a model based on other parameters in the SpeechToTextConfig and Agent
Expand All @@ -18774,6 +18801,13 @@ class GoogleCloudDialogflowV2beta1SpeechToTextConfig
# @return [String]
attr_accessor :model

# Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud
# Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics)
# for more details.
# Corresponds to the JSON property `sampleRateHertz`
# @return [Fixnum]
attr_accessor :sample_rate_hertz

# The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `
# USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in
# AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced
Expand All @@ -18796,7 +18830,12 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@alternative_language_codes = args[:alternative_language_codes] if args.key?(:alternative_language_codes)
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
@enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
@language_code = args[:language_code] if args.key?(:language_code)
@model = args[:model] if args.key?(:model)
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
@speech_model_variant = args[:speech_model_variant] if args.key?(:speech_model_variant)
@use_timeout_based_endpointing = args[:use_timeout_based_endpointing] if args.key?(:use_timeout_based_endpointing)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module DialogflowV2beta1
# Version of the google-apis-dialogflow_v2beta1 gem
GEM_VERSION = "0.89.0"
GEM_VERSION = "0.90.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240614"
REVISION = "20240617"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -8508,7 +8508,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
class GoogleCloudDialogflowV2beta1SpeechToTextConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :alternative_language_codes, as: 'alternativeLanguageCodes'
property :audio_encoding, as: 'audioEncoding'
property :enable_word_info, as: 'enableWordInfo'
property :language_code, as: 'languageCode'
property :model, as: 'model'
property :sample_rate_hertz, as: 'sampleRateHertz'
property :speech_model_variant, as: 'speechModelVariant'
property :use_timeout_based_endpointing, as: 'useTimeoutBasedEndpointing'
end
Expand Down

0 comments on commit d044bfa

Please sign in to comment.