@google-cloud/discoveryengine 1.3.1 → 1.4.1

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