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