@google-cloud/discoveryengine 1.3.1 → 1.4.1
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 +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
|
@@ -74,7 +74,7 @@ class DocumentServiceClient {
|
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
76
|
constructor(opts, gaxInstance) {
|
|
77
|
-
var _a, _b;
|
|
77
|
+
var _a, _b, _c, _d;
|
|
78
78
|
this._terminated = false;
|
|
79
79
|
this.descriptors = {
|
|
80
80
|
page: {},
|
|
@@ -84,16 +84,24 @@ class DocumentServiceClient {
|
|
|
84
84
|
};
|
|
85
85
|
// Ensure that options include all the required fields.
|
|
86
86
|
const staticMembers = this.constructor;
|
|
87
|
-
|
|
87
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
|
88
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
|
89
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
90
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
91
|
+
}
|
|
92
|
+
this._universeDomain =
|
|
93
|
+
(_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';
|
|
94
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
|
95
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
88
96
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
89
97
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
90
|
-
const clientConfig = (
|
|
91
|
-
const fallback = (
|
|
98
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
|
99
|
+
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');
|
|
92
100
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
93
101
|
// Request numeric enum values if REST transport is used.
|
|
94
102
|
opts.numericEnums = true;
|
|
95
103
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
|
96
|
-
if (servicePath !==
|
|
104
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
|
97
105
|
opts['scopes'] = staticMembers.scopes;
|
|
98
106
|
}
|
|
99
107
|
// Load google-gax module synchronously if needed
|
|
@@ -111,9 +119,9 @@ class DocumentServiceClient {
|
|
|
111
119
|
// Set useJWTAccessWithScope on the auth object.
|
|
112
120
|
this.auth.useJWTAccessWithScope = true;
|
|
113
121
|
// Set defaultServicePath on the auth object.
|
|
114
|
-
this.auth.defaultServicePath =
|
|
122
|
+
this.auth.defaultServicePath = this._servicePath;
|
|
115
123
|
// Set the default scopes in auth client if needed.
|
|
116
|
-
if (servicePath ===
|
|
124
|
+
if (servicePath === this._servicePath) {
|
|
117
125
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
118
126
|
}
|
|
119
127
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
|
@@ -140,14 +148,27 @@ class DocumentServiceClient {
|
|
|
140
148
|
// identifiers to uniquely identify resources within the API.
|
|
141
149
|
// Create useful helper objects for these.
|
|
142
150
|
this.pathTemplates = {
|
|
151
|
+
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
|
152
|
+
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
|
143
153
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
|
144
154
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
|
145
155
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
|
156
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
|
146
157
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
|
158
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
|
159
|
+
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
|
160
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
|
161
|
+
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
|
162
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
|
163
|
+
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
|
147
164
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
|
148
165
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
|
149
166
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
|
167
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
|
150
168
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
|
169
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
|
170
|
+
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
|
171
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
|
151
172
|
};
|
|
152
173
|
// Some of the methods on this service return "paged" results,
|
|
153
174
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
@@ -168,8 +189,11 @@ class DocumentServiceClient {
|
|
|
168
189
|
lroOptions.httpRules = [
|
|
169
190
|
{
|
|
170
191
|
selector: 'google.longrunning.Operations.GetOperation',
|
|
171
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/
|
|
192
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
|
172
193
|
additional_bindings: [
|
|
194
|
+
{
|
|
195
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
|
196
|
+
},
|
|
173
197
|
{
|
|
174
198
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
|
175
199
|
},
|
|
@@ -206,8 +230,11 @@ class DocumentServiceClient {
|
|
|
206
230
|
},
|
|
207
231
|
{
|
|
208
232
|
selector: 'google.longrunning.Operations.ListOperations',
|
|
209
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/
|
|
233
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
|
210
234
|
additional_bindings: [
|
|
235
|
+
{
|
|
236
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
|
237
|
+
},
|
|
211
238
|
{
|
|
212
239
|
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
|
213
240
|
},
|
|
@@ -318,19 +345,38 @@ class DocumentServiceClient {
|
|
|
318
345
|
}
|
|
319
346
|
/**
|
|
320
347
|
* The DNS address for this API service.
|
|
348
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
321
349
|
* @returns {string} The DNS address for this service.
|
|
322
350
|
*/
|
|
323
351
|
static get servicePath() {
|
|
352
|
+
if (typeof process !== undefined &&
|
|
353
|
+
typeof process.emitWarning === 'function') {
|
|
354
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
355
|
+
}
|
|
324
356
|
return 'discoveryengine.googleapis.com';
|
|
325
357
|
}
|
|
326
358
|
/**
|
|
327
|
-
* The DNS address for this API service - same as servicePath
|
|
328
|
-
*
|
|
359
|
+
* The DNS address for this API service - same as servicePath.
|
|
360
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
329
361
|
* @returns {string} The DNS address for this service.
|
|
330
362
|
*/
|
|
331
363
|
static get apiEndpoint() {
|
|
364
|
+
if (typeof process !== undefined &&
|
|
365
|
+
typeof process.emitWarning === 'function') {
|
|
366
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
367
|
+
}
|
|
332
368
|
return 'discoveryengine.googleapis.com';
|
|
333
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* The DNS address for this API service.
|
|
372
|
+
* @returns {string} The DNS address for this service.
|
|
373
|
+
*/
|
|
374
|
+
get apiEndpoint() {
|
|
375
|
+
return this._servicePath;
|
|
376
|
+
}
|
|
377
|
+
get universeDomain() {
|
|
378
|
+
return this._universeDomain;
|
|
379
|
+
}
|
|
334
380
|
/**
|
|
335
381
|
* The port for this API service.
|
|
336
382
|
* @returns {number} The default port for this service.
|
|
@@ -841,6 +887,120 @@ class DocumentServiceClient {
|
|
|
841
887
|
// --------------------
|
|
842
888
|
// -- Path templates --
|
|
843
889
|
// --------------------
|
|
890
|
+
/**
|
|
891
|
+
* Return a fully-qualified engine resource name string.
|
|
892
|
+
*
|
|
893
|
+
* @param {string} project
|
|
894
|
+
* @param {string} location
|
|
895
|
+
* @param {string} collection
|
|
896
|
+
* @param {string} engine
|
|
897
|
+
* @returns {string} Resource name string.
|
|
898
|
+
*/
|
|
899
|
+
enginePath(project, location, collection, engine) {
|
|
900
|
+
return this.pathTemplates.enginePathTemplate.render({
|
|
901
|
+
project: project,
|
|
902
|
+
location: location,
|
|
903
|
+
collection: collection,
|
|
904
|
+
engine: engine,
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Parse the project from Engine resource.
|
|
909
|
+
*
|
|
910
|
+
* @param {string} engineName
|
|
911
|
+
* A fully-qualified path representing Engine resource.
|
|
912
|
+
* @returns {string} A string representing the project.
|
|
913
|
+
*/
|
|
914
|
+
matchProjectFromEngineName(engineName) {
|
|
915
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).project;
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Parse the location from Engine resource.
|
|
919
|
+
*
|
|
920
|
+
* @param {string} engineName
|
|
921
|
+
* A fully-qualified path representing Engine resource.
|
|
922
|
+
* @returns {string} A string representing the location.
|
|
923
|
+
*/
|
|
924
|
+
matchLocationFromEngineName(engineName) {
|
|
925
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).location;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Parse the collection from Engine resource.
|
|
929
|
+
*
|
|
930
|
+
* @param {string} engineName
|
|
931
|
+
* A fully-qualified path representing Engine resource.
|
|
932
|
+
* @returns {string} A string representing the collection.
|
|
933
|
+
*/
|
|
934
|
+
matchCollectionFromEngineName(engineName) {
|
|
935
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).collection;
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Parse the engine from Engine resource.
|
|
939
|
+
*
|
|
940
|
+
* @param {string} engineName
|
|
941
|
+
* A fully-qualified path representing Engine resource.
|
|
942
|
+
* @returns {string} A string representing the engine.
|
|
943
|
+
*/
|
|
944
|
+
matchEngineFromEngineName(engineName) {
|
|
945
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
|
949
|
+
*
|
|
950
|
+
* @param {string} project
|
|
951
|
+
* @param {string} location
|
|
952
|
+
* @param {string} collection
|
|
953
|
+
* @param {string} data_store
|
|
954
|
+
* @returns {string} Resource name string.
|
|
955
|
+
*/
|
|
956
|
+
projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
|
|
957
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
|
|
958
|
+
project: project,
|
|
959
|
+
location: location,
|
|
960
|
+
collection: collection,
|
|
961
|
+
data_store: dataStore,
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Parse the project from ProjectLocationCollectionDataStore resource.
|
|
966
|
+
*
|
|
967
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
968
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
969
|
+
* @returns {string} A string representing the project.
|
|
970
|
+
*/
|
|
971
|
+
matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
972
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Parse the location from ProjectLocationCollectionDataStore resource.
|
|
976
|
+
*
|
|
977
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
978
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
979
|
+
* @returns {string} A string representing the location.
|
|
980
|
+
*/
|
|
981
|
+
matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
982
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Parse the collection from ProjectLocationCollectionDataStore resource.
|
|
986
|
+
*
|
|
987
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
988
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
989
|
+
* @returns {string} A string representing the collection.
|
|
990
|
+
*/
|
|
991
|
+
matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
992
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Parse the data_store from ProjectLocationCollectionDataStore resource.
|
|
996
|
+
*
|
|
997
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
998
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
999
|
+
* @returns {string} A string representing the data_store.
|
|
1000
|
+
*/
|
|
1001
|
+
matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
1002
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
|
|
1003
|
+
}
|
|
844
1004
|
/**
|
|
845
1005
|
* Return a fully-qualified projectLocationCollectionDataStoreBranch resource name string.
|
|
846
1006
|
*
|
|
@@ -1060,6 +1220,63 @@ class DocumentServiceClient {
|
|
|
1060
1220
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
|
1061
1221
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
|
1062
1222
|
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
|
1225
|
+
*
|
|
1226
|
+
* @param {string} project
|
|
1227
|
+
* @param {string} location
|
|
1228
|
+
* @param {string} collection
|
|
1229
|
+
* @param {string} data_store
|
|
1230
|
+
* @returns {string} Resource name string.
|
|
1231
|
+
*/
|
|
1232
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
|
1233
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1234
|
+
project: project,
|
|
1235
|
+
location: location,
|
|
1236
|
+
collection: collection,
|
|
1237
|
+
data_store: dataStore,
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1242
|
+
*
|
|
1243
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1244
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1245
|
+
* @returns {string} A string representing the project.
|
|
1246
|
+
*/
|
|
1247
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1248
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1252
|
+
*
|
|
1253
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1254
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1255
|
+
* @returns {string} A string representing the location.
|
|
1256
|
+
*/
|
|
1257
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1258
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1262
|
+
*
|
|
1263
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1264
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1265
|
+
* @returns {string} A string representing the collection.
|
|
1266
|
+
*/
|
|
1267
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1268
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1272
|
+
*
|
|
1273
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1274
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1275
|
+
* @returns {string} A string representing the data_store.
|
|
1276
|
+
*/
|
|
1277
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1278
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
|
1279
|
+
}
|
|
1063
1280
|
/**
|
|
1064
1281
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
|
1065
1282
|
*
|
|
@@ -1129,6 +1346,384 @@ class DocumentServiceClient {
|
|
|
1129
1346
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
|
1130
1347
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
|
1131
1348
|
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
|
1351
|
+
*
|
|
1352
|
+
* @param {string} project
|
|
1353
|
+
* @param {string} location
|
|
1354
|
+
* @param {string} collection
|
|
1355
|
+
* @param {string} data_store
|
|
1356
|
+
* @param {string} serving_config
|
|
1357
|
+
* @returns {string} Resource name string.
|
|
1358
|
+
*/
|
|
1359
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
|
1360
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
|
1361
|
+
project: project,
|
|
1362
|
+
location: location,
|
|
1363
|
+
collection: collection,
|
|
1364
|
+
data_store: dataStore,
|
|
1365
|
+
serving_config: servingConfig,
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1370
|
+
*
|
|
1371
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1372
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1373
|
+
* @returns {string} A string representing the project.
|
|
1374
|
+
*/
|
|
1375
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1376
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1380
|
+
*
|
|
1381
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1382
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1383
|
+
* @returns {string} A string representing the location.
|
|
1384
|
+
*/
|
|
1385
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1386
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1390
|
+
*
|
|
1391
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1392
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1393
|
+
* @returns {string} A string representing the collection.
|
|
1394
|
+
*/
|
|
1395
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1396
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1400
|
+
*
|
|
1401
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1402
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1403
|
+
* @returns {string} A string representing the data_store.
|
|
1404
|
+
*/
|
|
1405
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1406
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
|
1410
|
+
*
|
|
1411
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
|
1412
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
|
1413
|
+
* @returns {string} A string representing the serving_config.
|
|
1414
|
+
*/
|
|
1415
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1416
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
|
1420
|
+
*
|
|
1421
|
+
* @param {string} project
|
|
1422
|
+
* @param {string} location
|
|
1423
|
+
* @param {string} collection
|
|
1424
|
+
* @param {string} data_store
|
|
1425
|
+
* @returns {string} Resource name string.
|
|
1426
|
+
*/
|
|
1427
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
|
1428
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
|
1429
|
+
project: project,
|
|
1430
|
+
location: location,
|
|
1431
|
+
collection: collection,
|
|
1432
|
+
data_store: dataStore,
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1437
|
+
*
|
|
1438
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1439
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1440
|
+
* @returns {string} A string representing the project.
|
|
1441
|
+
*/
|
|
1442
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1443
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1447
|
+
*
|
|
1448
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1449
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1450
|
+
* @returns {string} A string representing the location.
|
|
1451
|
+
*/
|
|
1452
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1453
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1457
|
+
*
|
|
1458
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1459
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1460
|
+
* @returns {string} A string representing the collection.
|
|
1461
|
+
*/
|
|
1462
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1463
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1467
|
+
*
|
|
1468
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1469
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1470
|
+
* @returns {string} A string representing the data_store.
|
|
1471
|
+
*/
|
|
1472
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1473
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
|
1477
|
+
*
|
|
1478
|
+
* @param {string} project
|
|
1479
|
+
* @param {string} location
|
|
1480
|
+
* @param {string} collection
|
|
1481
|
+
* @param {string} data_store
|
|
1482
|
+
* @param {string} target_site
|
|
1483
|
+
* @returns {string} Resource name string.
|
|
1484
|
+
*/
|
|
1485
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
|
1486
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
|
1487
|
+
project: project,
|
|
1488
|
+
location: location,
|
|
1489
|
+
collection: collection,
|
|
1490
|
+
data_store: dataStore,
|
|
1491
|
+
target_site: targetSite,
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1496
|
+
*
|
|
1497
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1498
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1499
|
+
* @returns {string} A string representing the project.
|
|
1500
|
+
*/
|
|
1501
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1502
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1506
|
+
*
|
|
1507
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1508
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1509
|
+
* @returns {string} A string representing the location.
|
|
1510
|
+
*/
|
|
1511
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1512
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1516
|
+
*
|
|
1517
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1518
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1519
|
+
* @returns {string} A string representing the collection.
|
|
1520
|
+
*/
|
|
1521
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1522
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1526
|
+
*
|
|
1527
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1528
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1529
|
+
* @returns {string} A string representing the data_store.
|
|
1530
|
+
*/
|
|
1531
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1532
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1536
|
+
*
|
|
1537
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1538
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1539
|
+
* @returns {string} A string representing the target_site.
|
|
1540
|
+
*/
|
|
1541
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1542
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
|
1546
|
+
*
|
|
1547
|
+
* @param {string} project
|
|
1548
|
+
* @param {string} location
|
|
1549
|
+
* @param {string} collection
|
|
1550
|
+
* @param {string} engine
|
|
1551
|
+
* @param {string} conversation
|
|
1552
|
+
* @returns {string} Resource name string.
|
|
1553
|
+
*/
|
|
1554
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
|
1555
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
|
1556
|
+
project: project,
|
|
1557
|
+
location: location,
|
|
1558
|
+
collection: collection,
|
|
1559
|
+
engine: engine,
|
|
1560
|
+
conversation: conversation,
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
|
1565
|
+
*
|
|
1566
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1567
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1568
|
+
* @returns {string} A string representing the project.
|
|
1569
|
+
*/
|
|
1570
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1571
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
|
1575
|
+
*
|
|
1576
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1577
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1578
|
+
* @returns {string} A string representing the location.
|
|
1579
|
+
*/
|
|
1580
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1581
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
|
1585
|
+
*
|
|
1586
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1587
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1588
|
+
* @returns {string} A string representing the collection.
|
|
1589
|
+
*/
|
|
1590
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1591
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
|
1595
|
+
*
|
|
1596
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1597
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1598
|
+
* @returns {string} A string representing the engine.
|
|
1599
|
+
*/
|
|
1600
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1601
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
|
1605
|
+
*
|
|
1606
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1607
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1608
|
+
* @returns {string} A string representing the conversation.
|
|
1609
|
+
*/
|
|
1610
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1611
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
|
1615
|
+
*
|
|
1616
|
+
* @param {string} project
|
|
1617
|
+
* @param {string} location
|
|
1618
|
+
* @param {string} collection
|
|
1619
|
+
* @param {string} engine
|
|
1620
|
+
* @param {string} serving_config
|
|
1621
|
+
* @returns {string} Resource name string.
|
|
1622
|
+
*/
|
|
1623
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
|
1624
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
|
1625
|
+
project: project,
|
|
1626
|
+
location: location,
|
|
1627
|
+
collection: collection,
|
|
1628
|
+
engine: engine,
|
|
1629
|
+
serving_config: servingConfig,
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
|
1634
|
+
*
|
|
1635
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1636
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1637
|
+
* @returns {string} A string representing the project.
|
|
1638
|
+
*/
|
|
1639
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1640
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1646
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1647
|
+
* @returns {string} A string representing the location.
|
|
1648
|
+
*/
|
|
1649
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1650
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
|
1654
|
+
*
|
|
1655
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1656
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1657
|
+
* @returns {string} A string representing the collection.
|
|
1658
|
+
*/
|
|
1659
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1660
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
|
1664
|
+
*
|
|
1665
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1666
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1667
|
+
* @returns {string} A string representing the engine.
|
|
1668
|
+
*/
|
|
1669
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1670
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
|
1674
|
+
*
|
|
1675
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1676
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1677
|
+
* @returns {string} A string representing the serving_config.
|
|
1678
|
+
*/
|
|
1679
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1680
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
|
1681
|
+
}
|
|
1682
|
+
/**
|
|
1683
|
+
* Return a fully-qualified projectLocationDataStore resource name string.
|
|
1684
|
+
*
|
|
1685
|
+
* @param {string} project
|
|
1686
|
+
* @param {string} location
|
|
1687
|
+
* @param {string} data_store
|
|
1688
|
+
* @returns {string} Resource name string.
|
|
1689
|
+
*/
|
|
1690
|
+
projectLocationDataStorePath(project, location, dataStore) {
|
|
1691
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.render({
|
|
1692
|
+
project: project,
|
|
1693
|
+
location: location,
|
|
1694
|
+
data_store: dataStore,
|
|
1695
|
+
});
|
|
1696
|
+
}
|
|
1697
|
+
/**
|
|
1698
|
+
* Parse the project from ProjectLocationDataStore resource.
|
|
1699
|
+
*
|
|
1700
|
+
* @param {string} projectLocationDataStoreName
|
|
1701
|
+
* A fully-qualified path representing project_location_data_store resource.
|
|
1702
|
+
* @returns {string} A string representing the project.
|
|
1703
|
+
*/
|
|
1704
|
+
matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
|
|
1705
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* Parse the location from ProjectLocationDataStore resource.
|
|
1709
|
+
*
|
|
1710
|
+
* @param {string} projectLocationDataStoreName
|
|
1711
|
+
* A fully-qualified path representing project_location_data_store resource.
|
|
1712
|
+
* @returns {string} A string representing the location.
|
|
1713
|
+
*/
|
|
1714
|
+
matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
|
|
1715
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Parse the data_store from ProjectLocationDataStore resource.
|
|
1719
|
+
*
|
|
1720
|
+
* @param {string} projectLocationDataStoreName
|
|
1721
|
+
* A fully-qualified path representing project_location_data_store resource.
|
|
1722
|
+
* @returns {string} A string representing the data_store.
|
|
1723
|
+
*/
|
|
1724
|
+
matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
|
|
1725
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
|
|
1726
|
+
}
|
|
1132
1727
|
/**
|
|
1133
1728
|
* Return a fully-qualified projectLocationDataStoreBranch resource name string.
|
|
1134
1729
|
*
|
|
@@ -1312,6 +1907,51 @@ class DocumentServiceClient {
|
|
|
1312
1907
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
|
1313
1908
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
|
1314
1909
|
}
|
|
1910
|
+
/**
|
|
1911
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
|
1912
|
+
*
|
|
1913
|
+
* @param {string} project
|
|
1914
|
+
* @param {string} location
|
|
1915
|
+
* @param {string} data_store
|
|
1916
|
+
* @returns {string} Resource name string.
|
|
1917
|
+
*/
|
|
1918
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
|
1919
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1920
|
+
project: project,
|
|
1921
|
+
location: location,
|
|
1922
|
+
data_store: dataStore,
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1927
|
+
*
|
|
1928
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1929
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1930
|
+
* @returns {string} A string representing the project.
|
|
1931
|
+
*/
|
|
1932
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1933
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
|
1934
|
+
}
|
|
1935
|
+
/**
|
|
1936
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1937
|
+
*
|
|
1938
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1939
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1940
|
+
* @returns {string} A string representing the location.
|
|
1941
|
+
*/
|
|
1942
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1943
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1947
|
+
*
|
|
1948
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1949
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1950
|
+
* @returns {string} A string representing the data_store.
|
|
1951
|
+
*/
|
|
1952
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1953
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
|
1954
|
+
}
|
|
1315
1955
|
/**
|
|
1316
1956
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
|
1317
1957
|
*
|
|
@@ -1369,6 +2009,165 @@ class DocumentServiceClient {
|
|
|
1369
2009
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
|
1370
2010
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
|
1371
2011
|
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
|
2014
|
+
*
|
|
2015
|
+
* @param {string} project
|
|
2016
|
+
* @param {string} location
|
|
2017
|
+
* @param {string} data_store
|
|
2018
|
+
* @param {string} serving_config
|
|
2019
|
+
* @returns {string} Resource name string.
|
|
2020
|
+
*/
|
|
2021
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
|
2022
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
|
2023
|
+
project: project,
|
|
2024
|
+
location: location,
|
|
2025
|
+
data_store: dataStore,
|
|
2026
|
+
serving_config: servingConfig,
|
|
2027
|
+
});
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
|
2031
|
+
*
|
|
2032
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2033
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2034
|
+
* @returns {string} A string representing the project.
|
|
2035
|
+
*/
|
|
2036
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2037
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
|
2041
|
+
*
|
|
2042
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2043
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2044
|
+
* @returns {string} A string representing the location.
|
|
2045
|
+
*/
|
|
2046
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2047
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
|
2051
|
+
*
|
|
2052
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2053
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2054
|
+
* @returns {string} A string representing the data_store.
|
|
2055
|
+
*/
|
|
2056
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2057
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
|
2061
|
+
*
|
|
2062
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
|
2063
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
|
2064
|
+
* @returns {string} A string representing the serving_config.
|
|
2065
|
+
*/
|
|
2066
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
2067
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
|
2071
|
+
*
|
|
2072
|
+
* @param {string} project
|
|
2073
|
+
* @param {string} location
|
|
2074
|
+
* @param {string} data_store
|
|
2075
|
+
* @returns {string} Resource name string.
|
|
2076
|
+
*/
|
|
2077
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
|
2078
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
|
2079
|
+
project: project,
|
|
2080
|
+
location: location,
|
|
2081
|
+
data_store: dataStore,
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2084
|
+
/**
|
|
2085
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
|
2086
|
+
*
|
|
2087
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
|
2088
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
|
2089
|
+
* @returns {string} A string representing the project.
|
|
2090
|
+
*/
|
|
2091
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
|
2092
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
|
2096
|
+
*
|
|
2097
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
|
2098
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
|
2099
|
+
* @returns {string} A string representing the location.
|
|
2100
|
+
*/
|
|
2101
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
|
2102
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
|
2106
|
+
*
|
|
2107
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
|
2108
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
|
2109
|
+
* @returns {string} A string representing the data_store.
|
|
2110
|
+
*/
|
|
2111
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
|
2112
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
|
2113
|
+
}
|
|
2114
|
+
/**
|
|
2115
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
|
2116
|
+
*
|
|
2117
|
+
* @param {string} project
|
|
2118
|
+
* @param {string} location
|
|
2119
|
+
* @param {string} data_store
|
|
2120
|
+
* @param {string} target_site
|
|
2121
|
+
* @returns {string} Resource name string.
|
|
2122
|
+
*/
|
|
2123
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
|
2124
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
|
2125
|
+
project: project,
|
|
2126
|
+
location: location,
|
|
2127
|
+
data_store: dataStore,
|
|
2128
|
+
target_site: targetSite,
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2133
|
+
*
|
|
2134
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2135
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2136
|
+
* @returns {string} A string representing the project.
|
|
2137
|
+
*/
|
|
2138
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2139
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2143
|
+
*
|
|
2144
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2145
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2146
|
+
* @returns {string} A string representing the location.
|
|
2147
|
+
*/
|
|
2148
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2149
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
|
2150
|
+
}
|
|
2151
|
+
/**
|
|
2152
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2153
|
+
*
|
|
2154
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2155
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2156
|
+
* @returns {string} A string representing the data_store.
|
|
2157
|
+
*/
|
|
2158
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2159
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
|
2160
|
+
}
|
|
2161
|
+
/**
|
|
2162
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2163
|
+
*
|
|
2164
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2165
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2166
|
+
* @returns {string} A string representing the target_site.
|
|
2167
|
+
*/
|
|
2168
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2169
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
|
2170
|
+
}
|
|
1372
2171
|
/**
|
|
1373
2172
|
* Terminate the gRPC channel and close the client.
|
|
1374
2173
|
*
|