@google-cloud/discoveryengine 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +32 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +35 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +108 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +200 -4
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +10 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +67 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
- package/build/protos/protos.d.ts +31310 -20211
- package/build/protos/protos.js +86710 -60571
- package/build/protos/protos.json +7720 -5011
- package/build/src/v1/completion_service_client.d.ts +220 -0
- package/build/src/v1/completion_service_client.js +260 -0
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/control_service_client.d.ts +129 -1
- package/build/src/v1/control_service_client.js +176 -0
- package/build/src/v1/conversational_search_service_client.d.ts +147 -1
- package/build/src/v1/conversational_search_service_client.js +176 -0
- package/build/src/v1/data_store_service_client.d.ts +129 -1
- package/build/src/v1/data_store_service_client.js +176 -0
- package/build/src/v1/document_service_client.d.ts +131 -1
- package/build/src/v1/document_service_client.js +176 -0
- package/build/src/v1/engine_service_client.d.ts +129 -1
- package/build/src/v1/engine_service_client.js +176 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +129 -0
- package/build/src/v1/grounded_generation_service_client.js +176 -0
- package/build/src/v1/project_service_client.d.ts +129 -0
- package/build/src/v1/project_service_client.js +176 -0
- package/build/src/v1/rank_service_client.d.ts +129 -0
- package/build/src/v1/rank_service_client.js +176 -0
- package/build/src/v1/recommendation_service_client.d.ts +129 -0
- package/build/src/v1/recommendation_service_client.js +176 -0
- package/build/src/v1/schema_service_client.d.ts +129 -1
- package/build/src/v1/schema_service_client.js +176 -0
- package/build/src/v1/search_service_client.d.ts +252 -1
- package/build/src/v1/search_service_client.js +258 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +129 -1
- package/build/src/v1/site_search_engine_service_client.js +176 -0
- package/build/src/v1/user_event_service_client.d.ts +129 -0
- package/build/src/v1/user_event_service_client.js +176 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
- package/build/src/v1alpha/acl_config_service_client.js +157 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +108 -1
- package/build/src/v1alpha/chunk_service_client.js +157 -0
- package/build/src/v1alpha/completion_service_client.d.ts +108 -0
- package/build/src/v1alpha/completion_service_client.js +157 -0
- package/build/src/v1alpha/control_service_client.d.ts +108 -1
- package/build/src/v1alpha/control_service_client.js +157 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -1
- package/build/src/v1alpha/conversational_search_service_client.js +157 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +108 -1
- package/build/src/v1alpha/data_store_service_client.js +157 -0
- package/build/src/v1alpha/document_service_client.d.ts +108 -1
- package/build/src/v1alpha/document_service_client.js +157 -0
- package/build/src/v1alpha/engine_service_client.d.ts +108 -1
- package/build/src/v1alpha/engine_service_client.js +157 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
- package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
- package/build/src/v1alpha/evaluation_service_client.js +3288 -0
- package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
- package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
- package/build/src/v1alpha/index.d.ts +3 -0
- package/build/src/v1alpha/index.js +7 -1
- package/build/src/v1alpha/project_service_client.d.ts +108 -0
- package/build/src/v1alpha/project_service_client.js +157 -0
- package/build/src/v1alpha/rank_service_client.d.ts +108 -0
- package/build/src/v1alpha/rank_service_client.js +157 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
- package/build/src/v1alpha/recommendation_service_client.js +157 -0
- package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
- package/build/src/v1alpha/sample_query_service_client.js +3186 -0
- package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
- package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
- package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1alpha/schema_service_client.d.ts +108 -1
- package/build/src/v1alpha/schema_service_client.js +157 -0
- package/build/src/v1alpha/search_service_client.d.ts +108 -1
- package/build/src/v1alpha/search_service_client.js +157 -0
- package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
- package/build/src/v1alpha/search_tuning_service_client.js +157 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +108 -1
- package/build/src/v1alpha/serving_config_service_client.js +157 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -1
- package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
- package/build/src/v1alpha/user_event_service_client.js +157 -0
- package/build/src/v1beta/completion_service_client.d.ts +237 -0
- package/build/src/v1beta/completion_service_client.js +339 -0
- package/build/src/v1beta/control_service_client.d.ts +237 -1
- package/build/src/v1beta/control_service_client.js +333 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +237 -1
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +237 -1
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +237 -1
- package/build/src/v1beta/document_service_client.js +339 -0
- package/build/src/v1beta/engine_service_client.d.ts +237 -1
- package/build/src/v1beta/engine_service_client.js +339 -0
- package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
- package/build/src/v1beta/evaluation_service_client.js +3252 -0
- package/build/src/v1beta/evaluation_service_client_config.json +58 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
- package/build/src/v1beta/grounded_generation_service_client.js +333 -0
- package/build/src/v1beta/index.d.ts +3 -0
- package/build/src/v1beta/index.js +7 -1
- package/build/src/v1beta/project_service_client.d.ts +237 -0
- package/build/src/v1beta/project_service_client.js +339 -0
- package/build/src/v1beta/rank_service_client.d.ts +237 -0
- package/build/src/v1beta/rank_service_client.js +333 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
- package/build/src/v1beta/recommendation_service_client.js +333 -0
- package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
- package/build/src/v1beta/sample_query_service_client.js +3150 -0
- package/build/src/v1beta/sample_query_service_client_config.json +68 -0
- package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
- package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
- package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1beta/schema_service_client.d.ts +237 -1
- package/build/src/v1beta/schema_service_client.js +339 -0
- package/build/src/v1beta/search_service_client.d.ts +267 -13
- package/build/src/v1beta/search_service_client.js +353 -8
- package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
- package/build/src/v1beta/search_tuning_service_client.js +339 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +237 -1
- package/build/src/v1beta/serving_config_service_client.js +333 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -1
- package/build/src/v1beta/site_search_engine_service_client.js +339 -0
- package/build/src/v1beta/user_event_service_client.d.ts +237 -0
- package/build/src/v1beta/user_event_service_client.js +339 -0
- package/package.json +1 -1
@@ -150,9 +150,11 @@ class SchemaServiceClient {
|
|
150
150
|
// Create useful helper objects for these.
|
151
151
|
this.pathTemplates = {
|
152
152
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
153
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
153
154
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
154
155
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
155
156
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
157
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
156
158
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
157
159
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
158
160
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -170,6 +172,7 @@ class SchemaServiceClient {
|
|
170
172
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
171
173
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
172
174
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
175
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
173
176
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
174
177
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
175
178
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -180,6 +183,8 @@ class SchemaServiceClient {
|
|
180
183
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
181
184
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
182
185
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
186
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
187
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
183
188
|
};
|
184
189
|
// Some of the methods on this service return "paged" results,
|
185
190
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
@@ -246,7 +251,13 @@ class SchemaServiceClient {
|
|
246
251
|
{
|
247
252
|
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
248
253
|
},
|
254
|
+
{
|
255
|
+
get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
256
|
+
},
|
249
257
|
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
258
|
+
{
|
259
|
+
get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
260
|
+
},
|
250
261
|
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
251
262
|
],
|
252
263
|
},
|
@@ -926,6 +937,54 @@ class SchemaServiceClient {
|
|
926
937
|
matchEngineFromEngineName(engineName) {
|
927
938
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
928
939
|
}
|
940
|
+
/**
|
941
|
+
* Return a fully-qualified evaluation resource name string.
|
942
|
+
*
|
943
|
+
* @param {string} project
|
944
|
+
* @param {string} location
|
945
|
+
* @param {string} evaluation
|
946
|
+
* @returns {string} Resource name string.
|
947
|
+
*/
|
948
|
+
evaluationPath(project, location, evaluation) {
|
949
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
950
|
+
project: project,
|
951
|
+
location: location,
|
952
|
+
evaluation: evaluation,
|
953
|
+
});
|
954
|
+
}
|
955
|
+
/**
|
956
|
+
* Parse the project from Evaluation resource.
|
957
|
+
*
|
958
|
+
* @param {string} evaluationName
|
959
|
+
* A fully-qualified path representing Evaluation resource.
|
960
|
+
* @returns {string} A string representing the project.
|
961
|
+
*/
|
962
|
+
matchProjectFromEvaluationName(evaluationName) {
|
963
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
964
|
+
.project;
|
965
|
+
}
|
966
|
+
/**
|
967
|
+
* Parse the location from Evaluation resource.
|
968
|
+
*
|
969
|
+
* @param {string} evaluationName
|
970
|
+
* A fully-qualified path representing Evaluation resource.
|
971
|
+
* @returns {string} A string representing the location.
|
972
|
+
*/
|
973
|
+
matchLocationFromEvaluationName(evaluationName) {
|
974
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
975
|
+
.location;
|
976
|
+
}
|
977
|
+
/**
|
978
|
+
* Parse the evaluation from Evaluation resource.
|
979
|
+
*
|
980
|
+
* @param {string} evaluationName
|
981
|
+
* A fully-qualified path representing Evaluation resource.
|
982
|
+
* @returns {string} A string representing the evaluation.
|
983
|
+
*/
|
984
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
985
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
986
|
+
.evaluation;
|
987
|
+
}
|
929
988
|
/**
|
930
989
|
* Return a fully-qualified project resource name string.
|
931
990
|
*
|
@@ -1085,6 +1144,99 @@ class SchemaServiceClient {
|
|
1085
1144
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
1086
1145
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
1087
1146
|
}
|
1147
|
+
/**
|
1148
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
1149
|
+
*
|
1150
|
+
* @param {string} project
|
1151
|
+
* @param {string} location
|
1152
|
+
* @param {string} collection
|
1153
|
+
* @param {string} data_store
|
1154
|
+
* @param {string} branch
|
1155
|
+
* @param {string} document
|
1156
|
+
* @param {string} chunk
|
1157
|
+
* @returns {string} Resource name string.
|
1158
|
+
*/
|
1159
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
1160
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
1161
|
+
project: project,
|
1162
|
+
location: location,
|
1163
|
+
collection: collection,
|
1164
|
+
data_store: dataStore,
|
1165
|
+
branch: branch,
|
1166
|
+
document: document,
|
1167
|
+
chunk: chunk,
|
1168
|
+
});
|
1169
|
+
}
|
1170
|
+
/**
|
1171
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1172
|
+
*
|
1173
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1174
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1175
|
+
* @returns {string} A string representing the project.
|
1176
|
+
*/
|
1177
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1178
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
1179
|
+
}
|
1180
|
+
/**
|
1181
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1182
|
+
*
|
1183
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1184
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1185
|
+
* @returns {string} A string representing the location.
|
1186
|
+
*/
|
1187
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1188
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
1189
|
+
}
|
1190
|
+
/**
|
1191
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1192
|
+
*
|
1193
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1194
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1195
|
+
* @returns {string} A string representing the collection.
|
1196
|
+
*/
|
1197
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1198
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1199
|
+
}
|
1200
|
+
/**
|
1201
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1202
|
+
*
|
1203
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1204
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1205
|
+
* @returns {string} A string representing the data_store.
|
1206
|
+
*/
|
1207
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1208
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1209
|
+
}
|
1210
|
+
/**
|
1211
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1212
|
+
*
|
1213
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1214
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1215
|
+
* @returns {string} A string representing the branch.
|
1216
|
+
*/
|
1217
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1218
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1219
|
+
}
|
1220
|
+
/**
|
1221
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1222
|
+
*
|
1223
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1224
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1225
|
+
* @returns {string} A string representing the document.
|
1226
|
+
*/
|
1227
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1228
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1229
|
+
}
|
1230
|
+
/**
|
1231
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1232
|
+
*
|
1233
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1234
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1235
|
+
* @returns {string} A string representing the chunk.
|
1236
|
+
*/
|
1237
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1238
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1239
|
+
}
|
1088
1240
|
/**
|
1089
1241
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
1090
1242
|
*
|
@@ -2234,6 +2386,87 @@ class SchemaServiceClient {
|
|
2234
2386
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
2235
2387
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
2236
2388
|
}
|
2389
|
+
/**
|
2390
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
2391
|
+
*
|
2392
|
+
* @param {string} project
|
2393
|
+
* @param {string} location
|
2394
|
+
* @param {string} data_store
|
2395
|
+
* @param {string} branch
|
2396
|
+
* @param {string} document
|
2397
|
+
* @param {string} chunk
|
2398
|
+
* @returns {string} Resource name string.
|
2399
|
+
*/
|
2400
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
2401
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
2402
|
+
project: project,
|
2403
|
+
location: location,
|
2404
|
+
data_store: dataStore,
|
2405
|
+
branch: branch,
|
2406
|
+
document: document,
|
2407
|
+
chunk: chunk,
|
2408
|
+
});
|
2409
|
+
}
|
2410
|
+
/**
|
2411
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2412
|
+
*
|
2413
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2414
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2415
|
+
* @returns {string} A string representing the project.
|
2416
|
+
*/
|
2417
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2418
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2419
|
+
}
|
2420
|
+
/**
|
2421
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2422
|
+
*
|
2423
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2424
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2425
|
+
* @returns {string} A string representing the location.
|
2426
|
+
*/
|
2427
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2428
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2429
|
+
}
|
2430
|
+
/**
|
2431
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2432
|
+
*
|
2433
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2434
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2435
|
+
* @returns {string} A string representing the data_store.
|
2436
|
+
*/
|
2437
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2438
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2439
|
+
}
|
2440
|
+
/**
|
2441
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2442
|
+
*
|
2443
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2444
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2445
|
+
* @returns {string} A string representing the branch.
|
2446
|
+
*/
|
2447
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2448
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2449
|
+
}
|
2450
|
+
/**
|
2451
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2452
|
+
*
|
2453
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2454
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2455
|
+
* @returns {string} A string representing the document.
|
2456
|
+
*/
|
2457
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2458
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2459
|
+
}
|
2460
|
+
/**
|
2461
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2462
|
+
*
|
2463
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2464
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2465
|
+
* @returns {string} A string representing the chunk.
|
2466
|
+
*/
|
2467
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2468
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2469
|
+
}
|
2237
2470
|
/**
|
2238
2471
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2239
2472
|
*
|
@@ -2792,6 +3025,112 @@ class SchemaServiceClient {
|
|
2792
3025
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2793
3026
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2794
3027
|
}
|
3028
|
+
/**
|
3029
|
+
* Return a fully-qualified sampleQuery resource name string.
|
3030
|
+
*
|
3031
|
+
* @param {string} project
|
3032
|
+
* @param {string} location
|
3033
|
+
* @param {string} sample_query_set
|
3034
|
+
* @param {string} sample_query
|
3035
|
+
* @returns {string} Resource name string.
|
3036
|
+
*/
|
3037
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
3038
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
3039
|
+
project: project,
|
3040
|
+
location: location,
|
3041
|
+
sample_query_set: sampleQuerySet,
|
3042
|
+
sample_query: sampleQuery,
|
3043
|
+
});
|
3044
|
+
}
|
3045
|
+
/**
|
3046
|
+
* Parse the project from SampleQuery resource.
|
3047
|
+
*
|
3048
|
+
* @param {string} sampleQueryName
|
3049
|
+
* A fully-qualified path representing SampleQuery resource.
|
3050
|
+
* @returns {string} A string representing the project.
|
3051
|
+
*/
|
3052
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
3053
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3054
|
+
.project;
|
3055
|
+
}
|
3056
|
+
/**
|
3057
|
+
* Parse the location from SampleQuery resource.
|
3058
|
+
*
|
3059
|
+
* @param {string} sampleQueryName
|
3060
|
+
* A fully-qualified path representing SampleQuery resource.
|
3061
|
+
* @returns {string} A string representing the location.
|
3062
|
+
*/
|
3063
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
3064
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3065
|
+
.location;
|
3066
|
+
}
|
3067
|
+
/**
|
3068
|
+
* Parse the sample_query_set from SampleQuery resource.
|
3069
|
+
*
|
3070
|
+
* @param {string} sampleQueryName
|
3071
|
+
* A fully-qualified path representing SampleQuery resource.
|
3072
|
+
* @returns {string} A string representing the sample_query_set.
|
3073
|
+
*/
|
3074
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3075
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3076
|
+
.sample_query_set;
|
3077
|
+
}
|
3078
|
+
/**
|
3079
|
+
* Parse the sample_query from SampleQuery resource.
|
3080
|
+
*
|
3081
|
+
* @param {string} sampleQueryName
|
3082
|
+
* A fully-qualified path representing SampleQuery resource.
|
3083
|
+
* @returns {string} A string representing the sample_query.
|
3084
|
+
*/
|
3085
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3086
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3087
|
+
.sample_query;
|
3088
|
+
}
|
3089
|
+
/**
|
3090
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
3091
|
+
*
|
3092
|
+
* @param {string} project
|
3093
|
+
* @param {string} location
|
3094
|
+
* @param {string} sample_query_set
|
3095
|
+
* @returns {string} Resource name string.
|
3096
|
+
*/
|
3097
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
3098
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
3099
|
+
project: project,
|
3100
|
+
location: location,
|
3101
|
+
sample_query_set: sampleQuerySet,
|
3102
|
+
});
|
3103
|
+
}
|
3104
|
+
/**
|
3105
|
+
* Parse the project from SampleQuerySet resource.
|
3106
|
+
*
|
3107
|
+
* @param {string} sampleQuerySetName
|
3108
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
3109
|
+
* @returns {string} A string representing the project.
|
3110
|
+
*/
|
3111
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
3112
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
3113
|
+
}
|
3114
|
+
/**
|
3115
|
+
* Parse the location from SampleQuerySet resource.
|
3116
|
+
*
|
3117
|
+
* @param {string} sampleQuerySetName
|
3118
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
3119
|
+
* @returns {string} A string representing the location.
|
3120
|
+
*/
|
3121
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
3122
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
3123
|
+
}
|
3124
|
+
/**
|
3125
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
3126
|
+
*
|
3127
|
+
* @param {string} sampleQuerySetName
|
3128
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
3129
|
+
* @returns {string} A string representing the sample_query_set.
|
3130
|
+
*/
|
3131
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
3132
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
3133
|
+
}
|
2795
3134
|
/**
|
2796
3135
|
* Terminate the gRPC channel and close the client.
|
2797
3136
|
*
|