@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 CompletionServiceClient {
|
|
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 CompletionServiceClient {
|
|
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 CompletionServiceClient {
|
|
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,131 @@ class CompletionServiceClient {
|
|
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}'),
|
168
|
+
};
|
169
|
+
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
170
|
+
// This API contains "long-running operations", which return a
|
171
|
+
// an Operation object that allows for tracking of the operation,
|
172
|
+
// rather than holding a request open.
|
173
|
+
const lroOptions = {
|
174
|
+
auth: this.auth,
|
175
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
176
|
+
};
|
177
|
+
if (opts.fallback) {
|
178
|
+
lroOptions.protoJson = protoFilesRoot;
|
179
|
+
lroOptions.httpRules = [
|
180
|
+
{
|
181
|
+
selector: 'google.longrunning.Operations.GetOperation',
|
182
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
183
|
+
additional_bindings: [
|
184
|
+
{
|
185
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
186
|
+
},
|
187
|
+
{
|
188
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
189
|
+
},
|
190
|
+
{
|
191
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
192
|
+
},
|
193
|
+
{
|
194
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
195
|
+
},
|
196
|
+
{
|
197
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
198
|
+
},
|
199
|
+
{
|
200
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
201
|
+
},
|
202
|
+
{
|
203
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
204
|
+
},
|
205
|
+
{
|
206
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
|
207
|
+
},
|
208
|
+
{
|
209
|
+
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
210
|
+
},
|
211
|
+
{
|
212
|
+
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
213
|
+
},
|
214
|
+
{
|
215
|
+
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
216
|
+
},
|
217
|
+
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
218
|
+
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
219
|
+
],
|
220
|
+
},
|
221
|
+
{
|
222
|
+
selector: 'google.longrunning.Operations.ListOperations',
|
223
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
224
|
+
additional_bindings: [
|
225
|
+
{
|
226
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
227
|
+
},
|
228
|
+
{
|
229
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
230
|
+
},
|
231
|
+
{
|
232
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
233
|
+
},
|
234
|
+
{
|
235
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
236
|
+
},
|
237
|
+
{
|
238
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
239
|
+
},
|
240
|
+
{
|
241
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
242
|
+
},
|
243
|
+
{
|
244
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
245
|
+
},
|
246
|
+
{
|
247
|
+
get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
|
248
|
+
},
|
249
|
+
{
|
250
|
+
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
251
|
+
},
|
252
|
+
{
|
253
|
+
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
254
|
+
},
|
255
|
+
{
|
256
|
+
get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations',
|
257
|
+
},
|
258
|
+
{ get: '/v1beta/{name=projects/*/locations/*}/operations' },
|
259
|
+
{ get: '/v1beta/{name=projects/*}/operations' },
|
260
|
+
],
|
261
|
+
},
|
262
|
+
];
|
263
|
+
}
|
264
|
+
this.operationsClient = this._gaxModule
|
265
|
+
.lro(lroOptions)
|
266
|
+
.operationsClient(opts);
|
267
|
+
const importSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse');
|
268
|
+
const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata');
|
269
|
+
const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse');
|
270
|
+
const purgeSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata');
|
271
|
+
this.descriptors.longrunning = {
|
272
|
+
importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
|
273
|
+
purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
|
149
274
|
};
|
150
275
|
// Put together the default options sent with requests.
|
151
276
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -181,7 +306,11 @@ class CompletionServiceClient {
|
|
181
306
|
.CompletionService, this._opts, this._providedCustomServicePath);
|
182
307
|
// Iterate over each of the methods that the service provides
|
183
308
|
// and create an API call method for each.
|
184
|
-
const completionServiceStubMethods = [
|
309
|
+
const completionServiceStubMethods = [
|
310
|
+
'completeQuery',
|
311
|
+
'importSuggestionDenyListEntries',
|
312
|
+
'purgeSuggestionDenyListEntries',
|
313
|
+
];
|
185
314
|
for (const methodName of completionServiceStubMethods) {
|
186
315
|
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
187
316
|
if (this._terminated) {
|
@@ -192,7 +321,7 @@ class CompletionServiceClient {
|
|
192
321
|
}, (err) => () => {
|
193
322
|
throw err;
|
194
323
|
});
|
195
|
-
const descriptor = undefined;
|
324
|
+
const descriptor = this.descriptors.longrunning[methodName] || undefined;
|
196
325
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
197
326
|
this.innerApiCalls[methodName] = apiCall;
|
198
327
|
}
|
@@ -200,19 +329,38 @@ class CompletionServiceClient {
|
|
200
329
|
}
|
201
330
|
/**
|
202
331
|
* The DNS address for this API service.
|
332
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
203
333
|
* @returns {string} The DNS address for this service.
|
204
334
|
*/
|
205
335
|
static get servicePath() {
|
336
|
+
if (typeof process !== undefined &&
|
337
|
+
typeof process.emitWarning === 'function') {
|
338
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
339
|
+
}
|
206
340
|
return 'discoveryengine.googleapis.com';
|
207
341
|
}
|
208
342
|
/**
|
209
|
-
* The DNS address for this API service - same as servicePath
|
210
|
-
*
|
343
|
+
* The DNS address for this API service - same as servicePath.
|
344
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
211
345
|
* @returns {string} The DNS address for this service.
|
212
346
|
*/
|
213
347
|
static get apiEndpoint() {
|
348
|
+
if (typeof process !== undefined &&
|
349
|
+
typeof process.emitWarning === 'function') {
|
350
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
351
|
+
}
|
214
352
|
return 'discoveryengine.googleapis.com';
|
215
353
|
}
|
354
|
+
/**
|
355
|
+
* The DNS address for this API service.
|
356
|
+
* @returns {string} The DNS address for this service.
|
357
|
+
*/
|
358
|
+
get apiEndpoint() {
|
359
|
+
return this._servicePath;
|
360
|
+
}
|
361
|
+
get universeDomain() {
|
362
|
+
return this._universeDomain;
|
363
|
+
}
|
216
364
|
/**
|
217
365
|
* The port for this API service.
|
218
366
|
* @returns {number} The default port for this service.
|
@@ -260,6 +408,82 @@ class CompletionServiceClient {
|
|
260
408
|
this.initialize();
|
261
409
|
return this.innerApiCalls.completeQuery(request, options, callback);
|
262
410
|
}
|
411
|
+
importSuggestionDenyListEntries(request, optionsOrCallback, callback) {
|
412
|
+
var _a;
|
413
|
+
request = request || {};
|
414
|
+
let options;
|
415
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
416
|
+
callback = optionsOrCallback;
|
417
|
+
options = {};
|
418
|
+
}
|
419
|
+
else {
|
420
|
+
options = optionsOrCallback;
|
421
|
+
}
|
422
|
+
options = options || {};
|
423
|
+
options.otherArgs = options.otherArgs || {};
|
424
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
425
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
426
|
+
this._gaxModule.routingHeader.fromParams({
|
427
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
428
|
+
});
|
429
|
+
this.initialize();
|
430
|
+
return this.innerApiCalls.importSuggestionDenyListEntries(request, options, callback);
|
431
|
+
}
|
432
|
+
/**
|
433
|
+
* Check the status of the long running operation returned by `importSuggestionDenyListEntries()`.
|
434
|
+
* @param {String} name
|
435
|
+
* The operation name that will be passed.
|
436
|
+
* @returns {Promise} - The promise which resolves to an object.
|
437
|
+
* The decoded operation object has result and metadata field to get information from.
|
438
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
439
|
+
* for more details and examples.
|
440
|
+
* @example <caption>include:samples/generated/v1beta/completion_service.import_suggestion_deny_list_entries.js</caption>
|
441
|
+
* region_tag:discoveryengine_v1beta_generated_CompletionService_ImportSuggestionDenyListEntries_async
|
442
|
+
*/
|
443
|
+
async checkImportSuggestionDenyListEntriesProgress(name) {
|
444
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
445
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
446
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
|
447
|
+
return decodeOperation;
|
448
|
+
}
|
449
|
+
purgeSuggestionDenyListEntries(request, optionsOrCallback, callback) {
|
450
|
+
var _a;
|
451
|
+
request = request || {};
|
452
|
+
let options;
|
453
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
454
|
+
callback = optionsOrCallback;
|
455
|
+
options = {};
|
456
|
+
}
|
457
|
+
else {
|
458
|
+
options = optionsOrCallback;
|
459
|
+
}
|
460
|
+
options = options || {};
|
461
|
+
options.otherArgs = options.otherArgs || {};
|
462
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
463
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
464
|
+
this._gaxModule.routingHeader.fromParams({
|
465
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
466
|
+
});
|
467
|
+
this.initialize();
|
468
|
+
return this.innerApiCalls.purgeSuggestionDenyListEntries(request, options, callback);
|
469
|
+
}
|
470
|
+
/**
|
471
|
+
* Check the status of the long running operation returned by `purgeSuggestionDenyListEntries()`.
|
472
|
+
* @param {String} name
|
473
|
+
* The operation name that will be passed.
|
474
|
+
* @returns {Promise} - The promise which resolves to an object.
|
475
|
+
* The decoded operation object has result and metadata field to get information from.
|
476
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
477
|
+
* for more details and examples.
|
478
|
+
* @example <caption>include:samples/generated/v1beta/completion_service.purge_suggestion_deny_list_entries.js</caption>
|
479
|
+
* region_tag:discoveryengine_v1beta_generated_CompletionService_PurgeSuggestionDenyListEntries_async
|
480
|
+
*/
|
481
|
+
async checkPurgeSuggestionDenyListEntriesProgress(name) {
|
482
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
483
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
484
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
|
485
|
+
return decodeOperation;
|
486
|
+
}
|
263
487
|
/**
|
264
488
|
* Gets information about a location.
|
265
489
|
*
|
@@ -315,9 +539,194 @@ class CompletionServiceClient {
|
|
315
539
|
listLocationsAsync(request, options) {
|
316
540
|
return this.locationsClient.listLocationsAsync(request, options);
|
317
541
|
}
|
542
|
+
/**
|
543
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
544
|
+
* method to poll the operation result at intervals as recommended by the API
|
545
|
+
* service.
|
546
|
+
*
|
547
|
+
* @param {Object} request - The request object that will be sent.
|
548
|
+
* @param {string} request.name - The name of the operation resource.
|
549
|
+
* @param {Object=} options
|
550
|
+
* Optional parameters. You can override the default settings for this call,
|
551
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
552
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
553
|
+
* for the details.
|
554
|
+
* @param {function(?Error, ?Object)=} callback
|
555
|
+
* The function which will be called with the result of the API call.
|
556
|
+
*
|
557
|
+
* The second parameter to the callback is an object representing
|
558
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
559
|
+
* @return {Promise} - The promise which resolves to an array.
|
560
|
+
* The first element of the array is an object representing
|
561
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
562
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
563
|
+
*
|
564
|
+
* @example
|
565
|
+
* ```
|
566
|
+
* const client = longrunning.operationsClient();
|
567
|
+
* const name = '';
|
568
|
+
* const [response] = await client.getOperation({name});
|
569
|
+
* // doThingsWith(response)
|
570
|
+
* ```
|
571
|
+
*/
|
572
|
+
getOperation(request, options, callback) {
|
573
|
+
return this.operationsClient.getOperation(request, options, callback);
|
574
|
+
}
|
575
|
+
/**
|
576
|
+
* Lists operations that match the specified filter in the request. If the
|
577
|
+
* server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
|
578
|
+
*
|
579
|
+
* For-await-of syntax is used with the iterable to recursively get response element on-demand.
|
580
|
+
*
|
581
|
+
* @param {Object} request - The request object that will be sent.
|
582
|
+
* @param {string} request.name - The name of the operation collection.
|
583
|
+
* @param {string} request.filter - The standard list filter.
|
584
|
+
* @param {number=} request.pageSize -
|
585
|
+
* The maximum number of resources contained in the underlying API
|
586
|
+
* response. If page streaming is performed per-resource, this
|
587
|
+
* parameter does not affect the return value. If page streaming is
|
588
|
+
* performed per-page, this determines the maximum number of
|
589
|
+
* resources in a page.
|
590
|
+
* @param {Object=} options
|
591
|
+
* Optional parameters. You can override the default settings for this call,
|
592
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
593
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
594
|
+
* details.
|
595
|
+
* @returns {Object}
|
596
|
+
* An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
|
597
|
+
*
|
598
|
+
* @example
|
599
|
+
* ```
|
600
|
+
* const client = longrunning.operationsClient();
|
601
|
+
* for await (const response of client.listOperationsAsync(request));
|
602
|
+
* // doThingsWith(response)
|
603
|
+
* ```
|
604
|
+
*/
|
605
|
+
listOperationsAsync(request, options) {
|
606
|
+
return this.operationsClient.listOperationsAsync(request, options);
|
607
|
+
}
|
608
|
+
/**
|
609
|
+
* Starts asynchronous cancellation on a long-running operation. The server
|
610
|
+
* makes a best effort to cancel the operation, but success is not
|
611
|
+
* guaranteed. If the server doesn't support this method, it returns
|
612
|
+
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
613
|
+
* {@link Operations.GetOperation} or
|
614
|
+
* other methods to check whether the cancellation succeeded or whether the
|
615
|
+
* operation completed despite cancellation. On successful cancellation,
|
616
|
+
* the operation is not deleted; instead, it becomes an operation with
|
617
|
+
* an {@link Operation.error} value with a {@link google.rpc.Status.code} of
|
618
|
+
* 1, corresponding to `Code.CANCELLED`.
|
619
|
+
*
|
620
|
+
* @param {Object} request - The request object that will be sent.
|
621
|
+
* @param {string} request.name - The name of the operation resource to be cancelled.
|
622
|
+
* @param {Object=} options
|
623
|
+
* Optional parameters. You can override the default settings for this call,
|
624
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
625
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
626
|
+
* details.
|
627
|
+
* @param {function(?Error)=} callback
|
628
|
+
* The function which will be called with the result of the API call.
|
629
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
630
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
631
|
+
* call.
|
632
|
+
*
|
633
|
+
* @example
|
634
|
+
* ```
|
635
|
+
* const client = longrunning.operationsClient();
|
636
|
+
* await client.cancelOperation({name: ''});
|
637
|
+
* ```
|
638
|
+
*/
|
639
|
+
cancelOperation(request, options, callback) {
|
640
|
+
return this.operationsClient.cancelOperation(request, options, callback);
|
641
|
+
}
|
642
|
+
/**
|
643
|
+
* Deletes a long-running operation. This method indicates that the client is
|
644
|
+
* no longer interested in the operation result. It does not cancel the
|
645
|
+
* operation. If the server doesn't support this method, it returns
|
646
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
647
|
+
*
|
648
|
+
* @param {Object} request - The request object that will be sent.
|
649
|
+
* @param {string} request.name - The name of the operation resource to be deleted.
|
650
|
+
* @param {Object=} options
|
651
|
+
* Optional parameters. You can override the default settings for this call,
|
652
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
653
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
654
|
+
* for the details.
|
655
|
+
* @param {function(?Error)=} callback
|
656
|
+
* The function which will be called with the result of the API call.
|
657
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
658
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
659
|
+
* call.
|
660
|
+
*
|
661
|
+
* @example
|
662
|
+
* ```
|
663
|
+
* const client = longrunning.operationsClient();
|
664
|
+
* await client.deleteOperation({name: ''});
|
665
|
+
* ```
|
666
|
+
*/
|
667
|
+
deleteOperation(request, options, callback) {
|
668
|
+
return this.operationsClient.deleteOperation(request, options, callback);
|
669
|
+
}
|
318
670
|
// --------------------
|
319
671
|
// -- Path templates --
|
320
672
|
// --------------------
|
673
|
+
/**
|
674
|
+
* Return a fully-qualified engine resource name string.
|
675
|
+
*
|
676
|
+
* @param {string} project
|
677
|
+
* @param {string} location
|
678
|
+
* @param {string} collection
|
679
|
+
* @param {string} engine
|
680
|
+
* @returns {string} Resource name string.
|
681
|
+
*/
|
682
|
+
enginePath(project, location, collection, engine) {
|
683
|
+
return this.pathTemplates.enginePathTemplate.render({
|
684
|
+
project: project,
|
685
|
+
location: location,
|
686
|
+
collection: collection,
|
687
|
+
engine: engine,
|
688
|
+
});
|
689
|
+
}
|
690
|
+
/**
|
691
|
+
* Parse the project from Engine resource.
|
692
|
+
*
|
693
|
+
* @param {string} engineName
|
694
|
+
* A fully-qualified path representing Engine resource.
|
695
|
+
* @returns {string} A string representing the project.
|
696
|
+
*/
|
697
|
+
matchProjectFromEngineName(engineName) {
|
698
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).project;
|
699
|
+
}
|
700
|
+
/**
|
701
|
+
* Parse the location from Engine resource.
|
702
|
+
*
|
703
|
+
* @param {string} engineName
|
704
|
+
* A fully-qualified path representing Engine resource.
|
705
|
+
* @returns {string} A string representing the location.
|
706
|
+
*/
|
707
|
+
matchLocationFromEngineName(engineName) {
|
708
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).location;
|
709
|
+
}
|
710
|
+
/**
|
711
|
+
* Parse the collection from Engine resource.
|
712
|
+
*
|
713
|
+
* @param {string} engineName
|
714
|
+
* A fully-qualified path representing Engine resource.
|
715
|
+
* @returns {string} A string representing the collection.
|
716
|
+
*/
|
717
|
+
matchCollectionFromEngineName(engineName) {
|
718
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).collection;
|
719
|
+
}
|
720
|
+
/**
|
721
|
+
* Parse the engine from Engine resource.
|
722
|
+
*
|
723
|
+
* @param {string} engineName
|
724
|
+
* A fully-qualified path representing Engine resource.
|
725
|
+
* @returns {string} A string representing the engine.
|
726
|
+
*/
|
727
|
+
matchEngineFromEngineName(engineName) {
|
728
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
729
|
+
}
|
321
730
|
/**
|
322
731
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
323
732
|
*
|
@@ -525,6 +934,63 @@ class CompletionServiceClient {
|
|
525
934
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
526
935
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
527
936
|
}
|
937
|
+
/**
|
938
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
939
|
+
*
|
940
|
+
* @param {string} project
|
941
|
+
* @param {string} location
|
942
|
+
* @param {string} collection
|
943
|
+
* @param {string} data_store
|
944
|
+
* @returns {string} Resource name string.
|
945
|
+
*/
|
946
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
947
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
948
|
+
project: project,
|
949
|
+
location: location,
|
950
|
+
collection: collection,
|
951
|
+
data_store: dataStore,
|
952
|
+
});
|
953
|
+
}
|
954
|
+
/**
|
955
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
956
|
+
*
|
957
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
958
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
959
|
+
* @returns {string} A string representing the project.
|
960
|
+
*/
|
961
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
962
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
963
|
+
}
|
964
|
+
/**
|
965
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
966
|
+
*
|
967
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
968
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
969
|
+
* @returns {string} A string representing the location.
|
970
|
+
*/
|
971
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
972
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
973
|
+
}
|
974
|
+
/**
|
975
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
976
|
+
*
|
977
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
978
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
979
|
+
* @returns {string} A string representing the collection.
|
980
|
+
*/
|
981
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
982
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
983
|
+
}
|
984
|
+
/**
|
985
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
986
|
+
*
|
987
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
988
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
989
|
+
* @returns {string} A string representing the data_store.
|
990
|
+
*/
|
991
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
992
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
993
|
+
}
|
528
994
|
/**
|
529
995
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
530
996
|
*
|
@@ -594,6 +1060,339 @@ class CompletionServiceClient {
|
|
594
1060
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
595
1061
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
596
1062
|
}
|
1063
|
+
/**
|
1064
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1065
|
+
*
|
1066
|
+
* @param {string} project
|
1067
|
+
* @param {string} location
|
1068
|
+
* @param {string} collection
|
1069
|
+
* @param {string} data_store
|
1070
|
+
* @param {string} serving_config
|
1071
|
+
* @returns {string} Resource name string.
|
1072
|
+
*/
|
1073
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1074
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1075
|
+
project: project,
|
1076
|
+
location: location,
|
1077
|
+
collection: collection,
|
1078
|
+
data_store: dataStore,
|
1079
|
+
serving_config: servingConfig,
|
1080
|
+
});
|
1081
|
+
}
|
1082
|
+
/**
|
1083
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1084
|
+
*
|
1085
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1086
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1087
|
+
* @returns {string} A string representing the project.
|
1088
|
+
*/
|
1089
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1090
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1091
|
+
}
|
1092
|
+
/**
|
1093
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1094
|
+
*
|
1095
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1096
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1097
|
+
* @returns {string} A string representing the location.
|
1098
|
+
*/
|
1099
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1100
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1101
|
+
}
|
1102
|
+
/**
|
1103
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1104
|
+
*
|
1105
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1106
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1107
|
+
* @returns {string} A string representing the collection.
|
1108
|
+
*/
|
1109
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1110
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1111
|
+
}
|
1112
|
+
/**
|
1113
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1114
|
+
*
|
1115
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1116
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1117
|
+
* @returns {string} A string representing the data_store.
|
1118
|
+
*/
|
1119
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1120
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1121
|
+
}
|
1122
|
+
/**
|
1123
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1124
|
+
*
|
1125
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1126
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1127
|
+
* @returns {string} A string representing the serving_config.
|
1128
|
+
*/
|
1129
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1130
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1131
|
+
}
|
1132
|
+
/**
|
1133
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1134
|
+
*
|
1135
|
+
* @param {string} project
|
1136
|
+
* @param {string} location
|
1137
|
+
* @param {string} collection
|
1138
|
+
* @param {string} data_store
|
1139
|
+
* @returns {string} Resource name string.
|
1140
|
+
*/
|
1141
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
1142
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
1143
|
+
project: project,
|
1144
|
+
location: location,
|
1145
|
+
collection: collection,
|
1146
|
+
data_store: dataStore,
|
1147
|
+
});
|
1148
|
+
}
|
1149
|
+
/**
|
1150
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1151
|
+
*
|
1152
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1153
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1154
|
+
* @returns {string} A string representing the project.
|
1155
|
+
*/
|
1156
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1157
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
1158
|
+
}
|
1159
|
+
/**
|
1160
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1161
|
+
*
|
1162
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1163
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1164
|
+
* @returns {string} A string representing the location.
|
1165
|
+
*/
|
1166
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1167
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
1168
|
+
}
|
1169
|
+
/**
|
1170
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1171
|
+
*
|
1172
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1173
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1174
|
+
* @returns {string} A string representing the collection.
|
1175
|
+
*/
|
1176
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1177
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
1178
|
+
}
|
1179
|
+
/**
|
1180
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1181
|
+
*
|
1182
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1183
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1184
|
+
* @returns {string} A string representing the data_store.
|
1185
|
+
*/
|
1186
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1187
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1188
|
+
}
|
1189
|
+
/**
|
1190
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1191
|
+
*
|
1192
|
+
* @param {string} project
|
1193
|
+
* @param {string} location
|
1194
|
+
* @param {string} collection
|
1195
|
+
* @param {string} data_store
|
1196
|
+
* @param {string} target_site
|
1197
|
+
* @returns {string} Resource name string.
|
1198
|
+
*/
|
1199
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
1200
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1201
|
+
project: project,
|
1202
|
+
location: location,
|
1203
|
+
collection: collection,
|
1204
|
+
data_store: dataStore,
|
1205
|
+
target_site: targetSite,
|
1206
|
+
});
|
1207
|
+
}
|
1208
|
+
/**
|
1209
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1210
|
+
*
|
1211
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1212
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1213
|
+
* @returns {string} A string representing the project.
|
1214
|
+
*/
|
1215
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1216
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
1217
|
+
}
|
1218
|
+
/**
|
1219
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1220
|
+
*
|
1221
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1222
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1223
|
+
* @returns {string} A string representing the location.
|
1224
|
+
*/
|
1225
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1226
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
1227
|
+
}
|
1228
|
+
/**
|
1229
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1230
|
+
*
|
1231
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1232
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1233
|
+
* @returns {string} A string representing the collection.
|
1234
|
+
*/
|
1235
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1236
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
1237
|
+
}
|
1238
|
+
/**
|
1239
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1240
|
+
*
|
1241
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1242
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1243
|
+
* @returns {string} A string representing the data_store.
|
1244
|
+
*/
|
1245
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1246
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1247
|
+
}
|
1248
|
+
/**
|
1249
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1250
|
+
*
|
1251
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1252
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1253
|
+
* @returns {string} A string representing the target_site.
|
1254
|
+
*/
|
1255
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1256
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1257
|
+
}
|
1258
|
+
/**
|
1259
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1260
|
+
*
|
1261
|
+
* @param {string} project
|
1262
|
+
* @param {string} location
|
1263
|
+
* @param {string} collection
|
1264
|
+
* @param {string} engine
|
1265
|
+
* @param {string} conversation
|
1266
|
+
* @returns {string} Resource name string.
|
1267
|
+
*/
|
1268
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
1269
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
1270
|
+
project: project,
|
1271
|
+
location: location,
|
1272
|
+
collection: collection,
|
1273
|
+
engine: engine,
|
1274
|
+
conversation: conversation,
|
1275
|
+
});
|
1276
|
+
}
|
1277
|
+
/**
|
1278
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
1279
|
+
*
|
1280
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1281
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1282
|
+
* @returns {string} A string representing the project.
|
1283
|
+
*/
|
1284
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1285
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
1286
|
+
}
|
1287
|
+
/**
|
1288
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
1289
|
+
*
|
1290
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1291
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1292
|
+
* @returns {string} A string representing the location.
|
1293
|
+
*/
|
1294
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1295
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
1296
|
+
}
|
1297
|
+
/**
|
1298
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
1299
|
+
*
|
1300
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1301
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1302
|
+
* @returns {string} A string representing the collection.
|
1303
|
+
*/
|
1304
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1305
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
1306
|
+
}
|
1307
|
+
/**
|
1308
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
1309
|
+
*
|
1310
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1311
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1312
|
+
* @returns {string} A string representing the engine.
|
1313
|
+
*/
|
1314
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1315
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
1316
|
+
}
|
1317
|
+
/**
|
1318
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
1319
|
+
*
|
1320
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1321
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1322
|
+
* @returns {string} A string representing the conversation.
|
1323
|
+
*/
|
1324
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1325
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1326
|
+
}
|
1327
|
+
/**
|
1328
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1329
|
+
*
|
1330
|
+
* @param {string} project
|
1331
|
+
* @param {string} location
|
1332
|
+
* @param {string} collection
|
1333
|
+
* @param {string} engine
|
1334
|
+
* @param {string} serving_config
|
1335
|
+
* @returns {string} Resource name string.
|
1336
|
+
*/
|
1337
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1338
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1339
|
+
project: project,
|
1340
|
+
location: location,
|
1341
|
+
collection: collection,
|
1342
|
+
engine: engine,
|
1343
|
+
serving_config: servingConfig,
|
1344
|
+
});
|
1345
|
+
}
|
1346
|
+
/**
|
1347
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1348
|
+
*
|
1349
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1350
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1351
|
+
* @returns {string} A string representing the project.
|
1352
|
+
*/
|
1353
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1354
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1355
|
+
}
|
1356
|
+
/**
|
1357
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1358
|
+
*
|
1359
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1360
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1361
|
+
* @returns {string} A string representing the location.
|
1362
|
+
*/
|
1363
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1364
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1365
|
+
}
|
1366
|
+
/**
|
1367
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1368
|
+
*
|
1369
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1370
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1371
|
+
* @returns {string} A string representing the collection.
|
1372
|
+
*/
|
1373
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1374
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1375
|
+
}
|
1376
|
+
/**
|
1377
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1378
|
+
*
|
1379
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1380
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1381
|
+
* @returns {string} A string representing the engine.
|
1382
|
+
*/
|
1383
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1384
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1385
|
+
}
|
1386
|
+
/**
|
1387
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1388
|
+
*
|
1389
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1390
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1391
|
+
* @returns {string} A string representing the serving_config.
|
1392
|
+
*/
|
1393
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1394
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1395
|
+
}
|
597
1396
|
/**
|
598
1397
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
599
1398
|
*
|
@@ -765,6 +1564,51 @@ class CompletionServiceClient {
|
|
765
1564
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
766
1565
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
767
1566
|
}
|
1567
|
+
/**
|
1568
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
1569
|
+
*
|
1570
|
+
* @param {string} project
|
1571
|
+
* @param {string} location
|
1572
|
+
* @param {string} data_store
|
1573
|
+
* @returns {string} Resource name string.
|
1574
|
+
*/
|
1575
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
1576
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
1577
|
+
project: project,
|
1578
|
+
location: location,
|
1579
|
+
data_store: dataStore,
|
1580
|
+
});
|
1581
|
+
}
|
1582
|
+
/**
|
1583
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1584
|
+
*
|
1585
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1586
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1587
|
+
* @returns {string} A string representing the project.
|
1588
|
+
*/
|
1589
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1590
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
1591
|
+
}
|
1592
|
+
/**
|
1593
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1594
|
+
*
|
1595
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1596
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1597
|
+
* @returns {string} A string representing the location.
|
1598
|
+
*/
|
1599
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1600
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
1601
|
+
}
|
1602
|
+
/**
|
1603
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
1604
|
+
*
|
1605
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
1606
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
1607
|
+
* @returns {string} A string representing the data_store.
|
1608
|
+
*/
|
1609
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
1610
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
1611
|
+
}
|
768
1612
|
/**
|
769
1613
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
770
1614
|
*
|
@@ -822,6 +1666,165 @@ class CompletionServiceClient {
|
|
822
1666
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
823
1667
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
824
1668
|
}
|
1669
|
+
/**
|
1670
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
1671
|
+
*
|
1672
|
+
* @param {string} project
|
1673
|
+
* @param {string} location
|
1674
|
+
* @param {string} data_store
|
1675
|
+
* @param {string} serving_config
|
1676
|
+
* @returns {string} Resource name string.
|
1677
|
+
*/
|
1678
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
1679
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
1680
|
+
project: project,
|
1681
|
+
location: location,
|
1682
|
+
data_store: dataStore,
|
1683
|
+
serving_config: servingConfig,
|
1684
|
+
});
|
1685
|
+
}
|
1686
|
+
/**
|
1687
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
1688
|
+
*
|
1689
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1690
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1691
|
+
* @returns {string} A string representing the project.
|
1692
|
+
*/
|
1693
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1694
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
1695
|
+
}
|
1696
|
+
/**
|
1697
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
1698
|
+
*
|
1699
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1700
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1701
|
+
* @returns {string} A string representing the location.
|
1702
|
+
*/
|
1703
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1704
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
1705
|
+
}
|
1706
|
+
/**
|
1707
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
1708
|
+
*
|
1709
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1710
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1711
|
+
* @returns {string} A string representing the data_store.
|
1712
|
+
*/
|
1713
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1714
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
1715
|
+
}
|
1716
|
+
/**
|
1717
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
1718
|
+
*
|
1719
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
1720
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
1721
|
+
* @returns {string} A string representing the serving_config.
|
1722
|
+
*/
|
1723
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1724
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
1725
|
+
}
|
1726
|
+
/**
|
1727
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1728
|
+
*
|
1729
|
+
* @param {string} project
|
1730
|
+
* @param {string} location
|
1731
|
+
* @param {string} data_store
|
1732
|
+
* @returns {string} Resource name string.
|
1733
|
+
*/
|
1734
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
1735
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
1736
|
+
project: project,
|
1737
|
+
location: location,
|
1738
|
+
data_store: dataStore,
|
1739
|
+
});
|
1740
|
+
}
|
1741
|
+
/**
|
1742
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
1743
|
+
*
|
1744
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1745
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1746
|
+
* @returns {string} A string representing the project.
|
1747
|
+
*/
|
1748
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1749
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
1750
|
+
}
|
1751
|
+
/**
|
1752
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
1753
|
+
*
|
1754
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1755
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1756
|
+
* @returns {string} A string representing the location.
|
1757
|
+
*/
|
1758
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1759
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
1760
|
+
}
|
1761
|
+
/**
|
1762
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
1763
|
+
*
|
1764
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1765
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1766
|
+
* @returns {string} A string representing the data_store.
|
1767
|
+
*/
|
1768
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1769
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
1770
|
+
}
|
1771
|
+
/**
|
1772
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1773
|
+
*
|
1774
|
+
* @param {string} project
|
1775
|
+
* @param {string} location
|
1776
|
+
* @param {string} data_store
|
1777
|
+
* @param {string} target_site
|
1778
|
+
* @returns {string} Resource name string.
|
1779
|
+
*/
|
1780
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
1781
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1782
|
+
project: project,
|
1783
|
+
location: location,
|
1784
|
+
data_store: dataStore,
|
1785
|
+
target_site: targetSite,
|
1786
|
+
});
|
1787
|
+
}
|
1788
|
+
/**
|
1789
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1790
|
+
*
|
1791
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1792
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1793
|
+
* @returns {string} A string representing the project.
|
1794
|
+
*/
|
1795
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1796
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
1797
|
+
}
|
1798
|
+
/**
|
1799
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1800
|
+
*
|
1801
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1802
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1803
|
+
* @returns {string} A string representing the location.
|
1804
|
+
*/
|
1805
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1806
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
1807
|
+
}
|
1808
|
+
/**
|
1809
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1810
|
+
*
|
1811
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1812
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1813
|
+
* @returns {string} A string representing the data_store.
|
1814
|
+
*/
|
1815
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1816
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1817
|
+
}
|
1818
|
+
/**
|
1819
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1820
|
+
*
|
1821
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1822
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1823
|
+
* @returns {string} A string representing the target_site.
|
1824
|
+
*/
|
1825
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1826
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1827
|
+
}
|
825
1828
|
/**
|
826
1829
|
* Terminate the gRPC channel and close the client.
|
827
1830
|
*
|
@@ -834,6 +1837,7 @@ class CompletionServiceClient {
|
|
834
1837
|
this._terminated = true;
|
835
1838
|
stub.close();
|
836
1839
|
this.locationsClient.close();
|
1840
|
+
this.operationsClient.close();
|
837
1841
|
});
|
838
1842
|
}
|
839
1843
|
return Promise.resolve();
|