Skip to content

Commit fbe3394

Browse files
chore: [google-cloud-dialogflow-cx] Update gapic-generator-python to v1.18.3 (#12918)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 656040068 Source-Link: googleapis/googleapis@3f4e29a Source-Link: googleapis/googleapis-gen@b8feb21 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImI4ZmViMjEwOWRkZTdiMDkzOGMyMmM5OTNkMDAyMjUxYWM2NzE0ZGMifQ== BEGIN_NESTED_COMMIT chore: [google-cloud-dialogflow-cx] Update gapic-generator-python to v1.18.3 PiperOrigin-RevId: 655567917 Source-Link: googleapis/googleapis@43aa65e Source-Link: googleapis/googleapis-gen@0e38378 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6IjBlMzgzNzg3NTMwNzRjMGY2NmZmNjMzNDhkNjg2NDkyOWUxMDRkNWMifQ== END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [google-cloud-dialogflow-cx] exposed DataStoreConnectionSignals BEGIN_COMMIT_OVERRIDE feat: [google-cloud-dialogflow-cx] exposed DataStoreConnectionSignals feat: added support for lock flow feat: added support for multi language settings in flow feat: added support for service directory in tools feat: added support for oauth and service agent auth for webhook. feat: expose store tts option in security settings feat: expose PersonalizationSettings & SpeechSettings in v3 API. docs: clarified wording around enable_stackdriver_logging & enable_interaction_logging docs: clarified wording around start point of test config. docs: clarified wording around audio redaction END_COMMIT_OVERRIDE PiperOrigin-RevId: 654775620 Source-Link: googleapis/googleapis@d44c300 Source-Link: googleapis/googleapis-gen@f4bd9f8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImY0YmQ5ZjhjYmZhNzVhNTMxZDU3MWJlMTBlNjhmMWQ1MWNjMWYzZWEifQ== END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Victor Chudnovsky <[email protected]>
1 parent 25624f2 commit fbe3394

25 files changed

+893
-33
lines changed

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
)
127127
from google.cloud.dialogflowcx_v3.types.data_store_connection import (
128128
DataStoreConnection,
129+
DataStoreConnectionSignals,
129130
DataStoreType,
130131
)
131132
from google.cloud.dialogflowcx_v3.types.deployment import (
@@ -361,6 +362,7 @@
361362
CreateWebhookRequest,
362363
DeleteWebhookRequest,
363364
GetWebhookRequest,
365+
LanguageInfo,
364366
ListWebhooksRequest,
365367
ListWebhooksResponse,
366368
PageInfo,
@@ -439,6 +441,7 @@
439441
"ListChangelogsRequest",
440442
"ListChangelogsResponse",
441443
"DataStoreConnection",
444+
"DataStoreConnectionSignals",
442445
"DataStoreType",
443446
"Deployment",
444447
"GetDeploymentRequest",
@@ -643,6 +646,7 @@
643646
"CreateWebhookRequest",
644647
"DeleteWebhookRequest",
645648
"GetWebhookRequest",
649+
"LanguageInfo",
646650
"ListWebhooksRequest",
647651
"ListWebhooksResponse",
648652
"PageInfo",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.34.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@
8282
ListChangelogsRequest,
8383
ListChangelogsResponse,
8484
)
85-
from .types.data_store_connection import DataStoreConnection, DataStoreType
85+
from .types.data_store_connection import (
86+
DataStoreConnection,
87+
DataStoreConnectionSignals,
88+
DataStoreType,
89+
)
8690
from .types.deployment import (
8791
Deployment,
8892
GetDeploymentRequest,
@@ -313,6 +317,7 @@
313317
CreateWebhookRequest,
314318
DeleteWebhookRequest,
315319
GetWebhookRequest,
320+
LanguageInfo,
316321
ListWebhooksRequest,
317322
ListWebhooksResponse,
318323
PageInfo,
@@ -380,6 +385,7 @@
380385
"CreateVersionRequest",
381386
"CreateWebhookRequest",
382387
"DataStoreConnection",
388+
"DataStoreConnectionSignals",
383389
"DataStoreType",
384390
"DeleteAgentRequest",
385391
"DeleteEntityTypeRequest",
@@ -477,6 +483,7 @@
477483
"IntentView",
478484
"IntentsClient",
479485
"KnowledgeConnectorSettings",
486+
"LanguageInfo",
480487
"ListAgentsRequest",
481488
"ListAgentsResponse",
482489
"ListChangelogsRequest",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.34.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/types/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151
ListChangelogsRequest,
5252
ListChangelogsResponse,
5353
)
54-
from .data_store_connection import DataStoreConnection, DataStoreType
54+
from .data_store_connection import (
55+
DataStoreConnection,
56+
DataStoreConnectionSignals,
57+
DataStoreType,
58+
)
5559
from .deployment import (
5660
Deployment,
5761
GetDeploymentRequest,
@@ -282,6 +286,7 @@
282286
CreateWebhookRequest,
283287
DeleteWebhookRequest,
284288
GetWebhookRequest,
289+
LanguageInfo,
285290
ListWebhooksRequest,
286291
ListWebhooksResponse,
287292
PageInfo,
@@ -326,6 +331,7 @@
326331
"ListChangelogsRequest",
327332
"ListChangelogsResponse",
328333
"DataStoreConnection",
334+
"DataStoreConnectionSignals",
329335
"DataStoreType",
330336
"Deployment",
331337
"GetDeploymentRequest",
@@ -530,6 +536,7 @@
530536
"CreateWebhookRequest",
531537
"DeleteWebhookRequest",
532538
"GetWebhookRequest",
539+
"LanguageInfo",
533540
"ListWebhooksRequest",
534541
"ListWebhooksResponse",
535542
"PageInfo",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/types/advanced_settings.py

Lines changed: 80 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from typing import MutableMapping, MutableSequence
1919

20+
from google.protobuf import duration_pb2 # type: ignore
2021
import proto # type: ignore
2122

2223
from google.cloud.dialogflowcx_v3.types import gcs
@@ -52,6 +53,14 @@ class AdvancedSettings(proto.Message):
5253
5354
- Agent level
5455
- Flow level
56+
speech_settings (google.cloud.dialogflowcx_v3.types.AdvancedSettings.SpeechSettings):
57+
Settings for speech to text detection.
58+
Exposed at the following levels:
59+
60+
- Agent level
61+
- Flow level
62+
- Page level
63+
- Parameter level
5564
dtmf_settings (google.cloud.dialogflowcx_v3.types.AdvancedSettings.DtmfSettings):
5665
Settings for DTMF.
5766
Exposed at the following levels:
@@ -69,6 +78,45 @@ class AdvancedSettings(proto.Message):
6978
- Agent level.
7079
"""
7180

81+
class SpeechSettings(proto.Message):
82+
r"""Define behaviors of speech to text detection.
83+
84+
Attributes:
85+
endpointer_sensitivity (int):
86+
Sensitivity of the speech model that detects
87+
the end of speech. Scale from 0 to 100.
88+
no_speech_timeout (google.protobuf.duration_pb2.Duration):
89+
Timeout before detecting no speech.
90+
use_timeout_based_endpointing (bool):
91+
Use timeout based endpointing, interpreting
92+
endpointer sensitivy as seconds of timeout
93+
value.
94+
models (MutableMapping[str, str]):
95+
Mapping from language to Speech-to-Text model. The mapped
96+
Speech-to-Text model will be selected for requests from its
97+
corresponding language. For more information, see `Speech
98+
models <https://cloud.google.com/dialogflow/cx/docs/concept/speech-models>`__.
99+
"""
100+
101+
endpointer_sensitivity: int = proto.Field(
102+
proto.INT32,
103+
number=1,
104+
)
105+
no_speech_timeout: duration_pb2.Duration = proto.Field(
106+
proto.MESSAGE,
107+
number=2,
108+
message=duration_pb2.Duration,
109+
)
110+
use_timeout_based_endpointing: bool = proto.Field(
111+
proto.BOOL,
112+
number=3,
113+
)
114+
models: MutableMapping[str, str] = proto.MapField(
115+
proto.STRING,
116+
proto.STRING,
117+
number=5,
118+
)
119+
72120
class DtmfSettings(proto.Message):
73121
r"""Define behaviors for DTMF (dual tone multi frequency).
74122
@@ -87,6 +135,12 @@ class DtmfSettings(proto.Message):
87135
finish_digit (str):
88136
The digit that terminates a DTMF digit
89137
sequence.
138+
interdigit_timeout_duration (google.protobuf.duration_pb2.Duration):
139+
Interdigit timeout setting for matching dtmf
140+
input to regex.
141+
endpointing_timeout_duration (google.protobuf.duration_pb2.Duration):
142+
Endpoint timeout setting for matching dtmf
143+
input to regex.
90144
"""
91145

92146
enabled: bool = proto.Field(
@@ -101,17 +155,30 @@ class DtmfSettings(proto.Message):
101155
proto.STRING,
102156
number=3,
103157
)
158+
interdigit_timeout_duration: duration_pb2.Duration = proto.Field(
159+
proto.MESSAGE,
160+
number=6,
161+
message=duration_pb2.Duration,
162+
)
163+
endpointing_timeout_duration: duration_pb2.Duration = proto.Field(
164+
proto.MESSAGE,
165+
number=7,
166+
message=duration_pb2.Duration,
167+
)
104168

105169
class LoggingSettings(proto.Message):
106170
r"""Define behaviors on logging.
107171
108172
Attributes:
109173
enable_stackdriver_logging (bool):
110-
If true, StackDriver logging is currently
111-
enabled.
174+
Enables StackDriver logging.
112175
enable_interaction_logging (bool):
113-
If true, DF Interaction logging is currently
114-
enabled.
176+
Enables DF Interaction logging.
177+
enable_consent_based_redaction (bool):
178+
Enables consent-based end-user input redaction, if true, a
179+
pre-defined session parameter
180+
``$session.params.conversation-redaction`` will be used to
181+
determine if the utterance should be redacted.
115182
"""
116183

117184
enable_stackdriver_logging: bool = proto.Field(
@@ -122,12 +189,21 @@ class LoggingSettings(proto.Message):
122189
proto.BOOL,
123190
number=3,
124191
)
192+
enable_consent_based_redaction: bool = proto.Field(
193+
proto.BOOL,
194+
number=4,
195+
)
125196

126197
audio_export_gcs_destination: gcs.GcsDestination = proto.Field(
127198
proto.MESSAGE,
128199
number=2,
129200
message=gcs.GcsDestination,
130201
)
202+
speech_settings: SpeechSettings = proto.Field(
203+
proto.MESSAGE,
204+
number=3,
205+
message=SpeechSettings,
206+
)
131207
dtmf_settings: DtmfSettings = proto.Field(
132208
proto.MESSAGE,
133209
number=5,

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/types/agent.py

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from typing import MutableMapping, MutableSequence
1919

2020
from google.protobuf import field_mask_pb2 # type: ignore
21+
from google.protobuf import struct_pb2 # type: ignore
2122
import proto # type: ignore
2223

2324
from google.cloud.dialogflowcx_v3.types import (
@@ -127,8 +128,6 @@ class Agent(proto.Message):
127128
created, and can only be deleted by deleting the agent.
128129
Format:
129130
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
130-
Currently only the default start flow with id
131-
"00000000-0000-0000-0000-000000000000" is allowed.
132131
security_settings (str):
133132
Name of the
134133
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
@@ -142,6 +141,11 @@ class Agent(proto.Message):
142141
enable_spell_correction (bool):
143142
Indicates if automatic spell correction is
144143
enabled in detect intent requests.
144+
enable_multi_language_training (bool):
145+
Optional. Enable training multi-lingual
146+
models for this agent. These models will be
147+
trained on all the languages supported by the
148+
agent.
145149
locked (bool):
146150
Indicates whether the agent is locked for changes. If the
147151
agent is locked, modifications to the agent will be rejected
@@ -164,6 +168,9 @@ class Agent(proto.Message):
164168
answer_feedback_settings (google.cloud.dialogflowcx_v3.types.Agent.AnswerFeedbackSettings):
165169
Optional. Answer feedback collection
166170
settings.
171+
personalization_settings (google.cloud.dialogflowcx_v3.types.Agent.PersonalizationSettings):
172+
Optional. Settings for end user
173+
personalization.
167174
"""
168175

169176
class GitIntegrationSettings(proto.Message):
@@ -259,6 +266,27 @@ class AnswerFeedbackSettings(proto.Message):
259266
number=1,
260267
)
261268

