Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 347e03f

Browse files
docs: add the fields for setting CX virtual agent session parameters (#519)
* docs: add the fields for setting CX virtual agent session parameters PiperOrigin-RevId: 446825520 Source-Link: googleapis/googleapis@f6bb255 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cd1450b403b5a3f92676d8a34f0cfc07fc767b40 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2QxNDUwYjQwM2I1YTNmOTI2NzZkOGEzNGYwY2ZjMDdmYzc2N2I0MCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2a931b9 commit 347e03f

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

google/cloud/dialogflow_v2/types/fulfillment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ class Fulfillment(proto.Message):
7070

7171
class GenericWebService(proto.Message):
7272
r"""Represents configuration for a generic web service.
73-
Dialogflow supports two mechanisms for authentications: - Basic
74-
authentication with username and password.
75-
- Authentication with additional authentication headers. More
76-
information could be found at:
73+
Dialogflow supports two mechanisms for authentications:
74+
- Basic authentication with username and password.
75+
- Authentication with additional authentication headers.
76+
More information could be found at:
7777
https://cloud.google.com/dialogflow/docs/fulfillment-configure.
7878
7979
Attributes:

google/cloud/dialogflow_v2/types/participant.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,14 @@ class AnalyzeContentRequest(proto.Message):
358358
query.
359359
assist_query_params (google.cloud.dialogflow_v2.types.AssistQueryParameters):
360360
Parameters for a human assist query.
361+
cx_parameters (google.protobuf.struct_pb2.Struct):
362+
Additional parameters to be put into
363+
Dialogflow CX session parameters. To remove a
364+
parameter from the session, clients should
365+
explicitly set the parameter value to null.
366+
367+
Note: this field should only be used if you are
368+
connecting to a Dialogflow CX agent.
361369
request_id (str):
362370
A unique identifier for this request. Restricted to 36 ASCII
363371
characters. A random UUID is recommended. This request is
@@ -395,6 +403,11 @@ class AnalyzeContentRequest(proto.Message):
395403
number=14,
396404
message="AssistQueryParameters",
397405
)
406+
cx_parameters = proto.Field(
407+
proto.MESSAGE,
408+
number=18,
409+
message=struct_pb2.Struct,
410+
)
398411
request_id = proto.Field(
399412
proto.STRING,
400413
number=11,

scripts/fixup_dialogflow_v2_keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def partition(
3939
class dialogflowCallTransformer(cst.CSTTransformer):
4040
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
4141
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
42-
'analyze_content': ('participant', 'text_input', 'event_input', 'reply_audio_config', 'query_params', 'assist_query_params', 'request_id', ),
42+
'analyze_content': ('participant', 'text_input', 'event_input', 'reply_audio_config', 'query_params', 'assist_query_params', 'cx_parameters', 'request_id', ),
4343
'batch_create_entities': ('parent', 'entities', 'language_code', ),
4444
'batch_delete_entities': ('parent', 'entity_values', 'language_code', ),
4545
'batch_delete_entity_types': ('parent', 'entity_type_names', ),

0 commit comments

Comments
 (0)