Skip to content

Commit 478a206

Browse files
feat: added support for ALAW encoding (#7812)
feat: add options of query_source, search_config and context_size PiperOrigin-RevId: 693786098 Source-Link: googleapis/googleapis@35214c2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d6b4c370af40ca9b3e030b15f4642562083cb90f Copy-Tag: eyJwIjoiRGlhbG9nZmxvdy8uT3dsQm90LnlhbWwiLCJoIjoiZDZiNGMzNzBhZjQwY2E5YjNlMDMwYjE1ZjQ2NDI1NjIwODNjYjkwZiJ9
1 parent 99f0255 commit 478a206

38 files changed

+393
-31
lines changed

metadata/V2/Agent.php

-3 Bytes
Binary file not shown.

metadata/V2/AudioConfig.php

115 Bytes
Binary file not shown.

metadata/V2/Context.php

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metadata/V2/ConversationDataset.php

-3 Bytes
Binary file not shown.

metadata/V2/ConversationEvent.php

-3 Bytes
Binary file not shown.

metadata/V2/ConversationModel.php

-3 Bytes
Binary file not shown.

metadata/V2/ConversationProfile.php

24 Bytes
Binary file not shown.

metadata/V2/EntityType.php

-3 Bytes
Binary file not shown.

metadata/V2/Environment.php

-3 Bytes
Binary file not shown.

metadata/V2/Fulfillment.php

-3 Bytes
Binary file not shown.

metadata/V2/Gcs.php

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metadata/V2/HumanAgentAssistantEvent.php

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metadata/V2/Intent.php

-3 Bytes
Binary file not shown.

metadata/V2/Participant.php

40 Bytes
Binary file not shown.

metadata/V2/SessionEntityType.php

-3 Bytes
Binary file not shown.

metadata/V2/ValidationResult.php

-3 Bytes
Binary file not shown.

metadata/V2/Version.php

-3 Bytes
Binary file not shown.

metadata/V2/Webhook.php

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/V2/GeneratorsClient/get_generator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* Retrieves a generator.
3333
*
3434
* @param string $formattedName The generator resource name to retrieve. Format:
35-
* `projects/<Project ID>/locations/<Location ID>`/generators/<Generator ID>`
35+
* `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
3636
* Please see {@see GeneratorsClient::generatorName()} for help formatting this field.
3737
*/
3838
function get_generator_sample(string $formattedName): void

src/V2/Client/ConversationProfilesClient.php

+20
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,25 @@ public static function locationName(string $project, string $location): string
295295
]);
296296
}
297297

