Skip to content

Commit ed7a9b2

Browse files
feat: add options of query_source, search_config, end_user_metadata and exact_search (#7823)
feat: expose metadata in AnswerSource PiperOrigin-RevId: 695456323 Source-Link: googleapis/googleapis@8081c74 Source-Link: googleapis/googleapis-gen@a74e716 Copy-Tag: eyJwIjoiRGlhbG9nZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiYTc0ZTcxNmIyMzQ1YTg2OWQyNWMyZmVhZGYyMGM5YTQzYjFjZjQ2OSJ9
1 parent 37844cb commit ed7a9b2

18 files changed

Lines changed: 1563 additions & 11 deletions
2.2 KB
Binary file not shown.

Dialogflow/src/V2/Client/ConversationsClient.php

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,27 @@ public static function conversationProfileName(string $project, string $conversa
212212
]);
213213
}
214214

215+
/**
216+
* Formats a string containing the fully-qualified path to represent a data_store
217+
* resource.
218+
*
219+
* @param string $project
220+
* @param string $location
221+
* @param string $collection
222+
* @param string $dataStore
223+
*
224+
* @return string The formatted data_store resource.
225+
*/
226+
public static function dataStoreName(string $project, string $location, string $collection, string $dataStore): string
227+
{
228+
return self::getPathTemplate('dataStore')->render([
229+
'project' => $project,
230+
'location' => $location,
231+
'collection' => $collection,
232+
'data_store' => $dataStore,
233+
]);
234+
}
235+
215236
/**
216237
* Formats a string containing the fully-qualified path to represent a document
217238
* resource.
@@ -475,6 +496,27 @@ public static function projectLocationAgentName(string $project, string $locatio
475496
]);
476497
}
477498

499+
/**
500+
* Formats a string containing the fully-qualified path to represent a
501+
* project_location_collection_data_store resource.
502+
*
503+
* @param string $project
504+
* @param string $location
505+
* @param string $collection
506+
* @param string $dataStore
507+
*
508+
* @return string The formatted project_location_collection_data_store resource.
509+
*/
510+
public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string
511+
{
512+
return self::getPathTemplate('projectLocationCollectionDataStore')->render([
513+
'project' => $project,
514+
'location' => $location,
515+
'collection' => $collection,
516+
'data_store' => $dataStore,
517+
]);
518+
}
519+
478520
/**
479521
* Formats a string containing the fully-qualified path to represent a
480522
* project_location_conversation resource.
@@ -553,6 +595,25 @@ public static function projectLocationConversationProfileName(string $project, s
553595
]);
554596
}
555597

598+
/**
599+
* Formats a string containing the fully-qualified path to represent a
600+
* project_location_data_store resource.
601+
*
602+
* @param string $project
603+
* @param string $location
604+
* @param string $dataStore
605+
*
606+
* @return string The formatted project_location_data_store resource.
607+
*/
608+
public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string
609+
{
610+
return self::getPathTemplate('projectLocationDataStore')->render([
611+
'project' => $project,
612+
'location' => $location,
613+
'data_store' => $dataStore,
614+
]);
615+
}
616+
556617
/**
557618
* Formats a string containing the fully-qualified path to represent a
558619
* project_location_knowledge_base resource.
@@ -602,6 +663,7 @@ public static function projectLocationKnowledgeBaseDocumentName(string $project,
602663
* - conversation: projects/{project}/conversations/{conversation}
603664
* - conversationModel: projects/{project}/locations/{location}/conversationModels/{conversation_model}
604665
* - conversationProfile: projects/{project}/conversationProfiles/{conversation_profile}
666+
* - dataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
605667
* - document: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}
606668
* - generator: projects/{project}/locations/{location}/generators/{generator}
607669
* - knowledgeBase: projects/{project}/knowledgeBases/{knowledge_base}
@@ -617,10 +679,12 @@ public static function projectLocationKnowledgeBaseDocumentName(string $project,
617679
* - projectKnowledgeBase: projects/{project}/knowledgeBases/{knowledge_base}
618680
* - projectKnowledgeBaseDocument: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}
619681
* - projectLocationAgent: projects/{project}/locations/{location}/agent
682+
* - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
620683
* - projectLocationConversation: projects/{project}/locations/{location}/conversations/{conversation}
621684
* - projectLocationConversationMessage: projects/{project}/locations/{location}/conversations/{conversation}/messages/{message}
622685
* - projectLocationConversationModel: projects/{project}/locations/{location}/conversationModels/{conversation_model}
623686
* - projectLocationConversationProfile: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}
687+
* - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store}
624688
* - projectLocationKnowledgeBase: projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}
625689
* - projectLocationKnowledgeBaseDocument: projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}
626690
*

Dialogflow/src/V2/CreateConversationRequest.php

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dialogflow/src/V2/FewShotExample.php

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)