269+
class PersonalizationSettings(proto.Message):
270+
r"""Settings for end user personalization.
271+
272+
Attributes:
273+
default_end_user_metadata (google.protobuf.struct_pb2.Struct):
274+
Optional. Default end user metadata, used when processing
275+
DetectIntent requests. Recommended to be filled as a
276+
template instead of hard-coded value, for example { "age":
277+
"$session.params.age" }. The data will be merged with the
278+
[QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
279+
in
280+
[DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
281+
during query processing.
282+
"""
283+
284+
default_end_user_metadata: struct_pb2.Struct = proto.Field(
285+
proto.MESSAGE,
286+
number=1,
287+
message=struct_pb2.Struct,
288+
)
289+
262290
name: str = proto.Field(
263291
proto.STRING,
264292
number=1,
@@ -308,6 +336,10 @@ class AnswerFeedbackSettings(proto.Message):
308336
proto.BOOL,
309337
number=20,
310338
)
339+
enable_multi_language_training: bool = proto.Field(
340+
proto.BOOL,
341+
number=40,
342+
)
311343
locked: bool = proto.Field(
312344
proto.BOOL,
313345
number=27,
@@ -338,6 +370,11 @@ class AnswerFeedbackSettings(proto.Message):
338370
number=38,
339371
message=AnswerFeedbackSettings,
340372
)
373+
personalization_settings: PersonalizationSettings = proto.Field(
374+
proto.MESSAGE,
375+
number=42,
376+
message=PersonalizationSettings,
377+
)
341378

342379

343380
class ListAgentsRequest(proto.Message):

0 commit comments

Comments
 (0)