@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
@@ -176,15 +176,15 @@ class CompletionServiceClient {
|
|
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
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
183
183
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
184
184
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
185
185
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
186
|
-
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
187
186
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
187
|
+
projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
188
188
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
189
189
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
190
190
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -194,14 +194,14 @@ class CompletionServiceClient {
|
|
194
194
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
195
195
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
196
196
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
197
|
-
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
198
197
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
198
|
+
projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
199
199
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
200
200
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
201
201
|
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
202
202
|
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
203
203
|
};
|
204
|
-
const protoFilesRoot = this._gaxModule.
|
204
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
205
205
|
// This API contains "long-running operations", which return a
|
206
206
|
// an Operation object that allows for tracking of the operation,
|
207
207
|
// rather than holding a request open.
|
@@ -370,6 +370,12 @@ class CompletionServiceClient {
|
|
370
370
|
?.then(([response, options, rawResponse]) => {
|
371
371
|
this._log.info('completeQuery response %j', response);
|
372
372
|
return [response, options, rawResponse];
|
373
|
+
}).catch((error) => {
|
374
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
375
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
376
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
377
|
+
}
|
378
|
+
throw error;
|
373
379
|
});
|
374
380
|
}
|
375
381
|
importSuggestionDenyListEntries(request, optionsOrCallback, callback) {
|
@@ -1592,154 +1598,154 @@ class CompletionServiceClient {
|
|
1592
1598
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1593
1599
|
}
|
1594
1600
|
/**
|
1595
|
-
* Return a fully-qualified
|
1601
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1596
1602
|
*
|
1597
1603
|
* @param {string} project
|
1598
1604
|
* @param {string} location
|
1599
1605
|
* @param {string} collection
|
1600
1606
|
* @param {string} data_store
|
1601
1607
|
* @param {string} session
|
1608
|
+
* @param {string} answer
|
1602
1609
|
* @returns {string} Resource name string.
|
1603
1610
|
*/
|
1604
|
-
|
1605
|
-
return this.pathTemplates.
|
1611
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1612
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1606
1613
|
project: project,
|
1607
1614
|
location: location,
|
1608
1615
|
collection: collection,
|
1609
1616
|
data_store: dataStore,
|
1610
1617
|
session: session,
|
1618
|
+
answer: answer,
|
1611
1619
|
});
|
1612
1620
|
}
|
1613
1621
|
/**
|
1614
|
-
* Parse the project from
|
1622
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1615
1623
|
*
|
1616
|
-
* @param {string}
|
1617
|
-
* A fully-qualified path representing
|
1624
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1625
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1618
1626
|
* @returns {string} A string representing the project.
|
1619
1627
|
*/
|
1620
|
-
|
1621
|
-
return this.pathTemplates.
|
1628
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1629
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1622
1630
|
}
|
1623
1631
|
/**
|
1624
|
-
* Parse the location from
|
1632
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1625
1633
|
*
|
1626
|
-
* @param {string}
|
1627
|
-
* A fully-qualified path representing
|
1634
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1635
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1628
1636
|
* @returns {string} A string representing the location.
|
1629
1637
|
*/
|
1630
|
-
|
1631
|
-
return this.pathTemplates.
|
1638
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1639
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1632
1640
|
}
|
1633
1641
|
/**
|
1634
|
-
* Parse the collection from
|
1642
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1635
1643
|
*
|
1636
|
-
* @param {string}
|
1637
|
-
* A fully-qualified path representing
|
1644
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1645
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1638
1646
|
* @returns {string} A string representing the collection.
|
1639
1647
|
*/
|
1640
|
-
|
1641
|
-
return this.pathTemplates.
|
1648
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1649
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1642
1650
|
}
|
1643
1651
|
/**
|
1644
|
-
* Parse the data_store from
|
1652
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1645
1653
|
*
|
1646
|
-
* @param {string}
|
1647
|
-
* A fully-qualified path representing
|
1654
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1655
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1648
1656
|
* @returns {string} A string representing the data_store.
|
1649
1657
|
*/
|
1650
|
-
|
1651
|
-
return this.pathTemplates.
|
1658
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1659
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1652
1660
|
}
|
1653
1661
|
/**
|
1654
|
-
* Parse the session from
|
1662
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1655
1663
|
*
|
1656
|
-
* @param {string}
|
1657
|
-
* A fully-qualified path representing
|
1664
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1665
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1658
1666
|
* @returns {string} A string representing the session.
|
1659
1667
|
*/
|
1660
|
-
|
1661
|
-
return this.pathTemplates.
|
1668
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1669
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1662
1670
|
}
|
1663
1671
|
/**
|
1664
|
-
*
|
1672
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1673
|
+
*
|
1674
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1675
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1676
|
+
* @returns {string} A string representing the answer.
|
1677
|
+
*/
|
1678
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1679
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1680
|
+
}
|
1681
|
+
/**
|
1682
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
|
1665
1683
|
*
|
1666
1684
|
* @param {string} project
|
1667
1685
|
* @param {string} location
|
1668
1686
|
* @param {string} collection
|
1669
1687
|
* @param {string} data_store
|
1670
1688
|
* @param {string} session
|
1671
|
-
* @param {string} answer
|
1672
1689
|
* @returns {string} Resource name string.
|
1673
1690
|
*/
|
1674
|
-
|
1675
|
-
return this.pathTemplates.
|
1691
|
+
projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
|
1692
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
|
1676
1693
|
project: project,
|
1677
1694
|
location: location,
|
1678
1695
|
collection: collection,
|
1679
1696
|
data_store: dataStore,
|
1680
1697
|
session: session,
|
1681
|
-
answer: answer,
|
1682
1698
|
});
|
1683
1699
|
}
|
1684
1700
|
/**
|
1685
|
-
* Parse the project from
|
1701
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessions resource.
|
1686
1702
|
*
|
1687
|
-
* @param {string}
|
1688
|
-
* A fully-qualified path representing
|
1703
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1704
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1689
1705
|
* @returns {string} A string representing the project.
|
1690
1706
|
*/
|
1691
|
-
|
1692
|
-
return this.pathTemplates.
|
1707
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1708
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
|
1693
1709
|
}
|
1694
1710
|
/**
|
1695
|
-
* Parse the location from
|
1711
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessions resource.
|
1696
1712
|
*
|
1697
|
-
* @param {string}
|
1698
|
-
* A fully-qualified path representing
|
1713
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1714
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1699
1715
|
* @returns {string} A string representing the location.
|
1700
1716
|
*/
|
1701
|
-
|
1702
|
-
return this.pathTemplates.
|
1717
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1718
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
|
1703
1719
|
}
|
1704
1720
|
/**
|
1705
|
-
* Parse the collection from
|
1721
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
|
1706
1722
|
*
|
1707
|
-
* @param {string}
|
1708
|
-
* A fully-qualified path representing
|
1723
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1724
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1709
1725
|
* @returns {string} A string representing the collection.
|
1710
1726
|
*/
|
1711
|
-
|
1712
|
-
return this.pathTemplates.
|
1727
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1728
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
|
1713
1729
|
}
|
1714
1730
|
/**
|
1715
|
-
* Parse the data_store from
|
1731
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
|
1716
1732
|
*
|
1717
|
-
* @param {string}
|
1718
|
-
* A fully-qualified path representing
|
1733
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1734
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1719
1735
|
* @returns {string} A string representing the data_store.
|
1720
1736
|
*/
|
1721
|
-
|
1722
|
-
return this.pathTemplates.
|
1737
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1738
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
|
1723
1739
|
}
|
1724
1740
|
/**
|
1725
|
-
* Parse the session from
|
1741
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessions resource.
|
1726
1742
|
*
|
1727
|
-
* @param {string}
|
1728
|
-
* A fully-qualified path representing
|
1743
|
+
* @param {string} projectLocationCollectionDataStoreSessionsName
|
1744
|
+
* A fully-qualified path representing project_location_collection_data_store_sessions resource.
|
1729
1745
|
* @returns {string} A string representing the session.
|
1730
1746
|
*/
|
1731
|
-
|
1732
|
-
return this.pathTemplates.
|
1733
|
-
}
|
1734
|
-
/**
|
1735
|
-
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1736
|
-
*
|
1737
|
-
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1738
|
-
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1739
|
-
* @returns {string} A string representing the answer.
|
1740
|
-
*/
|
1741
|
-
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1742
|
-
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1747
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
|
1748
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
|
1743
1749
|
}
|
1744
1750
|
/**
|
1745
1751
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
@@ -2075,154 +2081,154 @@ class CompletionServiceClient {
|
|
2075
2081
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2076
2082
|
}
|
2077
2083
|
/**
|
2078
|
-
* Return a fully-qualified
|
2084
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
2079
2085
|
*
|
2080
2086
|
* @param {string} project
|
2081
2087
|
* @param {string} location
|
2082
2088
|
* @param {string} collection
|
2083
2089
|
* @param {string} engine
|
2084
2090
|
* @param {string} session
|
2091
|
+
* @param {string} answer
|
2085
2092
|
* @returns {string} Resource name string.
|
2086
2093
|
*/
|
2087
|
-
|
2088
|
-
return this.pathTemplates.
|
2094
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
2095
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
2089
2096
|
project: project,
|
2090
2097
|
location: location,
|
2091
2098
|
collection: collection,
|
2092
2099
|
engine: engine,
|
2093
2100
|
session: session,
|
2101
|
+
answer: answer,
|
2094
2102
|
});
|
2095
2103
|
}
|
2096
2104
|
/**
|
2097
|
-
* Parse the project from
|
2105
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
2098
2106
|
*
|
2099
|
-
* @param {string}
|
2100
|
-
* A fully-qualified path representing
|
2107
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2108
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2101
2109
|
* @returns {string} A string representing the project.
|
2102
2110
|
*/
|
2103
|
-
|
2104
|
-
return this.pathTemplates.
|
2111
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2112
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
2105
2113
|
}
|
2106
2114
|
/**
|
2107
|
-
* Parse the location from
|
2115
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
2108
2116
|
*
|
2109
|
-
* @param {string}
|
2110
|
-
* A fully-qualified path representing
|
2117
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2118
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2111
2119
|
* @returns {string} A string representing the location.
|
2112
2120
|
*/
|
2113
|
-
|
2114
|
-
return this.pathTemplates.
|
2121
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2122
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
2115
2123
|
}
|
2116
2124
|
/**
|
2117
|
-
* Parse the collection from
|
2125
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
2118
2126
|
*
|
2119
|
-
* @param {string}
|
2120
|
-
* A fully-qualified path representing
|
2127
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2128
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2121
2129
|
* @returns {string} A string representing the collection.
|
2122
2130
|
*/
|
2123
|
-
|
2124
|
-
return this.pathTemplates.
|
2131
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2132
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
2125
2133
|
}
|
2126
2134
|
/**
|
2127
|
-
* Parse the engine from
|
2135
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
2128
2136
|
*
|
2129
|
-
* @param {string}
|
2130
|
-
* A fully-qualified path representing
|
2137
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2138
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2131
2139
|
* @returns {string} A string representing the engine.
|
2132
2140
|
*/
|
2133
|
-
|
2134
|
-
return this.pathTemplates.
|
2141
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2142
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
2135
2143
|
}
|
2136
2144
|
/**
|
2137
|
-
* Parse the session from
|
2145
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
2138
2146
|
*
|
2139
|
-
* @param {string}
|
2140
|
-
* A fully-qualified path representing
|
2147
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2148
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2141
2149
|
* @returns {string} A string representing the session.
|
2142
2150
|
*/
|
2143
|
-
|
2144
|
-
return this.pathTemplates.
|
2151
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2152
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
2145
2153
|
}
|
2146
2154
|
/**
|
2147
|
-
*
|
2155
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2156
|
+
*
|
2157
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2158
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2159
|
+
* @returns {string} A string representing the answer.
|
2160
|
+
*/
|
2161
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2162
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2163
|
+
}
|
2164
|
+
/**
|
2165
|
+
* Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
|
2148
2166
|
*
|
2149
2167
|
* @param {string} project
|
2150
2168
|
* @param {string} location
|
2151
2169
|
* @param {string} collection
|
2152
2170
|
* @param {string} engine
|
2153
2171
|
* @param {string} session
|
2154
|
-
* @param {string} answer
|
2155
2172
|
* @returns {string} Resource name string.
|
2156
2173
|
*/
|
2157
|
-
|
2158
|
-
return this.pathTemplates.
|
2174
|
+
projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
|
2175
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
|
2159
2176
|
project: project,
|
2160
2177
|
location: location,
|
2161
2178
|
collection: collection,
|
2162
2179
|
engine: engine,
|
2163
2180
|
session: session,
|
2164
|
-
answer: answer,
|
2165
2181
|
});
|
2166
2182
|
}
|
2167
2183
|
/**
|
2168
|
-
* Parse the project from
|
2184
|
+
* Parse the project from ProjectLocationCollectionEngineSessions resource.
|
2169
2185
|
*
|
2170
|
-
* @param {string}
|
2171
|
-
* A fully-qualified path representing
|
2186
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2187
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2172
2188
|
* @returns {string} A string representing the project.
|
2173
2189
|
*/
|
2174
|
-
|
2175
|
-
return this.pathTemplates.
|
2190
|
+
matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2191
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
|
2176
2192
|
}
|
2177
2193
|
/**
|
2178
|
-
* Parse the location from
|
2194
|
+
* Parse the location from ProjectLocationCollectionEngineSessions resource.
|
2179
2195
|
*
|
2180
|
-
* @param {string}
|
2181
|
-
* A fully-qualified path representing
|
2196
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2197
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2182
2198
|
* @returns {string} A string representing the location.
|
2183
2199
|
*/
|
2184
|
-
|
2185
|
-
return this.pathTemplates.
|
2200
|
+
matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2201
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
|
2186
2202
|
}
|
2187
2203
|
/**
|
2188
|
-
* Parse the collection from
|
2204
|
+
* Parse the collection from ProjectLocationCollectionEngineSessions resource.
|
2189
2205
|
*
|
2190
|
-
* @param {string}
|
2191
|
-
* A fully-qualified path representing
|
2206
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2207
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2192
2208
|
* @returns {string} A string representing the collection.
|
2193
2209
|
*/
|
2194
|
-
|
2195
|
-
return this.pathTemplates.
|
2210
|
+
matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2211
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
|
2196
2212
|
}
|
2197
2213
|
/**
|
2198
|
-
* Parse the engine from
|
2214
|
+
* Parse the engine from ProjectLocationCollectionEngineSessions resource.
|
2199
2215
|
*
|
2200
|
-
* @param {string}
|
2201
|
-
* A fully-qualified path representing
|
2216
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2217
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2202
2218
|
* @returns {string} A string representing the engine.
|
2203
2219
|
*/
|
2204
|
-
|
2205
|
-
return this.pathTemplates.
|
2220
|
+
matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2221
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
|
2206
2222
|
}
|
2207
2223
|
/**
|
2208
|
-
* Parse the session from
|
2224
|
+
* Parse the session from ProjectLocationCollectionEngineSessions resource.
|
2209
2225
|
*
|
2210
|
-
* @param {string}
|
2211
|
-
* A fully-qualified path representing
|
2226
|
+
* @param {string} projectLocationCollectionEngineSessionsName
|
2227
|
+
* A fully-qualified path representing project_location_collection_engine_sessions resource.
|
2212
2228
|
* @returns {string} A string representing the session.
|
2213
2229
|
*/
|
2214
|
-
|
2215
|
-
return this.pathTemplates.
|
2216
|
-
}
|
2217
|
-
/**
|
2218
|
-
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
2219
|
-
*
|
2220
|
-
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
2221
|
-
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
2222
|
-
* @returns {string} A string representing the answer.
|
2223
|
-
*/
|
2224
|
-
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
2225
|
-
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
2230
|
+
matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
|
2231
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
|
2226
2232
|
}
|
2227
2233
|
/**
|
2228
2234
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
@@ -2749,63 +2755,6 @@ class CompletionServiceClient {
|
|
2749
2755
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2750
2756
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2751
2757
|
}
|
2752
|
-
/**
|
2753
|
-
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2754
|
-
*
|
2755
|
-
* @param {string} project
|
2756
|
-
* @param {string} location
|
2757
|
-
* @param {string} data_store
|
2758
|
-
* @param {string} session
|
2759
|
-
* @returns {string} Resource name string.
|
2760
|
-
*/
|
2761
|
-
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2762
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2763
|
-
project: project,
|
2764
|
-
location: location,
|
2765
|
-
data_store: dataStore,
|
2766
|
-
session: session,
|
2767
|
-
});
|
2768
|
-
}
|
2769
|
-
/**
|
2770
|
-
* Parse the project from ProjectLocationDataStoreSession resource.
|
2771
|
-
*
|
2772
|
-
* @param {string} projectLocationDataStoreSessionName
|
2773
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2774
|
-
* @returns {string} A string representing the project.
|
2775
|
-
*/
|
2776
|
-
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2777
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2778
|
-
}
|
2779
|
-
/**
|
2780
|
-
* Parse the location from ProjectLocationDataStoreSession resource.
|
2781
|
-
*
|
2782
|
-
* @param {string} projectLocationDataStoreSessionName
|
2783
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2784
|
-
* @returns {string} A string representing the location.
|
2785
|
-
*/
|
2786
|
-
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2787
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2788
|
-
}
|
2789
|
-
/**
|
2790
|
-
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2791
|
-
*
|
2792
|
-
* @param {string} projectLocationDataStoreSessionName
|
2793
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2794
|
-
* @returns {string} A string representing the data_store.
|
2795
|
-
*/
|
2796
|
-
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2797
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2798
|
-
}
|
2799
|
-
/**
|
2800
|
-
* Parse the session from ProjectLocationDataStoreSession resource.
|
2801
|
-
*
|
2802
|
-
* @param {string} projectLocationDataStoreSessionName
|
2803
|
-
* A fully-qualified path representing project_location_data_store_session resource.
|
2804
|
-
* @returns {string} A string representing the session.
|
2805
|
-
*/
|
2806
|
-
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2807
|
-
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2808
|
-
}
|
2809
2758
|
/**
|
2810
2759
|
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2811
2760
|
*
|
@@ -2875,6 +2824,63 @@ class CompletionServiceClient {
|
|
2875
2824
|
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2876
2825
|
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2877
2826
|
}
|
2827
|
+
/**
|
2828
|
+
* Return a fully-qualified projectLocationDataStoreSessions resource name string.
|
2829
|
+
*
|
2830
|
+
* @param {string} project
|
2831
|
+
* @param {string} location
|
2832
|
+
* @param {string} data_store
|
2833
|
+
* @param {string} session
|
2834
|
+
* @returns {string} Resource name string.
|
2835
|
+
*/
|
2836
|
+
projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
|
2837
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
|
2838
|
+
project: project,
|
2839
|
+
location: location,
|
2840
|
+
data_store: dataStore,
|
2841
|
+
session: session,
|
2842
|
+
});
|
2843
|
+
}
|
2844
|
+
/**
|
2845
|
+
* Parse the project from ProjectLocationDataStoreSessions resource.
|
2846
|
+
*
|
2847
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2848
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2849
|
+
* @returns {string} A string representing the project.
|
2850
|
+
*/
|
2851
|
+
matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2852
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
|
2853
|
+
}
|
2854
|
+
/**
|
2855
|
+
* Parse the location from ProjectLocationDataStoreSessions resource.
|
2856
|
+
*
|
2857
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2858
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2859
|
+
* @returns {string} A string representing the location.
|
2860
|
+
*/
|
2861
|
+
matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2862
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
|
2863
|
+
}
|
2864
|
+
/**
|
2865
|
+
* Parse the data_store from ProjectLocationDataStoreSessions resource.
|
2866
|
+
*
|
2867
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2868
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2869
|
+
* @returns {string} A string representing the data_store.
|
2870
|
+
*/
|
2871
|
+
matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2872
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
|
2873
|
+
}
|
2874
|
+
/**
|
2875
|
+
* Parse the session from ProjectLocationDataStoreSessions resource.
|
2876
|
+
*
|
2877
|
+
* @param {string} projectLocationDataStoreSessionsName
|
2878
|
+
* A fully-qualified path representing project_location_data_store_sessions resource.
|
2879
|
+
* @returns {string} A string representing the session.
|
2880
|
+
*/
|
2881
|
+
matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
|
2882
|
+
return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
|
2883
|
+
}
|
2878
2884
|
/**
|
2879
2885
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
2880
2886
|
*
|