@google-cloud/discoveryengine 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +63 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
  4. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
  6. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
  16. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +0 -5
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +39 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +97 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +147 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +164 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +540 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
  29. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +40 -1
  33. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +98 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  36. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
  39. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +38 -0
  40. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
  41. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +150 -11
  42. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +264 -0
  43. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +147 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
  45. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
  46. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
  47. package/build/protos/protos.d.ts +42822 -21397
  48. package/build/protos/protos.js +110509 -61572
  49. package/build/protos/protos.json +11779 -6752
  50. package/build/src/index.d.ts +10 -1
  51. package/build/src/index.js +11 -2
  52. package/build/src/v1/completion_service_client.d.ts +489 -7
  53. package/build/src/v1/completion_service_client.js +716 -12
  54. package/build/src/v1/completion_service_client_config.json +10 -0
  55. package/build/src/v1/conversational_search_service_client.d.ts +341 -3
  56. package/build/src/v1/conversational_search_service_client.js +467 -10
  57. package/build/src/v1/data_store_service_client.d.ts +1286 -0
  58. package/build/src/v1/data_store_service_client.js +1768 -0
  59. package/build/src/v1/data_store_service_client_config.json +46 -0
  60. package/build/src/v1/document_service_client.d.ts +347 -2
  61. package/build/src/v1/document_service_client.js +507 -10
  62. package/build/src/v1/engine_service_client.d.ts +1211 -0
  63. package/build/src/v1/engine_service_client.js +1731 -0
  64. package/build/src/v1/engine_service_client_config.json +46 -0
  65. package/build/src/v1/index.d.ts +3 -0
  66. package/build/src/v1/index.js +8 -2
  67. package/build/src/v1/schema_service_client.d.ts +272 -2
  68. package/build/src/v1/schema_service_client.js +403 -10
  69. package/build/src/v1/search_service_client.d.ts +515 -11
  70. package/build/src/v1/search_service_client.js +649 -16
  71. package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
  72. package/build/src/v1/site_search_engine_service_client.js +2075 -0
  73. package/build/src/v1/site_search_engine_service_client_config.json +74 -0
  74. package/build/src/v1/user_event_service_client.d.ts +272 -2
  75. package/build/src/v1/user_event_service_client.js +403 -10
  76. package/build/src/v1alpha/completion_service_client.d.ts +230 -2
  77. package/build/src/v1alpha/completion_service_client.js +339 -10
  78. package/build/src/v1alpha/conversational_search_service_client.d.ts +247 -2
  79. package/build/src/v1alpha/conversational_search_service_client.js +339 -10
  80. package/build/src/v1alpha/data_store_service_client.d.ts +230 -2
  81. package/build/src/v1alpha/data_store_service_client.js +347 -12
  82. package/build/src/v1alpha/document_service_client.d.ts +230 -2
  83. package/build/src/v1alpha/document_service_client.js +347 -12
  84. package/build/src/v1alpha/engine_service_client.d.ts +231 -3
  85. package/build/src/v1alpha/engine_service_client.js +347 -12
  86. package/build/src/v1alpha/index.d.ts +1 -0
  87. package/build/src/v1alpha/index.js +4 -2
  88. package/build/src/v1alpha/recommendation_service_client.d.ts +230 -2
  89. package/build/src/v1alpha/recommendation_service_client.js +339 -10
  90. package/build/src/v1alpha/schema_service_client.d.ts +230 -2
  91. package/build/src/v1alpha/schema_service_client.js +347 -12
  92. package/build/src/v1alpha/search_service_client.d.ts +269 -2
  93. package/build/src/v1alpha/search_service_client.js +365 -10
  94. package/build/src/v1alpha/search_tuning_service_client.d.ts +977 -0
  95. package/build/src/v1alpha/search_tuning_service_client.js +1479 -0
  96. package/build/src/v1alpha/search_tuning_service_client_config.json +30 -0
  97. package/build/src/v1alpha/site_search_engine_service_client.d.ts +750 -3
  98. package/build/src/v1alpha/site_search_engine_service_client.js +838 -14
  99. package/build/src/v1alpha/site_search_engine_service_client_config.json +44 -0
  100. package/build/src/v1alpha/user_event_service_client.d.ts +230 -2
  101. package/build/src/v1alpha/user_event_service_client.js +347 -12
  102. package/build/src/v1beta/completion_service_client.d.ts +633 -7
  103. package/build/src/v1beta/completion_service_client.js +912 -12
  104. package/build/src/v1beta/completion_service_client_config.json +10 -0
  105. package/build/src/v1beta/conversational_search_service_client.d.ts +341 -3
  106. package/build/src/v1beta/conversational_search_service_client.js +467 -10
  107. package/build/src/v1beta/data_store_service_client.d.ts +1433 -0
  108. package/build/src/v1beta/data_store_service_client.js +1966 -0
  109. package/build/src/v1beta/data_store_service_client_config.json +46 -0
  110. package/build/src/v1beta/document_service_client.d.ts +491 -2
  111. package/build/src/v1beta/document_service_client.js +707 -12
  112. package/build/src/v1beta/engine_service_client.d.ts +1357 -0
  113. package/build/src/v1beta/engine_service_client.js +1928 -0
  114. package/build/src/v1beta/engine_service_client_config.json +46 -0
  115. package/build/src/v1beta/index.d.ts +4 -0
  116. package/build/src/v1beta/index.js +10 -2
  117. package/build/src/v1beta/recommendation_service_client.d.ts +420 -5
  118. package/build/src/v1beta/recommendation_service_client.js +571 -10
  119. package/build/src/v1beta/schema_service_client.d.ts +416 -2
  120. package/build/src/v1beta/schema_service_client.js +603 -12
  121. package/build/src/v1beta/search_service_client.d.ts +539 -29
  122. package/build/src/v1beta/search_service_client.js +665 -28
  123. package/build/src/v1beta/serving_config_service_client.d.ts +1102 -0
  124. package/build/src/v1beta/serving_config_service_client.js +1563 -0
  125. package/build/src/v1beta/serving_config_service_client_config.json +38 -0
  126. package/build/src/v1beta/site_search_engine_service_client.d.ts +1712 -0
  127. package/build/src/v1beta/site_search_engine_service_client.js +2271 -0
  128. package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
  129. package/build/src/v1beta/user_event_service_client.d.ts +416 -2
  130. package/build/src/v1beta/user_event_service_client.js +603 -12
  131. package/package.json +3 -3
