Skip to content

Commit d744f3a

Browse files
feat: Automated regeneration of Dialogflow client (googleapis#12859)
Auto-created at 2025-01-23 13:17:32 +0000 using the toys pull request generator.
1 parent 10a36d2 commit d744f3a

9 files changed

+73
-7
lines changed

clients/dialogflow/lib/google_api/dialogflow/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Dialogflow.V2 do
2020
API client metadata for GoogleApi.Dialogflow.V2.
2121
"""
2222

23-
@discovery_revision "20250103"
23+
@discovery_revision "20250121"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_data_store_connection.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3DataStoreConnec
2323
2424
* `dataStore` (*type:* `String.t`, *default:* `nil`) - The full name of the referenced data store. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` `projects/{project}/locations/{location}/dataStores/{data_store}`
2525
* `dataStoreType` (*type:* `String.t`, *default:* `nil`) - The type of the connected data store.
26+
* `documentProcessingMode` (*type:* `String.t`, *default:* `nil`) - The document processing mode for the data store connection. Should only be set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is considered as DOCUMENTS, as this is the legacy mode.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:dataStore => String.t() | nil,
32-
:dataStoreType => String.t() | nil
33+
:dataStoreType => String.t() | nil,
34+
:documentProcessingMode => String.t() | nil
3335
}
3436

3537
field(:dataStore)
3638
field(:dataStoreType)
39+
field(:documentProcessingMode)
3740
end
3841

3942
defimpl Poison.Decoder,

clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_data_store_connection.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1DataStoreC
2323
2424
* `dataStore` (*type:* `String.t`, *default:* `nil`) - The full name of the referenced data store. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` `projects/{project}/locations/{location}/dataStores/{data_store}`
2525
* `dataStoreType` (*type:* `String.t`, *default:* `nil`) - The type of the connected data store.
26+
* `documentProcessingMode` (*type:* `String.t`, *default:* `nil`) - The document processing mode for the data store connection. Should only be set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is considered as DOCUMENTS, as this is the legacy mode.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:dataStore => String.t() | nil,
32-
:dataStoreType => String.t() | nil
33+
:dataStoreType => String.t() | nil,
34+
:documentProcessingMode => String.t() | nil
3335
}
3436

3537
field(:dataStore)
3638
field(:dataStoreType)
39+
field(:documentProcessingMode)
3740
end
3841

3942
defimpl Poison.Decoder,

clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_analyze_content_request.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AnalyzeContentReq
2222
## Attributes
2323
2424
* `assistQueryParams` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AssistQueryParameters.t`, *default:* `nil`) - Parameters for a human assist query.
25+
* `audioInput` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput.t`, *default:* `nil`) - The natural language speech audio to be processed.
2526
* `cxParameters` (*type:* `map()`, *default:* `nil`) - Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null. Note: this field should only be used if you are connecting to a Dialogflow CX agent.
2627
* `eventInput` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2EventInput.t`, *default:* `nil`) - An input event to send to Dialogflow.
2728
* `queryParams` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryParameters.t`, *default:* `nil`) - Parameters for a Dialogflow virtual-agent query.
@@ -36,6 +37,8 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AnalyzeContentReq
3637
@type t :: %__MODULE__{
3738
:assistQueryParams =>
3839
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AssistQueryParameters.t() | nil,
40+
:audioInput =>
41+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput.t() | nil,
3942
:cxParameters => map() | nil,
4043
:eventInput =>
4144
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2EventInput.t() | nil,
@@ -53,6 +56,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AnalyzeContentReq
5356
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AssistQueryParameters
5457
)
5558

59+
field(:audioInput, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput)
5660
field(:cxParameters, type: :map)
5761
field(:eventInput, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2EventInput)
5862
field(:queryParams, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryParameters)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput do
19+
@moduledoc """
20+
Represents the natural language speech audio to be processed.
21+
22+
## Attributes
23+
24+
* `audio` (*type:* `String.t`, *default:* `nil`) - Required. The natural language speech audio to be processed. A single request can contain up to 2 minutes of speech audio data. The transcribed text cannot contain more than 256 bytes for virtual agent interactions.
25+
* `config` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2InputAudioConfig.t`, *default:* `nil`) - Required. Instructs the speech recognizer how to process the speech audio.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:audio => String.t() | nil,
32+
:config =>
33+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2InputAudioConfig.t() | nil
34+
}
35+
36+
field(:audio)
37+
field(:config, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2InputAudioConfig)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput do
41+
def decode(value, options) do
42+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2AudioInput do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end

clients/dialogflow/lib/google_api/dialogflow/v3/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Dialogflow.V3 do
2020
API client metadata for GoogleApi.Dialogflow.V3.
2121
"""
2222

23-
@discovery_revision "20250103"
23+
@discovery_revision "20250121"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_data_store_connection.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnec
2323
2424
* `dataStore` (*type:* `String.t`, *default:* `nil`) - The full name of the referenced data store. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` `projects/{project}/locations/{location}/dataStores/{data_store}`
2525
* `dataStoreType` (*type:* `String.t`, *default:* `nil`) - The type of the connected data store.
26+
* `documentProcessingMode` (*type:* `String.t`, *default:* `nil`) - The document processing mode for the data store connection. Should only be set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is considered as DOCUMENTS, as this is the legacy mode.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:dataStore => String.t() | nil,
32-
:dataStoreType => String.t() | nil
33+
:dataStoreType => String.t() | nil,
34+
:documentProcessingMode => String.t() | nil
3335
}
3436