298+
/**
299+
* Formats a string containing the fully-qualified path to represent a phrase_set
300+
* resource.
301+
*
302+
* @param string $project
303+
* @param string $location
304+
* @param string $phraseSet
305+
*
306+
* @return string The formatted phrase_set resource.
307+
*/
308+
public static function phraseSetName(string $project, string $location, string $phraseSet): string
309+
{
310+
return self::getPathTemplate('phraseSet')->render([
311+
'project' => $project,
312+
'location' => $location,
313+
'phrase_set' => $phraseSet,
314+
]);
315+
}
316+
298317
/**
299318
* Formats a string containing the fully-qualified path to represent a project
300319
* resource.
@@ -502,6 +521,7 @@ public static function projectLocationKnowledgeBaseDocumentName(string $project,
502521
* - generator: projects/{project}/locations/{location}/generators/{generator}
503522
* - knowledgeBase: projects/{project}/knowledgeBases/{knowledge_base}
504523
* - location: projects/{project}/locations/{location}
524+
* - phraseSet: projects/{project}/locations/{location}/phraseSets/{phrase_set}
505525
* - project: projects/{project}
506526
* - projectAgent: projects/{project}/agent
507527
* - projectConversationModel: projects/{project}/conversationModels/{conversation_model}

src/V2/Client/ConversationsClient.php

+20
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,25 @@ public static function messageName(string $project, string $conversation, string
303303
]);
304304
}
305305

306+
/**
307+
* Formats a string containing the fully-qualified path to represent a phrase_set
308+
* resource.
309+
*
310+
* @param string $project
311+
* @param string $location
312+
* @param string $phraseSet
313+
*
314+
* @return string The formatted phrase_set resource.
315+
*/
316+
public static function phraseSetName(string $project, string $location, string $phraseSet): string
317+
{
318+
return self::getPathTemplate('phraseSet')->render([
319+
'project' => $project,
320+
'location' => $location,
321+
'phrase_set' => $phraseSet,
322+
]);
323+
}
324+
306325
/**
307326
* Formats a string containing the fully-qualified path to represent a project
308327
* resource.
@@ -588,6 +607,7 @@ public static function projectLocationKnowledgeBaseDocumentName(string $project,
588607
* - knowledgeBase: projects/{project}/knowledgeBases/{knowledge_base}
589608
* - location: projects/{project}/locations/{location}
590609
* - message: projects/{project}/conversations/{conversation}/messages/{message}
610+
* - phraseSet: projects/{project}/locations/{location}/phraseSets/{phrase_set}
591611
* - project: projects/{project}
592612
* - projectAgent: projects/{project}/agent
593613
* - projectConversation: projects/{project}/conversations/{conversation}

src/V2/Client/ParticipantsClient.php

+20
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,25 @@ public static function participantName(string $project, string $conversation, st
200200
]);
201201
}
202202

203+
/**
204+
* Formats a string containing the fully-qualified path to represent a phrase_set
205+
* resource.
206+
*
207+
* @param string $project
208+
* @param string $location
209+
* @param string $phraseSet
210+
*
211+
* @return string The formatted phrase_set resource.
212+
*/
213+
public static function phraseSetName(string $project, string $location, string $phraseSet): string
214+
{
215+
return self::getPathTemplate('phraseSet')->render([
216+
'project' => $project,
217+
'location' => $location,
218+
'phrase_set' => $phraseSet,
219+
]);
220+
}
221+
203222
/**
204223
* Formats a string containing the fully-qualified path to represent a
205224
* project_conversation resource.
@@ -616,6 +635,7 @@ public static function sessionEntityTypeName(string $project, string $session, s
616635
* - conversation: projects/{project}/conversations/{conversation}
617636
* - message: projects/{project}/conversations/{conversation}/messages/{message}
618637
* - participant: projects/{project}/conversations/{conversation}/participants/{participant}
638+
* - phraseSet: projects/{project}/locations/{location}/phraseSets/{phrase_set}
619639
* - projectConversation: projects/{project}/conversations/{conversation}
620640
* - projectConversationMessage: projects/{project}/conversations/{conversation}/messages/{message}
621641
* - projectConversationParticipant: projects/{project}/conversations/{conversation}/participants/{participant}

src/V2/Client/SessionsClient.php

+20
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,25 @@ public static function contextName(string $project, string $session, string $con
127127
]);
128128
}
129129

130+
/**
131+
* Formats a string containing the fully-qualified path to represent a phrase_set
132+
* resource.
133+
*
134+
* @param string $project
135+
* @param string $location
136+
* @param string $phraseSet
137+
*
138+
* @return string The formatted phrase_set resource.
139+
*/
140+
public static function phraseSetName(string $project, string $location, string $phraseSet): string
141+
{
142+
return self::getPathTemplate('phraseSet')->render([
143+
'project' => $project,
144+
'location' => $location,
145+
'phrase_set' => $phraseSet,
146+
]);
147+
}
148+
130149
/**
131150
* Formats a string containing the fully-qualified path to represent a
132151
* project_environment_user_session resource.
@@ -424,6 +443,7 @@ public static function sessionEntityTypeName(string $project, string $session, s
424443
* The following name formats are supported:
425444
* Template: Pattern
426445
* - context: projects/{project}/agent/sessions/{session}/contexts/{context}
446+
* - phraseSet: projects/{project}/locations/{location}/phraseSets/{phrase_set}
427447
* - projectEnvironmentUserSession: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}
428448
* - projectEnvironmentUserSessionContext: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}
429449
* - projectEnvironmentUserSessionEntityType: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type}

src/V2/CreateGeneratorRequest.php

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/V2/Gapic/ConversationProfilesGapicClient.php

+32
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ class ConversationProfilesGapicClient
154154

155155
private static $locationNameTemplate;
156156

157+
private static $phraseSetNameTemplate;
158+
157159
private static $projectNameTemplate;
158160

159161
private static $projectAgentNameTemplate;
@@ -271,6 +273,15 @@ private static function getLocationNameTemplate()
271273
return self::$locationNameTemplate;
272274
}
273275

276+
private static function getPhraseSetNameTemplate()
277+
{
278+
if (self::$phraseSetNameTemplate == null) {
279+
self::$phraseSetNameTemplate = new PathTemplate('projects/{project}/locations/{location}/phraseSets/{phrase_set}');
280+
}
281+
282+
return self::$phraseSetNameTemplate;
283+
}
284+
274285
private static function getProjectNameTemplate()
275286
{
276287
if (self::$projectNameTemplate == null) {
@@ -382,6 +393,7 @@ private static function getPathTemplateMap()
382393
'generator' => self::getGeneratorNameTemplate(),
383394
'knowledgeBase' => self::getKnowledgeBaseNameTemplate(),
384395
'location' => self::getLocationNameTemplate(),
396+
'phraseSet' => self::getPhraseSetNameTemplate(),
385397
'project' => self::getProjectNameTemplate(),
386398
'projectAgent' => self::getProjectAgentNameTemplate(),
387399
'projectConversationModel' => self::getProjectConversationModelNameTemplate(),
@@ -541,6 +553,25 @@ public static function locationName($project, $location)
541553
]);
542554
}
543555

556+
/**
557+
* Formats a string containing the fully-qualified path to represent a phrase_set
558+
* resource.
559+
*
560+
* @param string $project
561+
* @param string $location
562+
* @param string $phraseSet
563+
*
564+
* @return string The formatted phrase_set resource.
565+
*/
566+
public static function phraseSetName($project, $location, $phraseSet)
567+
{
568+
return self::getPhraseSetNameTemplate()->render([
569+
'project' => $project,
570+
'location' => $location,
571+
'phrase_set' => $phraseSet,
572+
]);
573+
}
574+
544575
/**
545576
* Formats a string containing the fully-qualified path to represent a project
546577
* resource.
@@ -748,6 +779,7 @@ public static function projectLocationKnowledgeBaseDocumentName($project, $locat
748779
* - generator: projects/{project}/locations/{location}/generators/{generator}
749780
* - knowledgeBase: projects/{project}/knowledgeBases/{knowledge_base}
750781
* - location: projects/{project}/locations/{location}
782+
* - phraseSet: projects/{project}/locations/{location}/phraseSets/{phrase_set}
751783
* - project: projects/{project}
752784
* - projectAgent: projects/{project}/agent
753785
* - projectConversationModel: projects/{project}/conversationModels/{conversation_model}

0 commit comments

Comments
 (0)