@google-cloud/discoveryengine 2.2.0 → 2.4.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/README.md +30 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/assist_answer.proto +251 -0
- package/build/protos/google/cloud/discoveryengine/v1/assistant.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +217 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +18 -3
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +14 -14
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +21 -8
- package/build/protos/google/cloud/discoveryengine/v1/session_service.proto +128 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +15 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +30 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +8 -14
- package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +238 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/session_service.proto +201 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +26 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +8 -14
- package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +40 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/session_service.proto +128 -0
- package/build/protos/protos.d.ts +21218 -11675
- package/build/protos/protos.js +92642 -66407
- package/build/protos/protos.json +5854 -2801
- package/build/src/index.d.ts +16 -1
- package/build/src/index.js +12 -2
- package/build/src/v1/assistant_service_client.d.ts +2058 -0
- package/build/src/v1/assistant_service_client.js +2957 -0
- package/build/src/v1/assistant_service_client_config.json +43 -0
- package/build/src/v1/assistant_service_proto_list.json +48 -0
- package/build/src/v1/cmek_config_service_client.d.ts +2398 -0
- package/build/src/v1/cmek_config_service_client.js +3426 -0
- package/build/src/v1/cmek_config_service_client_config.json +42 -0
- package/build/src/v1/cmek_config_service_proto_list.json +48 -0
- package/build/src/v1/completion_service_client.d.ts +345 -144
- package/build/src/v1/completion_service_client.js +482 -198
- package/build/src/v1/completion_service_proto_list.json +10 -1
- package/build/src/v1/control_service_client.d.ts +345 -144
- package/build/src/v1/control_service_client.js +498 -196
- package/build/src/v1/control_service_proto_list.json +10 -1
- package/build/src/v1/conversational_search_service_client.d.ts +392 -155
- package/build/src/v1/conversational_search_service_client.js +572 -204
- package/build/src/v1/conversational_search_service_proto_list.json +10 -1
- package/build/src/v1/data_store_service_client.d.ts +351 -144
- package/build/src/v1/data_store_service_client.js +488 -198
- package/build/src/v1/data_store_service_proto_list.json +10 -1
- package/build/src/v1/document_service_client.d.ts +345 -144
- package/build/src/v1/document_service_client.js +506 -198
- package/build/src/v1/document_service_proto_list.json +10 -1
- package/build/src/v1/engine_service_client.d.ts +345 -144
- package/build/src/v1/engine_service_client.js +488 -198
- package/build/src/v1/engine_service_proto_list.json +10 -1
- package/build/src/v1/gapic_metadata.json +270 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +345 -144
- package/build/src/v1/grounded_generation_service_client.js +486 -196
- package/build/src/v1/grounded_generation_service_proto_list.json +10 -1
- package/build/src/v1/identity_mapping_store_service_client.d.ts +2581 -0
- package/build/src/v1/identity_mapping_store_service_client.js +3601 -0
- package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
- package/build/src/v1/identity_mapping_store_service_proto_list.json +48 -0
- package/build/src/v1/index.d.ts +5 -0
- package/build/src/v1/index.js +11 -1
- package/build/src/v1/project_service_client.d.ts +345 -144
- package/build/src/v1/project_service_client.js +476 -198
- package/build/src/v1/project_service_proto_list.json +10 -1
- package/build/src/v1/rank_service_client.d.ts +345 -144
- package/build/src/v1/rank_service_client.js +480 -196
- package/build/src/v1/rank_service_proto_list.json +10 -1
- package/build/src/v1/recommendation_service_client.d.ts +345 -144
- package/build/src/v1/recommendation_service_client.js +480 -196
- package/build/src/v1/recommendation_service_proto_list.json +10 -1
- package/build/src/v1/schema_service_client.d.ts +345 -144
- package/build/src/v1/schema_service_client.js +482 -198
- package/build/src/v1/schema_service_proto_list.json +10 -1
- package/build/src/v1/search_service_client.d.ts +393 -228
- package/build/src/v1/search_service_client.js +506 -252
- package/build/src/v1/search_service_proto_list.json +10 -1
- package/build/src/v1/search_tuning_service_client.d.ts +345 -144
- package/build/src/v1/search_tuning_service_client.js +482 -198
- package/build/src/v1/search_tuning_service_proto_list.json +10 -1
- package/build/src/v1/serving_config_service_client.d.ts +345 -144
- package/build/src/v1/serving_config_service_client.js +480 -196
- package/build/src/v1/serving_config_service_proto_list.json +10 -1
- package/build/src/v1/session_service_client.d.ts +2326 -0
- package/build/src/v1/session_service_client.js +3218 -0
- package/build/src/v1/session_service_client_config.json +63 -0
- package/build/src/v1/session_service_proto_list.json +48 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +345 -144
- package/build/src/v1/site_search_engine_service_client.js +494 -198
- package/build/src/v1/site_search_engine_service_proto_list.json +10 -1
- package/build/src/v1/user_event_service_client.d.ts +345 -144
- package/build/src/v1/user_event_service_client.js +488 -198
- package/build/src/v1/user_event_service_proto_list.json +10 -1
- package/build/src/v1/user_license_service_client.d.ts +2367 -0
- package/build/src/v1/user_license_service_client.js +3346 -0
- package/build/src/v1/user_license_service_client_config.json +34 -0
- package/build/src/v1/user_license_service_proto_list.json +48 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
- package/build/src/v1alpha/acl_config_service_client.js +208 -196
- package/build/src/v1alpha/acl_config_service_proto_list.json +1 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +144 -144
- package/build/src/v1alpha/chunk_service_client.js +202 -196
- package/build/src/v1alpha/chunk_service_proto_list.json +1 -0
- package/build/src/v1alpha/completion_service_client.d.ts +144 -144
- package/build/src/v1alpha/completion_service_client.js +203 -197
- package/build/src/v1alpha/completion_service_proto_list.json +1 -0
- package/build/src/v1alpha/control_service_client.d.ts +144 -144
- package/build/src/v1alpha/control_service_client.js +220 -196
- package/build/src/v1alpha/control_service_proto_list.json +1 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +221 -167
- package/build/src/v1alpha/conversational_search_service_client.js +310 -210
- package/build/src/v1alpha/conversational_search_service_proto_list.json +1 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +144 -144
- package/build/src/v1alpha/data_store_service_client.js +221 -197
- package/build/src/v1alpha/data_store_service_proto_list.json +1 -0
- package/build/src/v1alpha/document_service_client.d.ts +144 -144
- package/build/src/v1alpha/document_service_client.js +233 -197
- package/build/src/v1alpha/document_service_proto_list.json +1 -0
- package/build/src/v1alpha/engine_service_client.d.ts +144 -144
- package/build/src/v1alpha/engine_service_client.js +221 -197
- package/build/src/v1alpha/engine_service_proto_list.json +1 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +144 -144
- package/build/src/v1alpha/estimate_billing_service_client.js +197 -197
- package/build/src/v1alpha/estimate_billing_service_proto_list.json +1 -0
- package/build/src/v1alpha/evaluation_service_client.d.ts +144 -144
- package/build/src/v1alpha/evaluation_service_client.js +203 -197
- package/build/src/v1alpha/evaluation_service_proto_list.json +1 -0
- package/build/src/v1alpha/gapic_metadata.json +82 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +144 -144
- package/build/src/v1alpha/grounded_generation_service_client.js +202 -196
- package/build/src/v1alpha/grounded_generation_service_proto_list.json +1 -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 +144 -144
- package/build/src/v1alpha/project_service_client.js +209 -197
- package/build/src/v1alpha/project_service_proto_list.json +1 -0
- package/build/src/v1alpha/rank_service_client.d.ts +144 -144
- package/build/src/v1alpha/rank_service_client.js +202 -196
- package/build/src/v1alpha/rank_service_proto_list.json +1 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +144 -144
- package/build/src/v1alpha/recommendation_service_client.js +202 -196
- package/build/src/v1alpha/recommendation_service_proto_list.json +1 -0
- package/build/src/v1alpha/sample_query_service_client.d.ts +144 -144
- package/build/src/v1alpha/sample_query_service_client.js +221 -197
- package/build/src/v1alpha/sample_query_service_proto_list.json +1 -0
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +144 -144
- package/build/src/v1alpha/sample_query_set_service_client.js +220 -196
- package/build/src/v1alpha/sample_query_set_service_proto_list.json +1 -0
- package/build/src/v1alpha/schema_service_client.d.ts +144 -144
- package/build/src/v1alpha/schema_service_client.js +203 -197
- package/build/src/v1alpha/schema_service_proto_list.json +1 -0
- package/build/src/v1alpha/search_service_client.d.ts +168 -186
- package/build/src/v1alpha/search_service_client.js +212 -224
- package/build/src/v1alpha/search_service_proto_list.json +1 -0
- package/build/src/v1alpha/search_tuning_service_client.d.ts +144 -144
- package/build/src/v1alpha/search_tuning_service_client.js +203 -197
- package/build/src/v1alpha/search_tuning_service_proto_list.json +1 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +144 -144
- package/build/src/v1alpha/serving_config_service_client.js +208 -196
- package/build/src/v1alpha/serving_config_service_proto_list.json +1 -0
- package/build/src/v1alpha/session_service_client.d.ts +2331 -0
- package/build/src/v1alpha/session_service_client.js +3161 -0
- package/build/src/v1alpha/session_service_client_config.json +68 -0
- package/build/src/v1alpha/session_service_proto_list.json +49 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +144 -144
- package/build/src/v1alpha/site_search_engine_service_client.js +215 -197
- package/build/src/v1alpha/site_search_engine_service_proto_list.json +1 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +144 -144
- package/build/src/v1alpha/user_event_service_client.js +209 -197
- package/build/src/v1alpha/user_event_service_proto_list.json +1 -0
- package/build/src/v1beta/completion_service_client.d.ts +144 -144
- package/build/src/v1beta/completion_service_client.js +209 -197
- package/build/src/v1beta/completion_service_proto_list.json +1 -0
- package/build/src/v1beta/control_service_client.d.ts +144 -144
- package/build/src/v1beta/control_service_client.js +220 -196
- package/build/src/v1beta/control_service_proto_list.json +1 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +215 -161
- package/build/src/v1beta/conversational_search_service_client.js +308 -208
- package/build/src/v1beta/conversational_search_service_proto_list.json +1 -0
- package/build/src/v1beta/data_store_service_client.d.ts +144 -144
- package/build/src/v1beta/data_store_service_client.js +209 -197
- package/build/src/v1beta/data_store_service_proto_list.json +1 -0
- package/build/src/v1beta/document_service_client.d.ts +144 -144
- package/build/src/v1beta/document_service_client.js +227 -197
- package/build/src/v1beta/document_service_proto_list.json +1 -0
- package/build/src/v1beta/engine_service_client.d.ts +144 -144
- package/build/src/v1beta/engine_service_client.js +221 -197
- package/build/src/v1beta/engine_service_proto_list.json +1 -0
- package/build/src/v1beta/evaluation_service_client.d.ts +144 -144
- package/build/src/v1beta/evaluation_service_client.js +203 -197
- package/build/src/v1beta/evaluation_service_proto_list.json +1 -0
- package/build/src/v1beta/gapic_metadata.json +68 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +144 -144
- package/build/src/v1beta/grounded_generation_service_client.js +208 -196
- package/build/src/v1beta/grounded_generation_service_proto_list.json +1 -0
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/project_service_client.d.ts +144 -144
- package/build/src/v1beta/project_service_client.js +197 -197
- package/build/src/v1beta/project_service_proto_list.json +1 -0
- package/build/src/v1beta/rank_service_client.d.ts +144 -144
- package/build/src/v1beta/rank_service_client.js +202 -196
- package/build/src/v1beta/rank_service_proto_list.json +1 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +144 -144
- package/build/src/v1beta/recommendation_service_client.js +202 -196
- package/build/src/v1beta/recommendation_service_proto_list.json +1 -0
- package/build/src/v1beta/sample_query_service_client.d.ts +144 -144
- package/build/src/v1beta/sample_query_service_client.js +221 -197
- package/build/src/v1beta/sample_query_service_proto_list.json +1 -0
- package/build/src/v1beta/sample_query_set_service_client.d.ts +144 -144
- package/build/src/v1beta/sample_query_set_service_client.js +220 -196
- package/build/src/v1beta/sample_query_set_service_proto_list.json +1 -0
- package/build/src/v1beta/schema_service_client.d.ts +144 -144
- package/build/src/v1beta/schema_service_client.js +203 -197
- package/build/src/v1beta/schema_service_proto_list.json +1 -0
- package/build/src/v1beta/search_service_client.d.ts +192 -228
- package/build/src/v1beta/search_service_client.js +228 -252
- package/build/src/v1beta/search_service_proto_list.json +1 -0
- package/build/src/v1beta/search_tuning_service_client.d.ts +144 -144
- package/build/src/v1beta/search_tuning_service_client.js +203 -197
- package/build/src/v1beta/search_tuning_service_proto_list.json +1 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +144 -144
- package/build/src/v1beta/serving_config_service_client.js +208 -196
- package/build/src/v1beta/serving_config_service_proto_list.json +1 -0
- package/build/src/v1beta/session_service_client.d.ts +2266 -0
- package/build/src/v1beta/session_service_client.js +3136 -0
- package/build/src/v1beta/session_service_client_config.json +63 -0
- package/build/src/v1beta/session_service_proto_list.json +45 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +144 -144
- package/build/src/v1beta/site_search_engine_service_client.js +215 -197
- package/build/src/v1beta/site_search_engine_service_proto_list.json +1 -0
- package/build/src/v1beta/user_event_service_client.d.ts +144 -144
- package/build/src/v1beta/user_event_service_client.js +209 -197
- package/build/src/v1beta/user_event_service_proto_list.json +1 -0
- package/package.json +7 -7
- package/CHANGELOG.md +0 -274
@@ -177,16 +177,16 @@ class GroundedGenerationServiceClient {
|
|
177
177
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
178
178
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
179
179
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
180
|
-
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
181
180
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
181
|
+
projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
182
182
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
183
183
|
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
184
184
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
185
185
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
186
186
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
187
187
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
188
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
189
188
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
189
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
190
190
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
191
191
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
192
192
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -196,8 +196,8 @@ class GroundedGenerationServiceClient {
|
|
196
196
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
197
197
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
198
198
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
199
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
200
199
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
200
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
201
201
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
202
202
|
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
203
203
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
@@ -355,6 +355,12 @@ class GroundedGenerationServiceClient {
|
|
355
355
|
?.then(([response, options, rawResponse]) => {
|
356
356
|
this._log.info('generateGroundedContent response %j', response);
|
357
357
|
return [response, options, rawResponse];
|
358
|
+
}).catch((error) => {
|
359
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
360
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
361
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
362
|
+
}
|
363
|
+
throw error;
|
358
364
|
});
|
359
365
|
}
|
360
366
|
checkGrounding(request, optionsOrCallback, callback) {
|
@@ -385,6 +391,12 @@ class GroundedGenerationServiceClient {
|
|
385
391
|
?.then(([response, options, rawResponse]) => {
|
386
392
|
this._log.info('checkGrounding response %j', response);
|
387
393
|
return [response, options, rawResponse];
|
394
|
+
}).catch((error) => {
|
395
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
396
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
397
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
398
|
+
}
|
399
|
+
throw error;
|
388
400
|
});
|
389
401
|
}
|
390
402
|
/**
|
@@ -1299,154 +1311,154 @@ class GroundedGenerationServiceClient {
|
|
1299
1311
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1300
1312
|
}
|
1301
1313
|
/**
|
1302
|
-
* Return a fully-qualified
|
1314
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1303
1315
|
*
|
1304
1316
|
* @param {string} project
|
1305
1317
|
* @param {string} location
|
1306
1318
|
* @param {string} collection
|
1307
1319
|
* @param {string} data_store
|
1308
1320
|
* @param {string} session
|
1321
|
+
* @param {string} answer
|
1309
1322
|
* @returns {string} Resource name string.
|
1310
1323
|
*/
|
1311
|
-
|
1312
|
-
return this.pathTemplates.
|
1324
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1325
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1313
1326
|
project: project,
|
1314
1327
|
location: location,
|
1315
1328
|
collection: collection,
|
1316
1329
|
data_store: dataStore,
|
1317
1330
|
session: session,
|
1331
|
+
answer: answer,
|
1318
1332
|
});
|
1319
1333
|
}
|
1320
1334
|
/**
|
1321
|
-
* Parse the project from
|
1335
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1322
1336
|
*
|
1323
|
-
* @param {string}
|
1324
|
-
* A fully-qualified path representing
|
1337
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1338
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1325
1339
|
* @returns {string} A string representing the project.
|
1326
1340
|
*/
|
1327
|
-
|
1328
|
-
return this.pathTemplates.
|
1341
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1342
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1329
1343
|
}
|
1330
1344
|
/**
|
1331
|
-
* Parse the location from
|
1345
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1332
1346
|
*
|
1333
|
-
* @param {string}
|
1334
|
-
* A fully-qualified path representing
|
1347
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1348
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1335
1349
|
* @returns {string} A string representing the location.
|
1336
1350
|
*/
|
1337
|
-
|
1338
|
-
return this.pathTemplates.
|
1351
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1352
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1339
1353
|
}
|
1340
1354
|
/**
|
1341
|
-
* Parse the collection from
|
1355
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1342
1356
|
*
|
1343
|
-
* @param {string}
|
1344
|
-
* A fully-qualified path representing
|
1357
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1358
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1345
1359
|
* @returns {string} A string representing the collection.
|
1346
1360
|
*/
|
1347
|
-
|
1348
|
-
return this.pathTemplates.
|
1361
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1362
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1349
1363
|
}
|
1350
1364
|
/**
|
1351
|
-
* Parse the data_store from
|
1365
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1352
1366
|
*
|
1353
|
-
* @param {string}
|
1354
|
-
* A fully-qualified path representing
|
1367
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1368
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1355
1369
|
* @returns {string} A string representing the data_store.
|
1356
1370
|
*/
|
1357
|
-
|
1358
|
-
return this.pathTemplates.
|
1371
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1372
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1359
1373
|
}
|
1360
1374
|
/**
|
1361
|
-
* Parse the session from
|
1375
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1362
1376
|
*
|
1363
|
-
* @param {string}
|
1364
|
-
* A fully-qualified path representing
|
1377
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1378
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1365
1379
|
* @returns {string} A string representing the session.
|
1366
1380
|
*/
|
1367
|
-
|
1368
|
-
return this.pathTemplates.
|
1381
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1382
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1369
1383
|
}
|
1370
1384
|
/**
|
1371
|
-
*
|
1385
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1386
|
+
*
|
1387
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1388
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1389
|
+
* @returns {string} A string representing the answer.
|
1390
|
+
*/
|
1391
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1392
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1393
|
+
}
|
1394
|
+
/**
|
1395
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1372
1396
|
*
|
1373
1397
|
* @param {string} project
|
1374
1398
|
* @param {string} location
|
1375
1399
|
* @param {string} collection
|
1376
1400
|
* @param {string} data_store
|
1377
1401
|
* @param {string} session
|
1378
|
-
* @param {string} answer
|
1379
1402
|
* @returns {string} Resource name string.
|
1380
1403
|
*/
|
1381
|
-
|
1382
|
-
return this.pathTemplates.
|
1404
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1405
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1383
1406
|
project: project,
|
1384
1407
|
location: location,
|
1385
1408
|
collection: collection,
|
1386
1409
|
data_store: dataStore,
|
1387
1410
|
session: session,
|
1388
|
-
answer: answer,
|
1389
1411
|
});
|
1390
1412
|
}
|
1391
1413
|
/**
|
1392
|
-
* Parse the project from
|
1414
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1393
1415
|
*
|
1394
|
-
* @param {string}
|
1395
|
-
* A fully-qualified path representing
|
1416
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1417
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1396
1418
|
* @returns {string} A string representing the project.
|
1397
1419
|
*/
|
1398
|
-
|
1399
|
-
return this.pathTemplates.
|
1420
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1421
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1400
1422
|
}
|
1401
1423
|
/**
|
1402
|
-
* Parse the location from
|
1424
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1403
1425
|
*
|
1404
|
-
* @param {string}
|
1405
|
-
* A fully-qualified path representing
|
1426
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1427
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1406
1428
|
* @returns {string} A string representing the location.
|
1407
1429
|
*/
|
1408
|
-
|
1409
|
-
return this.pathTemplates.
|
1430
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1431
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1410
1432
|
}
|
1411
1433
|
/**
|
1412
|
-
* Parse the collection from
|
1434
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1413
1435
|
*
|
1414
|
-
* @param {string}
|
1415
|
-
* A fully-qualified path representing
|
1436
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1437
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1416
1438
|
* @returns {string} A string representing the collection.
|
1417
1439
|
*/
|
1418
|
-
|
1419
|
-
return this.pathTemplates.
|
1440
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1441
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1420
1442
|
}
|
1421
1443
|
/**
|
1422
|
-
* Parse the data_store from
|
1444
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1423
1445
|
*
|
1424
|
-
* @param {string}
|
1425
|
-
* A fully-qualified path representing
|
1446
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1447
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1426
1448
|
* @returns {string} A string representing the data_store.
|
1427
1449
|
*/
|
1428
|
-
|
1429
|
-
return this.pathTemplates.
|
1450
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1451
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1430
1452
|
}
|
1431
1453
|
/**
|
1432
|
-
* Parse the session from
|
1454
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
1433
1455
|
*
|
1434
|
-
* @param {string}
|
1435
|
-
* A fully-qualified path representing
|
1456
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1457
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1436
1458
|
* @returns {string} A string representing the session.
|
1437
1459
|
*/
|
1438
|
-
|
1439
|
-
return this.pathTemplates.
|
1440
|
-
}
|
1441
|
-
/**
|
1442
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1443
|
-
*
|
1444
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1445
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1446
|
-
* @returns {string} A string representing the answer.
|
1447
|
-
*/
|
1448
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1449
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1460
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1461
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
1450
1462
|
}
|
1451
1463
|
/**
|
1452
1464
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -1851,154 +1863,154 @@ class GroundedGenerationServiceClient {
|
|
1851
1863
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1852
1864
|
}
|
1853
1865
|
/**
|
1854
|
-
* Return a fully-qualified
|
1866
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
1855
1867
|
*
|
1856
1868
|
* @param {string} project
|
1857
1869
|
* @param {string} location
|
1858
1870
|
* @param {string} collection
|
1859
1871
|
* @param {string} engine
|
1860
1872
|
* @param {string} session
|
1873
|
+
* @param {string} answer
|
1861
1874
|
* @returns {string} Resource name string.
|
1862
1875
|
*/
|
1863
|
-
|
1864
|
-
return this.pathTemplates.
|
1876
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
1877
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
1865
1878
|
project: project,
|
1866
1879
|
location: location,
|
1867
1880
|
collection: collection,
|
1868
1881
|
engine: engine,
|
1869
1882
|
session: session,
|
1883
|
+
answer: answer,
|
1870
1884
|
});
|
1871
1885
|
}
|
1872
1886
|
/**
|
1873
|
-
* Parse the project from
|
1887
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
1874
1888
|
*
|
1875
|
-
* @param {string}
|
1876
|
-
* A fully-qualified path representing
|
1889
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1890
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1877
1891
|
* @returns {string} A string representing the project.
|
1878
1892
|
*/
|
1879
|
-
|
1880
|
-
return this.pathTemplates.
|
1893
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1894
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
1881
1895
|
}
|
1882
1896
|
/**
|
1883
|
-
* Parse the location from
|
1897
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
1884
1898
|
*
|
1885
|
-
* @param {string}
|
1886
|
-
* A fully-qualified path representing
|
1899
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1900
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1887
1901
|
* @returns {string} A string representing the location.
|
1888
1902
|
*/
|
1889
|
-
|
1890
|
-
return this.pathTemplates.
|
1903
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1904
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
1891
1905
|
}
|
1892
1906
|
/**
|
1893
|
-
* Parse the collection from
|
1907
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
1894
1908
|
*
|
1895
|
-
* @param {string}
|
1896
|
-
* A fully-qualified path representing
|
1909
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1910
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1897
1911
|
* @returns {string} A string representing the collection.
|
1898
1912
|
*/
|
1899
|
-
|
1900
|
-
return this.pathTemplates.
|
1913
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1914
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
1901
1915
|
}
|
1902
1916
|
/**
|
1903
|
-
* Parse the engine from
|
1917
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
1904
1918
|
*
|
1905
|
-
* @param {string}
|
1906
|
-
* A fully-qualified path representing
|
1919
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1920
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1907
1921
|
* @returns {string} A string representing the engine.
|
1908
1922
|
*/
|
1909
|
-
|
1910
|
-
return this.pathTemplates.
|
1923
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1924
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
1911
1925
|
}
|
1912
1926
|
/**
|
1913
|
-
* Parse the session from
|
1927
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
1914
1928
|
*
|
1915
|
-
* @param {string}
|
1916
|
-
* A fully-qualified path representing
|
1929
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1930
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1917
1931
|
* @returns {string} A string representing the session.
|
1918
1932
|
*/
|
1919
|
-
|
1920
|
-
return this.pathTemplates.
|
1933
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1934
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
1921
1935
|
}
|
1922
1936
|
/**
|
1923
|
-
*
|
1937
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
1938
|
+
*
|
1939
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1940
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1941
|
+
* @returns {string} A string representing the answer.
|
1942
|
+
*/
|
1943
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1944
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
1945
|
+
}
|
1946
|
+
/**
|
1947
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
1924
1948
|
*
|
1925
1949
|
* @param {string} project
|
1926
1950
|
* @param {string} location
|
1927
1951
|
* @param {string} collection
|
1928
1952
|
* @param {string} engine
|
1929
1953
|
* @param {string} session
|
1930
|
-
* @param {string} answer
|
1931
1954
|
* @returns {string} Resource name string.
|
1932
1955
|
*/
|
1933
|
-
|
1934
|
-
return this.pathTemplates.
|
1956
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
1957
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
1935
1958
|
project: project,
|
1936
1959
|
location: location,
|
1937
1960
|
collection: collection,
|
1938
1961
|
engine: engine,
|
1939
1962
|
session: session,
|
1940
|
-
answer: answer,
|
1941
1963
|
});
|
1942
1964
|
}
|
1943
1965
|
/**
|
1944
|
-
* Parse the project from
|
1966
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
1945
1967
|
*
|
1946
|
-
* @param {string}
|
1947
|
-
* A fully-qualified path representing
|
1968
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
1969
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
1948
1970
|
* @returns {string} A string representing the project.
|
1949
1971
|
*/
|
1950
|
-
|
1951
|
-
return this.pathTemplates.
|
1972
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
1973
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
1952
1974
|
}
|
1953
1975
|
/**
|
1954
|
-
* Parse the location from
|
1976
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
1955
1977
|
*
|
1956
|
-
* @param {string}
|
1957
|
-
* A fully-qualified path representing
|
1978
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
1979
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
1958
1980
|
* @returns {string} A string representing the location.
|
1959
1981
|
*/
|
1960
|
-
|
1961
|
-
return this.pathTemplates.
|
1982
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
1983
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
1962
1984
|
}
|
1963
1985
|
/**
|
1964
|
-
* Parse the collection from
|
1986
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
1965
1987
|
*
|
1966
|
-
* @param {string}
|
1967
|
-
* A fully-qualified path representing
|
1988
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
1989
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
1968
1990
|
* @returns {string} A string representing the collection.
|
1969
1991
|
*/
|
1970
|
-
|
1971
|
-
return this.pathTemplates.
|
1992
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
1993
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
1972
1994
|
}
|
1973
1995
|
/**
|
1974
|
-
* Parse the engine from
|
1996
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
1975
1997
|
*
|
1976
|
-
* @param {string}
|
1977
|
-
* A fully-qualified path representing
|
1998
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
1999
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
1978
2000
|
* @returns {string} A string representing the engine.
|
1979
2001
|
*/
|
1980
|
-
|
1981
|
-
return this.pathTemplates.
|
2002
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2003
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
1982
2004
|
}
|
1983
2005
|
/**
|
1984
|
-
* Parse the session from
|
2006
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
1985
2007
|
*
|
1986
|
-
* @param {string}
|
1987
|
-
* A fully-qualified path representing
|
2008
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2009
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
1988
2010
|
* @returns {string} A string representing the session.
|
1989
2011
|
*/
|
1990
|
-
|
1991
|
-
return this.pathTemplates.
|
1992
|
-
}
|
1993
|
-
/**
|
1994
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
1995
|
-
*
|
1996
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1997
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1998
|
-
* @returns {string} A string representing the answer.
|
1999
|
-
*/
|
2000
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2001
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2012
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2013
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2002
2014
|
}
|
2003
2015
|
/**
|
2004
2016
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -2525,63 +2537,6 @@ class GroundedGenerationServiceClient {
|
|
2525
2537
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2526
2538
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2527
2539
|
}
|
2528
|
-
/**
|
2529
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2530
|
-
*
|
2531
|
-
* @param {string} project
|
2532
|
-
* @param {string} location
|
2533
|
-
* @param {string} data_store
|
2534
|
-
* @param {string} session
|
2535
|
-
* @returns {string} Resource name string.
|
2536
|
-
*/
|
2537
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2538
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2539
|
-
project: project,
|
2540
|
-
location: location,
|
2541
|
-
data_store: dataStore,
|
2542
|
-
session: session,
|
2543
|
-
});
|
2544
|
-
}
|
2545
|
-
/**
|
2546
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
2547
|
-
*
|
2548
|
-
* @param {string} projectLocationDataStoreSessionName
|
2549
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2550
|
-
* @returns {string} A string representing the project.
|
2551
|
-
*/
|
2552
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2553
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2554
|
-
}
|
2555
|
-
/**
|
2556
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
2557
|
-
*
|
2558
|
-
* @param {string} projectLocationDataStoreSessionName
|
2559
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2560
|
-
* @returns {string} A string representing the location.
|
2561
|
-
*/
|
2562
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2563
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2564
|
-
}
|
2565
|
-
/**
|
2566
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2567
|
-
*
|
2568
|
-
* @param {string} projectLocationDataStoreSessionName
|
2569
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2570
|
-
* @returns {string} A string representing the data_store.
|
2571
|
-
*/
|
2572
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2573
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2574
|
-
}
|
2575
|
-
/**
|
2576
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
2577
|
-
*
|
2578
|
-
* @param {string} projectLocationDataStoreSessionName
|
2579
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2580
|
-
* @returns {string} A string representing the session.
|
2581
|
-
*/
|
2582
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2583
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2584
|
-
}
|
2585
2540
|
/**
|
2586
2541
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2587
2542
|
*
|
@@ -2651,6 +2606,63 @@ class GroundedGenerationServiceClient {
|
|
2651
2606
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2652
2607
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2653
2608
|
}
|
2609
|
+
/**
|
2610
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
2611
|
+
*
|
2612
|
+
* @param {string} project
|
2613
|
+
* @param {string} location
|
2614
|
+
* @param {string} data_store
|
2615
|
+
* @param {string} session
|
2616
|
+
* @returns {string} Resource name string.
|
2617
|
+
*/
|
2618
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
2619
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
2620
|
+
project: project,
|
2621
|
+
location: location,
|
2622
|
+
data_store: dataStore,
|
2623
|
+
session: session,
|
2624
|
+
});
|
2625
|
+
}
|
2626
|
+
/**
|
2627
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
2628
|
+
*
|
2629
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2630
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2631
|
+
* @returns {string} A string representing the project.
|
2632
|
+
*/
|
2633
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2634
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
2635
|
+
}
|
2636
|
+
/**
|
2637
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
2638
|
+
*
|
2639
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2640
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2641
|
+
* @returns {string} A string representing the location.
|
2642
|
+
*/
|
2643
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2644
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
2645
|
+
}
|
2646
|
+
/**
|
2647
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
2648
|
+
*
|
2649
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2650
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2651
|
+
* @returns {string} A string representing the data_store.
|
2652
|
+
*/
|
2653
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2654
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
2655
|
+
}
|
2656
|
+
/**
|
2657
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
2658
|
+
*
|
2659
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2660
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2661
|
+
* @returns {string} A string representing the session.
|
2662
|
+
*/
|
2663
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2664
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
2665
|
+
}
|
2654
2666
|
/**
|
2655
2667
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
2656
2668
|
*
|