Skip to content

Commit aaf3ec2

Browse files
feat: Automated regeneration of Dialogflow client (#13253)
Auto-created at 2025-03-27 13:24:51 +0000 using the toys pull request generator.
1 parent 76641ca commit aaf3ec2

File tree

37 files changed

+1261
-6
lines changed

37 files changed

+1261
-6
lines changed

clients/dialogflow/lib/google_api/dialogflow/v2/api/projects.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9734,6 +9734,7 @@ defmodule GoogleApi.Dialogflow.V2.Api.Projects do
97349734
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
97359735
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
97369736
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
9737+
* `:extraLocationTypes` (*type:* `list(String.t)`) - Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
97379738
* `:filter` (*type:* `String.t`) - A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
97389739
* `:pageSize` (*type:* `integer()`) - The maximum number of results to return. If not set, the service selects a default.
97399740
* `:pageToken` (*type:* `String.t`) - A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
@@ -9762,6 +9763,7 @@ defmodule GoogleApi.Dialogflow.V2.Api.Projects do
97629763
:quotaUser => :query,
97639764
:uploadType => :query,
97649765
:upload_protocol => :query,
9766+
:extraLocationTypes => :query,
97659767
:filter => :query,
97669768
:pageSize => :query,
97679769
:pageToken => :query

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 "20250310"
23+
@discovery_revision "20250325"
2424

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW
2828
* `password` (*type:* `String.t`, *default:* `nil`) - The password for HTTP Basic authentication.
2929
* `requestBody` (*type:* `String.t`, *default:* `nil`) - Optional. Defines a custom JSON object as request body to send to flexible webhook.
3030
* `requestHeaders` (*type:* `map()`, *default:* `nil`) - The HTTP request headers to send together with webhook requests.
31+
* `secretVersionForUsernamePassword` (*type:* `String.t`, *default:* `nil`) - Optional. The SecretManager secret version resource storing the username:password pair for HTTP Basic authentication. Format: `projects/{project}/secrets/{secret}/versions/{version}`
32+
* `secretVersionsForRequestHeaders` (*type:* `%{optional(String.t) => GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue.t}`, *default:* `nil`) - Optional. The HTTP request headers to send together with webhook requests. Header values are stored in SecretManager secret versions. When the same header name is specified in both `request_headers` and `secret_versions_for_request_headers`, the value in `secret_versions_for_request_headers` will be used.
3133
* `serviceAgentAuth` (*type:* `String.t`, *default:* `nil`) - Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header.
3234
* `uri` (*type:* `String.t`, *default:* `nil`) - Required. The webhook URI for receiving POST requests. It must use https protocol.
3335
* `username` (*type:* `String.t`, *default:* `nil`) - The user name for HTTP Basic authentication.
@@ -46,6 +48,13 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW
4648
:password => String.t() | nil,
4749
:requestBody => String.t() | nil,
4850
:requestHeaders => map() | nil,
51+
:secretVersionForUsernamePassword => String.t() | nil,
52+
:secretVersionsForRequestHeaders =>
53+
%{
54+
optional(String.t()) =>
55+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue.t()
56+
}
57+
| nil,
4958
:serviceAgentAuth => String.t() | nil,
5059
:uri => String.t() | nil,
5160
:username => String.t() | nil,
@@ -63,6 +72,14 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW
6372
field(:password)
6473
field(:requestBody)
6574
field(:requestHeaders, type: :map)
75+
field(:secretVersionForUsernamePassword)
76+
77+
field(:secretVersionsForRequestHeaders,
78+
as:
79+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue,
80+
type: :map
81+
)
82+
6683
field(:serviceAgentAuth)
6784
field(:uri)
6885
field(:username)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW
2424
* `clientId` (*type:* `String.t`, *default:* `nil`) - Required. The client ID provided by the 3rd party platform.
2525
* `clientSecret` (*type:* `String.t`, *default:* `nil`) - Optional. The client secret provided by the 3rd party platform.
2626
* `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The OAuth scopes to grant.
27+
* `secretVersionForClientSecret` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the `client_secret` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}`
2728
* `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - Required. The token endpoint provided by the 3rd party platform to exchange an access token.
2829
"""
2930

@@ -33,12 +34,14 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericW
3334
:clientId => String.t() | nil,
3435
:clientSecret => String.t() | nil,
3536
:scopes => list(String.t()) | nil,
37+
:secretVersionForClientSecret => String.t() | nil,
3638
:tokenEndpoint => String.t() | nil
3739
}
3840

3941
field(:clientId)
4042
field(:clientSecret)
4143
field(:scopes, type: :list)
44+
field(:secretVersionForClientSecret)
4245
field(:tokenEndpoint)
4346
end
4447

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue do
19+
@moduledoc """
20+
Represents the value of an HTTP header stored in a SecretManager secret version.
21+
22+
## Attributes
23+
24+
* `secretVersion` (*type:* `String.t`, *default:* `nil`) - Required. The SecretManager secret version resource storing the header value. Format: `projects/{project}/secrets/{secret}/versions/{version}`
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:secretVersion => String.t() | nil
31+
}
32+
33+
field(:secretVersion)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for:
38+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue do
39+
def decode(value, options) do
40+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue.decode(
41+
value,
42+
options
43+
)
44+
end
45+
end
46+
47+
defimpl Poison.Encoder,
48+
for:
49+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
end

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen
2828
* `password` (*type:* `String.t`, *default:* `nil`) - The password for HTTP Basic authentication.
2929
* `requestBody` (*type:* `String.t`, *default:* `nil`) - Optional. Defines a custom JSON object as request body to send to flexible webhook.
3030
* `requestHeaders` (*type:* `map()`, *default:* `nil`) - The HTTP request headers to send together with webhook requests.
31+
* `secretVersionForUsernamePassword` (*type:* `String.t`, *default:* `nil`) - Optional. The SecretManager secret version resource storing the username:password pair for HTTP Basic authentication. Format: `projects/{project}/secrets/{secret}/versions/{version}`
32+
* `secretVersionsForRequestHeaders` (*type:* `%{optional(String.t) => GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue.t}`, *default:* `nil`) - Optional. The HTTP request headers to send together with webhook requests. Header values are stored in SecretManager secret versions. When the same header name is specified in both `request_headers` and `secret_versions_for_request_headers`, the value in `secret_versions_for_request_headers` will be used.
3133
* `serviceAgentAuth` (*type:* `String.t`, *default:* `nil`) - Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header.
3234
* `uri` (*type:* `String.t`, *default:* `nil`) - Required. The webhook URI for receiving POST requests. It must use https protocol.
3335
* `username` (*type:* `String.t`, *default:* `nil`) - The user name for HTTP Basic authentication.
@@ -46,6 +48,13 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen
4648
:password => String.t() | nil,
4749
:requestBody => String.t() | nil,
4850
:requestHeaders => map() | nil,
51+
:secretVersionForUsernamePassword => String.t() | nil,
52+
:secretVersionsForRequestHeaders =>
53+
%{
54+
optional(String.t()) =>
55+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue.t()
56+
}
57+
| nil,
4958
:serviceAgentAuth => String.t() | nil,
5059
:uri => String.t() | nil,
5160
:username => String.t() | nil,
@@ -64,6 +73,14 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen
6473
field(:password)
6574
field(:requestBody)
6675
field(:requestHeaders, type: :map)
76+
field(:secretVersionForUsernamePassword)
77+
78+
field(:secretVersionsForRequestHeaders,
79+
as:
80+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue,
81+
type: :map
82+
)
83+
6784
field(:serviceAgentAuth)
6885
field(:uri)
6986
field(:username)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen
2424
* `clientId` (*type:* `String.t`, *default:* `nil`) - Required. The client ID provided by the 3rd party platform.
2525
* `clientSecret` (*type:* `String.t`, *default:* `nil`) - Optional. The client secret provided by the 3rd party platform.
2626
* `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The OAuth scopes to grant.
27+
* `secretVersionForClientSecret` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the `client_secret` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}`
2728
* `tokenEndpoint` (*type:* `String.t`, *default:* `nil`) - Required. The token endpoint provided by the 3rd party platform to exchange an access token.
2829
"""
2930

@@ -33,12 +34,14 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGen
3334
:clientId => String.t() | nil,
3435
:clientSecret => String.t() | nil,
3536
:scopes => list(String.t()) | nil,
37+
:secretVersionForClientSecret => String.t() | nil,
3638
:tokenEndpoint => String.t() | nil
3739
}
3840

3941
field(:clientId)
4042
field(:clientSecret)
4143
field(:scopes, type: :list)
44+
field(:secretVersionForClientSecret)
4245
field(:tokenEndpoint)
4346
end
4447

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue do
19+
@moduledoc """
20+
Represents the value of an HTTP header stored in a SecretManager secret version.
21+
22+
## Attributes
23+
24+
* `secretVersion` (*type:* `String.t`, *default:* `nil`) - Required. The SecretManager secret version resource storing the header value. Format: `projects/{project}/secrets/{secret}/versions/{version}`
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:secretVersion => String.t() | nil
31+
}
32+
33+
field(:secretVersion)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for:
38+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue do
39+
def decode(value, options) do
40+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue.decode(
41+
value,
42+
options
43+
)
44+
end
45+
end
46+
47+
defimpl Poison.Encoder,
48+
for:
49+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Generator do
2828
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource name of the generator. Format: `projects//locations//generators/`
2929
* `publishedModel` (*type:* `String.t`, *default:* `nil`) - Optional. The published Large Language Model name. * To use the latest model version, specify the model name without version number. Example: `text-bison` * To use a stable model version, specify the version number as well. Example: `text-bison@002`.
3030
* `summarizationContext` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarizationContext.t`, *default:* `nil`) - Input of prebuilt Summarization feature.
31+
* `tools` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Resource names of the tools that the generator can choose from. Format: `projects//locations//tools/`.
3132
* `triggerEvent` (*type:* `String.t`, *default:* `nil`) - Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
3233
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Update time of this generator.
3334
"""
@@ -45,6 +46,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Generator do
4546
:publishedModel => String.t() | nil,
4647
:summarizationContext =>
4748
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarizationContext.t() | nil,
49+
:tools => list(String.t()) | nil,
4850
:triggerEvent => String.t() | nil,
4951
:updateTime => DateTime.t() | nil
5052
}
@@ -65,6 +67,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Generator do
6567
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarizationContext
6668
)
6769

70+
field(:tools, type: :list)
6871
field(:triggerEvent)
6972
field(:updateTime, as: DateTime)
7073
end

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggesti
2323
2424
* `freeFormSuggestion` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2FreeFormSuggestion.t`, *default:* `nil`) - Optional. Free form suggestion.
2525
* `summarySuggestion` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarySuggestion.t`, *default:* `nil`) - Optional. Suggested summary.
26+
* `toolCallInfo` (*type:* `list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo.t)`, *default:* `nil`) - Optional. List of request and response for tool calls executed.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
@@ -31,7 +32,12 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggesti
3132
:freeFormSuggestion =>
3233
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2FreeFormSuggestion.t() | nil,
3334
:summarySuggestion =>
34-
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarySuggestion.t() | nil
35+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarySuggestion.t() | nil,
36+
:toolCallInfo =>
37+
list(
38+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo.t()
39+
)
40+
| nil
3541
}
3642

3743
field(:freeFormSuggestion,
@@ -41,6 +47,11 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggesti
4147
field(:summarySuggestion,
4248
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SummarySuggestion
4349
)
50+
51+
field(:toolCallInfo,
52+
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo,
53+
type: :list
54+
)
4455
end
4556

4657
defimpl Poison.Decoder,

0 commit comments

Comments
 (0)