4747 "SuggestionResult" ,
4848 "AnnotatedMessagePart" ,
4949 "MessageAnnotation" ,
50+ "AssistQueryParameters" ,
5051 },
5152)
5253
@@ -69,6 +70,27 @@ class Participant(proto.Message):
6970 metadata and SDP. This is used to assign
7071 transcriptions from that media stream to this
7172 participant. This field can be updated.
73+ documents_metadata_filters (Sequence[google.cloud.dialogflow_v2.types.Participant.DocumentsMetadataFiltersEntry]):
74+ Optional. Key-value filters on the metadata of documents
75+ returned by article suggestion. If specified, article
76+ suggestion only returns suggested documents that match all
77+ filters in their
78+ [Document.metadata][google.cloud.dialogflow.v2.Document.metadata].
79+ Multiple values for a metadata key should be concatenated by
80+ comma. For example, filters to match all documents that have
81+ 'US' or 'CA' in their market metadata values and 'agent' in
82+ their user metadata values will be
83+
84+ ::
85+
86+ documents_metadata_filters {
87+ key: "market"
88+ value: "US,CA"
89+ }
90+ documents_metadata_filters {
91+ key: "user"
92+ value: "agent"
93+ }
7294 """
7395
7496 class Role (proto .Enum ):
@@ -83,6 +105,7 @@ class Role(proto.Enum):
83105 name = proto .Field (proto .STRING , number = 1 ,)
84106 role = proto .Field (proto .ENUM , number = 2 , enum = Role ,)
85107 sip_recording_media_label = proto .Field (proto .STRING , number = 6 ,)
108+ documents_metadata_filters = proto .MapField (proto .STRING , proto .STRING , number = 8 ,)
86109
87110
88111class Message (proto .Message ):
@@ -247,6 +270,8 @@ class AnalyzeContentRequest(proto.Message):
247270 query_params (google.cloud.dialogflow_v2.types.QueryParameters):
248271 Parameters for a Dialogflow virtual-agent
249272 query.
273+ assist_query_params (google.cloud.dialogflow_v2.types.AssistQueryParameters):
274+ Parameters for a human assist query.
250275 request_id (str):
251276 A unique identifier for this request. Restricted to 36 ASCII
252277 characters. A random UUID is recommended. This request is
@@ -266,6 +291,9 @@ class AnalyzeContentRequest(proto.Message):
266291 query_params = proto .Field (
267292 proto .MESSAGE , number = 9 , message = session .QueryParameters ,
268293 )
294+ assist_query_params = proto .Field (
295+ proto .MESSAGE , number = 14 , message = "AssistQueryParameters" ,
296+ )
269297 request_id = proto .Field (proto .STRING , number = 11 ,)
270298
271299
@@ -365,11 +393,16 @@ class SuggestArticlesRequest(proto.Message):
365393 [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message]
366394 to use as context when compiling the suggestion. By default
367395 20 and at most 50.
396+ assist_query_params (google.cloud.dialogflow_v2.types.AssistQueryParameters):
397+ Parameters for a human assist query.
368398 """
369399
370400 parent = proto .Field (proto .STRING , number = 1 ,)
371401 latest_message = proto .Field (proto .STRING , number = 2 ,)
372402 context_size = proto .Field (proto .INT32 , number = 3 ,)
403+ assist_query_params = proto .Field (
404+ proto .MESSAGE , number = 4 , message = "AssistQueryParameters" ,
405+ )
373406
374407
375408class SuggestArticlesResponse (proto .Message ):
@@ -422,11 +455,16 @@ class SuggestFaqAnswersRequest(proto.Message):
422455 Max number of messages prior to and including
423456 [latest_message] to use as context when compiling the
424457 suggestion. By default 20 and at most 50.
458+ assist_query_params (google.cloud.dialogflow_v2.types.AssistQueryParameters):
459+ Parameters for a human assist query.
425460 """
426461
427462 parent = proto .Field (proto .STRING , number = 1 ,)
428463 latest_message = proto .Field (proto .STRING , number = 2 ,)
429464 context_size = proto .Field (proto .INT32 , number = 3 ,)
465+ assist_query_params = proto .Field (
466+ proto .MESSAGE , number = 4 , message = "AssistQueryParameters" ,
467+ )
430468
431469
432470class SuggestFaqAnswersResponse (proto .Message ):
@@ -678,4 +716,24 @@ class MessageAnnotation(proto.Message):
678716 contain_entities = proto .Field (proto .BOOL , number = 2 ,)
679717
680718
719+ class AssistQueryParameters (proto .Message ):
720+ r"""Represents the parameters of human assist query.
721+
722+ Attributes:
723+ documents_metadata_filters (Sequence[google.cloud.dialogflow_v2.types.AssistQueryParameters.DocumentsMetadataFiltersEntry]):
724+ Key-value filters on the metadata of documents returned by
725+ article suggestion. If specified, article suggestion only
726+ returns suggested documents that match all filters in their
727+ [Document.metadata][google.cloud.dialogflow.v2.Document.metadata].
728+ Multiple values for a metadata key should be concatenated by
729+ comma. For example, filters to match all documents that have
730+ 'US' or 'CA' in their market metadata values and 'agent' in
731+ their user metadata values will be
732+ documents_metadata_filters { key: "market" value: "US,CA" }
733+ documents_metadata_filters { key: "user" value: "agent" }
734+ """
735+
736+ documents_metadata_filters = proto .MapField (proto .STRING , proto .STRING , number = 1 ,)
737+
738+
681739__all__ = tuple (sorted (__protobuf__ .manifest ))
0 commit comments