@google-cloud/discoveryengine 1.10.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 +12 -0
- package/README.md +30 -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 +28997 -20222
- package/build/protos/protos.js +74749 -54453
- package/build/protos/protos.json +6933 -4764
- 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 -0
- 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 -0
- package/build/src/v1alpha/control_service_client.js +157 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
- package/build/src/v1alpha/conversational_search_service_client.js +157 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
- package/build/src/v1alpha/data_store_service_client.js +157 -0
- package/build/src/v1alpha/document_service_client.d.ts +108 -0
- package/build/src/v1alpha/document_service_client.js +157 -0
- package/build/src/v1alpha/engine_service_client.d.ts +108 -0
- 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 -0
- package/build/src/v1alpha/schema_service_client.js +157 -0
- package/build/src/v1alpha/search_service_client.d.ts +108 -0
- 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 -0
- package/build/src/v1alpha/serving_config_service_client.js +157 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
- 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 -0
- package/build/src/v1beta/control_service_client.js +333 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +237 -0
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +237 -0
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +237 -0
- package/build/src/v1beta/document_service_client.js +339 -0
- package/build/src/v1beta/engine_service_client.d.ts +237 -0
- 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 -0
- package/build/src/v1beta/schema_service_client.js +339 -0
- package/build/src/v1beta/search_service_client.d.ts +267 -12
- 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 -0
- package/build/src/v1beta/serving_config_service_client.js +333 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
- 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
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.cloud.discoveryengine.v1alpha.EvaluationService": {
|
4
|
+
"retry_codes": {
|
5
|
+
"non_idempotent": [],
|
6
|
+
"idempotent": [
|
7
|
+
"DEADLINE_EXCEEDED",
|
8
|
+
"UNAVAILABLE"
|
9
|
+
],
|
10
|
+
"unavailable": [
|
11
|
+
"UNAVAILABLE"
|
12
|
+
]
|
13
|
+
},
|
14
|
+
"retry_params": {
|
15
|
+
"default": {
|
16
|
+
"initial_retry_delay_millis": 100,
|
17
|
+
"retry_delay_multiplier": 1.3,
|
18
|
+
"max_retry_delay_millis": 60000,
|
19
|
+
"initial_rpc_timeout_millis": 60000,
|
20
|
+
"rpc_timeout_multiplier": 1,
|
21
|
+
"max_rpc_timeout_millis": 60000,
|
22
|
+
"total_timeout_millis": 600000
|
23
|
+
},
|
24
|
+
"ce5b960a6ed052e690863808e4f0deff3dc7d49f": {
|
25
|
+
"initial_retry_delay_millis": 1000,
|
26
|
+
"retry_delay_multiplier": 1.3,
|
27
|
+
"max_retry_delay_millis": 10000,
|
28
|
+
"initial_rpc_timeout_millis": 60000,
|
29
|
+
"rpc_timeout_multiplier": 1,
|
30
|
+
"max_rpc_timeout_millis": 60000,
|
31
|
+
"total_timeout_millis": 600000
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"methods": {
|
35
|
+
"GetEvaluation": {
|
36
|
+
"timeout_millis": 30000,
|
37
|
+
"retry_codes_name": "unavailable",
|
38
|
+
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
39
|
+
},
|
40
|
+
"ListEvaluations": {
|
41
|
+
"timeout_millis": 30000,
|
42
|
+
"retry_codes_name": "unavailable",
|
43
|
+
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
44
|
+
},
|
45
|
+
"CreateEvaluation": {
|
46
|
+
"timeout_millis": 300000,
|
47
|
+
"retry_codes_name": "non_idempotent",
|
48
|
+
"retry_params_name": "default"
|
49
|
+
},
|
50
|
+
"ListEvaluationResults": {
|
51
|
+
"timeout_millis": 30000,
|
52
|
+
"retry_codes_name": "unavailable",
|
53
|
+
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
@@ -280,6 +280,39 @@ export declare class GroundedGenerationServiceClient {
|
|
280
280
|
* @returns {string} A string representing the engine.
|
281
281
|
*/
|
282
282
|
matchEngineFromEngineName(engineName: string): string | number;
|
283
|
+
/**
|
284
|
+
* Return a fully-qualified evaluation resource name string.
|
285
|
+
*
|
286
|
+
* @param {string} project
|
287
|
+
* @param {string} location
|
288
|
+
* @param {string} evaluation
|
289
|
+
* @returns {string} Resource name string.
|
290
|
+
*/
|
291
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
292
|
+
/**
|
293
|
+
* Parse the project from Evaluation resource.
|
294
|
+
*
|
295
|
+
* @param {string} evaluationName
|
296
|
+
* A fully-qualified path representing Evaluation resource.
|
297
|
+
* @returns {string} A string representing the project.
|
298
|
+
*/
|
299
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
300
|
+
/**
|
301
|
+
* Parse the location from Evaluation resource.
|
302
|
+
*
|
303
|
+
* @param {string} evaluationName
|
304
|
+
* A fully-qualified path representing Evaluation resource.
|
305
|
+
* @returns {string} A string representing the location.
|
306
|
+
*/
|
307
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
308
|
+
/**
|
309
|
+
* Parse the evaluation from Evaluation resource.
|
310
|
+
*
|
311
|
+
* @param {string} evaluationName
|
312
|
+
* A fully-qualified path representing Evaluation resource.
|
313
|
+
* @returns {string} A string representing the evaluation.
|
314
|
+
*/
|
315
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
283
316
|
/**
|
284
317
|
* Return a fully-qualified groundingConfig resource name string.
|
285
318
|
*
|
@@ -1819,6 +1852,81 @@ export declare class GroundedGenerationServiceClient {
|
|
1819
1852
|
* @returns {string} A string representing the target_site.
|
1820
1853
|
*/
|
1821
1854
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
1855
|
+
/**
|
1856
|
+
* Return a fully-qualified sampleQuery resource name string.
|
1857
|
+
*
|
1858
|
+
* @param {string} project
|
1859
|
+
* @param {string} location
|
1860
|
+
* @param {string} sample_query_set
|
1861
|
+
* @param {string} sample_query
|
1862
|
+
* @returns {string} Resource name string.
|
1863
|
+
*/
|
1864
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
1865
|
+
/**
|
1866
|
+
* Parse the project from SampleQuery resource.
|
1867
|
+
*
|
1868
|
+
* @param {string} sampleQueryName
|
1869
|
+
* A fully-qualified path representing SampleQuery resource.
|
1870
|
+
* @returns {string} A string representing the project.
|
1871
|
+
*/
|
1872
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
1873
|
+
/**
|
1874
|
+
* Parse the location from SampleQuery resource.
|
1875
|
+
*
|
1876
|
+
* @param {string} sampleQueryName
|
1877
|
+
* A fully-qualified path representing SampleQuery resource.
|
1878
|
+
* @returns {string} A string representing the location.
|
1879
|
+
*/
|
1880
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
1881
|
+
/**
|
1882
|
+
* Parse the sample_query_set from SampleQuery resource.
|
1883
|
+
*
|
1884
|
+
* @param {string} sampleQueryName
|
1885
|
+
* A fully-qualified path representing SampleQuery resource.
|
1886
|
+
* @returns {string} A string representing the sample_query_set.
|
1887
|
+
*/
|
1888
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
1889
|
+
/**
|
1890
|
+
* Parse the sample_query from SampleQuery resource.
|
1891
|
+
*
|
1892
|
+
* @param {string} sampleQueryName
|
1893
|
+
* A fully-qualified path representing SampleQuery resource.
|
1894
|
+
* @returns {string} A string representing the sample_query.
|
1895
|
+
*/
|
1896
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
1897
|
+
/**
|
1898
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
1899
|
+
*
|
1900
|
+
* @param {string} project
|
1901
|
+
* @param {string} location
|
1902
|
+
* @param {string} sample_query_set
|
1903
|
+
* @returns {string} Resource name string.
|
1904
|
+
*/
|
1905
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
1906
|
+
/**
|
1907
|
+
* Parse the project from SampleQuerySet resource.
|
1908
|
+
*
|
1909
|
+
* @param {string} sampleQuerySetName
|
1910
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
1911
|
+
* @returns {string} A string representing the project.
|
1912
|
+
*/
|
1913
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1914
|
+
/**
|
1915
|
+
* Parse the location from SampleQuerySet resource.
|
1916
|
+
*
|
1917
|
+
* @param {string} sampleQuerySetName
|
1918
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
1919
|
+
* @returns {string} A string representing the location.
|
1920
|
+
*/
|
1921
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1922
|
+
/**
|
1923
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
1924
|
+
*
|
1925
|
+
* @param {string} sampleQuerySetName
|
1926
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
1927
|
+
* @returns {string} A string representing the sample_query_set.
|
1928
|
+
*/
|
1929
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1822
1930
|
/**
|
1823
1931
|
* Terminate the gRPC channel and close the client.
|
1824
1932
|
*
|
@@ -152,6 +152,7 @@ class GroundedGenerationServiceClient {
|
|
152
152
|
this.pathTemplates = {
|
153
153
|
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
154
154
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
155
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
155
156
|
groundingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/groundingConfigs/{grounding_config}'),
|
156
157
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
157
158
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
@@ -185,6 +186,8 @@ class GroundedGenerationServiceClient {
|
|
185
186
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
186
187
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
187
188
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
189
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
190
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
188
191
|
};
|
189
192
|
// Put together the default options sent with requests.
|
190
193
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.GroundedGenerationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -468,6 +471,54 @@ class GroundedGenerationServiceClient {
|
|
468
471
|
matchEngineFromEngineName(engineName) {
|
469
472
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
470
473
|
}
|
474
|
+
/**
|
475
|
+
* Return a fully-qualified evaluation resource name string.
|
476
|
+
*
|
477
|
+
* @param {string} project
|
478
|
+
* @param {string} location
|
479
|
+
* @param {string} evaluation
|
480
|
+
* @returns {string} Resource name string.
|
481
|
+
*/
|
482
|
+
evaluationPath(project, location, evaluation) {
|
483
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
484
|
+
project: project,
|
485
|
+
location: location,
|
486
|
+
evaluation: evaluation,
|
487
|
+
});
|
488
|
+
}
|
489
|
+
/**
|
490
|
+
* Parse the project from Evaluation resource.
|
491
|
+
*
|
492
|
+
* @param {string} evaluationName
|
493
|
+
* A fully-qualified path representing Evaluation resource.
|
494
|
+
* @returns {string} A string representing the project.
|
495
|
+
*/
|
496
|
+
matchProjectFromEvaluationName(evaluationName) {
|
497
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
498
|
+
.project;
|
499
|
+
}
|
500
|
+
/**
|
501
|
+
* Parse the location from Evaluation resource.
|
502
|
+
*
|
503
|
+
* @param {string} evaluationName
|
504
|
+
* A fully-qualified path representing Evaluation resource.
|
505
|
+
* @returns {string} A string representing the location.
|
506
|
+
*/
|
507
|
+
matchLocationFromEvaluationName(evaluationName) {
|
508
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
509
|
+
.location;
|
510
|
+
}
|
511
|
+
/**
|
512
|
+
* Parse the evaluation from Evaluation resource.
|
513
|
+
*
|
514
|
+
* @param {string} evaluationName
|
515
|
+
* A fully-qualified path representing Evaluation resource.
|
516
|
+
* @returns {string} A string representing the evaluation.
|
517
|
+
*/
|
518
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
519
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
520
|
+
.evaluation;
|
521
|
+
}
|
471
522
|
/**
|
472
523
|
* Return a fully-qualified groundingConfig resource name string.
|
473
524
|
*
|
@@ -2553,6 +2604,112 @@ class GroundedGenerationServiceClient {
|
|
2553
2604
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2554
2605
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2555
2606
|
}
|
2607
|
+
/**
|
2608
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2609
|
+
*
|
2610
|
+
* @param {string} project
|
2611
|
+
* @param {string} location
|
2612
|
+
* @param {string} sample_query_set
|
2613
|
+
* @param {string} sample_query
|
2614
|
+
* @returns {string} Resource name string.
|
2615
|
+
*/
|
2616
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2617
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2618
|
+
project: project,
|
2619
|
+
location: location,
|
2620
|
+
sample_query_set: sampleQuerySet,
|
2621
|
+
sample_query: sampleQuery,
|
2622
|
+
});
|
2623
|
+
}
|
2624
|
+
/**
|
2625
|
+
* Parse the project from SampleQuery resource.
|
2626
|
+
*
|
2627
|
+
* @param {string} sampleQueryName
|
2628
|
+
* A fully-qualified path representing SampleQuery resource.
|
2629
|
+
* @returns {string} A string representing the project.
|
2630
|
+
*/
|
2631
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2632
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2633
|
+
.project;
|
2634
|
+
}
|
2635
|
+
/**
|
2636
|
+
* Parse the location from SampleQuery resource.
|
2637
|
+
*
|
2638
|
+
* @param {string} sampleQueryName
|
2639
|
+
* A fully-qualified path representing SampleQuery resource.
|
2640
|
+
* @returns {string} A string representing the location.
|
2641
|
+
*/
|
2642
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2643
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2644
|
+
.location;
|
2645
|
+
}
|
2646
|
+
/**
|
2647
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2648
|
+
*
|
2649
|
+
* @param {string} sampleQueryName
|
2650
|
+
* A fully-qualified path representing SampleQuery resource.
|
2651
|
+
* @returns {string} A string representing the sample_query_set.
|
2652
|
+
*/
|
2653
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2654
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2655
|
+
.sample_query_set;
|
2656
|
+
}
|
2657
|
+
/**
|
2658
|
+
* Parse the sample_query from SampleQuery resource.
|
2659
|
+
*
|
2660
|
+
* @param {string} sampleQueryName
|
2661
|
+
* A fully-qualified path representing SampleQuery resource.
|
2662
|
+
* @returns {string} A string representing the sample_query.
|
2663
|
+
*/
|
2664
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2665
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2666
|
+
.sample_query;
|
2667
|
+
}
|
2668
|
+
/**
|
2669
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2670
|
+
*
|
2671
|
+
* @param {string} project
|
2672
|
+
* @param {string} location
|
2673
|
+
* @param {string} sample_query_set
|
2674
|
+
* @returns {string} Resource name string.
|
2675
|
+
*/
|
2676
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2677
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2678
|
+
project: project,
|
2679
|
+
location: location,
|
2680
|
+
sample_query_set: sampleQuerySet,
|
2681
|
+
});
|
2682
|
+
}
|
2683
|
+
/**
|
2684
|
+
* Parse the project from SampleQuerySet resource.
|
2685
|
+
*
|
2686
|
+
* @param {string} sampleQuerySetName
|
2687
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2688
|
+
* @returns {string} A string representing the project.
|
2689
|
+
*/
|
2690
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2691
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2692
|
+
}
|
2693
|
+
/**
|
2694
|
+
* Parse the location from SampleQuerySet resource.
|
2695
|
+
*
|
2696
|
+
* @param {string} sampleQuerySetName
|
2697
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2698
|
+
* @returns {string} A string representing the location.
|
2699
|
+
*/
|
2700
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2701
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2702
|
+
}
|
2703
|
+
/**
|
2704
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2705
|
+
*
|
2706
|
+
* @param {string} sampleQuerySetName
|
2707
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2708
|
+
* @returns {string} A string representing the sample_query_set.
|
2709
|
+
*/
|
2710
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2711
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2712
|
+
}
|
2556
2713
|
/**
|
2557
2714
|
* Terminate the gRPC channel and close the client.
|
2558
2715
|
*
|
@@ -7,10 +7,13 @@ export { DataStoreServiceClient } from './data_store_service_client';
|
|
7
7
|
export { DocumentServiceClient } from './document_service_client';
|
8
8
|
export { EngineServiceClient } from './engine_service_client';
|
9
9
|
export { EstimateBillingServiceClient } from './estimate_billing_service_client';
|
10
|
+
export { EvaluationServiceClient } from './evaluation_service_client';
|
10
11
|
export { GroundedGenerationServiceClient } from './grounded_generation_service_client';
|
11
12
|
export { ProjectServiceClient } from './project_service_client';
|
12
13
|
export { RankServiceClient } from './rank_service_client';
|
13
14
|
export { RecommendationServiceClient } from './recommendation_service_client';
|
15
|
+
export { SampleQueryServiceClient } from './sample_query_service_client';
|
16
|
+
export { SampleQuerySetServiceClient } from './sample_query_set_service_client';
|
14
17
|
export { SchemaServiceClient } from './schema_service_client';
|
15
18
|
export { SearchServiceClient } from './search_service_client';
|
16
19
|
export { SearchTuningServiceClient } from './search_tuning_service_client';
|
@@ -17,7 +17,7 @@
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
18
18
|
// ** All changes to this file may be overwritten. **
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EstimateBillingServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = exports.ChunkServiceClient = exports.AclConfigServiceClient = void 0;
|
20
|
+
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.SampleQuerySetServiceClient = exports.SampleQueryServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EvaluationServiceClient = exports.EstimateBillingServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = exports.ChunkServiceClient = exports.AclConfigServiceClient = void 0;
|
21
21
|
var acl_config_service_client_1 = require("./acl_config_service_client");
|
22
22
|
Object.defineProperty(exports, "AclConfigServiceClient", { enumerable: true, get: function () { return acl_config_service_client_1.AclConfigServiceClient; } });
|
23
23
|
var chunk_service_client_1 = require("./chunk_service_client");
|
@@ -36,6 +36,8 @@ var engine_service_client_1 = require("./engine_service_client");
|
|
36
36
|
Object.defineProperty(exports, "EngineServiceClient", { enumerable: true, get: function () { return engine_service_client_1.EngineServiceClient; } });
|
37
37
|
var estimate_billing_service_client_1 = require("./estimate_billing_service_client");
|
38
38
|
Object.defineProperty(exports, "EstimateBillingServiceClient", { enumerable: true, get: function () { return estimate_billing_service_client_1.EstimateBillingServiceClient; } });
|
39
|
+
var evaluation_service_client_1 = require("./evaluation_service_client");
|
40
|
+
Object.defineProperty(exports, "EvaluationServiceClient", { enumerable: true, get: function () { return evaluation_service_client_1.EvaluationServiceClient; } });
|
39
41
|
var grounded_generation_service_client_1 = require("./grounded_generation_service_client");
|
40
42
|
Object.defineProperty(exports, "GroundedGenerationServiceClient", { enumerable: true, get: function () { return grounded_generation_service_client_1.GroundedGenerationServiceClient; } });
|
41
43
|
var project_service_client_1 = require("./project_service_client");
|
@@ -44,6 +46,10 @@ var rank_service_client_1 = require("./rank_service_client");
|
|
44
46
|
Object.defineProperty(exports, "RankServiceClient", { enumerable: true, get: function () { return rank_service_client_1.RankServiceClient; } });
|
45
47
|
var recommendation_service_client_1 = require("./recommendation_service_client");
|
46
48
|
Object.defineProperty(exports, "RecommendationServiceClient", { enumerable: true, get: function () { return recommendation_service_client_1.RecommendationServiceClient; } });
|
49
|
+
var sample_query_service_client_1 = require("./sample_query_service_client");
|
50
|
+
Object.defineProperty(exports, "SampleQueryServiceClient", { enumerable: true, get: function () { return sample_query_service_client_1.SampleQueryServiceClient; } });
|
51
|
+
var sample_query_set_service_client_1 = require("./sample_query_set_service_client");
|
52
|
+
Object.defineProperty(exports, "SampleQuerySetServiceClient", { enumerable: true, get: function () { return sample_query_set_service_client_1.SampleQuerySetServiceClient; } });
|
47
53
|
var schema_service_client_1 = require("./schema_service_client");
|
48
54
|
Object.defineProperty(exports, "SchemaServiceClient", { enumerable: true, get: function () { return schema_service_client_1.SchemaServiceClient; } });
|
49
55
|
var search_service_client_1 = require("./search_service_client");
|
@@ -479,6 +479,39 @@ export declare class ProjectServiceClient {
|
|
479
479
|
* @returns {string} A string representing the engine.
|
480
480
|
*/
|
481
481
|
matchEngineFromEngineName(engineName: string): string | number;
|
482
|
+
/**
|
483
|
+
* Return a fully-qualified evaluation resource name string.
|
484
|
+
*
|
485
|
+
* @param {string} project
|
486
|
+
* @param {string} location
|
487
|
+
* @param {string} evaluation
|
488
|
+
* @returns {string} Resource name string.
|
489
|
+
*/
|
490
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
491
|
+
/**
|
492
|
+
* Parse the project from Evaluation resource.
|
493
|
+
*
|
494
|
+
* @param {string} evaluationName
|
495
|
+
* A fully-qualified path representing Evaluation resource.
|
496
|
+
* @returns {string} A string representing the project.
|
497
|
+
*/
|
498
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
499
|
+
/**
|
500
|
+
* Parse the location from Evaluation resource.
|
501
|
+
*
|
502
|
+
* @param {string} evaluationName
|
503
|
+
* A fully-qualified path representing Evaluation resource.
|
504
|
+
* @returns {string} A string representing the location.
|
505
|
+
*/
|
506
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
507
|
+
/**
|
508
|
+
* Parse the evaluation from Evaluation resource.
|
509
|
+
*
|
510
|
+
* @param {string} evaluationName
|
511
|
+
* A fully-qualified path representing Evaluation resource.
|
512
|
+
* @returns {string} A string representing the evaluation.
|
513
|
+
*/
|
514
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
482
515
|
/**
|
483
516
|
* Return a fully-qualified project resource name string.
|
484
517
|
*
|
@@ -1985,6 +2018,81 @@ export declare class ProjectServiceClient {
|
|
1985
2018
|
* @returns {string} A string representing the target_site.
|
1986
2019
|
*/
|
1987
2020
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
2021
|
+
/**
|
2022
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2023
|
+
*
|
2024
|
+
* @param {string} project
|
2025
|
+
* @param {string} location
|
2026
|
+
* @param {string} sample_query_set
|
2027
|
+
* @param {string} sample_query
|
2028
|
+
* @returns {string} Resource name string.
|
2029
|
+
*/
|
2030
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
2031
|
+
/**
|
2032
|
+
* Parse the project from SampleQuery resource.
|
2033
|
+
*
|
2034
|
+
* @param {string} sampleQueryName
|
2035
|
+
* A fully-qualified path representing SampleQuery resource.
|
2036
|
+
* @returns {string} A string representing the project.
|
2037
|
+
*/
|
2038
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
2039
|
+
/**
|
2040
|
+
* Parse the location from SampleQuery resource.
|
2041
|
+
*
|
2042
|
+
* @param {string} sampleQueryName
|
2043
|
+
* A fully-qualified path representing SampleQuery resource.
|
2044
|
+
* @returns {string} A string representing the location.
|
2045
|
+
*/
|
2046
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
2047
|
+
/**
|
2048
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2049
|
+
*
|
2050
|
+
* @param {string} sampleQueryName
|
2051
|
+
* A fully-qualified path representing SampleQuery resource.
|
2052
|
+
* @returns {string} A string representing the sample_query_set.
|
2053
|
+
*/
|
2054
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
2055
|
+
/**
|
2056
|
+
* Parse the sample_query from SampleQuery resource.
|
2057
|
+
*
|
2058
|
+
* @param {string} sampleQueryName
|
2059
|
+
* A fully-qualified path representing SampleQuery resource.
|
2060
|
+
* @returns {string} A string representing the sample_query.
|
2061
|
+
*/
|
2062
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
2063
|
+
/**
|
2064
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2065
|
+
*
|
2066
|
+
* @param {string} project
|
2067
|
+
* @param {string} location
|
2068
|
+
* @param {string} sample_query_set
|
2069
|
+
* @returns {string} Resource name string.
|
2070
|
+
*/
|
2071
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
2072
|
+
/**
|
2073
|
+
* Parse the project from SampleQuerySet resource.
|
2074
|
+
*
|
2075
|
+
* @param {string} sampleQuerySetName
|
2076
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2077
|
+
* @returns {string} A string representing the project.
|
2078
|
+
*/
|
2079
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2080
|
+
/**
|
2081
|
+
* Parse the location from SampleQuerySet resource.
|
2082
|
+
*
|
2083
|
+
* @param {string} sampleQuerySetName
|
2084
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2085
|
+
* @returns {string} A string representing the location.
|
2086
|
+
*/
|
2087
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2088
|
+
/**
|
2089
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2090
|
+
*
|
2091
|
+
* @param {string} sampleQuerySetName
|
2092
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2093
|
+
* @returns {string} A string representing the sample_query_set.
|
2094
|
+
*/
|
2095
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1988
2096
|
/**
|
1989
2097
|
* Terminate the gRPC channel and close the client.
|
1990
2098
|
*
|