Skip to content

Commit ca20885

Browse files
feat: Automated regeneration of Dialogflow client (#12800)
Auto-created at 2025-01-10 13:16:13 +0000 using the toys pull request generator.
1 parent c673483 commit ca20885

8 files changed

+211
-3
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 "20241216"
23+
@discovery_revision "20250103"
2424

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

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Conversation do
2828
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The unique identifier of this conversation. Format: `projects//locations//conversations/`.
2929
* `phoneNumber` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationPhoneNumber.t`, *default:* `nil`) - Output only. It will not be empty if the conversation is to be connected over telephony.
3030
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the conversation was started.
31+
* `telephonyConnectionInfo` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo.t`, *default:* `nil`) - Output only. The telephony connection information.
3132
"""
3233

3334
use GoogleApi.Gax.ModelBase
@@ -40,7 +41,10 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Conversation do
4041
:name => String.t() | nil,
4142
:phoneNumber =>
4243
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationPhoneNumber.t() | nil,
43-
:startTime => DateTime.t() | nil
44+
:startTime => DateTime.t() | nil,
45+
:telephonyConnectionInfo =>
46+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo.t()
47+
| nil
4448
}
4549

4650
field(:conversationProfile)
@@ -54,6 +58,10 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Conversation do
5458
)
5559

5660
field(:startTime, as: DateTime)
61+
62+
field(:telephonyConnectionInfo,
63+
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo
64+
)
5765
end
5866

5967
defimpl Poison.Decoder, for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Conversation do

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationPhone
2121
2222
## Attributes
2323
24+
* `countryCode` (*type:* `integer()`, *default:* `nil`) - Output only. Desired country code for the phone number.
2425
* `phoneNumber` (*type:* `String.t`, *default:* `nil`) - Output only. The phone number to connect to this conversation.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
31+
:countryCode => integer() | nil,
3032
:phoneNumber => String.t() | nil
3133
}
3234

35+
field(:countryCode)
3336
field(:phoneNumber)
3437
end
3538

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo do
19+
@moduledoc """
20+
The information about phone calls connected via phone gateway to the conversation.
21+
22+
## Attributes
23+
24+
* `dialedNumber` (*type:* `String.t`, *default:* `nil`) - Output only. The number dialed to connect this call in E.164 format.
25+
* `extraMimeContents` (*type:* `list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent.t)`, *default:* `nil`) - Output only. The mime content from the initial SIP INVITE.
26+
* `sdp` (*type:* `String.t`, *default:* `nil`) - Optional. SDP of the call. It's initially the SDP answer to the endpoint, but maybe later updated for the purpose of making the link active, etc.
27+
* `sipHeaders` (*type:* `list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader.t)`, *default:* `nil`) - Output only. The SIP headers from the initial SIP INVITE.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:dialedNumber => String.t() | nil,
34+
:extraMimeContents =>
35+
list(
36+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent.t()
37+
)
38+
| nil,
39+
:sdp => String.t() | nil,
40+
:sipHeaders =>
41+
list(
42+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader.t()
43+
)
44+
| nil
45+
}
46+
47+
field(:dialedNumber)
48+
49+
field(:extraMimeContents,
50+
as:
51+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent,
52+
type: :list
53+
)
54+
55+
field(:sdp)
56+
57+
field(:sipHeaders,
58+
as:
59+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader,
60+
type: :list
61+
)
62+
end
63+
64+
defimpl Poison.Decoder,
65+
for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo do
66+
def decode(value, options) do
67+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo.decode(
68+
value,
69+
options
70+
)
71+
end
72+
end
73+
74+
defimpl Poison.Encoder,
75+
for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo do
76+
def encode(value, options) do
77+
GoogleApi.Gax.ModelBase.encode(value, options)
78+
end
79+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent do
19+
@moduledoc """
20+
The mime content from the initial SIP INVITE.
21+
22+
## Attributes
23+
24+
* `content` (*type:* `String.t`, *default:* `nil`) - Optional. The content payload.
25+
* `mimeType` (*type:* `String.t`, *default:* `nil`) - Optional. The mime type of the content.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:content => String.t() | nil,
32+
:mimeType => String.t() | nil
33+
}
34+
35+
field(:content)
36+
field(:mimeType)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent do
42+
def decode(value, options) do
43+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader do
19+
@moduledoc """
20+
The SIP headers from the initial SIP INVITE.
21+
22+
## Attributes
23+
24+
* `name` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the header.
25+
* `value` (*type:* `String.t`, *default:* `nil`) - Optional. The value of the header.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:name => String.t() | nil,
32+
:value => String.t() | nil
33+
}
34+
35+
field(:name)
36+
field(:value)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader do
42+
def decode(value, options) do
43+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
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 "20241216"
23+
@discovery_revision "20250103"
2424

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Agent do
3636
* `locked` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for RestoreAgent.
3737
* `name` (*type:* `String.t`, *default:* `nil`) - The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
3838
* `personalizationSettings` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3AgentPersonalizationSettings.t`, *default:* `nil`) - Optional. Settings for end user personalization.
39+
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Optional. Output only. A read only boolean field reflecting Zone Isolation status of the agent.
40+
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Optional. Output only. A read only boolean field reflecting Zone Separation status of the agent.
3941
* `securitySettings` (*type:* `String.t`, *default:* `nil`) - Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
4042
* `speechToTextSettings` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SpeechToTextSettings.t`, *default:* `nil`) - Speech recognition related settings.
4143
* `startFlow` (*type:* `String.t`, *default:* `nil`) - Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.
@@ -73,6 +75,8 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Agent do
7375
:personalizationSettings =>
7476
GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3AgentPersonalizationSettings.t()
7577
| nil,
78+
:satisfiesPzi => boolean() | nil,
79+
:satisfiesPzs => boolean() | nil,
7680
:securitySettings => String.t() | nil,
7781
:speechToTextSettings =>
7882
GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3SpeechToTextSettings.t() | nil,
@@ -119,6 +123,8 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Agent do
119123
as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3AgentPersonalizationSettings
120124
)
121125

126+
field(:satisfiesPzi)
127+
field(:satisfiesPzs)
122128
field(:securitySettings)
123129

124130
field(:speechToTextSettings,

0 commit comments

Comments
 (0)