@google-cloud/discoveryengine 3.1.0 → 3.3.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/build/protos/google/cloud/discoveryengine/v1/search_service.proto +147 -19
- package/build/protos/protos.d.ts +608 -126
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +185 -12
- package/build/src/v1/assistant_service_client.js +4 -4
- package/build/src/v1/cmek_config_service_client.js +9 -13
- package/build/src/v1/completion_service_client.js +10 -14
- package/build/src/v1/control_service_client.js +10 -10
- package/build/src/v1/conversational_search_service_client.js +21 -21
- package/build/src/v1/data_store_service_client.js +12 -16
- package/build/src/v1/document_service_client.js +15 -19
- package/build/src/v1/engine_service_client.js +12 -16
- package/build/src/v1/grounded_generation_service_client.js +6 -6
- package/build/src/v1/identity_mapping_store_service_client.js +16 -20
- package/build/src/v1/project_service_client.js +6 -10
- package/build/src/v1/rank_service_client.js +4 -4
- package/build/src/v1/recommendation_service_client.js +4 -4
- package/build/src/v1/schema_service_client.js +12 -16
- package/build/src/v1/search_service_client.d.ts +162 -24
- package/build/src/v1/search_service_client.js +123 -26
- package/build/src/v1/search_tuning_service_client.js +7 -11
- package/build/src/v1/serving_config_service_client.js +4 -4
- package/build/src/v1/session_service_client.js +10 -10
- package/build/src/v1/site_search_engine_service_client.js +24 -28
- package/build/src/v1/user_event_service_client.js +9 -13
- package/build/src/v1/user_license_service_client.js +9 -13
- package/build/src/v1alpha/acl_config_service_client.js +5 -5
- package/build/src/v1alpha/chunk_service_client.js +7 -7
- package/build/src/v1alpha/completion_service_client.js +8 -8
- package/build/src/v1alpha/control_service_client.js +10 -10
- package/build/src/v1alpha/conversational_search_service_client.js +20 -20
- package/build/src/v1alpha/data_store_service_client.js +12 -12
- package/build/src/v1alpha/document_service_client.js +14 -14
- package/build/src/v1alpha/engine_service_client.js +13 -13
- package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
- package/build/src/v1alpha/evaluation_service_client.js +11 -11
- package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
- package/build/src/v1alpha/project_service_client.js +6 -6
- package/build/src/v1alpha/rank_service_client.js +4 -4
- package/build/src/v1alpha/recommendation_service_client.js +4 -4
- package/build/src/v1alpha/sample_query_service_client.js +11 -11
- package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
- package/build/src/v1alpha/schema_service_client.js +10 -10
- package/build/src/v1alpha/search_service_client.js +6 -6
- package/build/src/v1alpha/search_tuning_service_client.js +5 -5
- package/build/src/v1alpha/serving_config_service_client.js +8 -8
- package/build/src/v1alpha/session_service_client.js +13 -13
- package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
- package/build/src/v1alpha/user_event_service_client.js +7 -7
- package/build/src/v1beta/acl_config_service_client.js +5 -5
- package/build/src/v1beta/assistant_service_client.js +11 -11
- package/build/src/v1beta/cmek_config_service_client.js +7 -7
- package/build/src/v1beta/completion_service_client.js +10 -10
- package/build/src/v1beta/control_service_client.js +10 -10
- package/build/src/v1beta/conversational_search_service_client.js +21 -21
- package/build/src/v1beta/data_store_service_client.js +10 -10
- package/build/src/v1beta/document_service_client.js +13 -13
- package/build/src/v1beta/engine_service_client.js +15 -15
- package/build/src/v1beta/evaluation_service_client.js +11 -11
- package/build/src/v1beta/grounded_generation_service_client.js +6 -6
- package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
- package/build/src/v1beta/license_config_service_client.js +11 -11
- package/build/src/v1beta/project_service_client.js +4 -4
- package/build/src/v1beta/rank_service_client.js +4 -4
- package/build/src/v1beta/recommendation_service_client.js +4 -4
- package/build/src/v1beta/sample_query_service_client.js +11 -11
- package/build/src/v1beta/sample_query_set_service_client.js +10 -10
- package/build/src/v1beta/schema_service_client.js +10 -10
- package/build/src/v1beta/search_service_client.js +9 -9
- package/build/src/v1beta/search_tuning_service_client.js +5 -5
- package/build/src/v1beta/serving_config_service_client.js +10 -10
- package/build/src/v1beta/session_service_client.js +10 -10
- package/build/src/v1beta/site_search_engine_service_client.js +22 -22
- package/build/src/v1beta/user_event_service_client.js +7 -7
- package/build/src/v1beta/user_license_service_client.js +8 -8
- package/build/src/v1beta/user_store_service_client.js +5 -5
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -1219,7 +1219,7 @@
|
|
|
1219
1219
|
"SearchService": {
|
|
1220
1220
|
"options": {
|
|
1221
1221
|
"(google.api.default_host)": "discoveryengine.googleapis.com",
|
|
1222
|
-
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
|
|
1222
|
+
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.assist.readwrite,https://www.googleapis.com/auth/discoveryengine.readwrite,https://www.googleapis.com/auth/discoveryengine.serving.readwrite"
|
|
1223
1223
|
},
|
|
1224
1224
|
"methods": {
|
|
1225
1225
|
"Search": {
|
|
@@ -1334,6 +1334,13 @@
|
|
|
1334
1334
|
"type": "DataStoreSpec",
|
|
1335
1335
|
"id": 32
|
|
1336
1336
|
},
|
|
1337
|
+
"numResultsPerDataStore": {
|
|
1338
|
+
"type": "int32",
|
|
1339
|
+
"id": 65,
|
|
1340
|
+
"options": {
|
|
1341
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1337
1344
|
"filter": {
|
|
1338
1345
|
"type": "string",
|
|
1339
1346
|
"id": 7
|
|
@@ -1464,6 +1471,27 @@
|
|
|
1464
1471
|
"options": {
|
|
1465
1472
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
1466
1473
|
}
|
|
1474
|
+
},
|
|
1475
|
+
"searchAddonSpec": {
|
|
1476
|
+
"type": "SearchAddonSpec",
|
|
1477
|
+
"id": 62,
|
|
1478
|
+
"options": {
|
|
1479
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
"customRankingParams": {
|
|
1483
|
+
"type": "CustomRankingParams",
|
|
1484
|
+
"id": 64,
|
|
1485
|
+
"options": {
|
|
1486
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
"entity": {
|
|
1490
|
+
"type": "string",
|
|
1491
|
+
"id": 66,
|
|
1492
|
+
"options": {
|
|
1493
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
1494
|
+
}
|
|
1467
1495
|
}
|
|
1468
1496
|
},
|
|
1469
1497
|
"nested": {
|
|
@@ -1512,6 +1540,13 @@
|
|
|
1512
1540
|
"options": {
|
|
1513
1541
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
1514
1542
|
}
|
|
1543
|
+
},
|
|
1544
|
+
"numResults": {
|
|
1545
|
+
"type": "int32",
|
|
1546
|
+
"id": 9,
|
|
1547
|
+
"options": {
|
|
1548
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
1549
|
+
}
|
|
1515
1550
|
}
|
|
1516
1551
|
}
|
|
1517
1552
|
},
|
|
@@ -1896,13 +1931,62 @@
|
|
|
1896
1931
|
}
|
|
1897
1932
|
},
|
|
1898
1933
|
"SearchAsYouTypeSpec": {
|
|
1934
|
+
"oneofs": {
|
|
1935
|
+
"_scoreThreshold": {
|
|
1936
|
+
"oneof": [
|
|
1937
|
+
"scoreThreshold"
|
|
1938
|
+
]
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1899
1941
|
"fields": {
|
|
1900
1942
|
"condition": {
|
|
1901
1943
|
"type": "Condition",
|
|
1902
1944
|
"id": 1
|
|
1945
|
+
},
|
|
1946
|
+
"fields": {
|
|
1947
|
+
"rule": "repeated",
|
|
1948
|
+
"type": "Field",
|
|
1949
|
+
"id": 2,
|
|
1950
|
+
"options": {
|
|
1951
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
1952
|
+
}
|
|
1953
|
+
},
|
|
1954
|
+
"scoreThreshold": {
|
|
1955
|
+
"type": "double",
|
|
1956
|
+
"id": 3,
|
|
1957
|
+
"options": {
|
|
1958
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1959
|
+
"proto3_optional": true
|
|
1960
|
+
}
|
|
1903
1961
|
}
|
|
1904
1962
|
},
|
|
1905
1963
|
"nested": {
|
|
1964
|
+
"Field": {
|
|
1965
|
+
"oneofs": {
|
|
1966
|
+
"_weight": {
|
|
1967
|
+
"oneof": [
|
|
1968
|
+
"weight"
|
|
1969
|
+
]
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
"fields": {
|
|
1973
|
+
"key": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"id": 1,
|
|
1976
|
+
"options": {
|
|
1977
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
1978
|
+
}
|
|
1979
|
+
},
|
|
1980
|
+
"weight": {
|
|
1981
|
+
"type": "double",
|
|
1982
|
+
"id": 2,
|
|
1983
|
+
"options": {
|
|
1984
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1985
|
+
"proto3_optional": true
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1906
1990
|
"Condition": {
|
|
1907
1991
|
"values": {
|
|
1908
1992
|
"CONDITION_UNSPECIFIED": 0,
|
|
@@ -1977,17 +2061,6 @@
|
|
|
1977
2061
|
}
|
|
1978
2062
|
}
|
|
1979
2063
|
},
|
|
1980
|
-
"RelevanceScoreSpec": {
|
|
1981
|
-
"fields": {
|
|
1982
|
-
"returnRelevanceScore": {
|
|
1983
|
-
"type": "bool",
|
|
1984
|
-
"id": 1,
|
|
1985
|
-
"options": {
|
|
1986
|
-
"(google.api.field_behavior)": "OPTIONAL"
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
},
|
|
1991
2064
|
"RelevanceFilterSpec": {
|
|
1992
2065
|
"fields": {
|
|
1993
2066
|
"keywordSearchThreshold": {
|
|
@@ -2028,6 +2101,54 @@
|
|
|
2028
2101
|
}
|
|
2029
2102
|
}
|
|
2030
2103
|
},
|
|
2104
|
+
"RelevanceScoreSpec": {
|
|
2105
|
+
"fields": {
|
|
2106
|
+
"returnRelevanceScore": {
|
|
2107
|
+
"type": "bool",
|
|
2108
|
+
"id": 1,
|
|
2109
|
+
"options": {
|
|
2110
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
},
|
|
2115
|
+
"SearchAddonSpec": {
|
|
2116
|
+
"fields": {
|
|
2117
|
+
"disableSemanticAddOn": {
|
|
2118
|
+
"type": "bool",
|
|
2119
|
+
"id": 1,
|
|
2120
|
+
"options": {
|
|
2121
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
"disableKpiPersonalizationAddOn": {
|
|
2125
|
+
"type": "bool",
|
|
2126
|
+
"id": 2,
|
|
2127
|
+
"options": {
|
|
2128
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2129
|
+
}
|
|
2130
|
+
},
|
|
2131
|
+
"disableGenerativeAnswerAddOn": {
|
|
2132
|
+
"type": "bool",
|
|
2133
|
+
"id": 3,
|
|
2134
|
+
"options": {
|
|
2135
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
},
|
|
2140
|
+
"CustomRankingParams": {
|
|
2141
|
+
"fields": {
|
|
2142
|
+
"expressionsToPrecompute": {
|
|
2143
|
+
"rule": "repeated",
|
|
2144
|
+
"type": "string",
|
|
2145
|
+
"id": 1,
|
|
2146
|
+
"options": {
|
|
2147
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2031
2152
|
"RankingExpressionBackend": {
|
|
2032
2153
|
"valuesOptions": {
|
|
2033
2154
|
"BYOE": {
|
|
@@ -2092,6 +2213,15 @@
|
|
|
2092
2213
|
"type": "Summary",
|
|
2093
2214
|
"id": 9
|
|
2094
2215
|
},
|
|
2216
|
+
"appliedControls": {
|
|
2217
|
+
"rule": "repeated",
|
|
2218
|
+
"type": "string",
|
|
2219
|
+
"id": 10,
|
|
2220
|
+
"options": {
|
|
2221
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
2222
|
+
"(google.api.resource_reference).type": "discoveryengine.googleapis.com/Control"
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2095
2225
|
"queryExpansionInfo": {
|
|
2096
2226
|
"type": "QueryExpansionInfo",
|
|
2097
2227
|
"id": 14
|
|
@@ -2149,6 +2279,13 @@
|
|
|
2149
2279
|
"options": {
|
|
2150
2280
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
2151
2281
|
}
|
|
2282
|
+
},
|
|
2283
|
+
"retrievalSignals": {
|
|
2284
|
+
"type": "RetrievalSignals",
|
|
2285
|
+
"id": 11,
|
|
2286
|
+
"options": {
|
|
2287
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2288
|
+
}
|
|
2152
2289
|
}
|
|
2153
2290
|
},
|
|
2154
2291
|
"nested": {
|
|
@@ -2261,6 +2398,14 @@
|
|
|
2261
2398
|
"options": {
|
|
2262
2399
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
2263
2400
|
}
|
|
2401
|
+
},
|
|
2402
|
+
"precomputedExpressionValues": {
|
|
2403
|
+
"rule": "repeated",
|
|
2404
|
+
"type": "float",
|
|
2405
|
+
"id": 34,
|
|
2406
|
+
"options": {
|
|
2407
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2408
|
+
}
|
|
2264
2409
|
}
|
|
2265
2410
|
},
|
|
2266
2411
|
"nested": {
|
|
@@ -2283,6 +2428,34 @@
|
|
|
2283
2428
|
}
|
|
2284
2429
|
}
|
|
2285
2430
|
}
|
|
2431
|
+
},
|
|
2432
|
+
"RetrievalSignals": {
|
|
2433
|
+
"fields": {
|
|
2434
|
+
"retrievalSources": {
|
|
2435
|
+
"rule": "repeated",
|
|
2436
|
+
"type": "RetrievalSource",
|
|
2437
|
+
"id": 1,
|
|
2438
|
+
"options": {
|
|
2439
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2440
|
+
}
|
|
2441
|
+
},
|
|
2442
|
+
"semanticRelevanceScore": {
|
|
2443
|
+
"type": "float",
|
|
2444
|
+
"id": 2,
|
|
2445
|
+
"options": {
|
|
2446
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
"nested": {
|
|
2451
|
+
"RetrievalSource": {
|
|
2452
|
+
"values": {
|
|
2453
|
+
"RETRIEVAL_SOURCE_UNSPECIFIED": 0,
|
|
2454
|
+
"KEYWORD_SEARCH": 1,
|
|
2455
|
+
"SEMANTIC_SEARCH": 2
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2286
2459
|
}
|
|
2287
2460
|
}
|
|
2288
2461
|
},
|
|
@@ -251,7 +251,7 @@ class AssistantServiceClient {
|
|
|
251
251
|
// and create an API call method for each.
|
|
252
252
|
const assistantServiceStubMethods = ['streamAssist'];
|
|
253
253
|
for (const methodName of assistantServiceStubMethods) {
|
|
254
|
-
const callPromise = this.assistantServiceStub.then(
|
|
254
|
+
const callPromise = this.assistantServiceStub.then(stub => (...args) => {
|
|
255
255
|
if (this._terminated) {
|
|
256
256
|
if (methodName in this.descriptors.stream) {
|
|
257
257
|
const stream = new stream_1.PassThrough({ objectMode: true });
|
|
@@ -386,7 +386,7 @@ class AssistantServiceClient {
|
|
|
386
386
|
this._gaxModule.routingHeader.fromParams({
|
|
387
387
|
name: request.name ?? '',
|
|
388
388
|
});
|
|
389
|
-
this.initialize().catch(
|
|
389
|
+
this.initialize().catch(err => {
|
|
390
390
|
throw err;
|
|
391
391
|
});
|
|
392
392
|
this._log.info('streamAssist stream %j', options);
|
|
@@ -2964,11 +2964,11 @@ class AssistantServiceClient {
|
|
|
2964
2964
|
*/
|
|
2965
2965
|
close() {
|
|
2966
2966
|
if (this.assistantServiceStub && !this._terminated) {
|
|
2967
|
-
return this.assistantServiceStub.then(
|
|
2967
|
+
return this.assistantServiceStub.then(stub => {
|
|
2968
2968
|
this._log.info('ending gRPC channel');
|
|
2969
2969
|
this._terminated = true;
|
|
2970
2970
|
stub.close();
|
|
2971
|
-
this.locationsClient.close().catch(
|
|
2971
|
+
this.locationsClient.close().catch(err => {
|
|
2972
2972
|
throw err;
|
|
2973
2973
|
});
|
|
2974
2974
|
});
|
|
@@ -318,18 +318,14 @@ class CmekConfigServiceClient {
|
|
|
318
318
|
{
|
|
319
319
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
320
320
|
},
|
|
321
|
-
{
|
|
322
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
323
|
-
},
|
|
321
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
324
322
|
{
|
|
325
323
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
326
324
|
},
|
|
327
325
|
{
|
|
328
326
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
329
327
|
},
|
|
330
|
-
{
|
|
331
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
332
|
-
},
|
|
328
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
333
329
|
{
|
|
334
330
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
335
331
|
},
|
|
@@ -391,7 +387,7 @@ class CmekConfigServiceClient {
|
|
|
391
387
|
'deleteCmekConfig',
|
|
392
388
|
];
|
|
393
389
|
for (const methodName of cmekConfigServiceStubMethods) {
|
|
394
|
-
const callPromise = this.cmekConfigServiceStub.then(
|
|
390
|
+
const callPromise = this.cmekConfigServiceStub.then(stub => (...args) => {
|
|
395
391
|
if (this._terminated) {
|
|
396
392
|
return Promise.reject('The client has already been closed.');
|
|
397
393
|
}
|
|
@@ -483,7 +479,7 @@ class CmekConfigServiceClient {
|
|
|
483
479
|
this._gaxModule.routingHeader.fromParams({
|
|
484
480
|
name: request.name ?? '',
|
|
485
481
|
});
|
|
486
|
-
this.initialize().catch(
|
|
482
|
+
this.initialize().catch(err => {
|
|
487
483
|
throw err;
|
|
488
484
|
});
|
|
489
485
|
this._log.info('getCmekConfig request %j', request);
|
|
@@ -526,7 +522,7 @@ class CmekConfigServiceClient {
|
|
|
526
522
|
this._gaxModule.routingHeader.fromParams({
|
|
527
523
|
parent: request.parent ?? '',
|
|
528
524
|
});
|
|
529
|
-
this.initialize().catch(
|
|
525
|
+
this.initialize().catch(err => {
|
|
530
526
|
throw err;
|
|
531
527
|
});
|
|
532
528
|
this._log.info('listCmekConfigs request %j', request);
|
|
@@ -569,7 +565,7 @@ class CmekConfigServiceClient {
|
|
|
569
565
|
this._gaxModule.routingHeader.fromParams({
|
|
570
566
|
'config.name': request.config.name ?? '',
|
|
571
567
|
});
|
|
572
|
-
this.initialize().catch(
|
|
568
|
+
this.initialize().catch(err => {
|
|
573
569
|
throw err;
|
|
574
570
|
});
|
|
575
571
|
const wrappedCallback = callback
|
|
@@ -621,7 +617,7 @@ class CmekConfigServiceClient {
|
|
|
621
617
|
this._gaxModule.routingHeader.fromParams({
|
|
622
618
|
name: request.name ?? '',
|
|
623
619
|
});
|
|
624
|
-
this.initialize().catch(
|
|
620
|
+
this.initialize().catch(err => {
|
|
625
621
|
throw err;
|
|
626
622
|
});
|
|
627
623
|
const wrappedCallback = callback
|
|
@@ -3571,11 +3567,11 @@ class CmekConfigServiceClient {
|
|
|
3571
3567
|
*/
|
|
3572
3568
|
close() {
|
|
3573
3569
|
if (this.cmekConfigServiceStub && !this._terminated) {
|
|
3574
|
-
return this.cmekConfigServiceStub.then(
|
|
3570
|
+
return this.cmekConfigServiceStub.then(stub => {
|
|
3575
3571
|
this._log.info('ending gRPC channel');
|
|
3576
3572
|
this._terminated = true;
|
|
3577
3573
|
stub.close();
|
|
3578
|
-
this.locationsClient.close().catch(
|
|
3574
|
+
this.locationsClient.close().catch(err => {
|
|
3579
3575
|
throw err;
|
|
3580
3576
|
});
|
|
3581
3577
|
void this.operationsClient.close();
|
|
@@ -315,18 +315,14 @@ class CompletionServiceClient {
|
|
|
315
315
|
{
|
|
316
316
|
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
|
317
317
|
},
|
|
318
|
-
{
|
|
319
|
-
get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
|
|
320
|
-
},
|
|
318
|
+
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
|
321
319
|
{
|
|
322
320
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
|
323
321
|
},
|
|
324
322
|
{
|
|
325
323
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
|
326
324
|
},
|
|
327
|
-
{
|
|
328
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
|
|
329
|
-
},
|
|
325
|
+
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
|
330
326
|
{
|
|
331
327
|
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
|
332
328
|
},
|
|
@@ -395,7 +391,7 @@ class CompletionServiceClient {
|
|
|
395
391
|
'purgeCompletionSuggestions',
|
|
396
392
|
];
|
|
397
393
|
for (const methodName of completionServiceStubMethods) {
|
|
398
|
-
const callPromise = this.completionServiceStub.then(
|
|
394
|
+
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
|
399
395
|
if (this._terminated) {
|
|
400
396
|
return Promise.reject('The client has already been closed.');
|
|
401
397
|
}
|
|
@@ -487,7 +483,7 @@ class CompletionServiceClient {
|
|
|
487
483
|
this._gaxModule.routingHeader.fromParams({
|
|
488
484
|
data_store: request.dataStore ?? '',
|
|
489
485
|
});
|
|
490
|
-
this.initialize().catch(
|
|
486
|
+
this.initialize().catch(err => {
|
|
491
487
|
throw err;
|
|
492
488
|
});
|
|
493
489
|
this._log.info('completeQuery request %j', request);
|
|
@@ -530,7 +526,7 @@ class CompletionServiceClient {
|
|
|
530
526
|
this._gaxModule.routingHeader.fromParams({
|
|
531
527
|
parent: request.parent ?? '',
|
|
532
528
|
});
|
|
533
|
-
this.initialize().catch(
|
|
529
|
+
this.initialize().catch(err => {
|
|
534
530
|
throw err;
|
|
535
531
|
});
|
|
536
532
|
const wrappedCallback = callback
|
|
@@ -582,7 +578,7 @@ class CompletionServiceClient {
|
|
|
582
578
|
this._gaxModule.routingHeader.fromParams({
|
|
583
579
|
parent: request.parent ?? '',
|
|
584
580
|
});
|
|
585
|
-
this.initialize().catch(
|
|
581
|
+
this.initialize().catch(err => {
|
|
586
582
|
throw err;
|
|
587
583
|
});
|
|
588
584
|
const wrappedCallback = callback
|
|
@@ -634,7 +630,7 @@ class CompletionServiceClient {
|
|
|
634
630
|
this._gaxModule.routingHeader.fromParams({
|
|
635
631
|
parent: request.parent ?? '',
|
|
636
632
|
});
|
|
637
|
-
this.initialize().catch(
|
|
633
|
+
this.initialize().catch(err => {
|
|
638
634
|
throw err;
|
|
639
635
|
});
|
|
640
636
|
const wrappedCallback = callback
|
|
@@ -686,7 +682,7 @@ class CompletionServiceClient {
|
|
|
686
682
|
this._gaxModule.routingHeader.fromParams({
|
|
687
683
|
parent: request.parent ?? '',
|
|
688
684
|
});
|
|
689
|
-
this.initialize().catch(
|
|
685
|
+
this.initialize().catch(err => {
|
|
690
686
|
throw err;
|
|
691
687
|
});
|
|
692
688
|
const wrappedCallback = callback
|
|
@@ -3473,11 +3469,11 @@ class CompletionServiceClient {
|
|
|
3473
3469
|
*/
|
|
3474
3470
|
close() {
|
|
3475
3471
|
if (this.completionServiceStub && !this._terminated) {
|
|
3476
|
-
return this.completionServiceStub.then(
|
|
3472
|
+
return this.completionServiceStub.then(stub => {
|
|
3477
3473
|
this._log.info('ending gRPC channel');
|
|
3478
3474
|
this._terminated = true;
|
|
3479
3475
|
stub.close();
|
|
3480
|
-
this.locationsClient.close().catch(
|
|
3476
|
+
this.locationsClient.close().catch(err => {
|
|
3481
3477
|
throw err;
|
|
3482
3478
|
});
|
|
3483
3479
|
void this.operationsClient.close();
|
|
@@ -260,7 +260,7 @@ class ControlServiceClient {
|
|
|
260
260
|
'listControls',
|
|
261
261
|
];
|
|
262
262
|
for (const methodName of controlServiceStubMethods) {
|
|
263
|
-
const callPromise = this.controlServiceStub.then(
|
|
263
|
+
const callPromise = this.controlServiceStub.then(stub => (...args) => {
|
|
264
264
|
if (this._terminated) {
|
|
265
265
|
return Promise.reject('The client has already been closed.');
|
|
266
266
|
}
|
|
@@ -352,7 +352,7 @@ class ControlServiceClient {
|
|
|
352
352
|
this._gaxModule.routingHeader.fromParams({
|
|
353
353
|
parent: request.parent ?? '',
|
|
354
354
|
});
|
|
355
|
-
this.initialize().catch(
|
|
355
|
+
this.initialize().catch(err => {
|
|
356
356
|
throw err;
|
|
357
357
|
});
|
|
358
358
|
this._log.info('createControl request %j', request);
|
|
@@ -395,7 +395,7 @@ class ControlServiceClient {
|
|
|
395
395
|
this._gaxModule.routingHeader.fromParams({
|
|
396
396
|
name: request.name ?? '',
|
|
397
397
|
});
|
|
398
|
-
this.initialize().catch(
|
|
398
|
+
this.initialize().catch(err => {
|
|
399
399
|
throw err;
|
|
400
400
|
});
|
|
401
401
|
this._log.info('deleteControl request %j', request);
|
|
@@ -438,7 +438,7 @@ class ControlServiceClient {
|
|
|
438
438
|
this._gaxModule.routingHeader.fromParams({
|
|
439
439
|
'control.name': request.control.name ?? '',
|
|
440
440
|
});
|
|
441
|
-
this.initialize().catch(
|
|
441
|
+
this.initialize().catch(err => {
|
|
442
442
|
throw err;
|
|
443
443
|
});
|
|
444
444
|
this._log.info('updateControl request %j', request);
|
|
@@ -481,7 +481,7 @@ class ControlServiceClient {
|
|
|
481
481
|
this._gaxModule.routingHeader.fromParams({
|
|
482
482
|
name: request.name ?? '',
|
|
483
483
|
});
|
|
484
|
-
this.initialize().catch(
|
|
484
|
+
this.initialize().catch(err => {
|
|
485
485
|
throw err;
|
|
486
486
|
});
|
|
487
487
|
this._log.info('getControl request %j', request);
|
|
@@ -524,7 +524,7 @@ class ControlServiceClient {
|
|
|
524
524
|
this._gaxModule.routingHeader.fromParams({
|
|
525
525
|
parent: request.parent ?? '',
|
|
526
526
|
});
|
|
527
|
-
this.initialize().catch(
|
|
527
|
+
this.initialize().catch(err => {
|
|
528
528
|
throw err;
|
|
529
529
|
});
|
|
530
530
|
const wrappedCallback = callback
|
|
@@ -584,7 +584,7 @@ class ControlServiceClient {
|
|
|
584
584
|
});
|
|
585
585
|
const defaultCallSettings = this._defaults['listControls'];
|
|
586
586
|
const callSettings = defaultCallSettings.merge(options);
|
|
587
|
-
this.initialize().catch(
|
|
587
|
+
this.initialize().catch(err => {
|
|
588
588
|
throw err;
|
|
589
589
|
});
|
|
590
590
|
this._log.info('listControls stream %j', request);
|
|
@@ -636,7 +636,7 @@ class ControlServiceClient {
|
|
|
636
636
|
});
|
|
637
637
|
const defaultCallSettings = this._defaults['listControls'];
|
|
638
638
|
const callSettings = defaultCallSettings.merge(options);
|
|
639
|
-
this.initialize().catch(
|
|
639
|
+
this.initialize().catch(err => {
|
|
640
640
|
throw err;
|
|
641
641
|
});
|
|
642
642
|
this._log.info('listControls iterate %j', request);
|
|
@@ -3247,11 +3247,11 @@ class ControlServiceClient {
|
|
|
3247
3247
|
*/
|
|
3248
3248
|
close() {
|
|
3249
3249
|
if (this.controlServiceStub && !this._terminated) {
|
|
3250
|
-
return this.controlServiceStub.then(
|
|
3250
|
+
return this.controlServiceStub.then(stub => {
|
|
3251
3251
|
this._log.info('ending gRPC channel');
|
|
3252
3252
|
this._terminated = true;
|
|
3253
3253
|
stub.close();
|
|
3254
|
-
this.locationsClient.close().catch(
|
|
3254
|
+
this.locationsClient.close().catch(err => {
|
|
3255
3255
|
throw err;
|
|
3256
3256
|
});
|
|
3257
3257
|
});
|