@@ -0,0 +1,1563 @@
1
+ "use strict";
2
+ // Copyright 2024 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.ServingConfigServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/serving_config_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./serving_config_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for modifying ServingConfig.
31
+ * @class
32
+ * @memberof v1beta
33
+ */
34
+ class ServingConfigServiceClient {
35
+ /**
36
+ * Construct an instance of ServingConfigServiceClient.
37
+ *
38
+ * @param {object} [options] - The configuration object.
39
+ * The options accepted by the constructor are described in detail
40
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
41
+ * The common options are:
42
+ * @param {object} [options.credentials] - Credentials object.
43
+ * @param {string} [options.credentials.client_email]
44
+ * @param {string} [options.credentials.private_key]
45
+ * @param {string} [options.email] - Account email address. Required when
46
+ * using a .pem or .p12 keyFilename.
47
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
48
+ * .p12 key downloaded from the Google Developers Console. If you provide
49
+ * a path to a JSON file, the projectId option below is not necessary.
50
+ * NOTE: .pem and .p12 require you to specify options.email as well.
51
+ * @param {number} [options.port] - The port on which to connect to
52
+ * the remote host.
53
+ * @param {string} [options.projectId] - The project ID from the Google
54
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
55
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
56
+ * app is running in an environment which supports
57
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
58
+ * your project ID will be detected automatically.
59
+ * @param {string} [options.apiEndpoint] - The domain name of the
60
+ * API remote host.
61
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
+ * Follows the structure of {@link gapicConfig}.
63
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
64
+ * For more information, please check the
65
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
66
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
67
+ * need to avoid loading the default gRPC version and want to use the fallback
68
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
69
+ * ```
70
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
71
+ * const client = new ServingConfigServiceClient({fallback: true}, gax);
72
+ * ```
73
+ */
74
+ constructor(opts, gaxInstance) {
75
+ var _a, _b, _c, _d;
76
+ this._terminated = false;
77
+ this.descriptors = {
78
+ page: {},
79
+ stream: {},
80
+ longrunning: {},
81
+ batching: {},
82
+ };
83
+ // Ensure that options include all the required fields.
84
+ const staticMembers = this.constructor;
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;
94
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
95
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
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');
98
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
99
+ // Request numeric enum values if REST transport is used.
100
+ opts.numericEnums = true;
101
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
102
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
103
+ opts['scopes'] = staticMembers.scopes;
104
+ }
105
+ // Load google-gax module synchronously if needed
106
+ if (!gaxInstance) {
107
+ gaxInstance = require('google-gax');
108
+ }
109
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
110
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
111
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
112
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
113
+ // Save options to use in initialize() method.
114
+ this._opts = opts;
115
+ // Save the auth object to the client, for use by other methods.
116
+ this.auth = this._gaxGrpc.auth;
117
+ // Set useJWTAccessWithScope on the auth object.
118
+ this.auth.useJWTAccessWithScope = true;
119
+ // Set defaultServicePath on the auth object.
120
+ this.auth.defaultServicePath = this._servicePath;
121
+ // Set the default scopes in auth client if needed.
122
+ if (servicePath === this._servicePath) {
123
+ this.auth.defaultScopes = staticMembers.scopes;
124
+ }
125
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
126
+ // Determine the client header string.
127
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
128
+ if (typeof process !== 'undefined' && 'versions' in process) {
129
+ clientHeader.push(`gl-node/${process.versions.node}`);
130
+ }
131
+ else {
132
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
133
+ }
134
+ if (!opts.fallback) {
135
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
136
+ }
137
+ else {
138
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
139
+ }
140
+ if (opts.libName && opts.libVersion) {
141
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
142
+ }
143
+ // Load the applicable protos.
144
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
145
+ // This API contains "path templates"; forward-slash-separated
146
+ // identifiers to uniquely identify resources within the API.
147
+ // Create useful helper objects for these.
148
+ this.pathTemplates = {
149
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
150
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
151
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
152
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
153
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
154
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
155
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
156
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
157
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
158
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
159
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
160
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
161
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
162
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
163
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
164
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
165
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
166
+ };
167
+ // Some of the methods on this service return "paged" results,
168
+ // (e.g. 50 results at a time, with tokens to get subsequent
169
+ // pages). Denote the keys used for pagination and results.
170
+ this.descriptors.page = {
171
+ listServingConfigs: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'servingConfigs'),
172
+ };
173
+ // Put together the default options sent with requests.
174
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.ServingConfigService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
175
+ // Set up a dictionary of "inner API calls"; the core implementation
176
+ // of calling the API is handled in `google-gax`, with this code
177
+ // merely providing the destination and request information.
178
+ this.innerApiCalls = {};
179
+ // Add a warn function to the client constructor so it can be easily tested.
180
+ this.warn = this._gaxModule.warn;
181
+ }
182
+ /**
183
+ * Initialize the client.
184
+ * Performs asynchronous operations (such as authentication) and prepares the client.
185
+ * This function will be called automatically when any class method is called for the
186
+ * first time, but if you need to initialize it before calling an actual method,
187
+ * feel free to call initialize() directly.
188
+ *
189
+ * You can await on this method if you want to make sure the client is initialized.
190
+ *
191
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
192
+ */
193
+ initialize() {
194
+ // If the client stub promise is already initialized, return immediately.
195
+ if (this.servingConfigServiceStub) {
196
+ return this.servingConfigServiceStub;
197
+ }
198
+ // Put together the "service stub" for
199
+ // google.cloud.discoveryengine.v1beta.ServingConfigService.
200
+ this.servingConfigServiceStub = this._gaxGrpc.createStub(this._opts.fallback
201
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1beta.ServingConfigService')
202
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
203
+ this._protos.google.cloud.discoveryengine.v1beta
204
+ .ServingConfigService, this._opts, this._providedCustomServicePath);
205
+ // Iterate over each of the methods that the service provides
206
+ // and create an API call method for each.
207
+ const servingConfigServiceStubMethods = [
208
+ 'updateServingConfig',
209
+ 'getServingConfig',
210
+ 'listServingConfigs',
211
+ ];
212
+ for (const methodName of servingConfigServiceStubMethods) {
213
+ const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
214
+ if (this._terminated) {
215
+ return Promise.reject('The client has already been closed.');
216
+ }
217
+ const func = stub[methodName];
218
+ return func.apply(stub, args);
219
+ }, (err) => () => {
220
+ throw err;
221
+ });
222
+ const descriptor = this.descriptors.page[methodName] || undefined;
223
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
224
+ this.innerApiCalls[methodName] = apiCall;
225
+ }
226
+ return this.servingConfigServiceStub;
227
+ }
228
+ /**
229
+ * The DNS address for this API service.
230
+ * @deprecated Use the apiEndpoint method of the client instance.
231
+ * @returns {string} The DNS address for this service.
232
+ */
233
+ static get servicePath() {
234
+ if (typeof process !== undefined &&
235
+ typeof process.emitWarning === 'function') {
236
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
237
+ }
238
+ return 'discoveryengine.googleapis.com';
239
+ }
240
+ /**
241
+ * The DNS address for this API service - same as servicePath.
242
+ * @deprecated Use the apiEndpoint method of the client instance.
243
+ * @returns {string} The DNS address for this service.
244
+ */
245
+ static get apiEndpoint() {
246
+ if (typeof process !== undefined &&
247
+ typeof process.emitWarning === 'function') {
248
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
249
+ }
250
+ return 'discoveryengine.googleapis.com';
251
+ }
252
+ /**
253
+ * The DNS address for this API service.
254
+ * @returns {string} The DNS address for this service.
255
+ */
256
+ get apiEndpoint() {
257
+ return this._servicePath;
258
+ }
259
+ get universeDomain() {
260
+ return this._universeDomain;
261
+ }
262
+ /**
263
+ * The port for this API service.
264
+ * @returns {number} The default port for this service.
265
+ */
266
+ static get port() {
267
+ return 443;
268
+ }
269
+ /**
270
+ * The scopes needed to make gRPC calls for every method defined
271
+ * in this service.
272
+ * @returns {string[]} List of default scopes.
273
+ */
274
+ static get scopes() {
275
+ return ['https://www.googleapis.com/auth/cloud-platform'];
276
+ }
277
+ /**
278
+ * Return the project ID used by this class.
279
+ * @returns {Promise} A promise that resolves to string containing the project ID.
280
+ */
281
+ getProjectId(callback) {
282
+ if (callback) {
283
+ this.auth.getProjectId(callback);
284
+ return;
285
+ }
286
+ return this.auth.getProjectId();
287
+ }
288
+ updateServingConfig(request, optionsOrCallback, callback) {
289
+ var _a;
290
+ request = request || {};
291
+ let options;
292
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
293
+ callback = optionsOrCallback;
294
+ options = {};
295
+ }
296
+ else {
297
+ options = optionsOrCallback;
298
+ }
299
+ options = options || {};
300
+ options.otherArgs = options.otherArgs || {};
301
+ options.otherArgs.headers = options.otherArgs.headers || {};
302
+ options.otherArgs.headers['x-goog-request-params'] =
303
+ this._gaxModule.routingHeader.fromParams({
304
+ 'serving_config.name': (_a = request.servingConfig.name) !== null && _a !== void 0 ? _a : '',
305
+ });
306
+ this.initialize();
307
+ return this.innerApiCalls.updateServingConfig(request, options, callback);
308
+ }
309
+ getServingConfig(request, optionsOrCallback, callback) {
310
+ var _a;
311
+ request = request || {};
312
+ let options;
313
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
314
+ callback = optionsOrCallback;
315
+ options = {};
316
+ }
317
+ else {
318
+ options = optionsOrCallback;
319
+ }
320
+ options = options || {};
321
+ options.otherArgs = options.otherArgs || {};
322
+ options.otherArgs.headers = options.otherArgs.headers || {};
323
+ options.otherArgs.headers['x-goog-request-params'] =
324
+ this._gaxModule.routingHeader.fromParams({
325
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
326
+ });
327
+ this.initialize();
328
+ return this.innerApiCalls.getServingConfig(request, options, callback);
329
+ }
330
+ listServingConfigs(request, optionsOrCallback, callback) {
331
+ var _a;
332
+ request = request || {};
333
+ let options;
334
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
335
+ callback = optionsOrCallback;
336
+ options = {};
337
+ }
338
+ else {
339
+ options = optionsOrCallback;
340
+ }
341
+ options = options || {};
342
+ options.otherArgs = options.otherArgs || {};
343
+ options.otherArgs.headers = options.otherArgs.headers || {};
344
+ options.otherArgs.headers['x-goog-request-params'] =
345
+ this._gaxModule.routingHeader.fromParams({
346
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
347
+ });
348
+ this.initialize();
349
+ return this.innerApiCalls.listServingConfigs(request, options, callback);
350
+ }
351
+ /**
352
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
353
+ * @param {Object} request
354
+ * The request object that will be sent.
355
+ * @param {string} request.parent
356
+ * Required. The dataStore resource name. Format:
357
+ * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
358
+ * @param {number} [request.pageSize]
359
+ * Optional. Maximum number of results to return. If unspecified, defaults
360
+ * to 100. If a value greater than 100 is provided, at most 100 results are
361
+ * returned.
362
+ * @param {string} [request.pageToken]
363
+ * Optional. A page token, received from a previous `ListServingConfigs` call.
364
+ * Provide this to retrieve the subsequent page.
365
+ * @param {object} [options]
366
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
367
+ * @returns {Stream}
368
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1beta.ServingConfig|ServingConfig} on 'data' event.
369
+ * The client library will perform auto-pagination by default: it will call the API as many
370
+ * times as needed. Note that it can affect your quota.
371
+ * We recommend using `listServingConfigsAsync()`
372
+ * method described below for async iteration which you can stop as needed.
373
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
374
+ * for more details and examples.
375
+ */
376
+ listServingConfigsStream(request, options) {
377
+ var _a;
378
+ request = request || {};
379
+ options = options || {};
380
+ options.otherArgs = options.otherArgs || {};
381
+ options.otherArgs.headers = options.otherArgs.headers || {};
382
+ options.otherArgs.headers['x-goog-request-params'] =
383
+ this._gaxModule.routingHeader.fromParams({
384
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
385
+ });
386
+ const defaultCallSettings = this._defaults['listServingConfigs'];
387
+ const callSettings = defaultCallSettings.merge(options);
388
+ this.initialize();
389
+ return this.descriptors.page.listServingConfigs.createStream(this.innerApiCalls.listServingConfigs, request, callSettings);
390
+ }
391
+ /**
392
+ * Equivalent to `listServingConfigs`, but returns an iterable object.
393
+ *
394
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
395
+ * @param {Object} request
396
+ * The request object that will be sent.
397
+ * @param {string} request.parent
398
+ * Required. The dataStore resource name. Format:
399
+ * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
400
+ * @param {number} [request.pageSize]
401
+ * Optional. Maximum number of results to return. If unspecified, defaults
402
+ * to 100. If a value greater than 100 is provided, at most 100 results are
403
+ * returned.
404
+ * @param {string} [request.pageToken]
405
+ * Optional. A page token, received from a previous `ListServingConfigs` call.
406
+ * Provide this to retrieve the subsequent page.
407
+ * @param {object} [options]
408
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
409
+ * @returns {Object}
410
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
411
+ * When you iterate the returned iterable, each element will be an object representing
412
+ * {@link protos.google.cloud.discoveryengine.v1beta.ServingConfig|ServingConfig}. The API will be called under the hood as needed, once per the page,
413
+ * so you can stop the iteration when you don't need more results.
414
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
415
+ * for more details and examples.
416
+ * @example <caption>include:samples/generated/v1beta/serving_config_service.list_serving_configs.js</caption>
417
+ * region_tag:discoveryengine_v1beta_generated_ServingConfigService_ListServingConfigs_async
418
+ */
419
+ listServingConfigsAsync(request, options) {
420
+ var _a;
421
+ request = request || {};
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
+ const defaultCallSettings = this._defaults['listServingConfigs'];
430
+ const callSettings = defaultCallSettings.merge(options);
431
+ this.initialize();
432
+ return this.descriptors.page.listServingConfigs.asyncIterate(this.innerApiCalls['listServingConfigs'], request, callSettings);
433
+ }
434
+ /**
435
+ * Gets information about a location.
436
+ *
437
+ * @param {Object} request
438
+ * The request object that will be sent.
439
+ * @param {string} request.name
440
+ * Resource name for the location.
441
+ * @param {object} [options]
442
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
443
+ * @returns {Promise} - The promise which resolves to an array.
444
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
445
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
446
+ * for more details and examples.
447
+ * @example
448
+ * ```
449
+ * const [response] = await client.getLocation(request);
450
+ * ```
451
+ */
452
+ getLocation(request, options, callback) {
453
+ return this.locationsClient.getLocation(request, options, callback);
454
+ }
455
+ /**
456
+ * Lists information about the supported locations for this service. Returns an iterable object.
457
+ *
458
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
459
+ * @param {Object} request
460
+ * The request object that will be sent.
461
+ * @param {string} request.name
462
+ * The resource that owns the locations collection, if applicable.
463
+ * @param {string} request.filter
464
+ * The standard list filter.
465
+ * @param {number} request.pageSize
466
+ * The standard list page size.
467
+ * @param {string} request.pageToken
468
+ * The standard list page token.
469
+ * @param {object} [options]
470
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
471
+ * @returns {Object}
472
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
473
+ * When you iterate the returned iterable, each element will be an object representing
474
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
475
+ * so you can stop the iteration when you don't need more results.
476
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
477
+ * for more details and examples.
478
+ * @example
479
+ * ```
480
+ * const iterable = client.listLocationsAsync(request);
481
+ * for await (const response of iterable) {
482
+ * // process response
483
+ * }
484
+ * ```
485
+ */
486
+ listLocationsAsync(request, options) {
487
+ return this.locationsClient.listLocationsAsync(request, options);
488
+ }
489
+ // --------------------
490
+ // -- Path templates --
491
+ // --------------------
492
+ /**
493
+ * Return a fully-qualified engine resource name string.
494
+ *
495
+ * @param {string} project
496
+ * @param {string} location
497
+ * @param {string} collection
498
+ * @param {string} engine
499
+ * @returns {string} Resource name string.
500
+ */
501
+ enginePath(project, location, collection, engine) {
502
+ return this.pathTemplates.enginePathTemplate.render({
503
+ project: project,
504
+ location: location,
505
+ collection: collection,
506
+ engine: engine,
507
+ });
508
+ }
509
+ /**
510
+ * Parse the project from Engine resource.
511
+ *
512
+ * @param {string} engineName
513
+ * A fully-qualified path representing Engine resource.
514
+ * @returns {string} A string representing the project.
515
+ */
516
+ matchProjectFromEngineName(engineName) {
517
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
518
+ }
519
+ /**
520
+ * Parse the location from Engine resource.
521
+ *
522
+ * @param {string} engineName
523
+ * A fully-qualified path representing Engine resource.
524
+ * @returns {string} A string representing the location.
525
+ */
526
+ matchLocationFromEngineName(engineName) {
527
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
528
+ }
529
+ /**
530
+ * Parse the collection from Engine resource.
531
+ *
532
+ * @param {string} engineName
533
+ * A fully-qualified path representing Engine resource.
534
+ * @returns {string} A string representing the collection.
535
+ */
536
+ matchCollectionFromEngineName(engineName) {
537
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
538
+ }
539
+ /**
540
+ * Parse the engine from Engine resource.
541
+ *
542
+ * @param {string} engineName
543
+ * A fully-qualified path representing Engine resource.
544
+ * @returns {string} A string representing the engine.
545
+ */
546
+ matchEngineFromEngineName(engineName) {
547
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
548
+ }
549
+ /**
550
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
551
+ *
552
+ * @param {string} project
553
+ * @param {string} location
554
+ * @param {string} collection
555
+ * @param {string} data_store
556
+ * @returns {string} Resource name string.
557
+ */
558
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
559
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
560
+ project: project,
561
+ location: location,
562
+ collection: collection,
563
+ data_store: dataStore,
564
+ });
565
+ }
566
+ /**
567
+ * Parse the project from ProjectLocationCollectionDataStore resource.
568
+ *
569
+ * @param {string} projectLocationCollectionDataStoreName
570
+ * A fully-qualified path representing project_location_collection_data_store resource.
571
+ * @returns {string} A string representing the project.
572
+ */
573
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
574
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
575
+ }
576
+ /**
577
+ * Parse the location from ProjectLocationCollectionDataStore resource.
578
+ *
579
+ * @param {string} projectLocationCollectionDataStoreName
580
+ * A fully-qualified path representing project_location_collection_data_store resource.
581
+ * @returns {string} A string representing the location.
582
+ */
583
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
584
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
585
+ }
586
+ /**
587
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
588
+ *
589
+ * @param {string} projectLocationCollectionDataStoreName
590
+ * A fully-qualified path representing project_location_collection_data_store resource.
591
+ * @returns {string} A string representing the collection.
592
+ */
593
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
594
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
595
+ }
596
+ /**
597
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
598
+ *
599
+ * @param {string} projectLocationCollectionDataStoreName
600
+ * A fully-qualified path representing project_location_collection_data_store resource.
601
+ * @returns {string} A string representing the data_store.
602
+ */
603
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
604
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
605
+ }
606
+ /**
607
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
608
+ *
609
+ * @param {string} project
610
+ * @param {string} location
611
+ * @param {string} collection
612
+ * @param {string} data_store
613
+ * @param {string} branch
614
+ * @param {string} document
615
+ * @returns {string} Resource name string.
616
+ */
617
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
618
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
619
+ project: project,
620
+ location: location,
621
+ collection: collection,
622
+ data_store: dataStore,
623
+ branch: branch,
624
+ document: document,
625
+ });
626
+ }
627
+ /**
628
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
629
+ *
630
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
631
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
632
+ * @returns {string} A string representing the project.
633
+ */
634
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
635
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
636
+ }
637
+ /**
638
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
639
+ *
640
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
641
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
642
+ * @returns {string} A string representing the location.
643
+ */
644
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
645
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
646
+ }
647
+ /**
648
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
649
+ *
650
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
651
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
652
+ * @returns {string} A string representing the collection.
653
+ */
654
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
655
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
656
+ }
657
+ /**
658
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
659
+ *
660
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
661
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
662
+ * @returns {string} A string representing the data_store.
663
+ */
664
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
665
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
666
+ }
667
+ /**
668
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
669
+ *
670
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
671
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
672
+ * @returns {string} A string representing the branch.
673
+ */
674
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
675
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
676
+ }
677
+ /**
678
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
679
+ *
680
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
681
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
682
+ * @returns {string} A string representing the document.
683
+ */
684
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
685
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
686
+ }
687
+ /**
688
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
689
+ *
690
+ * @param {string} project
691
+ * @param {string} location
692
+ * @param {string} collection
693
+ * @param {string} data_store
694
+ * @param {string} conversation
695
+ * @returns {string} Resource name string.
696
+ */
697
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
698
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
699
+ project: project,
700
+ location: location,
701
+ collection: collection,
702
+ data_store: dataStore,
703
+ conversation: conversation,
704
+ });
705
+ }
706
+ /**
707
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
708
+ *
709
+ * @param {string} projectLocationCollectionDataStoreConversationName
710
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
711
+ * @returns {string} A string representing the project.
712
+ */
713
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
714
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
715
+ }
716
+ /**
717
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
718
+ *
719
+ * @param {string} projectLocationCollectionDataStoreConversationName
720
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
721
+ * @returns {string} A string representing the location.
722
+ */
723
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
724
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
725
+ }
726
+ /**
727
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
728
+ *
729
+ * @param {string} projectLocationCollectionDataStoreConversationName
730
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
731
+ * @returns {string} A string representing the collection.
732
+ */
733
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
734
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
735
+ }
736
+ /**
737
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
738
+ *
739
+ * @param {string} projectLocationCollectionDataStoreConversationName
740
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
741
+ * @returns {string} A string representing the data_store.
742
+ */
743
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
744
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
745
+ }
746
+ /**
747
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
748
+ *
749
+ * @param {string} projectLocationCollectionDataStoreConversationName
750
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
751
+ * @returns {string} A string representing the conversation.
752
+ */
753
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
754
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
755
+ }
756
+ /**
757
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
758
+ *
759
+ * @param {string} project
760
+ * @param {string} location
761
+ * @param {string} collection
762
+ * @param {string} data_store
763
+ * @param {string} schema
764
+ * @returns {string} Resource name string.
765
+ */
766
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
767
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
768
+ project: project,
769
+ location: location,
770
+ collection: collection,
771
+ data_store: dataStore,
772
+ schema: schema,
773
+ });
774
+ }
775
+ /**
776
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
777
+ *
778
+ * @param {string} projectLocationCollectionDataStoreSchemaName
779
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
780
+ * @returns {string} A string representing the project.
781
+ */
782
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
783
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
784
+ }
785
+ /**
786
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
787
+ *
788
+ * @param {string} projectLocationCollectionDataStoreSchemaName
789
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
790
+ * @returns {string} A string representing the location.
791
+ */
792
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
793
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
794
+ }
795
+ /**
796
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
797
+ *
798
+ * @param {string} projectLocationCollectionDataStoreSchemaName
799
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
800
+ * @returns {string} A string representing the collection.
801
+ */
802
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
803
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
804
+ }
805
+ /**
806
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
807
+ *
808
+ * @param {string} projectLocationCollectionDataStoreSchemaName
809
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
810
+ * @returns {string} A string representing the data_store.
811
+ */
812
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
813
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
814
+ }
815
+ /**
816
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
817
+ *
818
+ * @param {string} projectLocationCollectionDataStoreSchemaName
819
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
820
+ * @returns {string} A string representing the schema.
821
+ */
822
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
823
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
824
+ }
825
+ /**
826
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
827
+ *
828
+ * @param {string} project
829
+ * @param {string} location
830
+ * @param {string} collection
831
+ * @param {string} data_store
832
+ * @param {string} serving_config
833
+ * @returns {string} Resource name string.
834
+ */
835
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
836
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
837
+ project: project,
838
+ location: location,
839
+ collection: collection,
840
+ data_store: dataStore,
841
+ serving_config: servingConfig,
842
+ });
843
+ }
844
+ /**
845
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
846
+ *
847
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
848
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
849
+ * @returns {string} A string representing the project.
850
+ */
851
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
852
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
853
+ }
854
+ /**
855
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
856
+ *
857
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
858
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
859
+ * @returns {string} A string representing the location.
860
+ */
861
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
862
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
863
+ }
864
+ /**
865
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
866
+ *
867
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
868
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
869
+ * @returns {string} A string representing the collection.
870
+ */
871
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
872
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
873
+ }
874
+ /**
875
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
876
+ *
877
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
878
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
879
+ * @returns {string} A string representing the data_store.
880
+ */
881
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
882
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
883
+ }
884
+ /**
885
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
886
+ *
887
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
888
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
889
+ * @returns {string} A string representing the serving_config.
890
+ */
891
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
892
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
893
+ }
894
+ /**
895
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
896
+ *
897
+ * @param {string} project
898
+ * @param {string} location
899
+ * @param {string} collection
900
+ * @param {string} data_store
901
+ * @returns {string} Resource name string.
902
+ */
903
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
904
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
905
+ project: project,
906
+ location: location,
907
+ collection: collection,
908
+ data_store: dataStore,
909
+ });
910
+ }
911
+ /**
912
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
913
+ *
914
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
915
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
916
+ * @returns {string} A string representing the project.
917
+ */
918
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
919
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
920
+ }
921
+ /**
922
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
923
+ *
924
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
925
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
926
+ * @returns {string} A string representing the location.
927
+ */
928
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
929
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
930
+ }
931
+ /**
932
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
933
+ *
934
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
935
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
936
+ * @returns {string} A string representing the collection.
937
+ */
938
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
939
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
940
+ }
941
+ /**
942
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
943
+ *
944
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
945
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
946
+ * @returns {string} A string representing the data_store.
947
+ */
948
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
949
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
950
+ }
951
+ /**
952
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
953
+ *
954
+ * @param {string} project
955
+ * @param {string} location
956
+ * @param {string} collection
957
+ * @param {string} data_store
958
+ * @param {string} target_site
959
+ * @returns {string} Resource name string.
960
+ */
961
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
962
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
963
+ project: project,
964
+ location: location,
965
+ collection: collection,
966
+ data_store: dataStore,
967
+ target_site: targetSite,
968
+ });
969
+ }
970
+ /**
971
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
972
+ *
973
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
974
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
975
+ * @returns {string} A string representing the project.
976
+ */
977
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
978
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
979
+ }
980
+ /**
981
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
982
+ *
983
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
984
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
985
+ * @returns {string} A string representing the location.
986
+ */
987
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
988
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
989
+ }
990
+ /**
991
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
992
+ *
993
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
994
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
995
+ * @returns {string} A string representing the collection.
996
+ */
997
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
998
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
999
+ }
1000
+ /**
1001
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1002
+ *
1003
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1004
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1005
+ * @returns {string} A string representing the data_store.
1006
+ */
1007
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1008
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1009
+ }
1010
+ /**
1011
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1012
+ *
1013
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1014
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1015
+ * @returns {string} A string representing the target_site.
1016
+ */
1017
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1018
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1019
+ }
1020
+ /**
1021
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1022
+ *
1023
+ * @param {string} project
1024
+ * @param {string} location
1025
+ * @param {string} collection
1026
+ * @param {string} engine
1027
+ * @param {string} conversation
1028
+ * @returns {string} Resource name string.
1029
+ */
1030
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1031
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1032
+ project: project,
1033
+ location: location,
1034
+ collection: collection,
1035
+ engine: engine,
1036
+ conversation: conversation,
1037
+ });
1038
+ }
1039
+ /**
1040
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1041
+ *
1042
+ * @param {string} projectLocationCollectionEngineConversationName
1043
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1044
+ * @returns {string} A string representing the project.
1045
+ */
1046
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1047
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1048
+ }
1049
+ /**
1050
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1051
+ *
1052
+ * @param {string} projectLocationCollectionEngineConversationName
1053
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1054
+ * @returns {string} A string representing the location.
1055
+ */
1056
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1057
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1058
+ }
1059
+ /**
1060
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1061
+ *
1062
+ * @param {string} projectLocationCollectionEngineConversationName
1063
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1064
+ * @returns {string} A string representing the collection.
1065
+ */
1066
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1067
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1068
+ }
1069
+ /**
1070
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1071
+ *
1072
+ * @param {string} projectLocationCollectionEngineConversationName
1073
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1074
+ * @returns {string} A string representing the engine.
1075
+ */
1076
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1077
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1078
+ }
1079
+ /**
1080
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1081
+ *
1082
+ * @param {string} projectLocationCollectionEngineConversationName
1083
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1084
+ * @returns {string} A string representing the conversation.
1085
+ */
1086
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1087
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1088
+ }
1089
+ /**
1090
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1091
+ *
1092
+ * @param {string} project
1093
+ * @param {string} location
1094
+ * @param {string} collection
1095
+ * @param {string} engine
1096
+ * @param {string} serving_config
1097
+ * @returns {string} Resource name string.
1098
+ */
1099
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1100
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1101
+ project: project,
1102
+ location: location,
1103
+ collection: collection,
1104
+ engine: engine,
1105
+ serving_config: servingConfig,
1106
+ });
1107
+ }
1108
+ /**
1109
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1110
+ *
1111
+ * @param {string} projectLocationCollectionEngineServingConfigName
1112
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1113
+ * @returns {string} A string representing the project.
1114
+ */
1115
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1116
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1117
+ }
1118
+ /**
1119
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1120
+ *
1121
+ * @param {string} projectLocationCollectionEngineServingConfigName
1122
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1123
+ * @returns {string} A string representing the location.
1124
+ */
1125
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1126
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1127
+ }
1128
+ /**
1129
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1130
+ *
1131
+ * @param {string} projectLocationCollectionEngineServingConfigName
1132
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1133
+ * @returns {string} A string representing the collection.
1134
+ */
1135
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1136
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1137
+ }
1138
+ /**
1139
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1140
+ *
1141
+ * @param {string} projectLocationCollectionEngineServingConfigName
1142
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1143
+ * @returns {string} A string representing the engine.
1144
+ */
1145
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1146
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1147
+ }
1148
+ /**
1149
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1150
+ *
1151
+ * @param {string} projectLocationCollectionEngineServingConfigName
1152
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1153
+ * @returns {string} A string representing the serving_config.
1154
+ */
1155
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1156
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1157
+ }
1158
+ /**
1159
+ * Return a fully-qualified projectLocationDataStore resource name string.
1160
+ *
1161
+ * @param {string} project
1162
+ * @param {string} location
1163
+ * @param {string} data_store
1164
+ * @returns {string} Resource name string.
1165
+ */
1166
+ projectLocationDataStorePath(project, location, dataStore) {
1167
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1168
+ project: project,
1169
+ location: location,
1170
+ data_store: dataStore,
1171
+ });
1172
+ }
1173
+ /**
1174
+ * Parse the project from ProjectLocationDataStore resource.
1175
+ *
1176
+ * @param {string} projectLocationDataStoreName
1177
+ * A fully-qualified path representing project_location_data_store resource.
1178
+ * @returns {string} A string representing the project.
1179
+ */
1180
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1181
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1182
+ }
1183
+ /**
1184
+ * Parse the location from ProjectLocationDataStore resource.
1185
+ *
1186
+ * @param {string} projectLocationDataStoreName
1187
+ * A fully-qualified path representing project_location_data_store resource.
1188
+ * @returns {string} A string representing the location.
1189
+ */
1190
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1191
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1192
+ }
1193
+ /**
1194
+ * Parse the data_store from ProjectLocationDataStore resource.
1195
+ *
1196
+ * @param {string} projectLocationDataStoreName
1197
+ * A fully-qualified path representing project_location_data_store resource.
1198
+ * @returns {string} A string representing the data_store.
1199
+ */
1200
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1201
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1202
+ }
1203
+ /**
1204
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1205
+ *
1206
+ * @param {string} project
1207
+ * @param {string} location
1208
+ * @param {string} data_store
1209
+ * @param {string} branch
1210
+ * @param {string} document
1211
+ * @returns {string} Resource name string.
1212
+ */
1213
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1214
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1215
+ project: project,
1216
+ location: location,
1217
+ data_store: dataStore,
1218
+ branch: branch,
1219
+ document: document,
1220
+ });
1221
+ }
1222
+ /**
1223
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1224
+ *
1225
+ * @param {string} projectLocationDataStoreBranchDocumentName
1226
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1227
+ * @returns {string} A string representing the project.
1228
+ */
1229
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1230
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1231
+ }
1232
+ /**
1233
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1234
+ *
1235
+ * @param {string} projectLocationDataStoreBranchDocumentName
1236
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1237
+ * @returns {string} A string representing the location.
1238
+ */
1239
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1240
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1241
+ }
1242
+ /**
1243
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1244
+ *
1245
+ * @param {string} projectLocationDataStoreBranchDocumentName
1246
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1247
+ * @returns {string} A string representing the data_store.
1248
+ */
1249
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1250
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1251
+ }
1252
+ /**
1253
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1254
+ *
1255
+ * @param {string} projectLocationDataStoreBranchDocumentName
1256
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1257
+ * @returns {string} A string representing the branch.
1258
+ */
1259
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1260
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1261
+ }
1262
+ /**
1263
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1264
+ *
1265
+ * @param {string} projectLocationDataStoreBranchDocumentName
1266
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1267
+ * @returns {string} A string representing the document.
1268
+ */
1269
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1270
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1271
+ }
1272
+ /**
1273
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1274
+ *
1275
+ * @param {string} project
1276
+ * @param {string} location
1277
+ * @param {string} data_store
1278
+ * @param {string} conversation
1279
+ * @returns {string} Resource name string.
1280
+ */
1281
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1282
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1283
+ project: project,
1284
+ location: location,
1285
+ data_store: dataStore,
1286
+ conversation: conversation,
1287
+ });
1288
+ }
1289
+ /**
1290
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1291
+ *
1292
+ * @param {string} projectLocationDataStoreConversationName
1293
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1294
+ * @returns {string} A string representing the project.
1295
+ */
1296
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1297
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1298
+ }
1299
+ /**
1300
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1301
+ *
1302
+ * @param {string} projectLocationDataStoreConversationName
1303
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1304
+ * @returns {string} A string representing the location.
1305
+ */
1306
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1307
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1308
+ }
1309
+ /**
1310
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1311
+ *
1312
+ * @param {string} projectLocationDataStoreConversationName
1313
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1314
+ * @returns {string} A string representing the data_store.
1315
+ */
1316
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1317
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1318
+ }
1319
+ /**
1320
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1321
+ *
1322
+ * @param {string} projectLocationDataStoreConversationName
1323
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1324
+ * @returns {string} A string representing the conversation.
1325
+ */
1326
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1327
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1328
+ }
1329
+ /**
1330
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1331
+ *
1332
+ * @param {string} project
1333
+ * @param {string} location
1334
+ * @param {string} data_store
1335
+ * @param {string} schema
1336
+ * @returns {string} Resource name string.
1337
+ */
1338
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
1339
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
1340
+ project: project,
1341
+ location: location,
1342
+ data_store: dataStore,
1343
+ schema: schema,
1344
+ });
1345
+ }
1346
+ /**
1347
+ * Parse the project from ProjectLocationDataStoreSchema resource.
1348
+ *
1349
+ * @param {string} projectLocationDataStoreSchemaName
1350
+ * A fully-qualified path representing project_location_data_store_schema resource.
1351
+ * @returns {string} A string representing the project.
1352
+ */
1353
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1354
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
1355
+ }
1356
+ /**
1357
+ * Parse the location from ProjectLocationDataStoreSchema resource.
1358
+ *
1359
+ * @param {string} projectLocationDataStoreSchemaName
1360
+ * A fully-qualified path representing project_location_data_store_schema resource.
1361
+ * @returns {string} A string representing the location.
1362
+ */
1363
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1364
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1365
+ }
1366
+ /**
1367
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1368
+ *
1369
+ * @param {string} projectLocationDataStoreSchemaName
1370
+ * A fully-qualified path representing project_location_data_store_schema resource.
1371
+ * @returns {string} A string representing the data_store.
1372
+ */
1373
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1374
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1375
+ }
1376
+ /**
1377
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1378
+ *
1379
+ * @param {string} projectLocationDataStoreSchemaName
1380
+ * A fully-qualified path representing project_location_data_store_schema resource.
1381
+ * @returns {string} A string representing the schema.
1382
+ */
1383
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1384
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1385
+ }
1386
+ /**
1387
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1388
+ *
1389
+ * @param {string} project
1390
+ * @param {string} location
1391
+ * @param {string} data_store
1392
+ * @param {string} serving_config
1393
+ * @returns {string} Resource name string.
1394
+ */
1395
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1396
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1397
+ project: project,
1398
+ location: location,
1399
+ data_store: dataStore,
1400
+ serving_config: servingConfig,
1401
+ });
1402
+ }
1403
+ /**
1404
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1405
+ *
1406
+ * @param {string} projectLocationDataStoreServingConfigName
1407
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1408
+ * @returns {string} A string representing the project.
1409
+ */
1410
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1411
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1412
+ }
1413
+ /**
1414
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1415
+ *
1416
+ * @param {string} projectLocationDataStoreServingConfigName
1417
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1418
+ * @returns {string} A string representing the location.
1419
+ */
1420
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1421
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1422
+ }
1423
+ /**
1424
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1425
+ *
1426
+ * @param {string} projectLocationDataStoreServingConfigName
1427
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1428
+ * @returns {string} A string representing the data_store.
1429
+ */
1430
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1431
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1432
+ }
1433
+ /**
1434
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1435
+ *
1436
+ * @param {string} projectLocationDataStoreServingConfigName
1437
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1438
+ * @returns {string} A string representing the serving_config.
1439
+ */
1440
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1441
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1442
+ }
1443
+ /**
1444
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1445
+ *
1446
+ * @param {string} project
1447
+ * @param {string} location
1448
+ * @param {string} data_store
1449
+ * @returns {string} Resource name string.
1450
+ */
1451
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1452
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1453
+ project: project,
1454
+ location: location,
1455
+ data_store: dataStore,
1456
+ });
1457
+ }
1458
+ /**
1459
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1460
+ *
1461
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1462
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1463
+ * @returns {string} A string representing the project.
1464
+ */
1465
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1466
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1467
+ }
1468
+ /**
1469
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1470
+ *
1471
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1472
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1473
+ * @returns {string} A string representing the location.
1474
+ */
1475
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1476
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1477
+ }
1478
+ /**
1479
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1480
+ *
1481
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1482
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1483
+ * @returns {string} A string representing the data_store.
1484
+ */
1485
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1486
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1487
+ }
1488
+ /**
1489
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1490
+ *
1491
+ * @param {string} project
1492
+ * @param {string} location
1493
+ * @param {string} data_store
1494
+ * @param {string} target_site
1495
+ * @returns {string} Resource name string.
1496
+ */
1497
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1498
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1499
+ project: project,
1500
+ location: location,
1501
+ data_store: dataStore,
1502
+ target_site: targetSite,
1503
+ });
1504
+ }
1505
+ /**
1506
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1507
+ *
1508
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1509
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1510
+ * @returns {string} A string representing the project.
1511
+ */
1512
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1513
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1514
+ }
1515
+ /**
1516
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1517
+ *
1518
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1519
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1520
+ * @returns {string} A string representing the location.
1521
+ */
1522
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1523
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1524
+ }
1525
+ /**
1526
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1527
+ *
1528
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1529
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1530
+ * @returns {string} A string representing the data_store.
1531
+ */
1532
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1533
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
1534
+ }
1535
+ /**
1536
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1537
+ *
1538
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1539
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1540
+ * @returns {string} A string representing the target_site.
1541
+ */
1542
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1543
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
1544
+ }
1545
+ /**
1546
+ * Terminate the gRPC channel and close the client.
1547
+ *
1548
+ * The client will no longer be usable and all future behavior is undefined.
1549
+ * @returns {Promise} A promise that resolves when the client is closed.
1550
+ */
1551
+ close() {
1552
+ if (this.servingConfigServiceStub && !this._terminated) {
1553
+ return this.servingConfigServiceStub.then(stub => {
1554
+ this._terminated = true;
1555
+ stub.close();
1556
+ this.locationsClient.close();
1557
+ });
1558
+ }
1559
+ return Promise.resolve();
1560
+ }
1561
+ }
1562
+ exports.ServingConfigServiceClient = ServingConfigServiceClient;
1563
+ //# sourceMappingURL=serving_config_service_client.js.map