3537
field(:dataStore)
3638
field(:dataStoreType)
39+
field(:documentProcessingMode)
3740
end
3841

3942
defimpl Poison.Decoder,

clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_query_result.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3QueryResult do
2424
* `advancedSettings` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3AdvancedSettings.t`, *default:* `nil`) - Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.
2525
* `allowAnswerFeedback` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget.
2626
* `currentPage` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Page.t`, *default:* `nil`) - The current Page. Some, not all fields are filled in this message, including but not limited to `name` and `display_name`.
27-
* `dataStoreConnectionSignals` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals.t`, *default:* `nil`) - Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate_data_store_connection_signals is set to true in the request.
27+
* `dataStoreConnectionSignals` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DataStoreConnectionSignals.t`, *default:* `nil`) - Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query.
2828
* `diagnosticInfo` (*type:* `map()`, *default:* `nil`) - The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure. One of the fields is called "Alternative Matched Intents", which may aid with debugging. The following describes these intent results: - The list is empty if no intent was matched to end-user input. - Only intents that are referenced in the currently active flow are included. - The matched intent is included. - Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), are included. - Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.
2929
* `dtmf` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3DtmfInput.t`, *default:* `nil`) - If a DTMF was provided as input, this field will contain a copy of the DtmfInput.
3030
* `intent` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Intent.t`, *default:* `nil`) - The Intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name` and `display_name`. This field is deprecated, please use QueryResult.match instead.

clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3beta1_data_store_connection.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3beta1DataStoreC
2323
2424
* `dataStore` (*type:* `String.t`, *default:* `nil`) - The full name of the referenced data store. Formats: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` `projects/{project}/locations/{location}/dataStores/{data_store}`
2525
* `dataStoreType` (*type:* `String.t`, *default:* `nil`) - The type of the connected data store.
26+
* `documentProcessingMode` (*type:* `String.t`, *default:* `nil`) - The document processing mode for the data store connection. Should only be set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is considered as DOCUMENTS, as this is the legacy mode.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:dataStore => String.t() | nil,
32-
:dataStoreType => String.t() | nil
33+
:dataStoreType => String.t() | nil,
34+
:documentProcessingMode => String.t() | nil
3335
}
3436

3537
field(:dataStore)
3638
field(:dataStoreType)
39+
field(:documentProcessingMode)
3740
end
3841

3942
defimpl Poison.Decoder,

0 commit comments

Comments
 (0)