@google-cloud/discoveryengine 1.3.1 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/README.md +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
- package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +45 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +120 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +41 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +169 -15
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +265 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +148 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
- package/build/protos/protos.d.ts +48530 -23682
- package/build/protos/protos.js +122429 -63306
- package/build/protos/protos.json +13438 -7286
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +10 -1
- package/build/src/v1/completion_service_client.d.ts +489 -7
- package/build/src/v1/completion_service_client.js +715 -11
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -3
- package/build/src/v1/conversational_search_service_client.js +466 -9
- package/build/src/v1/data_store_service_client.d.ts +1286 -0
- package/build/src/v1/data_store_service_client.js +1768 -0
- package/build/src/v1/data_store_service_client_config.json +46 -0
- package/build/src/v1/document_service_client.d.ts +347 -2
- package/build/src/v1/document_service_client.js +506 -9
- package/build/src/v1/engine_service_client.d.ts +1211 -0
- package/build/src/v1/engine_service_client.js +1731 -0
- package/build/src/v1/engine_service_client_config.json +46 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/schema_service_client.d.ts +272 -2
- package/build/src/v1/schema_service_client.js +402 -9
- package/build/src/v1/search_service_client.d.ts +515 -11
- package/build/src/v1/search_service_client.js +648 -15
- package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
- package/build/src/v1/site_search_engine_service_client.js +2075 -0
- package/build/src/v1/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1/user_event_service_client.d.ts +272 -2
- package/build/src/v1/user_event_service_client.js +402 -9
- package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
- package/build/src/v1alpha/acl_config_service_client.js +1765 -0
- package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
- package/build/src/v1alpha/chunk_service_client.js +1886 -0
- package/build/src/v1alpha/chunk_service_client_config.json +34 -0
- package/build/src/v1alpha/completion_service_client.d.ts +599 -5
- package/build/src/v1alpha/completion_service_client.js +868 -12
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +244 -3
- package/build/src/v1alpha/conversational_search_service_client.js +353 -10
- package/build/src/v1alpha/data_store_service_client.d.ts +462 -5
- package/build/src/v1alpha/data_store_service_client.js +599 -12
- package/build/src/v1alpha/data_store_service_client_config.json +8 -0
- package/build/src/v1alpha/document_service_client.d.ts +393 -2
- package/build/src/v1alpha/document_service_client.js +551 -10
- package/build/src/v1alpha/engine_service_client.d.ts +386 -4
- package/build/src/v1alpha/engine_service_client.js +551 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
- package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
- package/build/src/v1alpha/index.d.ts +4 -0
- package/build/src/v1alpha/index.js +10 -2
- package/build/src/v1alpha/recommendation_service_client.d.ts +242 -3
- package/build/src/v1alpha/recommendation_service_client.js +353 -10
- package/build/src/v1alpha/schema_service_client.d.ts +383 -2
- package/build/src/v1alpha/schema_service_client.js +551 -10
- package/build/src/v1alpha/search_service_client.d.ts +269 -17
- package/build/src/v1alpha/search_service_client.js +373 -20
- package/build/src/v1alpha/search_tuning_service_client.d.ts +384 -3
- package/build/src/v1alpha/search_tuning_service_client.js +551 -10
- package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
- package/build/src/v1alpha/serving_config_service_client.js +1935 -0
- package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +383 -2
- package/build/src/v1alpha/site_search_engine_service_client.js +551 -10
- package/build/src/v1alpha/user_event_service_client.d.ts +383 -2
- package/build/src/v1alpha/user_event_service_client.js +551 -10
- package/build/src/v1beta/completion_service_client.d.ts +708 -7
- package/build/src/v1beta/completion_service_client.js +1015 -11
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +420 -3
- package/build/src/v1beta/conversational_search_service_client.js +570 -9
- package/build/src/v1beta/data_store_service_client.d.ts +1508 -0
- package/build/src/v1beta/data_store_service_client.js +2070 -0
- package/build/src/v1beta/data_store_service_client_config.json +46 -0
- package/build/src/v1beta/document_service_client.d.ts +566 -2
- package/build/src/v1beta/document_service_client.js +810 -11
- package/build/src/v1beta/engine_service_client.d.ts +1432 -0
- package/build/src/v1beta/engine_service_client.js +2032 -0
- package/build/src/v1beta/engine_service_client_config.json +46 -0
- package/build/src/v1beta/index.d.ts +5 -0
- package/build/src/v1beta/index.js +11 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +495 -5
- package/build/src/v1beta/recommendation_service_client.js +674 -9
- package/build/src/v1beta/schema_service_client.d.ts +491 -2
- package/build/src/v1beta/schema_service_client.js +706 -11
- package/build/src/v1beta/search_service_client.d.ts +620 -29
- package/build/src/v1beta/search_service_client.js +772 -27
- package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
- package/build/src/v1beta/search_tuning_service_client.js +1781 -0
- package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +1217 -0
- package/build/src/v1beta/serving_config_service_client.js +1724 -0
- package/build/src/v1beta/serving_config_service_client_config.json +38 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1787 -0
- package/build/src/v1beta/site_search_engine_service_client.js +2375 -0
- package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1beta/user_event_service_client.d.ts +491 -2
- package/build/src/v1beta/user_event_service_client.js +706 -11
- package/package.json +3 -3
@@ -72,7 +72,7 @@ class SchemaServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b;
|
75
|
+
var _a, _b, _c, _d;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -82,16 +82,24 @@ class SchemaServiceClient {
|
|
82
82
|
};
|
83
83
|
// Ensure that options include all the required fields.
|
84
84
|
const staticMembers = this.constructor;
|
85
|
-
|
85
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
86
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
87
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
|
+
}
|
90
|
+
this._universeDomain =
|
91
|
+
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
92
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
86
94
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
87
95
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
88
|
-
const clientConfig = (
|
89
|
-
const fallback = (
|
96
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
97
|
+
const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
90
98
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
91
99
|
// Request numeric enum values if REST transport is used.
|
92
100
|
opts.numericEnums = true;
|
93
101
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
94
|
-
if (servicePath !==
|
102
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
95
103
|
opts['scopes'] = staticMembers.scopes;
|
96
104
|
}
|
97
105
|
// Load google-gax module synchronously if needed
|
@@ -109,9 +117,9 @@ class SchemaServiceClient {
|
|
109
117
|
// Set useJWTAccessWithScope on the auth object.
|
110
118
|
this.auth.useJWTAccessWithScope = true;
|
111
119
|
// Set defaultServicePath on the auth object.
|
112
|
-
this.auth.defaultServicePath =
|
120
|
+
this.auth.defaultServicePath = this._servicePath;
|
113
121
|
// Set the default scopes in auth client if needed.
|
114
|
-
if (servicePath ===
|
122
|
+
if (servicePath === this._servicePath) {
|
115
123
|
this.auth.defaultScopes = staticMembers.scopes;
|
116
124
|
}
|
117
125
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
@@ -138,14 +146,25 @@ class SchemaServiceClient {
|
|
138
146
|
// identifiers to uniquely identify resources within the API.
|
139
147
|
// Create useful helper objects for these.
|
140
148
|
this.pathTemplates = {
|
149
|
+
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
141
150
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
142
151
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
143
152
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
153
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
144
154
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
155
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
156
|
+
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
157
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
158
|
+
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
159
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
145
160
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
146
161
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
147
162
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
163
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
148
164
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
165
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
166
|
+
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
167
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
149
168
|
};
|
150
169
|
// Some of the methods on this service return "paged" results,
|
151
170
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
@@ -166,8 +185,11 @@ class SchemaServiceClient {
|
|
166
185
|
lroOptions.httpRules = [
|
167
186
|
{
|
168
187
|
selector: 'google.longrunning.Operations.GetOperation',
|
169
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/
|
188
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
170
189
|
additional_bindings: [
|
190
|
+
{
|
191
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
192
|
+
},
|
171
193
|
{
|
172
194
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
173
195
|
},
|
@@ -204,8 +226,11 @@ class SchemaServiceClient {
|
|
204
226
|
},
|
205
227
|
{
|
206
228
|
selector: 'google.longrunning.Operations.ListOperations',
|
207
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/
|
229
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
208
230
|
additional_bindings: [
|
231
|
+
{
|
232
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
233
|
+
},
|
209
234
|
{
|
210
235
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
211
236
|
},
|
@@ -317,19 +342,38 @@ class SchemaServiceClient {
|
|
317
342
|
}
|
318
343
|
/**
|
319
344
|
* The DNS address for this API service.
|
345
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
320
346
|
* @returns {string} The DNS address for this service.
|
321
347
|
*/
|
322
348
|
static get servicePath() {
|
349
|
+
if (typeof process !== undefined &&
|
350
|
+
typeof process.emitWarning === 'function') {
|
351
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
352
|
+
}
|
323
353
|
return 'discoveryengine.googleapis.com';
|
324
354
|
}
|
325
355
|
/**
|
326
|
-
* The DNS address for this API service - same as servicePath
|
327
|
-
*
|
356
|
+
* The DNS address for this API service - same as servicePath.
|
357
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
328
358
|
* @returns {string} The DNS address for this service.
|
329
359
|
*/
|
330
360
|
static get apiEndpoint() {
|
361
|
+
if (typeof process !== undefined &&
|
362
|
+
typeof process.emitWarning === 'function') {
|
363
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
364
|
+
}
|
331
365
|
return 'discoveryengine.googleapis.com';
|
332
366
|
}
|
367
|
+
/**
|
368
|
+
* The DNS address for this API service.
|
369
|
+
* @returns {string} The DNS address for this service.
|
370
|
+
*/
|
371
|
+
get apiEndpoint() {
|
372
|
+
return this._servicePath;
|
373
|
+
}
|
374
|
+
get universeDomain() {
|
375
|
+
return this._universeDomain;
|
376
|
+
}
|
333
377
|
/**
|
334
378
|
* The port for this API service.
|
335
379
|
* @returns {number} The default port for this service.
|
@@ -799,6 +843,63 @@ class SchemaServiceClient {
|
|
799
843
|
// --------------------
|
800
844
|
// -- Path templates --
|
801
845
|
// --------------------
|
846
|
+
/**
|
847
|
+
* Return a fully-qualified engine resource name string.
|
848
|
+
*
|
849
|
+
* @param {string} project
|
850
|
+
* @param {string} location
|
851
|
+
* @param {string} collection
|
852
|
+
* @param {string} engine
|
853
|
+
* @returns {string} Resource name string.
|
854
|
+
*/
|
855
|
+
enginePath(project, location, collection, engine) {
|
856
|
+
return this.pathTemplates.enginePathTemplate.render({
|
857
|
+
project: project,
|
858
|
+
location: location,
|
859
|
+
collection: collection,
|
860
|
+
engine: engine,
|
861
|
+
});
|
862
|
+
}
|
863
|
+
/**
|
864
|
+
* Parse the project from Engine resource.
|
865
|
+
*
|
866
|
+
* @param {string} engineName
|
867
|
+
* A fully-qualified path representing Engine resource.
|
868
|
+
* @returns {string} A string representing the project.
|
869
|
+
*/
|
870
|
+
matchProjectFromEngineName(engineName) {
|
871
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).project;
|
872
|
+
}
|
873
|
+
/**
|
874
|
+
* Parse the location from Engine resource.
|
875
|
+
*
|
876
|
+
* @param {string} engineName
|
877
|
+
* A fully-qualified path representing Engine resource.
|
878
|
+
* @returns {string} A string representing the location.
|
879
|
+
*/
|
880
|
+
matchLocationFromEngineName(engineName) {
|
881
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).location;
|
882
|
+
}
|
883
|
+
/**
|
884
|
+
* Parse the collection from Engine resource.
|
885
|
+
*
|
886
|
+
* @param {string} engineName
|
887
|
+
* A fully-qualified path representing Engine resource.
|
888
|
+
* @returns {string} A string representing the collection.
|
889
|
+
*/
|
890
|
+
matchCollectionFromEngineName(engineName) {
|
891
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).collection;
|
892
|
+
}
|
893
|
+
/**
|
894
|
+
* Parse the engine from Engine resource.
|
895
|
+
*
|
896
|
+
* @param {string} engineName
|
897
|
+
* A fully-qualified path representing Engine resource.
|
898
|
+
* @returns {string} A string representing the engine.
|
899
|
+
*/
|
900
|
+
matchEngineFromEngineName(engineName) {
|
901
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
902
|
+
}
|
802
903
|
/**
|
803
904
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
804
905
|
*
|
@@ -1006,6 +1107,63 @@ class SchemaServiceClient {
|
|
1006
1107
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
1007
1108
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
1008
1109
|
}
|
1110
|
+
/**
|
1111
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1112
|
+
*
|
1113
|
+
* @param {string} project
|
1114
|
+
* @param {string} location
|
1115
|
+
* @param {string} collection
|
1116
|
+
* @param {string} data_store
|
1117
|
+
* @returns {string} Resource name string.
|
1118
|
+
*/
|
1119
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
1120
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
1121
|
+
project: project,
|
1122
|
+
location: location,
|
1123
|
+
collection: collection,
|
1124
|
+
data_store: dataStore,
|
1125
|
+
});
|
1126
|
+
}
|
1127
|
+
/**
|
1128
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1129
|
+
*
|
1130
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1131
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1132
|
+
* @returns {string} A string representing the project.
|
1133
|
+
*/
|
1134
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1135
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
1136
|
+
}
|
1137
|
+
/**
|
1138
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1139
|
+
*
|
1140
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1141
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1142
|
+
* @returns {string} A string representing the location.
|
1143
|
+
*/
|
1144
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1145
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
1146
|
+
}
|
1147
|
+
/**
|
1148
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1149
|
+
*
|
1150
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1151
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1152
|
+
* @returns {string} A string representing the collection.
|
1153
|
+
*/
|
1154
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1155
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
1156
|
+
}
|
1157
|
+
/**
|
1158
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1159
|
+
*
|
1160
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1161
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1162
|
+
* @returns {string} A string representing the data_store.
|
1163
|
+
*/
|
1164
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1165
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
1166
|
+
}
|
1009
1167
|
/**
|
1010
1168
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
1011
1169
|
*
|
@@ -1075,6 +1233,339 @@ class SchemaServiceClient {
|
|
1075
1233
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1076
1234
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1077
1235
|
}
|
1236
|
+
/**
|
1237
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1238
|
+
*
|
1239
|
+
* @param {string} project
|
1240
|
+
* @param {string} location
|
1241
|
+
* @param {string} collection
|
1242
|
+
* @param {string} data_store
|
1243
|
+
* @param {string} serving_config
|
1244
|
+
* @returns {string} Resource name string.
|
1245
|
+
*/
|
1246
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1247
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1248
|
+
project: project,
|
1249
|
+
location: location,
|
1250
|
+
collection: collection,
|
1251
|
+
data_store: dataStore,
|
1252
|
+
serving_config: servingConfig,
|
1253
|
+
});
|
1254
|
+
}
|
1255
|
+
/**
|
1256
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1257
|
+
*
|
1258
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1259
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1260
|
+
* @returns {string} A string representing the project.
|
1261
|
+
*/
|
1262
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1263
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1264
|
+
}
|
1265
|
+
/**
|
1266
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1267
|
+
*
|
1268
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1269
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1270
|
+
* @returns {string} A string representing the location.
|
1271
|
+
*/
|
1272
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1273
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1274
|
+
}
|
1275
|
+
/**
|
1276
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1277
|
+
*
|
1278
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1279
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1280
|
+
* @returns {string} A string representing the collection.
|
1281
|
+
*/
|
1282
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1283
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1284
|
+
}
|
1285
|
+
/**
|
1286
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1287
|
+
*
|
1288
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1289
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1290
|
+
* @returns {string} A string representing the data_store.
|
1291
|
+
*/
|
1292
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1293
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1294
|
+
}
|
1295
|
+
/**
|
1296
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1297
|
+
*
|
1298
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1299
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1300
|
+
* @returns {string} A string representing the serving_config.
|
1301
|
+
*/
|
1302
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1303
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1304
|
+
}
|
1305
|
+
/**
|
1306
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1307
|
+
*
|
1308
|
+
* @param {string} project
|
1309
|
+
* @param {string} location
|
1310
|
+
* @param {string} collection
|
1311
|
+
* @param {string} data_store
|
1312
|
+
* @returns {string} Resource name string.
|
1313
|
+
*/
|
1314
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
1315
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
1316
|
+
project: project,
|
1317
|
+
location: location,
|
1318
|
+
collection: collection,
|
1319
|
+
data_store: dataStore,
|
1320
|
+
});
|
1321
|
+
}
|
1322
|
+
/**
|
1323
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1324
|
+
*
|
1325
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1326
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1327
|
+
* @returns {string} A string representing the project.
|
1328
|
+
*/
|
1329
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1330
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
1331
|
+
}
|
1332
|
+
/**
|
1333
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1334
|
+
*
|
1335
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1336
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1337
|
+
* @returns {string} A string representing the location.
|
1338
|
+
*/
|
1339
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1340
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
1341
|
+
}
|
1342
|
+
/**
|
1343
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1344
|
+
*
|
1345
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1346
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1347
|
+
* @returns {string} A string representing the collection.
|
1348
|
+
*/
|
1349
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1350
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
1351
|
+
}
|
1352
|
+
/**
|
1353
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1354
|
+
*
|
1355
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1356
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1357
|
+
* @returns {string} A string representing the data_store.
|
1358
|
+
*/
|
1359
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1360
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1361
|
+
}
|
1362
|
+
/**
|
1363
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1364
|
+
*
|
1365
|
+
* @param {string} project
|
1366
|
+
* @param {string} location
|
1367
|
+
* @param {string} collection
|
1368
|
+
* @param {string} data_store
|
1369
|
+
* @param {string} target_site
|
1370
|
+
* @returns {string} Resource name string.
|
1371
|
+
*/
|
1372
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
1373
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1374
|
+
project: project,
|
1375
|
+
location: location,
|
1376
|
+
collection: collection,
|
1377
|
+
data_store: dataStore,
|
1378
|
+
target_site: targetSite,
|
1379
|
+
});
|
1380
|
+
}
|
1381
|
+
/**
|
1382
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1383
|
+
*
|
1384
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1385
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1386
|
+
* @returns {string} A string representing the project.
|
1387
|
+
*/
|
1388
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1389
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
1390
|
+
}
|
1391
|
+
/**
|
1392
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1393
|
+
*
|
1394
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1395
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1396
|
+
* @returns {string} A string representing the location.
|
1397
|
+
*/
|
1398
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1399
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
1400
|
+
}
|
1401
|
+
/**
|
1402
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1403
|
+
*
|
1404
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1405
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1406
|
+
* @returns {string} A string representing the collection.
|
1407
|
+
*/
|
1408
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1409
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
1410
|
+
}
|
1411
|
+
/**
|
1412
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1413
|
+
*
|
1414
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1415
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1416
|
+
* @returns {string} A string representing the data_store.
|
1417
|
+
*/
|
1418
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1419
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1420
|
+
}
|
1421
|
+
/**
|
1422
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1423
|
+
*
|
1424
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1425
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1426
|
+
* @returns {string} A string representing the target_site.
|
1427
|
+
*/
|
1428
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1429
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1430
|
+
}
|
1431
|
+
/**
|
1432
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1433
|
+
*
|
1434
|
+
* @param {string} project
|
1435
|
+
* @param {string} location
|
1436
|
+
* @param {string} collection
|
1437
|
+
* @param {string} engine
|
1438
|
+
* @param {string} conversation
|
1439
|
+
* @returns {string} Resource name string.
|
1440
|
+
*/
|
1441
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
1442
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
1443
|
+
project: project,
|
1444
|
+
location: location,
|
1445
|
+
collection: collection,
|
1446
|
+
engine: engine,
|
1447
|
+
conversation: conversation,
|
1448
|
+
});
|
1449
|
+
}
|
1450
|
+
/**
|
1451
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
1452
|
+
*
|
1453
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1454
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1455
|
+
* @returns {string} A string representing the project.
|
1456
|
+
*/
|
1457
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1458
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
1459
|
+
}
|
1460
|
+
/**
|
1461
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
1462
|
+
*
|
1463
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1464
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1465
|
+
* @returns {string} A string representing the location.
|
1466
|
+
*/
|
1467
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1468
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
1469
|
+
}
|
1470
|
+
/**
|
1471
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
1472
|
+
*
|
1473
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1474
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1475
|
+
* @returns {string} A string representing the collection.
|
1476
|
+
*/
|
1477
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1478
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
1479
|
+
}
|
1480
|
+
/**
|
1481
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
1482
|
+
*
|
1483
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1484
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1485
|
+
* @returns {string} A string representing the engine.
|
1486
|
+
*/
|
1487
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1488
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
1489
|
+
}
|
1490
|
+
/**
|
1491
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
1492
|
+
*
|
1493
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1494
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1495
|
+
* @returns {string} A string representing the conversation.
|
1496
|
+
*/
|
1497
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1498
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1499
|
+
}
|
1500
|
+
/**
|
1501
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1502
|
+
*
|
1503
|
+
* @param {string} project
|
1504
|
+
* @param {string} location
|
1505
|
+
* @param {string} collection
|
1506
|
+
* @param {string} engine
|
1507
|
+
* @param {string} serving_config
|
1508
|
+
* @returns {string} Resource name string.
|
1509
|
+
*/
|
1510
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1511
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1512
|
+
project: project,
|
1513
|
+
location: location,
|
1514
|
+
collection: collection,
|
1515
|
+
engine: engine,
|
1516
|
+
serving_config: servingConfig,
|
1517
|
+
});
|
1518
|
+
}
|
1519
|
+
/**
|
1520
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1521
|
+
*
|
1522
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1523
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1524
|
+
* @returns {string} A string representing the project.
|
1525
|
+
*/
|
1526
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1527
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1528
|
+
}
|
1529
|
+
/**
|
1530
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1531
|
+
*
|
1532
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1533
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1534
|
+
* @returns {string} A string representing the location.
|
1535
|
+
*/
|
1536
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1537
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1538
|
+
}
|
1539
|
+
/**
|
1540
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1541
|
+
*
|
1542
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1543
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1544
|
+
* @returns {string} A string representing the collection.
|
1545
|
+
*/
|
1546
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1547
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1548
|
+
}
|
1549
|
+
/**
|
1550
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1551
|
+
*
|
1552
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1553
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1554
|
+
* @returns {string} A string representing the engine.
|
1555
|
+
*/
|
1556
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1557
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1558
|
+
}
|
1559
|
+
/**
|
1560
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1561
|
+
*
|
1562
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1563
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1564
|
+
* @returns {string} A string representing the serving_config.
|
1565
|
+
*/
|
1566
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1567
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1568
|
+
}
|
1078
1569
|
/**
|
1079
1570
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1080
1571
|
*
|
@@ -1246,6 +1737,51 @@ class SchemaServiceClient {
|
|
1246
1737
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1247
1738
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1248
1739
|
}
|
1740
|
+
/**
|
1741
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
1742
|
+
*
|
1743
|
+
* @param {string} project
|
1744
|
+
* @param {string} location
|
1745
|
+
* @param {string} data_store
|
1746
|
+
* @returns {string} Resource name string.
|
1747
|
+
*/
|
1748
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
1749
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
1750
|
+
project: project,
|
1751
|
+
location: location,
|
1752
|
+
data_store: dataStore,
|
1753
|
+
});
|
1754
|
+
}
|
1755
|
+
/**
|
1756
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1757
|
+
*
|
1758
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1759
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1760
|
+
* @returns {string} A string representing the project.
|
1761
|
+
*/
|
1762
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1763
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
1764
|
+
}
|
1765
|
+
/**
|
1766
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1767
|
+
*
|
1768
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1769
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1770
|
+
* @returns {string} A string representing the location.
|
1771
|
+
*/
|
1772
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1773
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
1774
|
+
}
|
1775
|
+
/**
|
1776
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1777
|
+
*
|
1778
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1779
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1780
|
+
* @returns {string} A string representing the data_store.
|
1781
|
+
*/
|
1782
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1783
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
1784
|
+
}
|
1249
1785
|
/**
|
1250
1786
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
1251
1787
|
*
|
@@ -1303,6 +1839,165 @@ class SchemaServiceClient {
|
|
1303
1839
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1304
1840
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1305
1841
|
}
|
1842
|
+
/**
|
1843
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
1844
|
+
*
|
1845
|
+
* @param {string} project
|
1846
|
+
* @param {string} location
|
1847
|
+
* @param {string} data_store
|
1848
|
+
* @param {string} serving_config
|
1849
|
+
* @returns {string} Resource name string.
|
1850
|
+
*/
|
1851
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
1852
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
1853
|
+
project: project,
|
1854
|
+
location: location,
|
1855
|
+
data_store: dataStore,
|
1856
|
+
serving_config: servingConfig,
|
1857
|
+
});
|
1858
|
+
}
|
1859
|
+
/**
|
1860
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
1861
|
+
*
|
1862
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1863
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1864
|
+
* @returns {string} A string representing the project.
|
1865
|
+
*/
|
1866
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1867
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
1868
|
+
}
|
1869
|
+
/**
|
1870
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
1871
|
+
*
|
1872
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1873
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1874
|
+
* @returns {string} A string representing the location.
|
1875
|
+
*/
|
1876
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1877
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
1878
|
+
}
|
1879
|
+
/**
|
1880
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
1881
|
+
*
|
1882
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1883
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1884
|
+
* @returns {string} A string representing the data_store.
|
1885
|
+
*/
|
1886
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1887
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
1888
|
+
}
|
1889
|
+
/**
|
1890
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
1891
|
+
*
|
1892
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1893
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1894
|
+
* @returns {string} A string representing the serving_config.
|
1895
|
+
*/
|
1896
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1897
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
1898
|
+
}
|
1899
|
+
/**
|
1900
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1901
|
+
*
|
1902
|
+
* @param {string} project
|
1903
|
+
* @param {string} location
|
1904
|
+
* @param {string} data_store
|
1905
|
+
* @returns {string} Resource name string.
|
1906
|
+
*/
|
1907
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
1908
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
1909
|
+
project: project,
|
1910
|
+
location: location,
|
1911
|
+
data_store: dataStore,
|
1912
|
+
});
|
1913
|
+
}
|
1914
|
+
/**
|
1915
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
1916
|
+
*
|
1917
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1918
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1919
|
+
* @returns {string} A string representing the project.
|
1920
|
+
*/
|
1921
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1922
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
1923
|
+
}
|
1924
|
+
/**
|
1925
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
1926
|
+
*
|
1927
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1928
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1929
|
+
* @returns {string} A string representing the location.
|
1930
|
+
*/
|
1931
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1932
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
1933
|
+
}
|
1934
|
+
/**
|
1935
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
1936
|
+
*
|
1937
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1938
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1939
|
+
* @returns {string} A string representing the data_store.
|
1940
|
+
*/
|
1941
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1942
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
1943
|
+
}
|
1944
|
+
/**
|
1945
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1946
|
+
*
|
1947
|
+
* @param {string} project
|
1948
|
+
* @param {string} location
|
1949
|
+
* @param {string} data_store
|
1950
|
+
* @param {string} target_site
|
1951
|
+
* @returns {string} Resource name string.
|
1952
|
+
*/
|
1953
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
1954
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1955
|
+
project: project,
|
1956
|
+
location: location,
|
1957
|
+
data_store: dataStore,
|
1958
|
+
target_site: targetSite,
|
1959
|
+
});
|
1960
|
+
}
|
1961
|
+
/**
|
1962
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1963
|
+
*
|
1964
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1965
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1966
|
+
* @returns {string} A string representing the project.
|
1967
|
+
*/
|
1968
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1969
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
1970
|
+
}
|
1971
|
+
/**
|
1972
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1973
|
+
*
|
1974
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1975
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1976
|
+
* @returns {string} A string representing the location.
|
1977
|
+
*/
|
1978
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1979
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
1980
|
+
}
|
1981
|
+
/**
|
1982
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1983
|
+
*
|
1984
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1985
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1986
|
+
* @returns {string} A string representing the data_store.
|
1987
|
+
*/
|
1988
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1989
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1990
|
+
}
|
1991
|
+
/**
|
1992
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1993
|
+
*
|
1994
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1995
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1996
|
+
* @returns {string} A string representing the target_site.
|
1997
|
+
*/
|
1998
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1999
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2000
|
+
}
|
1306
2001
|
/**
|
1307
2002
|
* Terminate the gRPC channel and close the client.
|
1308
2003
|
*
|