@google-cloud/discoveryengine 1.3.1 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
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,2032 @@
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.EngineServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/engine_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./engine_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for managing {@link protos.google.cloud.discoveryengine.v1beta.Engine|Engine}
31
+ * configuration.
32
+ * @class
33
+ * @memberof v1beta
34
+ */
35
+ class EngineServiceClient {
36
+ /**
37
+ * Construct an instance of EngineServiceClient.
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 EngineServiceClient({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
+ listEngines: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'engines'),
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 createEngineResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.Engine');
276
+ const createEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.CreateEngineMetadata');
277
+ const deleteEngineResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
278
+ const deleteEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.DeleteEngineMetadata');
279
+ this.descriptors.longrunning = {
280
+ createEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createEngineResponse.decode.bind(createEngineResponse), createEngineMetadata.decode.bind(createEngineMetadata)),
281
+ deleteEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteEngineResponse.decode.bind(deleteEngineResponse), deleteEngineMetadata.decode.bind(deleteEngineMetadata)),
282
+ };
283
+ // Put together the default options sent with requests.
284
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.EngineService', 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.engineServiceStub) {
306
+ return this.engineServiceStub;
307
+ }
308
+ // Put together the "service stub" for
309
+ // google.cloud.discoveryengine.v1beta.EngineService.
310
+ this.engineServiceStub = this._gaxGrpc.createStub(this._opts.fallback
311
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1beta.EngineService')
312
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
313
+ this._protos.google.cloud.discoveryengine.v1beta
314
+ .EngineService, 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 engineServiceStubMethods = [
318
+ 'createEngine',
319
+ 'deleteEngine',
320
+ 'updateEngine',
321
+ 'getEngine',
322
+ 'listEngines',
323
+ ];
324
+ for (const methodName of engineServiceStubMethods) {
325
+ const callPromise = this.engineServiceStub.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.engineServiceStub;
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
+ updateEngine(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
+ 'engine.name': (_a = request.engine.name) !== null && _a !== void 0 ? _a : '',
419
+ });
420
+ this.initialize();
421
+ return this.innerApiCalls.updateEngine(request, options, callback);
422
+ }
423
+ getEngine(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
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
440
+ });
441
+ this.initialize();
442
+ return this.innerApiCalls.getEngine(request, options, callback);
443
+ }
444
+ createEngine(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.createEngine(request, options, callback);
464
+ }
465
+ /**
466
+ * Check the status of the long running operation returned by `createEngine()`.
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/engine_service.create_engine.js</caption>
474
+ * region_tag:discoveryengine_v1beta_generated_EngineService_CreateEngine_async
475
+ */
476
+ async checkCreateEngineProgress(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.createEngine, this._gaxModule.createDefaultBackoffSettings());
480
+ return decodeOperation;
481
+ }
482
+ deleteEngine(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.deleteEngine(request, options, callback);
502
+ }
503
+ /**
504
+ * Check the status of the long running operation returned by `deleteEngine()`.
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/engine_service.delete_engine.js</caption>
512
+ * region_tag:discoveryengine_v1beta_generated_EngineService_DeleteEngine_async
513
+ */
514
+ async checkDeleteEngineProgress(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.deleteEngine, this._gaxModule.createDefaultBackoffSettings());
518
+ return decodeOperation;
519
+ }
520
+ listEngines(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.listEngines(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 resource name, such as
547
+ * `projects/{project}/locations/{location}/collections/{collection_id}`.
548
+ * @param {number} [request.pageSize]
549
+ * Optional. Not supported.
550
+ * @param {string} [request.pageToken]
551
+ * Optional. Not supported.
552
+ * @param {string} [request.filter]
553
+ * Optional. Filter by solution type. For example:
554
+ * solution_type=SOLUTION_TYPE_SEARCH
555
+ * @param {object} [options]
556
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
557
+ * @returns {Stream}
558
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1beta.Engine|Engine} on 'data' event.
559
+ * The client library will perform auto-pagination by default: it will call the API as many
560
+ * times as needed. Note that it can affect your quota.
561
+ * We recommend using `listEnginesAsync()`
562
+ * method described below for async iteration which you can stop as needed.
563
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
564
+ * for more details and examples.
565
+ */
566
+ listEnginesStream(request, options) {
567
+ var _a;
568
+ request = request || {};
569
+ options = options || {};
570
+ options.otherArgs = options.otherArgs || {};
571
+ options.otherArgs.headers = options.otherArgs.headers || {};
572
+ options.otherArgs.headers['x-goog-request-params'] =
573
+ this._gaxModule.routingHeader.fromParams({
574
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
575
+ });
576
+ const defaultCallSettings = this._defaults['listEngines'];
577
+ const callSettings = defaultCallSettings.merge(options);
578
+ this.initialize();
579
+ return this.descriptors.page.listEngines.createStream(this.innerApiCalls.listEngines, request, callSettings);
580
+ }
581
+ /**
582
+ * Equivalent to `listEngines`, but returns an iterable object.
583
+ *
584
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
585
+ * @param {Object} request
586
+ * The request object that will be sent.
587
+ * @param {string} request.parent
588
+ * Required. The parent resource name, such as
589
+ * `projects/{project}/locations/{location}/collections/{collection_id}`.
590
+ * @param {number} [request.pageSize]
591
+ * Optional. Not supported.
592
+ * @param {string} [request.pageToken]
593
+ * Optional. Not supported.
594
+ * @param {string} [request.filter]
595
+ * Optional. Filter by solution type. For example:
596
+ * solution_type=SOLUTION_TYPE_SEARCH
597
+ * @param {object} [options]
598
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
599
+ * @returns {Object}
600
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
601
+ * When you iterate the returned iterable, each element will be an object representing
602
+ * {@link protos.google.cloud.discoveryengine.v1beta.Engine|Engine}. The API will be called under the hood as needed, once per the page,
603
+ * so you can stop the iteration when you don't need more results.
604
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
605
+ * for more details and examples.
606
+ * @example <caption>include:samples/generated/v1beta/engine_service.list_engines.js</caption>
607
+ * region_tag:discoveryengine_v1beta_generated_EngineService_ListEngines_async
608
+ */
609
+ listEnginesAsync(request, options) {
610
+ var _a;
611
+ request = request || {};
612
+ options = options || {};
613
+ options.otherArgs = options.otherArgs || {};
614
+ options.otherArgs.headers = options.otherArgs.headers || {};
615
+ options.otherArgs.headers['x-goog-request-params'] =
616
+ this._gaxModule.routingHeader.fromParams({
617
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
618
+ });
619
+ const defaultCallSettings = this._defaults['listEngines'];
620
+ const callSettings = defaultCallSettings.merge(options);
621
+ this.initialize();
622
+ return this.descriptors.page.listEngines.asyncIterate(this.innerApiCalls['listEngines'], request, callSettings);
623
+ }
624
+ /**
625
+ * Gets information about a location.
626
+ *
627
+ * @param {Object} request
628
+ * The request object that will be sent.
629
+ * @param {string} request.name
630
+ * Resource name for the location.
631
+ * @param {object} [options]
632
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
633
+ * @returns {Promise} - The promise which resolves to an array.
634
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
635
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
636
+ * for more details and examples.
637
+ * @example
638
+ * ```
639
+ * const [response] = await client.getLocation(request);
640
+ * ```
641
+ */
642
+ getLocation(request, options, callback) {
643
+ return this.locationsClient.getLocation(request, options, callback);
644
+ }
645
+ /**
646
+ * Lists information about the supported locations for this service. Returns an iterable object.
647
+ *
648
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
649
+ * @param {Object} request
650
+ * The request object that will be sent.
651
+ * @param {string} request.name
652
+ * The resource that owns the locations collection, if applicable.
653
+ * @param {string} request.filter
654
+ * The standard list filter.
655
+ * @param {number} request.pageSize
656
+ * The standard list page size.
657
+ * @param {string} request.pageToken
658
+ * The standard list page token.
659
+ * @param {object} [options]
660
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
661
+ * @returns {Object}
662
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
663
+ * When you iterate the returned iterable, each element will be an object representing
664
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
665
+ * so you can stop the iteration when you don't need more results.
666
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
667
+ * for more details and examples.
668
+ * @example
669
+ * ```
670
+ * const iterable = client.listLocationsAsync(request);
671
+ * for await (const response of iterable) {
672
+ * // process response
673
+ * }
674
+ * ```
675
+ */
676
+ listLocationsAsync(request, options) {
677
+ return this.locationsClient.listLocationsAsync(request, options);
678
+ }
679
+ /**
680
+ * Gets the latest state of a long-running operation. Clients can use this
681
+ * method to poll the operation result at intervals as recommended by the API
682
+ * service.
683
+ *
684
+ * @param {Object} request - The request object that will be sent.
685
+ * @param {string} request.name - The name of the operation resource.
686
+ * @param {Object=} options
687
+ * Optional parameters. You can override the default settings for this call,
688
+ * e.g, timeout, retries, paginations, etc. See {@link
689
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
690
+ * for the details.
691
+ * @param {function(?Error, ?Object)=} callback
692
+ * The function which will be called with the result of the API call.
693
+ *
694
+ * The second parameter to the callback is an object representing
695
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
696
+ * @return {Promise} - The promise which resolves to an array.
697
+ * The first element of the array is an object representing
698
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
699
+ * The promise has a method named "cancel" which cancels the ongoing API call.
700
+ *
701
+ * @example
702
+ * ```
703
+ * const client = longrunning.operationsClient();
704
+ * const name = '';
705
+ * const [response] = await client.getOperation({name});
706
+ * // doThingsWith(response)
707
+ * ```
708
+ */
709
+ getOperation(request, options, callback) {
710
+ return this.operationsClient.getOperation(request, options, callback);
711
+ }
712
+ /**
713
+ * Lists operations that match the specified filter in the request. If the
714
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
715
+ *
716
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
717
+ *
718
+ * @param {Object} request - The request object that will be sent.
719
+ * @param {string} request.name - The name of the operation collection.
720
+ * @param {string} request.filter - The standard list filter.
721
+ * @param {number=} request.pageSize -
722
+ * The maximum number of resources contained in the underlying API
723
+ * response. If page streaming is performed per-resource, this
724
+ * parameter does not affect the return value. If page streaming is
725
+ * performed per-page, this determines the maximum number of
726
+ * resources in a page.
727
+ * @param {Object=} options
728
+ * Optional parameters. You can override the default settings for this call,
729
+ * e.g, timeout, retries, paginations, etc. See {@link
730
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
731
+ * details.
732
+ * @returns {Object}
733
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
734
+ *
735
+ * @example
736
+ * ```
737
+ * const client = longrunning.operationsClient();
738
+ * for await (const response of client.listOperationsAsync(request));
739
+ * // doThingsWith(response)
740
+ * ```
741
+ */
742
+ listOperationsAsync(request, options) {
743
+ return this.operationsClient.listOperationsAsync(request, options);
744
+ }
745
+ /**
746
+ * Starts asynchronous cancellation on a long-running operation. The server
747
+ * makes a best effort to cancel the operation, but success is not
748
+ * guaranteed. If the server doesn't support this method, it returns
749
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
750
+ * {@link Operations.GetOperation} or
751
+ * other methods to check whether the cancellation succeeded or whether the
752
+ * operation completed despite cancellation. On successful cancellation,
753
+ * the operation is not deleted; instead, it becomes an operation with
754
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
755
+ * 1, corresponding to `Code.CANCELLED`.
756
+ *
757
+ * @param {Object} request - The request object that will be sent.
758
+ * @param {string} request.name - The name of the operation resource to be cancelled.
759
+ * @param {Object=} options
760
+ * Optional parameters. You can override the default settings for this call,
761
+ * e.g, timeout, retries, paginations, etc. See {@link
762
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
763
+ * details.
764
+ * @param {function(?Error)=} callback
765
+ * The function which will be called with the result of the API call.
766
+ * @return {Promise} - The promise which resolves when API call finishes.
767
+ * The promise has a method named "cancel" which cancels the ongoing API
768
+ * call.
769
+ *
770
+ * @example
771
+ * ```
772
+ * const client = longrunning.operationsClient();
773
+ * await client.cancelOperation({name: ''});
774
+ * ```
775
+ */
776
+ cancelOperation(request, options, callback) {
777
+ return this.operationsClient.cancelOperation(request, options, callback);
778
+ }
779
+ /**
780
+ * Deletes a long-running operation. This method indicates that the client is
781
+ * no longer interested in the operation result. It does not cancel the
782
+ * operation. If the server doesn't support this method, it returns
783
+ * `google.rpc.Code.UNIMPLEMENTED`.
784
+ *
785
+ * @param {Object} request - The request object that will be sent.
786
+ * @param {string} request.name - The name of the operation resource to be deleted.
787
+ * @param {Object=} options
788
+ * Optional parameters. You can override the default settings for this call,
789
+ * e.g, timeout, retries, paginations, etc. See {@link
790
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
791
+ * for the details.
792
+ * @param {function(?Error)=} callback
793
+ * The function which will be called with the result of the API call.
794
+ * @return {Promise} - The promise which resolves when API call finishes.
795
+ * The promise has a method named "cancel" which cancels the ongoing API
796
+ * call.
797
+ *
798
+ * @example
799
+ * ```
800
+ * const client = longrunning.operationsClient();
801
+ * await client.deleteOperation({name: ''});
802
+ * ```
803
+ */
804
+ deleteOperation(request, options, callback) {
805
+ return this.operationsClient.deleteOperation(request, options, callback);
806
+ }
807
+ // --------------------
808
+ // -- Path templates --
809
+ // --------------------
810
+ /**
811
+ * Return a fully-qualified collection resource name string.
812
+ *
813
+ * @param {string} project
814
+ * @param {string} location
815
+ * @param {string} collection
816
+ * @returns {string} Resource name string.
817
+ */
818
+ collectionPath(project, location, collection) {
819
+ return this.pathTemplates.collectionPathTemplate.render({
820
+ project: project,
821
+ location: location,
822
+ collection: collection,
823
+ });
824
+ }
825
+ /**
826
+ * Parse the project from Collection resource.
827
+ *
828
+ * @param {string} collectionName
829
+ * A fully-qualified path representing Collection resource.
830
+ * @returns {string} A string representing the project.
831
+ */
832
+ matchProjectFromCollectionName(collectionName) {
833
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
834
+ .project;
835
+ }
836
+ /**
837
+ * Parse the location from Collection resource.
838
+ *
839
+ * @param {string} collectionName
840
+ * A fully-qualified path representing Collection resource.
841
+ * @returns {string} A string representing the location.
842
+ */
843
+ matchLocationFromCollectionName(collectionName) {
844
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
845
+ .location;
846
+ }
847
+ /**
848
+ * Parse the collection from Collection resource.
849
+ *
850
+ * @param {string} collectionName
851
+ * A fully-qualified path representing Collection resource.
852
+ * @returns {string} A string representing the collection.
853
+ */
854
+ matchCollectionFromCollectionName(collectionName) {
855
+ return this.pathTemplates.collectionPathTemplate.match(collectionName)
856
+ .collection;
857
+ }
858
+ /**
859
+ * Return a fully-qualified engine resource name string.
860
+ *
861
+ * @param {string} project
862
+ * @param {string} location
863
+ * @param {string} collection
864
+ * @param {string} engine
865
+ * @returns {string} Resource name string.
866
+ */
867
+ enginePath(project, location, collection, engine) {
868
+ return this.pathTemplates.enginePathTemplate.render({
869
+ project: project,
870
+ location: location,
871
+ collection: collection,
872
+ engine: engine,
873
+ });
874
+ }
875
+ /**
876
+ * Parse the project from Engine resource.
877
+ *
878
+ * @param {string} engineName
879
+ * A fully-qualified path representing Engine resource.
880
+ * @returns {string} A string representing the project.
881
+ */
882
+ matchProjectFromEngineName(engineName) {
883
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
884
+ }
885
+ /**
886
+ * Parse the location from Engine resource.
887
+ *
888
+ * @param {string} engineName
889
+ * A fully-qualified path representing Engine resource.
890
+ * @returns {string} A string representing the location.
891
+ */
892
+ matchLocationFromEngineName(engineName) {
893
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
894
+ }
895
+ /**
896
+ * Parse the collection from Engine resource.
897
+ *
898
+ * @param {string} engineName
899
+ * A fully-qualified path representing Engine resource.
900
+ * @returns {string} A string representing the collection.
901
+ */
902
+ matchCollectionFromEngineName(engineName) {
903
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
904
+ }
905
+ /**
906
+ * Parse the engine from Engine resource.
907
+ *
908
+ * @param {string} engineName
909
+ * A fully-qualified path representing Engine resource.
910
+ * @returns {string} A string representing the engine.
911
+ */
912
+ matchEngineFromEngineName(engineName) {
913
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
914
+ }
915
+ /**
916
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
917
+ *
918
+ * @param {string} project
919
+ * @param {string} location
920
+ * @param {string} collection
921
+ * @param {string} data_store
922
+ * @returns {string} Resource name string.
923
+ */
924
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
925
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
926
+ project: project,
927
+ location: location,
928
+ collection: collection,
929
+ data_store: dataStore,
930
+ });
931
+ }
932
+ /**
933
+ * Parse the project from ProjectLocationCollectionDataStore resource.
934
+ *
935
+ * @param {string} projectLocationCollectionDataStoreName
936
+ * A fully-qualified path representing project_location_collection_data_store resource.
937
+ * @returns {string} A string representing the project.
938
+ */
939
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
940
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
941
+ }
942
+ /**
943
+ * Parse the location from ProjectLocationCollectionDataStore resource.
944
+ *
945
+ * @param {string} projectLocationCollectionDataStoreName
946
+ * A fully-qualified path representing project_location_collection_data_store resource.
947
+ * @returns {string} A string representing the location.
948
+ */
949
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
950
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
951
+ }
952
+ /**
953
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
954
+ *
955
+ * @param {string} projectLocationCollectionDataStoreName
956
+ * A fully-qualified path representing project_location_collection_data_store resource.
957
+ * @returns {string} A string representing the collection.
958
+ */
959
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
960
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
961
+ }
962
+ /**
963
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
964
+ *
965
+ * @param {string} projectLocationCollectionDataStoreName
966
+ * A fully-qualified path representing project_location_collection_data_store resource.
967
+ * @returns {string} A string representing the data_store.
968
+ */
969
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
970
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
971
+ }
972
+ /**
973
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
974
+ *
975
+ * @param {string} project
976
+ * @param {string} location
977
+ * @param {string} collection
978
+ * @param {string} data_store
979
+ * @param {string} branch
980
+ * @param {string} document
981
+ * @returns {string} Resource name string.
982
+ */
983
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
984
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
985
+ project: project,
986
+ location: location,
987
+ collection: collection,
988
+ data_store: dataStore,
989
+ branch: branch,
990
+ document: document,
991
+ });
992
+ }
993
+ /**
994
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
995
+ *
996
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
997
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
998
+ * @returns {string} A string representing the project.
999
+ */
1000
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1001
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
1002
+ }
1003
+ /**
1004
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
1005
+ *
1006
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1007
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1008
+ * @returns {string} A string representing the location.
1009
+ */
1010
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1011
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
1012
+ }
1013
+ /**
1014
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
1015
+ *
1016
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1017
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1018
+ * @returns {string} A string representing the collection.
1019
+ */
1020
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1021
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
1022
+ }
1023
+ /**
1024
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
1025
+ *
1026
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1027
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1028
+ * @returns {string} A string representing the data_store.
1029
+ */
1030
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1031
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
1032
+ }
1033
+ /**
1034
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
1035
+ *
1036
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1037
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1038
+ * @returns {string} A string representing the branch.
1039
+ */
1040
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1041
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
1042
+ }
1043
+ /**
1044
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
1045
+ *
1046
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1047
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1048
+ * @returns {string} A string representing the document.
1049
+ */
1050
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1051
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1052
+ }
1053
+ /**
1054
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1055
+ *
1056
+ * @param {string} project
1057
+ * @param {string} location
1058
+ * @param {string} collection
1059
+ * @param {string} data_store
1060
+ * @param {string} conversation
1061
+ * @returns {string} Resource name string.
1062
+ */
1063
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1064
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1065
+ project: project,
1066
+ location: location,
1067
+ collection: collection,
1068
+ data_store: dataStore,
1069
+ conversation: conversation,
1070
+ });
1071
+ }
1072
+ /**
1073
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1074
+ *
1075
+ * @param {string} projectLocationCollectionDataStoreConversationName
1076
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1077
+ * @returns {string} A string representing the project.
1078
+ */
1079
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1080
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1081
+ }
1082
+ /**
1083
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1084
+ *
1085
+ * @param {string} projectLocationCollectionDataStoreConversationName
1086
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1087
+ * @returns {string} A string representing the location.
1088
+ */
1089
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1090
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1091
+ }
1092
+ /**
1093
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1094
+ *
1095
+ * @param {string} projectLocationCollectionDataStoreConversationName
1096
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1097
+ * @returns {string} A string representing the collection.
1098
+ */
1099
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1100
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1101
+ }
1102
+ /**
1103
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1104
+ *
1105
+ * @param {string} projectLocationCollectionDataStoreConversationName
1106
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1107
+ * @returns {string} A string representing the data_store.
1108
+ */
1109
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1110
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1111
+ }
1112
+ /**
1113
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1114
+ *
1115
+ * @param {string} projectLocationCollectionDataStoreConversationName
1116
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1117
+ * @returns {string} A string representing the conversation.
1118
+ */
1119
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1120
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1121
+ }
1122
+ /**
1123
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1124
+ *
1125
+ * @param {string} project
1126
+ * @param {string} location
1127
+ * @param {string} collection
1128
+ * @param {string} data_store
1129
+ * @returns {string} Resource name string.
1130
+ */
1131
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1132
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1133
+ project: project,
1134
+ location: location,
1135
+ collection: collection,
1136
+ data_store: dataStore,
1137
+ });
1138
+ }
1139
+ /**
1140
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1141
+ *
1142
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1143
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1144
+ * @returns {string} A string representing the project.
1145
+ */
1146
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1147
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1148
+ }
1149
+ /**
1150
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1151
+ *
1152
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1153
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1154
+ * @returns {string} A string representing the location.
1155
+ */
1156
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1157
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1158
+ }
1159
+ /**
1160
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1161
+ *
1162
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1163
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1164
+ * @returns {string} A string representing the collection.
1165
+ */
1166
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1167
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1168
+ }
1169
+ /**
1170
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1171
+ *
1172
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1173
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1174
+ * @returns {string} A string representing the data_store.
1175
+ */
1176
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1177
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1178
+ }
1179
+ /**
1180
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1181
+ *
1182
+ * @param {string} project
1183
+ * @param {string} location
1184
+ * @param {string} collection
1185
+ * @param {string} data_store
1186
+ * @param {string} schema
1187
+ * @returns {string} Resource name string.
1188
+ */
1189
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
1190
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
1191
+ project: project,
1192
+ location: location,
1193
+ collection: collection,
1194
+ data_store: dataStore,
1195
+ schema: schema,
1196
+ });
1197
+ }
1198
+ /**
1199
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
1200
+ *
1201
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1202
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1203
+ * @returns {string} A string representing the project.
1204
+ */
1205
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1206
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1207
+ }
1208
+ /**
1209
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1210
+ *
1211
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1212
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1213
+ * @returns {string} A string representing the location.
1214
+ */
1215
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1216
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1217
+ }
1218
+ /**
1219
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1220
+ *
1221
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1222
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1223
+ * @returns {string} A string representing the collection.
1224
+ */
1225
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1226
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1227
+ }
1228
+ /**
1229
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1230
+ *
1231
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1232
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1233
+ * @returns {string} A string representing the data_store.
1234
+ */
1235
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1236
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1237
+ }
1238
+ /**
1239
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1240
+ *
1241
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1242
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1243
+ * @returns {string} A string representing the schema.
1244
+ */
1245
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1246
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1247
+ }
1248
+ /**
1249
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1250
+ *
1251
+ * @param {string} project
1252
+ * @param {string} location
1253
+ * @param {string} collection
1254
+ * @param {string} data_store
1255
+ * @param {string} serving_config
1256
+ * @returns {string} Resource name string.
1257
+ */
1258
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1259
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1260
+ project: project,
1261
+ location: location,
1262
+ collection: collection,
1263
+ data_store: dataStore,
1264
+ serving_config: servingConfig,
1265
+ });
1266
+ }
1267
+ /**
1268
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1269
+ *
1270
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1271
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1272
+ * @returns {string} A string representing the project.
1273
+ */
1274
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1275
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1276
+ }
1277
+ /**
1278
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1279
+ *
1280
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1281
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1282
+ * @returns {string} A string representing the location.
1283
+ */
1284
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1285
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1286
+ }
1287
+ /**
1288
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1289
+ *
1290
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1291
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1292
+ * @returns {string} A string representing the collection.
1293
+ */
1294
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1295
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1296
+ }
1297
+ /**
1298
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1299
+ *
1300
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1301
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1302
+ * @returns {string} A string representing the data_store.
1303
+ */
1304
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1305
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1306
+ }
1307
+ /**
1308
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1309
+ *
1310
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1311
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1312
+ * @returns {string} A string representing the serving_config.
1313
+ */
1314
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1315
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1316
+ }
1317
+ /**
1318
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1319
+ *
1320
+ * @param {string} project
1321
+ * @param {string} location
1322
+ * @param {string} collection
1323
+ * @param {string} data_store
1324
+ * @returns {string} Resource name string.
1325
+ */
1326
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1327
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1328
+ project: project,
1329
+ location: location,
1330
+ collection: collection,
1331
+ data_store: dataStore,
1332
+ });
1333
+ }
1334
+ /**
1335
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1336
+ *
1337
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1338
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1339
+ * @returns {string} A string representing the project.
1340
+ */
1341
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1342
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1343
+ }
1344
+ /**
1345
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1346
+ *
1347
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1348
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1349
+ * @returns {string} A string representing the location.
1350
+ */
1351
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1352
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1353
+ }
1354
+ /**
1355
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1356
+ *
1357
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1358
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1359
+ * @returns {string} A string representing the collection.
1360
+ */
1361
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1362
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1363
+ }
1364
+ /**
1365
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1366
+ *
1367
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1368
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1369
+ * @returns {string} A string representing the data_store.
1370
+ */
1371
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1372
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1373
+ }
1374
+ /**
1375
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1376
+ *
1377
+ * @param {string} project
1378
+ * @param {string} location
1379
+ * @param {string} collection
1380
+ * @param {string} data_store
1381
+ * @param {string} target_site
1382
+ * @returns {string} Resource name string.
1383
+ */
1384
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1385
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1386
+ project: project,
1387
+ location: location,
1388
+ collection: collection,
1389
+ data_store: dataStore,
1390
+ target_site: targetSite,
1391
+ });
1392
+ }
1393
+ /**
1394
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1395
+ *
1396
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1397
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1398
+ * @returns {string} A string representing the project.
1399
+ */
1400
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1401
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1402
+ }
1403
+ /**
1404
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1405
+ *
1406
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1407
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1408
+ * @returns {string} A string representing the location.
1409
+ */
1410
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1411
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1412
+ }
1413
+ /**
1414
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1415
+ *
1416
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1417
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1418
+ * @returns {string} A string representing the collection.
1419
+ */
1420
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1421
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1422
+ }
1423
+ /**
1424
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1425
+ *
1426
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1427
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1428
+ * @returns {string} A string representing the data_store.
1429
+ */
1430
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1431
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1432
+ }
1433
+ /**
1434
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1435
+ *
1436
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1437
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1438
+ * @returns {string} A string representing the target_site.
1439
+ */
1440
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1441
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1442
+ }
1443
+ /**
1444
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1445
+ *
1446
+ * @param {string} project
1447
+ * @param {string} location
1448
+ * @param {string} collection
1449
+ * @param {string} engine
1450
+ * @param {string} conversation
1451
+ * @returns {string} Resource name string.
1452
+ */
1453
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1454
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1455
+ project: project,
1456
+ location: location,
1457
+ collection: collection,
1458
+ engine: engine,
1459
+ conversation: conversation,
1460
+ });
1461
+ }
1462
+ /**
1463
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1464
+ *
1465
+ * @param {string} projectLocationCollectionEngineConversationName
1466
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1467
+ * @returns {string} A string representing the project.
1468
+ */
1469
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1470
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1471
+ }
1472
+ /**
1473
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1474
+ *
1475
+ * @param {string} projectLocationCollectionEngineConversationName
1476
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1477
+ * @returns {string} A string representing the location.
1478
+ */
1479
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1480
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1481
+ }
1482
+ /**
1483
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1484
+ *
1485
+ * @param {string} projectLocationCollectionEngineConversationName
1486
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1487
+ * @returns {string} A string representing the collection.
1488
+ */
1489
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1490
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1491
+ }
1492
+ /**
1493
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1494
+ *
1495
+ * @param {string} projectLocationCollectionEngineConversationName
1496
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1497
+ * @returns {string} A string representing the engine.
1498
+ */
1499
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1500
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1501
+ }
1502
+ /**
1503
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1504
+ *
1505
+ * @param {string} projectLocationCollectionEngineConversationName
1506
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1507
+ * @returns {string} A string representing the conversation.
1508
+ */
1509
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1510
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1511
+ }
1512
+ /**
1513
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1514
+ *
1515
+ * @param {string} project
1516
+ * @param {string} location
1517
+ * @param {string} collection
1518
+ * @param {string} engine
1519
+ * @param {string} serving_config
1520
+ * @returns {string} Resource name string.
1521
+ */
1522
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1523
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1524
+ project: project,
1525
+ location: location,
1526
+ collection: collection,
1527
+ engine: engine,
1528
+ serving_config: servingConfig,
1529
+ });
1530
+ }
1531
+ /**
1532
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1533
+ *
1534
+ * @param {string} projectLocationCollectionEngineServingConfigName
1535
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1536
+ * @returns {string} A string representing the project.
1537
+ */
1538
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1539
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1540
+ }
1541
+ /**
1542
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1543
+ *
1544
+ * @param {string} projectLocationCollectionEngineServingConfigName
1545
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1546
+ * @returns {string} A string representing the location.
1547
+ */
1548
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1549
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1550
+ }
1551
+ /**
1552
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1553
+ *
1554
+ * @param {string} projectLocationCollectionEngineServingConfigName
1555
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1556
+ * @returns {string} A string representing the collection.
1557
+ */
1558
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1559
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1560
+ }
1561
+ /**
1562
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1563
+ *
1564
+ * @param {string} projectLocationCollectionEngineServingConfigName
1565
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1566
+ * @returns {string} A string representing the engine.
1567
+ */
1568
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1569
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1570
+ }
1571
+ /**
1572
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1573
+ *
1574
+ * @param {string} projectLocationCollectionEngineServingConfigName
1575
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1576
+ * @returns {string} A string representing the serving_config.
1577
+ */
1578
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1579
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1580
+ }
1581
+ /**
1582
+ * Return a fully-qualified projectLocationDataStore resource name string.
1583
+ *
1584
+ * @param {string} project
1585
+ * @param {string} location
1586
+ * @param {string} data_store
1587
+ * @returns {string} Resource name string.
1588
+ */
1589
+ projectLocationDataStorePath(project, location, dataStore) {
1590
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1591
+ project: project,
1592
+ location: location,
1593
+ data_store: dataStore,
1594
+ });
1595
+ }
1596
+ /**
1597
+ * Parse the project from ProjectLocationDataStore resource.
1598
+ *
1599
+ * @param {string} projectLocationDataStoreName
1600
+ * A fully-qualified path representing project_location_data_store resource.
1601
+ * @returns {string} A string representing the project.
1602
+ */
1603
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1604
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1605
+ }
1606
+ /**
1607
+ * Parse the location from ProjectLocationDataStore resource.
1608
+ *
1609
+ * @param {string} projectLocationDataStoreName
1610
+ * A fully-qualified path representing project_location_data_store resource.
1611
+ * @returns {string} A string representing the location.
1612
+ */
1613
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1614
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1615
+ }
1616
+ /**
1617
+ * Parse the data_store from ProjectLocationDataStore resource.
1618
+ *
1619
+ * @param {string} projectLocationDataStoreName
1620
+ * A fully-qualified path representing project_location_data_store resource.
1621
+ * @returns {string} A string representing the data_store.
1622
+ */
1623
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1624
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1625
+ }
1626
+ /**
1627
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1628
+ *
1629
+ * @param {string} project
1630
+ * @param {string} location
1631
+ * @param {string} data_store
1632
+ * @param {string} branch
1633
+ * @param {string} document
1634
+ * @returns {string} Resource name string.
1635
+ */
1636
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1637
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1638
+ project: project,
1639
+ location: location,
1640
+ data_store: dataStore,
1641
+ branch: branch,
1642
+ document: document,
1643
+ });
1644
+ }
1645
+ /**
1646
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1647
+ *
1648
+ * @param {string} projectLocationDataStoreBranchDocumentName
1649
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1650
+ * @returns {string} A string representing the project.
1651
+ */
1652
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1653
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1654
+ }
1655
+ /**
1656
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
1657
+ *
1658
+ * @param {string} projectLocationDataStoreBranchDocumentName
1659
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1660
+ * @returns {string} A string representing the location.
1661
+ */
1662
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1663
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
1664
+ }
1665
+ /**
1666
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
1667
+ *
1668
+ * @param {string} projectLocationDataStoreBranchDocumentName
1669
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1670
+ * @returns {string} A string representing the data_store.
1671
+ */
1672
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1673
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
1674
+ }
1675
+ /**
1676
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
1677
+ *
1678
+ * @param {string} projectLocationDataStoreBranchDocumentName
1679
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1680
+ * @returns {string} A string representing the branch.
1681
+ */
1682
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1683
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
1684
+ }
1685
+ /**
1686
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
1687
+ *
1688
+ * @param {string} projectLocationDataStoreBranchDocumentName
1689
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1690
+ * @returns {string} A string representing the document.
1691
+ */
1692
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1693
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1694
+ }
1695
+ /**
1696
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1697
+ *
1698
+ * @param {string} project
1699
+ * @param {string} location
1700
+ * @param {string} data_store
1701
+ * @param {string} conversation
1702
+ * @returns {string} Resource name string.
1703
+ */
1704
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
1705
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
1706
+ project: project,
1707
+ location: location,
1708
+ data_store: dataStore,
1709
+ conversation: conversation,
1710
+ });
1711
+ }
1712
+ /**
1713
+ * Parse the project from ProjectLocationDataStoreConversation resource.
1714
+ *
1715
+ * @param {string} projectLocationDataStoreConversationName
1716
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1717
+ * @returns {string} A string representing the project.
1718
+ */
1719
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1720
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
1721
+ }
1722
+ /**
1723
+ * Parse the location from ProjectLocationDataStoreConversation resource.
1724
+ *
1725
+ * @param {string} projectLocationDataStoreConversationName
1726
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1727
+ * @returns {string} A string representing the location.
1728
+ */
1729
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1730
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
1731
+ }
1732
+ /**
1733
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
1734
+ *
1735
+ * @param {string} projectLocationDataStoreConversationName
1736
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1737
+ * @returns {string} A string representing the data_store.
1738
+ */
1739
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1740
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
1741
+ }
1742
+ /**
1743
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
1744
+ *
1745
+ * @param {string} projectLocationDataStoreConversationName
1746
+ * A fully-qualified path representing project_location_data_store_conversation resource.
1747
+ * @returns {string} A string representing the conversation.
1748
+ */
1749
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1750
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1751
+ }
1752
+ /**
1753
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1754
+ *
1755
+ * @param {string} project
1756
+ * @param {string} location
1757
+ * @param {string} data_store
1758
+ * @returns {string} Resource name string.
1759
+ */
1760
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1761
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1762
+ project: project,
1763
+ location: location,
1764
+ data_store: dataStore,
1765
+ });
1766
+ }
1767
+ /**
1768
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1769
+ *
1770
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1771
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1772
+ * @returns {string} A string representing the project.
1773
+ */
1774
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1775
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1776
+ }
1777
+ /**
1778
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1779
+ *
1780
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1781
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1782
+ * @returns {string} A string representing the location.
1783
+ */
1784
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1785
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1786
+ }
1787
+ /**
1788
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1789
+ *
1790
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1791
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1792
+ * @returns {string} A string representing the data_store.
1793
+ */
1794
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1795
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1796
+ }
1797
+ /**
1798
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1799
+ *
1800
+ * @param {string} project
1801
+ * @param {string} location
1802
+ * @param {string} data_store
1803
+ * @param {string} schema
1804
+ * @returns {string} Resource name string.
1805
+ */
1806
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
1807
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
1808
+ project: project,
1809
+ location: location,
1810
+ data_store: dataStore,
1811
+ schema: schema,
1812
+ });
1813
+ }
1814
+ /**
1815
+ * Parse the project from ProjectLocationDataStoreSchema resource.
1816
+ *
1817
+ * @param {string} projectLocationDataStoreSchemaName
1818
+ * A fully-qualified path representing project_location_data_store_schema resource.
1819
+ * @returns {string} A string representing the project.
1820
+ */
1821
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1822
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
1823
+ }
1824
+ /**
1825
+ * Parse the location from ProjectLocationDataStoreSchema resource.
1826
+ *
1827
+ * @param {string} projectLocationDataStoreSchemaName
1828
+ * A fully-qualified path representing project_location_data_store_schema resource.
1829
+ * @returns {string} A string representing the location.
1830
+ */
1831
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1832
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
1833
+ }
1834
+ /**
1835
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
1836
+ *
1837
+ * @param {string} projectLocationDataStoreSchemaName
1838
+ * A fully-qualified path representing project_location_data_store_schema resource.
1839
+ * @returns {string} A string representing the data_store.
1840
+ */
1841
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1842
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
1843
+ }
1844
+ /**
1845
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
1846
+ *
1847
+ * @param {string} projectLocationDataStoreSchemaName
1848
+ * A fully-qualified path representing project_location_data_store_schema resource.
1849
+ * @returns {string} A string representing the schema.
1850
+ */
1851
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1852
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1853
+ }
1854
+ /**
1855
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1856
+ *
1857
+ * @param {string} project
1858
+ * @param {string} location
1859
+ * @param {string} data_store
1860
+ * @param {string} serving_config
1861
+ * @returns {string} Resource name string.
1862
+ */
1863
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1864
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1865
+ project: project,
1866
+ location: location,
1867
+ data_store: dataStore,
1868
+ serving_config: servingConfig,
1869
+ });
1870
+ }
1871
+ /**
1872
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1873
+ *
1874
+ * @param {string} projectLocationDataStoreServingConfigName
1875
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1876
+ * @returns {string} A string representing the project.
1877
+ */
1878
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1879
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1880
+ }
1881
+ /**
1882
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1883
+ *
1884
+ * @param {string} projectLocationDataStoreServingConfigName
1885
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1886
+ * @returns {string} A string representing the location.
1887
+ */
1888
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1889
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1890
+ }
1891
+ /**
1892
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1893
+ *
1894
+ * @param {string} projectLocationDataStoreServingConfigName
1895
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1896
+ * @returns {string} A string representing the data_store.
1897
+ */
1898
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1899
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1900
+ }
1901
+ /**
1902
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1903
+ *
1904
+ * @param {string} projectLocationDataStoreServingConfigName
1905
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1906
+ * @returns {string} A string representing the serving_config.
1907
+ */
1908
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1909
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1910
+ }
1911
+ /**
1912
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1913
+ *
1914
+ * @param {string} project
1915
+ * @param {string} location
1916
+ * @param {string} data_store
1917
+ * @returns {string} Resource name string.
1918
+ */
1919
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
1920
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
1921
+ project: project,
1922
+ location: location,
1923
+ data_store: dataStore,
1924
+ });
1925
+ }
1926
+ /**
1927
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
1928
+ *
1929
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1930
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1931
+ * @returns {string} A string representing the project.
1932
+ */
1933
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1934
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
1935
+ }
1936
+ /**
1937
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
1938
+ *
1939
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1940
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1941
+ * @returns {string} A string representing the location.
1942
+ */
1943
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1944
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
1945
+ }
1946
+ /**
1947
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
1948
+ *
1949
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
1950
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
1951
+ * @returns {string} A string representing the data_store.
1952
+ */
1953
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
1954
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
1955
+ }
1956
+ /**
1957
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
1958
+ *
1959
+ * @param {string} project
1960
+ * @param {string} location
1961
+ * @param {string} data_store
1962
+ * @param {string} target_site
1963
+ * @returns {string} Resource name string.
1964
+ */
1965
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
1966
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1967
+ project: project,
1968
+ location: location,
1969
+ data_store: dataStore,
1970
+ target_site: targetSite,
1971
+ });
1972
+ }
1973
+ /**
1974
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1975
+ *
1976
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1977
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1978
+ * @returns {string} A string representing the project.
1979
+ */
1980
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1981
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
1982
+ }
1983
+ /**
1984
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1985
+ *
1986
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1987
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1988
+ * @returns {string} A string representing the location.
1989
+ */
1990
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
1991
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
1992
+ }
1993
+ /**
1994
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
1995
+ *
1996
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
1997
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
1998
+ * @returns {string} A string representing the data_store.
1999
+ */
2000
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2001
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
2002
+ }
2003
+ /**
2004
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2005
+ *
2006
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2007
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2008
+ * @returns {string} A string representing the target_site.
2009
+ */
2010
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2011
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2012
+ }
2013
+ /**
2014
+ * Terminate the gRPC channel and close the client.
2015
+ *
2016
+ * The client will no longer be usable and all future behavior is undefined.
2017
+ * @returns {Promise} A promise that resolves when the client is closed.
2018
+ */
2019
+ close() {
2020
+ if (this.engineServiceStub && !this._terminated) {
2021
+ return this.engineServiceStub.then(stub => {
2022
+ this._terminated = true;
2023
+ stub.close();
2024
+ this.locationsClient.close();
2025
+ this.operationsClient.close();
2026
+ });
2027
+ }
2028
+ return Promise.resolve();
2029
+ }
2030
+ }
2031
+ exports.EngineServiceClient = EngineServiceClient;
2032
+ //# sourceMappingURL=engine_service_client.js.map