@google-cloud/discoveryengine 2.3.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 +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/conversational_search_service.proto +15 -3
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +8 -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/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 +15057 -10636
- package/build/protos/protos.js +45523 -34174
- package/build/protos/protos.json +4835 -3203
- package/build/src/index.d.ts +7 -1
- package/build/src/index.js +6 -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 +255 -144
- package/build/src/v1/cmek_config_service_client.js +348 -196
- package/build/src/v1/cmek_config_service_proto_list.json +4 -0
- package/build/src/v1/completion_service_client.d.ts +255 -144
- package/build/src/v1/completion_service_client.js +348 -196
- package/build/src/v1/completion_service_proto_list.json +4 -0
- package/build/src/v1/control_service_client.d.ts +255 -144
- package/build/src/v1/control_service_client.js +348 -196
- package/build/src/v1/control_service_proto_list.json +4 -0
- package/build/src/v1/conversational_search_service_client.d.ts +302 -155
- package/build/src/v1/conversational_search_service_client.js +380 -204
- package/build/src/v1/conversational_search_service_proto_list.json +4 -0
- package/build/src/v1/data_store_service_client.d.ts +255 -144
- package/build/src/v1/data_store_service_client.js +348 -196
- package/build/src/v1/data_store_service_proto_list.json +4 -0
- package/build/src/v1/document_service_client.d.ts +255 -144
- package/build/src/v1/document_service_client.js +348 -196
- package/build/src/v1/document_service_proto_list.json +4 -0
- package/build/src/v1/engine_service_client.d.ts +255 -144
- package/build/src/v1/engine_service_client.js +348 -196
- package/build/src/v1/engine_service_proto_list.json +4 -0
- package/build/src/v1/gapic_metadata.json +86 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +255 -144
- package/build/src/v1/grounded_generation_service_client.js +348 -196
- package/build/src/v1/grounded_generation_service_proto_list.json +4 -0
- package/build/src/v1/identity_mapping_store_service_client.d.ts +255 -144
- package/build/src/v1/identity_mapping_store_service_client.js +348 -196
- package/build/src/v1/identity_mapping_store_service_proto_list.json +4 -0
- package/build/src/v1/index.d.ts +2 -0
- package/build/src/v1/index.js +5 -1
- package/build/src/v1/project_service_client.d.ts +255 -144
- package/build/src/v1/project_service_client.js +348 -196
- package/build/src/v1/project_service_proto_list.json +4 -0
- package/build/src/v1/rank_service_client.d.ts +255 -144
- package/build/src/v1/rank_service_client.js +348 -196
- package/build/src/v1/rank_service_proto_list.json +4 -0
- package/build/src/v1/recommendation_service_client.d.ts +255 -144
- package/build/src/v1/recommendation_service_client.js +348 -196
- package/build/src/v1/recommendation_service_proto_list.json +4 -0
- package/build/src/v1/schema_service_client.d.ts +255 -144
- package/build/src/v1/schema_service_client.js +348 -196
- package/build/src/v1/schema_service_proto_list.json +4 -0
- package/build/src/v1/search_service_client.d.ts +303 -228
- package/build/src/v1/search_service_client.js +380 -252
- package/build/src/v1/search_service_proto_list.json +4 -0
- package/build/src/v1/search_tuning_service_client.d.ts +255 -144
- package/build/src/v1/search_tuning_service_client.js +348 -196
- package/build/src/v1/search_tuning_service_proto_list.json +4 -0
- package/build/src/v1/serving_config_service_client.d.ts +255 -144
- package/build/src/v1/serving_config_service_client.js +348 -196
- package/build/src/v1/serving_config_service_proto_list.json +4 -0
- 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 +255 -144
- package/build/src/v1/site_search_engine_service_client.js +348 -196
- package/build/src/v1/site_search_engine_service_proto_list.json +4 -0
- package/build/src/v1/user_event_service_client.d.ts +255 -144
- package/build/src/v1/user_event_service_client.js +348 -196
- package/build/src/v1/user_event_service_proto_list.json +4 -0
- package/build/src/v1/user_license_service_client.d.ts +255 -144
- package/build/src/v1/user_license_service_client.js +348 -196
- package/build/src/v1/user_license_service_proto_list.json +4 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
- package/build/src/v1alpha/acl_config_service_client.js +196 -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 +196 -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 +196 -196
- 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 +196 -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 +244 -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 +196 -196
- 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 +196 -196
- 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 +196 -196
- 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 +196 -196
- 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 +196 -196
- 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 +196 -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 +196 -196
- 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 +196 -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 +196 -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 +196 -196
- 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 +196 -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 +196 -196
- 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 +196 -196
- 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 +196 -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 +196 -196
- 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 +196 -196
- 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 +196 -196
- 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 +196 -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 +242 -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 +196 -196
- 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 +196 -196
- 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 +196 -196
- 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 +196 -196
- 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 +196 -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 +196 -196
- 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 +196 -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 +196 -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 +196 -196
- 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 +196 -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 +196 -196
- 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 +196 -196
- 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 +196 -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 +196 -196
- 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 +196 -196
- package/build/src/v1beta/user_event_service_proto_list.json +1 -0
- package/package.json +1 -1
@@ -176,16 +176,16 @@ class SearchServiceClient {
|
|
176
176
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
177
177
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
178
178
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
179
|
-
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
180
179
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
180
|
+
projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
181
181
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
182
182
|
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
183
183
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
184
184
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
185
185
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
186
186
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
187
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
188
187
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
188
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
189
189
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
190
190
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
191
191
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
@@ -196,8 +196,8 @@ class SearchServiceClient {
|
|
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}'),
|
@@ -590,22 +590,16 @@ class SearchServiceClient {
|
|
590
590
|
* between /search API calls and /answer API calls.
|
591
591
|
*
|
592
592
|
* Example #1 (multi-turn /search API calls):
|
593
|
-
*
|
594
|
-
*
|
595
|
-
*
|
596
|
-
*
|
597
|
-
*
|
598
|
-
* be interpreted as "How did Alphabet do in 2023?".
|
593
|
+
* Call /search API with the session ID generated in the first call.
|
594
|
+
* Here, the previous search query gets considered in query
|
595
|
+
* standing. I.e., if the first query is "How did Alphabet do in 2022?"
|
596
|
+
* and the current query is "How about 2023?", the current query will
|
597
|
+
* be interpreted as "How did Alphabet do in 2023?".
|
599
598
|
*
|
600
599
|
* Example #2 (coordination between /search API calls and /answer API calls):
|
601
|
-
*
|
602
|
-
*
|
603
|
-
*
|
604
|
-
* results from the first search call.
|
605
|
-
*
|
606
|
-
* Auto-session mode: when `projects/.../sessions/-` is used, a new session
|
607
|
-
* gets automatically created. Otherwise, users can use the create-session API
|
608
|
-
* to create a session manually.
|
600
|
+
* Call /answer API with the session ID generated in the first call.
|
601
|
+
* Here, the answer generation happens in the context of the search
|
602
|
+
* results from the first search call.
|
609
603
|
*
|
610
604
|
* Multi-turn Search feature is currently at private GA stage. Please use
|
611
605
|
* v1alpha or v1beta version instead before we launch this feature to public
|
@@ -895,22 +889,16 @@ class SearchServiceClient {
|
|
895
889
|
* between /search API calls and /answer API calls.
|
896
890
|
*
|
897
891
|
* Example #1 (multi-turn /search API calls):
|
898
|
-
*
|
899
|
-
*
|
900
|
-
*
|
901
|
-
*
|
902
|
-
*
|
903
|
-
* be interpreted as "How did Alphabet do in 2023?".
|
892
|
+
* Call /search API with the session ID generated in the first call.
|
893
|
+
* Here, the previous search query gets considered in query
|
894
|
+
* standing. I.e., if the first query is "How did Alphabet do in 2022?"
|
895
|
+
* and the current query is "How about 2023?", the current query will
|
896
|
+
* be interpreted as "How did Alphabet do in 2023?".
|
904
897
|
*
|
905
898
|
* Example #2 (coordination between /search API calls and /answer API calls):
|
906
|
-
*
|
907
|
-
*
|
908
|
-
*
|
909
|
-
* results from the first search call.
|
910
|
-
*
|
911
|
-
* Auto-session mode: when `projects/.../sessions/-` is used, a new session
|
912
|
-
* gets automatically created. Otherwise, users can use the create-session API
|
913
|
-
* to create a session manually.
|
899
|
+
* Call /answer API with the session ID generated in the first call.
|
900
|
+
* Here, the answer generation happens in the context of the search
|
901
|
+
* results from the first search call.
|
914
902
|
*
|
915
903
|
* Multi-turn Search feature is currently at private GA stage. Please use
|
916
904
|
* v1alpha or v1beta version instead before we launch this feature to public
|
@@ -1230,22 +1218,16 @@ class SearchServiceClient {
|
|
1230
1218
|
* between /search API calls and /answer API calls.
|
1231
1219
|
*
|
1232
1220
|
* Example #1 (multi-turn /search API calls):
|
1233
|
-
*
|
1234
|
-
*
|
1235
|
-
*
|
1236
|
-
*
|
1237
|
-
*
|
1238
|
-
* be interpreted as "How did Alphabet do in 2023?".
|
1221
|
+
* Call /search API with the session ID generated in the first call.
|
1222
|
+
* Here, the previous search query gets considered in query
|
1223
|
+
* standing. I.e., if the first query is "How did Alphabet do in 2022?"
|
1224
|
+
* and the current query is "How about 2023?", the current query will
|
1225
|
+
* be interpreted as "How did Alphabet do in 2023?".
|
1239
1226
|
*
|
1240
1227
|
* Example #2 (coordination between /search API calls and /answer API calls):
|
1241
|
-
*
|
1242
|
-
*
|
1243
|
-
*
|
1244
|
-
* results from the first search call.
|
1245
|
-
*
|
1246
|
-
* Auto-session mode: when `projects/.../sessions/-` is used, a new session
|
1247
|
-
* gets automatically created. Otherwise, users can use the create-session API
|
1248
|
-
* to create a session manually.
|
1228
|
+
* Call /answer API with the session ID generated in the first call.
|
1229
|
+
* Here, the answer generation happens in the context of the search
|
1230
|
+
* results from the first search call.
|
1249
1231
|
*
|
1250
1232
|
* Multi-turn Search feature is currently at private GA stage. Please use
|
1251
1233
|
* v1alpha or v1beta version instead before we launch this feature to public
|
@@ -1535,22 +1517,16 @@ class SearchServiceClient {
|
|
1535
1517
|
* between /search API calls and /answer API calls.
|
1536
1518
|
*
|
1537
1519
|
* Example #1 (multi-turn /search API calls):
|
1538
|
-
*
|
1539
|
-
*
|
1540
|
-
*
|
1541
|
-
*
|
1542
|
-
*
|
1543
|
-
* be interpreted as "How did Alphabet do in 2023?".
|
1520
|
+
* Call /search API with the session ID generated in the first call.
|
1521
|
+
* Here, the previous search query gets considered in query
|
1522
|
+
* standing. I.e., if the first query is "How did Alphabet do in 2022?"
|
1523
|
+
* and the current query is "How about 2023?", the current query will
|
1524
|
+
* be interpreted as "How did Alphabet do in 2023?".
|
1544
1525
|
*
|
1545
1526
|
* Example #2 (coordination between /search API calls and /answer API calls):
|
1546
|
-
*
|
1547
|
-
*
|
1548
|
-
*
|
1549
|
-
* results from the first search call.
|
1550
|
-
*
|
1551
|
-
* Auto-session mode: when `projects/.../sessions/-` is used, a new session
|
1552
|
-
* gets automatically created. Otherwise, users can use the create-session API
|
1553
|
-
* to create a session manually.
|
1527
|
+
* Call /answer API with the session ID generated in the first call.
|
1528
|
+
* Here, the answer generation happens in the context of the search
|
1529
|
+
* results from the first search call.
|
1554
1530
|
*
|
1555
1531
|
* Multi-turn Search feature is currently at private GA stage. Please use
|
1556
1532
|
* v1alpha or v1beta version instead before we launch this feature to public
|
@@ -2531,154 +2507,154 @@ class SearchServiceClient {
|
|
2531
2507
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
2532
2508
|
}
|
2533
2509
|
/**
|
2534
|
-
* Return a fully-qualified
|
2510
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
2535
2511
|
*
|
2536
2512
|
* @param {string} project
|
2537
2513
|
* @param {string} location
|
2538
2514
|
* @param {string} collection
|
2539
2515
|
* @param {string} data_store
|
2540
2516
|
* @param {string} session
|
2517
|
+
* @param {string} answer
|
2541
2518
|
* @returns {string} Resource name string.
|
2542
2519
|
*/
|
2543
|
-
|
2544
|
-
return this.pathTemplates.
|
2520
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
2521
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
2545
2522
|
project: project,
|
2546
2523
|
location: location,
|
2547
2524
|
collection: collection,
|
2548
2525
|
data_store: dataStore,
|
2549
2526
|
session: session,
|
2527
|
+
answer: answer,
|
2550
2528
|
});
|
2551
2529
|
}
|
2552
2530
|
/**
|
2553
|
-
* Parse the project from
|
2531
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2554
2532
|
*
|
2555
|
-
* @param {string}
|
2556
|
-
* A fully-qualified path representing
|
2533
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2534
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2557
2535
|
* @returns {string} A string representing the project.
|
2558
2536
|
*/
|
2559
|
-
|
2560
|
-
return this.pathTemplates.
|
2537
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2538
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
2561
2539
|
}
|
2562
2540
|
/**
|
2563
|
-
* Parse the location from
|
2541
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2564
2542
|
*
|
2565
|
-
* @param {string}
|
2566
|
-
* A fully-qualified path representing
|
2543
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2544
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2567
2545
|
* @returns {string} A string representing the location.
|
2568
2546
|
*/
|
2569
|
-
|
2570
|
-
return this.pathTemplates.
|
2547
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2548
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
2571
2549
|
}
|
2572
2550
|
/**
|
2573
|
-
* Parse the collection from
|
2551
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2574
2552
|
*
|
2575
|
-
* @param {string}
|
2576
|
-
* A fully-qualified path representing
|
2553
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2554
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2577
2555
|
* @returns {string} A string representing the collection.
|
2578
2556
|
*/
|
2579
|
-
|
2580
|
-
return this.pathTemplates.
|
2557
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2558
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
2581
2559
|
}
|
2582
2560
|
/**
|
2583
|
-
* Parse the data_store from
|
2561
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2584
2562
|
*
|
2585
|
-
* @param {string}
|
2586
|
-
* A fully-qualified path representing
|
2563
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2564
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2587
2565
|
* @returns {string} A string representing the data_store.
|
2588
2566
|
*/
|
2589
|
-
|
2590
|
-
return this.pathTemplates.
|
2567
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2568
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
2591
2569
|
}
|
2592
2570
|
/**
|
2593
|
-
* Parse the session from
|
2571
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2594
2572
|
*
|
2595
|
-
* @param {string}
|
2596
|
-
* A fully-qualified path representing
|
2573
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2574
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2597
2575
|
* @returns {string} A string representing the session.
|
2598
2576
|
*/
|
2599
|
-
|
2600
|
-
return this.pathTemplates.
|
2577
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2578
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
2601
2579
|
}
|
2602
2580
|
/**
|
2603
|
-
*
|
2581
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2582
|
+
*
|
2583
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2584
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2585
|
+
* @returns {string} A string representing the answer.
|
2586
|
+
*/
|
2587
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2588
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
2589
|
+
}
|
2590
|
+
/**
|
2591
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
2604
2592
|
*
|
2605
2593
|
* @param {string} project
|
2606
2594
|
* @param {string} location
|
2607
2595
|
* @param {string} collection
|
2608
2596
|
* @param {string} data_store
|
2609
2597
|
* @param {string} session
|
2610
|
-
* @param {string} answer
|
2611
2598
|
* @returns {string} Resource name string.
|
2612
2599
|
*/
|
2613
|
-
|
2614
|
-
return this.pathTemplates.
|
2600
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
2601
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
2615
2602
|
project: project,
|
2616
2603
|
location: location,
|
2617
2604
|
collection: collection,
|
2618
2605
|
data_store: dataStore,
|
2619
2606
|
session: session,
|
2620
|
-
answer: answer,
|
2621
2607
|
});
|
2622
2608
|
}
|
2623
2609
|
/**
|
2624
|
-
* Parse the project from
|
2610
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
2625
2611
|
*
|
2626
|
-
* @param {string}
|
2627
|
-
* A fully-qualified path representing
|
2612
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2613
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
2628
2614
|
* @returns {string} A string representing the project.
|
2629
2615
|
*/
|
2630
|
-
|
2631
|
-
return this.pathTemplates.
|
2616
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2617
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
2632
2618
|
}
|
2633
2619
|
/**
|
2634
|
-
* Parse the location from
|
2620
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
2635
2621
|
*
|
2636
|
-
* @param {string}
|
2637
|
-
* A fully-qualified path representing
|
2622
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2623
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
2638
2624
|
* @returns {string} A string representing the location.
|
2639
2625
|
*/
|
2640
|
-
|
2641
|
-
return this.pathTemplates.
|
2626
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2627
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
2642
2628
|
}
|
2643
2629
|
/**
|
2644
|
-
* Parse the collection from
|
2630
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
2645
2631
|
*
|
2646
|
-
* @param {string}
|
2647
|
-
* A fully-qualified path representing
|
2632
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2633
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
2648
2634
|
* @returns {string} A string representing the collection.
|
2649
2635
|
*/
|
2650
|
-
|
2651
|
-
return this.pathTemplates.
|
2636
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2637
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
2652
2638
|
}
|
2653
2639
|
/**
|
2654
|
-
* Parse the data_store from
|
2640
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
2655
2641
|
*
|
2656
|
-
* @param {string}
|
2657
|
-
* A fully-qualified path representing
|
2642
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2643
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
2658
2644
|
* @returns {string} A string representing the data_store.
|
2659
2645
|
*/
|
2660
|
-
|
2661
|
-
return this.pathTemplates.
|
2646
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2647
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
2662
2648
|
}
|
2663
2649
|
/**
|
2664
|
-
* Parse the session from
|
2650
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
2665
2651
|
*
|
2666
|
-
* @param {string}
|
2667
|
-
* A fully-qualified path representing
|
2652
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
2653
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
2668
2654
|
* @returns {string} A string representing the session.
|
2669
2655
|
*/
|
2670
|
-
|
2671
|
-
return this.pathTemplates.
|
2672
|
-
}
|
2673
|
-
/**
|
2674
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
2675
|
-
*
|
2676
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
2677
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
2678
|
-
* @returns {string} A string representing the answer.
|
2679
|
-
*/
|
2680
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
2681
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
2656
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
2657
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
2682
2658
|
}
|
2683
2659
|
/**
|
2684
2660
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -3083,154 +3059,154 @@ class SearchServiceClient {
|
|
3083
3059
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
3084
3060
|
}
|
3085
3061
|
/**
|
3086
|
-
* Return a fully-qualified
|
3062
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
3087
3063
|
*
|
3088
3064
|
* @param {string} project
|
3089
3065
|
* @param {string} location
|
3090
3066
|
* @param {string} collection
|
3091
3067
|
* @param {string} engine
|
3092
3068
|
* @param {string} session
|
3069
|
+
* @param {string} answer
|
3093
3070
|
* @returns {string} Resource name string.
|
3094
3071
|
*/
|
3095
|
-
|
3096
|
-
return this.pathTemplates.
|
3072
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
3073
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
3097
3074
|
project: project,
|
3098
3075
|
location: location,
|
3099
3076
|
collection: collection,
|
3100
3077
|
engine: engine,
|
3101
3078
|
session: session,
|
3079
|
+
answer: answer,
|
3102
3080
|
});
|
3103
3081
|
}
|
3104
3082
|
/**
|
3105
|
-
* Parse the project from
|
3083
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
3106
3084
|
*
|
3107
|
-
* @param {string}
|
3108
|
-
* A fully-qualified path representing
|
3085
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
3086
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
3109
3087
|
* @returns {string} A string representing the project.
|
3110
3088
|
*/
|
3111
|
-
|
3112
|
-
return this.pathTemplates.
|
3089
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
3090
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
3113
3091
|
}
|
3114
3092
|
/**
|
3115
|
-
* Parse the location from
|
3093
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
3116
3094
|
*
|
3117
|
-
* @param {string}
|
3118
|
-
* A fully-qualified path representing
|
3095
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
3096
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
3119
3097
|
* @returns {string} A string representing the location.
|
3120
3098
|
*/
|
3121
|
-
|
3122
|
-
return this.pathTemplates.
|
3099
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
3100
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
3123
3101
|
}
|
3124
3102
|
/**
|
3125
|
-
* Parse the collection from
|
3103
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
3126
3104
|
*
|
3127
|
-
* @param {string}
|
3128
|
-
* A fully-qualified path representing
|
3105
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
3106
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
3129
3107
|
* @returns {string} A string representing the collection.
|
3130
3108
|
*/
|
3131
|
-
|
3132
|
-
return this.pathTemplates.
|
3109
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
3110
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
3133
3111
|
}
|
3134
3112
|
/**
|
3135
|
-
* Parse the engine from
|
3113
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
3136
3114
|
*
|
3137
|
-
* @param {string}
|
3138
|
-
* A fully-qualified path representing
|
3115
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
3116
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
3139
3117
|
* @returns {string} A string representing the engine.
|
3140
3118
|
*/
|
3141
|
-
|
3142
|
-
return this.pathTemplates.
|
3119
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
3120
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
3143
3121
|
}
|
3144
3122
|
/**
|
3145
|
-
* Parse the session from
|
3123
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
3146
3124
|
*
|
3147
|
-
* @param {string}
|
3148
|
-
* A fully-qualified path representing
|
3125
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
3126
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
3149
3127
|
* @returns {string} A string representing the session.
|
3150
3128
|
*/
|
3151
|
-
|
3152
|
-
return this.pathTemplates.
|
3129
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
3130
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
3153
3131
|
}
|
3154
3132
|
/**
|
3155
|
-
*
|
3133
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
3134
|
+
*
|
3135
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
3136
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
3137
|
+
* @returns {string} A string representing the answer.
|
3138
|
+
*/
|
3139
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
3140
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
3141
|
+
}
|
3142
|
+
/**
|
3143
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
3156
3144
|
*
|
3157
3145
|
* @param {string} project
|
3158
3146
|
* @param {string} location
|
3159
3147
|
* @param {string} collection
|
3160
3148
|
* @param {string} engine
|
3161
3149
|
* @param {string} session
|
3162
|
-
* @param {string} answer
|
3163
3150
|
* @returns {string} Resource name string.
|
3164
3151
|
*/
|
3165
|
-
|
3166
|
-
return this.pathTemplates.
|
3152
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
3153
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
3167
3154
|
project: project,
|
3168
3155
|
location: location,
|
3169
3156
|
collection: collection,
|
3170
3157
|
engine: engine,
|
3171
3158
|
session: session,
|
3172
|
-
answer: answer,
|
3173
3159
|
});
|
3174
3160
|
}
|
3175
3161
|
/**
|
3176
|
-
* Parse the project from
|
3162
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
3177
3163
|
*
|
3178
|
-
* @param {string}
|
3179
|
-
* A fully-qualified path representing
|
3164
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
3165
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
3180
3166
|
* @returns {string} A string representing the project.
|
3181
3167
|
*/
|
3182
|
-
|
3183
|
-
return this.pathTemplates.
|
3168
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
3169
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
3184
3170
|
}
|
3185
3171
|
/**
|
3186
|
-
* Parse the location from
|
3172
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
3187
3173
|
*
|
3188
|
-
* @param {string}
|
3189
|
-
* A fully-qualified path representing
|
3174
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
3175
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
3190
3176
|
* @returns {string} A string representing the location.
|
3191
3177
|
*/
|
3192
|
-
|
3193
|
-
return this.pathTemplates.
|
3178
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
3179
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
3194
3180
|
}
|
3195
3181
|
/**
|
3196
|
-
* Parse the collection from
|
3182
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
3197
3183
|
*
|
3198
|
-
* @param {string}
|
3199
|
-
* A fully-qualified path representing
|
3184
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
3185
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
3200
3186
|
* @returns {string} A string representing the collection.
|
3201
3187
|
*/
|
3202
|
-
|
3203
|
-
return this.pathTemplates.
|
3188
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
3189
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
3204
3190
|
}
|
3205
3191
|
/**
|
3206
|
-
* Parse the engine from
|
3192
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
3207
3193
|
*
|
3208
|
-
* @param {string}
|
3209
|
-
* A fully-qualified path representing
|
3194
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
3195
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
3210
3196
|
* @returns {string} A string representing the engine.
|
3211
3197
|
*/
|
3212
|
-
|
3213
|
-
return this.pathTemplates.
|
3198
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
3199
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
3214
3200
|
}
|
3215
3201
|
/**
|
3216
|
-
* Parse the session from
|
3202
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
3217
3203
|
*
|
3218
|
-
* @param {string}
|
3219
|
-
* A fully-qualified path representing
|
3204
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
3205
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
3220
3206
|
* @returns {string} A string representing the session.
|
3221
3207
|
*/
|
3222
|
-
|
3223
|
-
return this.pathTemplates.
|
3224
|
-
}
|
3225
|
-
/**
|
3226
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
3227
|
-
*
|
3228
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
3229
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
3230
|
-
* @returns {string} A string representing the answer.
|
3231
|
-
*/
|
3232
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
3233
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
3208
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
3209
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
3234
3210
|
}
|
3235
3211
|
/**
|
3236
3212
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -3814,63 +3790,6 @@ class SearchServiceClient {
|
|
3814
3790
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3815
3791
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
3816
3792
|
}
|
3817
|
-
/**
|
3818
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
3819
|
-
*
|
3820
|
-
* @param {string} project
|
3821
|
-
* @param {string} location
|
3822
|
-
* @param {string} data_store
|
3823
|
-
* @param {string} session
|
3824
|
-
* @returns {string} Resource name string.
|
3825
|
-
*/
|
3826
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
3827
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
3828
|
-
project: project,
|
3829
|
-
location: location,
|
3830
|
-
data_store: dataStore,
|
3831
|
-
session: session,
|
3832
|
-
});
|
3833
|
-
}
|
3834
|
-
/**
|
3835
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
3836
|
-
*
|
3837
|
-
* @param {string} projectLocationDataStoreSessionName
|
3838
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3839
|
-
* @returns {string} A string representing the project.
|
3840
|
-
*/
|
3841
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3842
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
3843
|
-
}
|
3844
|
-
/**
|
3845
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
3846
|
-
*
|
3847
|
-
* @param {string} projectLocationDataStoreSessionName
|
3848
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3849
|
-
* @returns {string} A string representing the location.
|
3850
|
-
*/
|
3851
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3852
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
3853
|
-
}
|
3854
|
-
/**
|
3855
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
3856
|
-
*
|
3857
|
-
* @param {string} projectLocationDataStoreSessionName
|
3858
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3859
|
-
* @returns {string} A string representing the data_store.
|
3860
|
-
*/
|
3861
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3862
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
3863
|
-
}
|
3864
|
-
/**
|
3865
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
3866
|
-
*
|
3867
|
-
* @param {string} projectLocationDataStoreSessionName
|
3868
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
3869
|
-
* @returns {string} A string representing the session.
|
3870
|
-
*/
|
3871
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
3872
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
3873
|
-
}
|
3874
3793
|
/**
|
3875
3794
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
3876
3795
|
*
|
@@ -3940,6 +3859,63 @@ class SearchServiceClient {
|
|
3940
3859
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
3941
3860
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
3942
3861
|
}
|
3862
|
+
/**
|
3863
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
3864
|
+
*
|
3865
|
+
* @param {string} project
|
3866
|
+
* @param {string} location
|
3867
|
+
* @param {string} data_store
|
3868
|
+
* @param {string} session
|
3869
|
+
* @returns {string} Resource name string.
|
3870
|
+
*/
|
3871
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
3872
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
3873
|
+
project: project,
|
3874
|
+
location: location,
|
3875
|
+
data_store: dataStore,
|
3876
|
+
session: session,
|
3877
|
+
});
|
3878
|
+
}
|
3879
|
+
/**
|
3880
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
3881
|
+
*
|
3882
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3883
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3884
|
+
* @returns {string} A string representing the project.
|
3885
|
+
*/
|
3886
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3887
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
3888
|
+
}
|
3889
|
+
/**
|
3890
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
3891
|
+
*
|
3892
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3893
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3894
|
+
* @returns {string} A string representing the location.
|
3895
|
+
*/
|
3896
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3897
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
3898
|
+
}
|
3899
|
+
/**
|
3900
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
3901
|
+
*
|
3902
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3903
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3904
|
+
* @returns {string} A string representing the data_store.
|
3905
|
+
*/
|
3906
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3907
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
3908
|
+
}
|
3909
|
+
/**
|
3910
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
3911
|
+
*
|
3912
|
+
* @param {string} projectLocationDataStoreSessionsName
|
3913
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
3914
|
+
* @returns {string} A string representing the session.
|
3915
|
+
*/
|
3916
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
3917
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
3918
|
+
}
|
3943
3919
|
/**
|
3944
3920
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
3945
3921
|
*
|