@google-cloud/discoveryengine 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +33 -4
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +337 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +33 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
- package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +569 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +4 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -6
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
- package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +20 -19
- package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +23 -18
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +28 -3
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +18 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +7 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +16 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +19 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +1 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +12 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +30 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +1 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +2 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +20 -19
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +6 -6
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +28 -31
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +39 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +29 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +18 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +16 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +19 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +1 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +7 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +30 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +4 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +20 -19
- package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +30 -24
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +39 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +28 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +18 -2
- package/build/protos/protos.d.ts +52350 -38733
- package/build/protos/protos.js +136479 -103212
- package/build/protos/protos.json +9460 -5916
- package/build/src/index.d.ts +13 -1
- package/build/src/index.js +13 -1
- package/build/src/v1/completion_service_client.d.ts +549 -0
- package/build/src/v1/completion_service_client.js +771 -0
- package/build/src/v1/control_service_client.d.ts +1623 -0
- package/build/src/v1/control_service_client.js +2218 -0
- package/build/src/v1/control_service_client_config.json +63 -0
- package/build/src/v1/conversational_search_service_client.d.ts +893 -0
- package/build/src/v1/conversational_search_service_client.js +1040 -14
- package/build/src/v1/conversational_search_service_client_config.json +35 -0
- package/build/src/v1/data_store_service_client.d.ts +555 -6
- package/build/src/v1/data_store_service_client.js +775 -4
- package/build/src/v1/document_service_client.d.ts +557 -8
- package/build/src/v1/document_service_client.js +773 -2
- package/build/src/v1/engine_service_client.d.ts +549 -0
- package/build/src/v1/engine_service_client.js +771 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
- package/build/src/v1/grounded_generation_service_client.js +2036 -0
- package/build/src/v1/grounded_generation_service_client_config.json +43 -0
- package/build/src/v1/index.d.ts +4 -0
- package/build/src/v1/index.js +9 -1
- package/build/src/v1/project_service_client.d.ts +1533 -0
- package/build/src/v1/project_service_client.js +2255 -0
- package/build/src/v1/project_service_client_config.json +43 -0
- package/build/src/v1/rank_service_client.d.ts +1449 -0
- package/build/src/v1/rank_service_client.js +2037 -0
- package/build/src/v1/rank_service_client_config.json +43 -0
- package/build/src/v1/recommendation_service_client.d.ts +568 -18
- package/build/src/v1/recommendation_service_client.js +756 -0
- package/build/src/v1/schema_service_client.d.ts +558 -9
- package/build/src/v1/schema_service_client.js +775 -4
- package/build/src/v1/search_service_client.d.ts +579 -21
- package/build/src/v1/search_service_client.js +776 -14
- package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
- package/build/src/v1/site_search_engine_service_client.js +771 -0
- package/build/src/v1/user_event_service_client.d.ts +562 -2
- package/build/src/v1/user_event_service_client.js +771 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
- package/build/src/v1alpha/acl_config_service_client.js +326 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
- package/build/src/v1alpha/chunk_service_client.js +326 -0
- package/build/src/v1alpha/completion_service_client.d.ts +237 -0
- package/build/src/v1alpha/completion_service_client.js +340 -0
- package/build/src/v1alpha/control_service_client.d.ts +2013 -0
- package/build/src/v1alpha/control_service_client.js +2757 -0
- package/build/src/v1alpha/control_service_client_config.json +63 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
- package/build/src/v1alpha/conversational_search_service_client.js +326 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
- package/build/src/v1alpha/data_store_service_client.js +344 -4
- package/build/src/v1alpha/document_service_client.d.ts +246 -9
- package/build/src/v1alpha/document_service_client.js +342 -2
- package/build/src/v1alpha/engine_service_client.d.ts +237 -0
- package/build/src/v1alpha/engine_service_client.js +340 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
- package/build/src/v1alpha/grounded_generation_service_client.js +326 -0
- package/build/src/v1alpha/index.d.ts +1 -0
- package/build/src/v1alpha/index.js +3 -1
- package/build/src/v1alpha/project_service_client.d.ts +239 -0
- package/build/src/v1alpha/project_service_client.js +340 -0
- package/build/src/v1alpha/project_service_client_config.json +21 -6
- package/build/src/v1alpha/rank_service_client.d.ts +255 -0
- package/build/src/v1alpha/rank_service_client.js +326 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
- package/build/src/v1alpha/recommendation_service_client.js +326 -0
- package/build/src/v1alpha/schema_service_client.d.ts +247 -10
- package/build/src/v1alpha/schema_service_client.js +344 -4
- package/build/src/v1alpha/search_service_client.d.ts +267 -21
- package/build/src/v1alpha/search_service_client.js +346 -14
- package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
- package/build/src/v1alpha/search_tuning_service_client.js +365 -1
- package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
- package/build/src/v1alpha/serving_config_service_client.js +326 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
- package/build/src/v1alpha/user_event_service_client.js +340 -0
- package/build/src/v1beta/completion_service_client.d.ts +252 -0
- package/build/src/v1beta/completion_service_client.js +359 -0
- package/build/src/v1beta/control_service_client.d.ts +1860 -0
- package/build/src/v1beta/control_service_client.js +2545 -0
- package/build/src/v1beta/control_service_client_config.json +63 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
- package/build/src/v1beta/conversational_search_service_client.js +348 -0
- package/build/src/v1beta/data_store_service_client.d.ts +258 -6
- package/build/src/v1beta/data_store_service_client.js +363 -4
- package/build/src/v1beta/document_service_client.d.ts +261 -10
- package/build/src/v1beta/document_service_client.js +361 -2
- package/build/src/v1beta/engine_service_client.d.ts +252 -0
- package/build/src/v1beta/engine_service_client.js +359 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
- package/build/src/v1beta/grounded_generation_service_client.js +348 -0
- package/build/src/v1beta/index.d.ts +2 -0
- package/build/src/v1beta/index.js +5 -1
- package/build/src/v1beta/project_service_client.d.ts +1770 -0
- package/build/src/v1beta/project_service_client.js +2576 -0
- package/build/src/v1beta/project_service_client_config.json +43 -0
- package/build/src/v1beta/rank_service_client.d.ts +270 -0
- package/build/src/v1beta/rank_service_client.js +348 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
- package/build/src/v1beta/recommendation_service_client.js +348 -0
- package/build/src/v1beta/schema_service_client.d.ts +261 -9
- package/build/src/v1beta/schema_service_client.js +363 -4
- package/build/src/v1beta/search_service_client.d.ts +282 -21
- package/build/src/v1beta/search_service_client.js +368 -14
- package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
- package/build/src/v1beta/search_tuning_service_client.js +384 -1
- package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
- package/build/src/v1beta/serving_config_service_client.js +326 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
- package/build/src/v1beta/site_search_engine_service_client.js +359 -0
- package/build/src/v1beta/user_event_service_client.d.ts +265 -2
- package/build/src/v1beta/user_event_service_client.js +359 -0
- package/package.json +2 -2
@@ -150,9 +150,12 @@ class CompletionServiceClient {
|
|
150
150
|
// Create useful helper objects for these.
|
151
151
|
this.pathTemplates = {
|
152
152
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
153
|
+
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
153
154
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
154
155
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
156
|
+
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
155
157
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
158
|
+
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
156
159
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
157
160
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
158
161
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
@@ -160,13 +163,16 @@ class CompletionServiceClient {
|
|
160
163
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
161
164
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
162
165
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
166
|
+
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
163
167
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
164
168
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
165
169
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
166
170
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
167
171
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
168
172
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
173
|
+
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
169
174
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
175
|
+
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
170
176
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
171
177
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
172
178
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
@@ -186,6 +192,17 @@ class CompletionServiceClient {
|
|
186
192
|
if (opts.fallback) {
|
187
193
|
lroOptions.protoJson = protoFilesRoot;
|
188
194
|
lroOptions.httpRules = [
|
195
|
+
{
|
196
|
+
selector: 'google.longrunning.Operations.CancelOperation',
|
197
|
+
post: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
|
198
|
+
body: '*',
|
199
|
+
additional_bindings: [
|
200
|
+
{
|
201
|
+
post: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
202
|
+
body: '*',
|
203
|
+
},
|
204
|
+
],
|
205
|
+
},
|
189
206
|
{
|
190
207
|
selector: 'google.longrunning.Operations.GetOperation',
|
191
208
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
@@ -736,6 +753,27 @@ class CompletionServiceClient {
|
|
736
753
|
matchEngineFromEngineName(engineName) {
|
737
754
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
738
755
|
}
|
756
|
+
/**
|
757
|
+
* Return a fully-qualified project resource name string.
|
758
|
+
*
|
759
|
+
* @param {string} project
|
760
|
+
* @returns {string} Resource name string.
|
761
|
+
*/
|
762
|
+
projectPath(project) {
|
763
|
+
return this.pathTemplates.projectPathTemplate.render({
|
764
|
+
project: project,
|
765
|
+
});
|
766
|
+
}
|
767
|
+
/**
|
768
|
+
* Parse the project from Project resource.
|
769
|
+
*
|
770
|
+
* @param {string} projectName
|
771
|
+
* A fully-qualified path representing Project resource.
|
772
|
+
* @returns {string} A string representing the project.
|
773
|
+
*/
|
774
|
+
matchProjectFromProjectName(projectName) {
|
775
|
+
return this.pathTemplates.projectPathTemplate.match(projectName).project;
|
776
|
+
}
|
739
777
|
/**
|
740
778
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
741
779
|
*
|
@@ -874,6 +912,75 @@ class CompletionServiceClient {
|
|
874
912
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
875
913
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
876
914
|
}
|
915
|
+
/**
|
916
|
+
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
917
|
+
*
|
918
|
+
* @param {string} project
|
919
|
+
* @param {string} location
|
920
|
+
* @param {string} collection
|
921
|
+
* @param {string} data_store
|
922
|
+
* @param {string} control
|
923
|
+
* @returns {string} Resource name string.
|
924
|
+
*/
|
925
|
+
projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
|
926
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
|
927
|
+
project: project,
|
928
|
+
location: location,
|
929
|
+
collection: collection,
|
930
|
+
data_store: dataStore,
|
931
|
+
control: control,
|
932
|
+
});
|
933
|
+
}
|
934
|
+
/**
|
935
|
+
* Parse the project from ProjectLocationCollectionDataStoreControl resource.
|
936
|
+
*
|
937
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
938
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
939
|
+
* @returns {string} A string representing the project.
|
940
|
+
*/
|
941
|
+
matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
942
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
|
943
|
+
}
|
944
|
+
/**
|
945
|
+
* Parse the location from ProjectLocationCollectionDataStoreControl resource.
|
946
|
+
*
|
947
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
948
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
949
|
+
* @returns {string} A string representing the location.
|
950
|
+
*/
|
951
|
+
matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
952
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
|
953
|
+
}
|
954
|
+
/**
|
955
|
+
* Parse the collection from ProjectLocationCollectionDataStoreControl resource.
|
956
|
+
*
|
957
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
958
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
959
|
+
* @returns {string} A string representing the collection.
|
960
|
+
*/
|
961
|
+
matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
962
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
|
963
|
+
}
|
964
|
+
/**
|
965
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
|
966
|
+
*
|
967
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
968
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
969
|
+
* @returns {string} A string representing the data_store.
|
970
|
+
*/
|
971
|
+
matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
972
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
|
973
|
+
}
|
974
|
+
/**
|
975
|
+
* Parse the control from ProjectLocationCollectionDataStoreControl resource.
|
976
|
+
*
|
977
|
+
* @param {string} projectLocationCollectionDataStoreControlName
|
978
|
+
* A fully-qualified path representing project_location_collection_data_store_control resource.
|
979
|
+
* @returns {string} A string representing the control.
|
980
|
+
*/
|
981
|
+
matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
|
982
|
+
return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
|
983
|
+
}
|
877
984
|
/**
|
878
985
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
879
986
|
*
|
@@ -943,6 +1050,75 @@ class CompletionServiceClient {
|
|
943
1050
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
944
1051
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
945
1052
|
}
|
1053
|
+
/**
|
1054
|
+
* Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
|
1055
|
+
*
|
1056
|
+
* @param {string} project
|
1057
|
+
* @param {string} location
|
1058
|
+
* @param {string} collection
|
1059
|
+
* @param {string} data_store
|
1060
|
+
* @param {string} custom_tuning_model
|
1061
|
+
* @returns {string} Resource name string.
|
1062
|
+
*/
|
1063
|
+
projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
|
1064
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
|
1065
|
+
project: project,
|
1066
|
+
location: location,
|
1067
|
+
collection: collection,
|
1068
|
+
data_store: dataStore,
|
1069
|
+
custom_tuning_model: customTuningModel,
|
1070
|
+
});
|
1071
|
+
}
|
1072
|
+
/**
|
1073
|
+
* Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1074
|
+
*
|
1075
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1076
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1077
|
+
* @returns {string} A string representing the project.
|
1078
|
+
*/
|
1079
|
+
matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1080
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
|
1081
|
+
}
|
1082
|
+
/**
|
1083
|
+
* Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1084
|
+
*
|
1085
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1086
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1087
|
+
* @returns {string} A string representing the location.
|
1088
|
+
*/
|
1089
|
+
matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1090
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
|
1091
|
+
}
|
1092
|
+
/**
|
1093
|
+
* Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1094
|
+
*
|
1095
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1096
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1097
|
+
* @returns {string} A string representing the collection.
|
1098
|
+
*/
|
1099
|
+
matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1100
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
|
1101
|
+
}
|
1102
|
+
/**
|
1103
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1104
|
+
*
|
1105
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1106
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1107
|
+
* @returns {string} A string representing the data_store.
|
1108
|
+
*/
|
1109
|
+
matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1110
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
|
1111
|
+
}
|
1112
|
+
/**
|
1113
|
+
* Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1114
|
+
*
|
1115
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1116
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1117
|
+
* @returns {string} A string representing the custom_tuning_model.
|
1118
|
+
*/
|
1119
|
+
matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1120
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
|
1121
|
+
}
|
946
1122
|
/**
|
947
1123
|
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
948
1124
|
*
|
@@ -1414,6 +1590,75 @@ class CompletionServiceClient {
|
|
1414
1590
|
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1415
1591
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1416
1592
|
}
|
1593
|
+
/**
|
1594
|
+
* Return a fully-qualified projectLocationCollectionEngineControl resource name string.
|
1595
|
+
*
|
1596
|
+
* @param {string} project
|
1597
|
+
* @param {string} location
|
1598
|
+
* @param {string} collection
|
1599
|
+
* @param {string} engine
|
1600
|
+
* @param {string} control
|
1601
|
+
* @returns {string} Resource name string.
|
1602
|
+
*/
|
1603
|
+
projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
|
1604
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
|
1605
|
+
project: project,
|
1606
|
+
location: location,
|
1607
|
+
collection: collection,
|
1608
|
+
engine: engine,
|
1609
|
+
control: control,
|
1610
|
+
});
|
1611
|
+
}
|
1612
|
+
/**
|
1613
|
+
* Parse the project from ProjectLocationCollectionEngineControl resource.
|
1614
|
+
*
|
1615
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1616
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1617
|
+
* @returns {string} A string representing the project.
|
1618
|
+
*/
|
1619
|
+
matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1620
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
|
1621
|
+
}
|
1622
|
+
/**
|
1623
|
+
* Parse the location from ProjectLocationCollectionEngineControl resource.
|
1624
|
+
*
|
1625
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1626
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1627
|
+
* @returns {string} A string representing the location.
|
1628
|
+
*/
|
1629
|
+
matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1630
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
|
1631
|
+
}
|
1632
|
+
/**
|
1633
|
+
* Parse the collection from ProjectLocationCollectionEngineControl resource.
|
1634
|
+
*
|
1635
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1636
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1637
|
+
* @returns {string} A string representing the collection.
|
1638
|
+
*/
|
1639
|
+
matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1640
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
|
1641
|
+
}
|
1642
|
+
/**
|
1643
|
+
* Parse the engine from ProjectLocationCollectionEngineControl resource.
|
1644
|
+
*
|
1645
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1646
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1647
|
+
* @returns {string} A string representing the engine.
|
1648
|
+
*/
|
1649
|
+
matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1650
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
|
1651
|
+
}
|
1652
|
+
/**
|
1653
|
+
* Parse the control from ProjectLocationCollectionEngineControl resource.
|
1654
|
+
*
|
1655
|
+
* @param {string} projectLocationCollectionEngineControlName
|
1656
|
+
* A fully-qualified path representing project_location_collection_engine_control resource.
|
1657
|
+
* @returns {string} A string representing the control.
|
1658
|
+
*/
|
1659
|
+
matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
|
1660
|
+
return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
|
1661
|
+
}
|
1417
1662
|
/**
|
1418
1663
|
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1419
1664
|
*
|
@@ -1816,6 +2061,63 @@ class CompletionServiceClient {
|
|
1816
2061
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1817
2062
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1818
2063
|
}
|
2064
|
+
/**
|
2065
|
+
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2066
|
+
*
|
2067
|
+
* @param {string} project
|
2068
|
+
* @param {string} location
|
2069
|
+
* @param {string} data_store
|
2070
|
+
* @param {string} control
|
2071
|
+
* @returns {string} Resource name string.
|
2072
|
+
*/
|
2073
|
+
projectLocationDataStoreControlPath(project, location, dataStore, control) {
|
2074
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
|
2075
|
+
project: project,
|
2076
|
+
location: location,
|
2077
|
+
data_store: dataStore,
|
2078
|
+
control: control,
|
2079
|
+
});
|
2080
|
+
}
|
2081
|
+
/**
|
2082
|
+
* Parse the project from ProjectLocationDataStoreControl resource.
|
2083
|
+
*
|
2084
|
+
* @param {string} projectLocationDataStoreControlName
|
2085
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2086
|
+
* @returns {string} A string representing the project.
|
2087
|
+
*/
|
2088
|
+
matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2089
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
|
2090
|
+
}
|
2091
|
+
/**
|
2092
|
+
* Parse the location from ProjectLocationDataStoreControl resource.
|
2093
|
+
*
|
2094
|
+
* @param {string} projectLocationDataStoreControlName
|
2095
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2096
|
+
* @returns {string} A string representing the location.
|
2097
|
+
*/
|
2098
|
+
matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2099
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
|
2100
|
+
}
|
2101
|
+
/**
|
2102
|
+
* Parse the data_store from ProjectLocationDataStoreControl resource.
|
2103
|
+
*
|
2104
|
+
* @param {string} projectLocationDataStoreControlName
|
2105
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2106
|
+
* @returns {string} A string representing the data_store.
|
2107
|
+
*/
|
2108
|
+
matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2109
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
|
2110
|
+
}
|
2111
|
+
/**
|
2112
|
+
* Parse the control from ProjectLocationDataStoreControl resource.
|
2113
|
+
*
|
2114
|
+
* @param {string} projectLocationDataStoreControlName
|
2115
|
+
* A fully-qualified path representing project_location_data_store_control resource.
|
2116
|
+
* @returns {string} A string representing the control.
|
2117
|
+
*/
|
2118
|
+
matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
|
2119
|
+
return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
|
2120
|
+
}
|
1819
2121
|
/**
|
1820
2122
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
1821
2123
|
*
|
@@ -1873,6 +2175,63 @@ class CompletionServiceClient {
|
|
1873
2175
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1874
2176
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1875
2177
|
}
|
2178
|
+
/**
|
2179
|
+
* Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
|
2180
|
+
*
|
2181
|
+
* @param {string} project
|
2182
|
+
* @param {string} location
|
2183
|
+
* @param {string} data_store
|
2184
|
+
* @param {string} custom_tuning_model
|
2185
|
+
* @returns {string} Resource name string.
|
2186
|
+
*/
|
2187
|
+
projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
|
2188
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
|
2189
|
+
project: project,
|
2190
|
+
location: location,
|
2191
|
+
data_store: dataStore,
|
2192
|
+
custom_tuning_model: customTuningModel,
|
2193
|
+
});
|
2194
|
+
}
|
2195
|
+
/**
|
2196
|
+
* Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
|
2197
|
+
*
|
2198
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2199
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2200
|
+
* @returns {string} A string representing the project.
|
2201
|
+
*/
|
2202
|
+
matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2203
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
|
2204
|
+
}
|
2205
|
+
/**
|
2206
|
+
* Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
|
2207
|
+
*
|
2208
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2209
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2210
|
+
* @returns {string} A string representing the location.
|
2211
|
+
*/
|
2212
|
+
matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2213
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
|
2214
|
+
}
|
2215
|
+
/**
|
2216
|
+
* Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
|
2217
|
+
*
|
2218
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2219
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2220
|
+
* @returns {string} A string representing the data_store.
|
2221
|
+
*/
|
2222
|
+
matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2223
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
|
2224
|
+
}
|
2225
|
+
/**
|
2226
|
+
* Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
|
2227
|
+
*
|
2228
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2229
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2230
|
+
* @returns {string} A string representing the custom_tuning_model.
|
2231
|
+
*/
|
2232
|
+
matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2233
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
|
2234
|
+
}
|
1876
2235
|
/**
|
1877
2236
|
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
1878
2237
|
*
|