Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce2c9ed

Browse files
feat: [google-cloud-dialogflow-cx] added support for DataStoreConnection, DataStoreConnectionSettings (#12516)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: added support for DataStoreConnection, DataStoreConnectionSettings feat: added support for SpeechSettings feat: added support for MultiLanguageSettings feat: added support for PersonalizationSettings feat: added support for Webhook OAuthConfig, and ServiceAgentAuth Settings. docs: clarified wording around quota usage END_COMMIT_OVERRIDE PiperOrigin-RevId: 619327167 Source-Link: googleapis/googleapis@5b25280 Source-Link: googleapis/googleapis-gen@d4a079f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImQ0YTA3OWY2NThmMjljMTMzMTViMTA0NDIyODIxYTAyNzljYzRiNzYifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 60d87fa commit ce2c9ed

File tree

17 files changed

+723
-16
lines changed

17 files changed

+723
-16
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@
8585
ListChangelogsRequest,
8686
ListChangelogsResponse,
8787
)
88-
from .types.data_store_connection import DataStoreConnection, DataStoreType
88+
from .types.data_store_connection import (
89+
DataStoreConnection,
90+
DataStoreConnectionSignals,
91+
DataStoreType,
92+
)
8993
from .types.deployment import (
9094
Deployment,
9195
GetDeploymentRequest,
@@ -442,6 +446,7 @@
442446
"CreateVersionRequest",
443447
"CreateWebhookRequest",
444448
"DataStoreConnection",
449+
"DataStoreConnectionSignals",
445450
"DataStoreType",
446451
"DeleteAgentRequest",
447452
"DeleteEntityTypeRequest",

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

Lines changed: 6 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,
@@ -375,6 +379,7 @@
375379
"ListChangelogsRequest",
376380
"ListChangelogsResponse",
377381
"DataStoreConnection",
382+
"DataStoreConnectionSignals",
378383
"DataStoreType",
379384
"Deployment",
380385
"GetDeploymentRequest",

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

Lines changed: 53 additions & 0 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_v3beta1.types import gcs
@@ -52,6 +53,14 @@ class AdvancedSettings(proto.Message):
5253
5354
- Agent level
5455
- Flow level
56+
speech_settings (google.cloud.dialogflowcx_v3beta1.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_v3beta1.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
@@ -128,6 +176,11 @@ class LoggingSettings(proto.Message):
128176
number=2,
129177
message=gcs.GcsDestination,
130178
)
179+
speech_settings: SpeechSettings = proto.Field(
180+
proto.MESSAGE,
181+
number=3,
182+
message=SpeechSettings,
183+
)
131184
dtmf_settings: DtmfSettings = proto.Field(
132185
proto.MESSAGE,
133186
number=5,

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

Lines changed: 43 additions & 8 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_v3beta1.types import (
@@ -122,15 +123,11 @@ class Agent(proto.Message):
122123
speech_to_text_settings (google.cloud.dialogflowcx_v3beta1.types.SpeechToTextSettings):
123124
Speech recognition related settings.
124125
start_flow (str):
125-
Optional. Name of the start flow in this agent. A start flow
126-
will be automatically created when the agent is created, and
127-
can only be deleted by deleting the agent. Format:
126+
Immutable. Name of the start flow in this agent. A start
127+
flow will be automatically created when the agent is
128+
created, and can only be deleted by deleting the agent.
129+
Format:
128130
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
129-
Currently only the default start flow with id
130-
"00000000-0000-0000-0000-000000000000" is allowed.
131-
132-
Only one of ``start_flow`` or ``start_playbook`` should be
133-
set, but not both.
134131
start_playbook (str):
135132
Optional. Name of the start playbook in this agent. A start
136133
playbook will be automatically created when the agent is
@@ -155,6 +152,11 @@ class Agent(proto.Message):
155152
enable_spell_correction (bool):
156153
Indicates if automatic spell correction is
157154
enabled in detect intent requests.
155+
enable_multi_language_training (bool):
156+
Optional. Enable training multi-lingual
157+
models for this agent. These models will be
158+
trained on all the languages supported by the
159+
agent.
158160
locked (bool):
159161
Indicates whether the agent is locked for changes. If the
160162
agent is locked, modifications to the agent will be rejected
@@ -177,6 +179,9 @@ class Agent(proto.Message):
177179
answer_feedback_settings (google.cloud.dialogflowcx_v3beta1.types.Agent.AnswerFeedbackSettings):
178180
Optional. Answer feedback collection
179181
settings.
182+
personalization_settings (google.cloud.dialogflowcx_v3beta1.types.Agent.PersonalizationSettings):
183+
Optional. Settings for end user
184+
personalization.
180185
"""
181186

182187
class GitIntegrationSettings(proto.Message):
@@ -272,6 +277,27 @@ class AnswerFeedbackSettings(proto.Message):
272277
number=1,
273278
)
274279

280+
class PersonalizationSettings(proto.Message):
281+
r"""Settings for end user personalization.
282+
283+
Attributes:
284+
default_end_user_metadata (google.protobuf.struct_pb2.Struct):
285+
Optional. Default end user metadata, used when processing
286+
DetectIntent requests. Recommended to be filled as a
287+
template instead of hard-coded value, for example { "age":
288+
"$session.params.age" }. The data will be merged with the
289+
[QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3beta1.QueryParameters.end_user_metadata]
290+
in
291+
[DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.query_params]
292+
during query processing.
293+
"""
294+
295+
default_end_user_metadata: struct_pb2.Struct = proto.Field(
296+
proto.MESSAGE,
297+
number=1,
298+
message=struct_pb2.Struct,
299+
)
300+
275301
name: str = proto.Field(
276302
proto.STRING,
277303
number=1,
@@ -325,6 +351,10 @@ class AnswerFeedbackSettings(proto.Message):
325351
proto.BOOL,
326352
number=20,
327353
)
354+
enable_multi_language_training: bool = proto.Field(
355+
proto.BOOL,
356+
number=40,
357+
)
328358
locked: bool = proto.Field(
329359
proto.BOOL,
330360
number=27,
@@ -355,6 +385,11 @@ class AnswerFeedbackSettings(proto.Message):
355385
number=38,
356386
message=AnswerFeedbackSettings,
357387
)
388+
personalization_settings: PersonalizationSettings = proto.Field(
389+
proto.MESSAGE,
390+
number=42,
391+
message=PersonalizationSettings,
392+
)
358393

359394

360395
class ListAgentsRequest(proto.Message):

0 commit comments

Comments
 (0)