@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,2375 @@
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.SiteSearchEngineServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/site_search_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("./site_search_engine_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for managing site search related resources.
31
+ * @class
32
+ * @memberof v1beta
33
+ */
34
+ class SiteSearchEngineServiceClient {
35
+ /**
36
+ * Construct an instance of SiteSearchEngineServiceClient.
37
+ *
38
+ * @param {object} [options] - The configuration object.
39
+ * The options accepted by the constructor are described in detail
40
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
41
+ * The common options are:
42
+ * @param {object} [options.credentials] - Credentials object.
43
+ * @param {string} [options.credentials.client_email]
44
+ * @param {string} [options.credentials.private_key]
45
+ * @param {string} [options.email] - Account email address. Required when
46
+ * using a .pem or .p12 keyFilename.
47
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
48
+ * .p12 key downloaded from the Google Developers Console. If you provide
49
+ * a path to a JSON file, the projectId option below is not necessary.
50
+ * NOTE: .pem and .p12 require you to specify options.email as well.
51
+ * @param {number} [options.port] - The port on which to connect to
52
+ * the remote host.
53
+ * @param {string} [options.projectId] - The project ID from the Google
54
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
55
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
56
+ * app is running in an environment which supports
57
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
58
+ * your project ID will be detected automatically.
59
+ * @param {string} [options.apiEndpoint] - The domain name of the
60
+ * API remote host.
61
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
+ * Follows the structure of {@link gapicConfig}.
63
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
64
+ * For more information, please check the
65
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
66
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
67
+ * need to avoid loading the default gRPC version and want to use the fallback
68
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
69
+ * ```
70
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
71
+ * const client = new SiteSearchEngineServiceClient({fallback: true}, gax);
72
+ * ```
73
+ */
74
+ constructor(opts, gaxInstance) {
75
+ var _a, _b, _c, _d;
76
+ this._terminated = false;
77
+ this.descriptors = {
78
+ page: {},
79
+ stream: {},
80
+ longrunning: {},
81
+ batching: {},
82
+ };
83
+ // Ensure that options include all the required fields.
84
+ const staticMembers = this
85
+ .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
+ enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
151
+ projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
152
+ projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
153
+ projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
154
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
155
+ projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
156
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
157
+ projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
158
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
159
+ projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
160
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
161
+ projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
162
+ projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
163
+ projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
164
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
165
+ projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
166
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
167
+ projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
168
+ projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
169
+ };
170
+ // Some of the methods on this service return "paged" results,
171
+ // (e.g. 50 results at a time, with tokens to get subsequent
172
+ // pages). Denote the keys used for pagination and results.
173
+ this.descriptors.page = {
174
+ listTargetSites: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'targetSites'),
175
+ fetchDomainVerificationStatus: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'targetSites'),
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 createTargetSiteResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.TargetSite');
276
+ const createTargetSiteMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.CreateTargetSiteMetadata');
277
+ const batchCreateTargetSitesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesResponse');
278
+ const batchCreateTargetSitesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.BatchCreateTargetSiteMetadata');
279
+ const updateTargetSiteResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.TargetSite');
280
+ const updateTargetSiteMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.UpdateTargetSiteMetadata');
281
+ const deleteTargetSiteResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
282
+ const deleteTargetSiteMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.DeleteTargetSiteMetadata');
283
+ const enableAdvancedSiteSearchResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchResponse');
284
+ const enableAdvancedSiteSearchMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchMetadata');
285
+ const disableAdvancedSiteSearchResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchResponse');
286
+ const disableAdvancedSiteSearchMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchMetadata');
287
+ const recrawlUrisResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse');
288
+ const recrawlUrisMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata');
289
+ const batchVerifyTargetSitesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesResponse');
290
+ const batchVerifyTargetSitesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesMetadata');
291
+ this.descriptors.longrunning = {
292
+ createTargetSite: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createTargetSiteResponse.decode.bind(createTargetSiteResponse), createTargetSiteMetadata.decode.bind(createTargetSiteMetadata)),
293
+ batchCreateTargetSites: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchCreateTargetSitesResponse.decode.bind(batchCreateTargetSitesResponse), batchCreateTargetSitesMetadata.decode.bind(batchCreateTargetSitesMetadata)),
294
+ updateTargetSite: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateTargetSiteResponse.decode.bind(updateTargetSiteResponse), updateTargetSiteMetadata.decode.bind(updateTargetSiteMetadata)),
295
+ deleteTargetSite: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteTargetSiteResponse.decode.bind(deleteTargetSiteResponse), deleteTargetSiteMetadata.decode.bind(deleteTargetSiteMetadata)),
296
+ enableAdvancedSiteSearch: new this._gaxModule.LongrunningDescriptor(this.operationsClient, enableAdvancedSiteSearchResponse.decode.bind(enableAdvancedSiteSearchResponse), enableAdvancedSiteSearchMetadata.decode.bind(enableAdvancedSiteSearchMetadata)),
297
+ disableAdvancedSiteSearch: new this._gaxModule.LongrunningDescriptor(this.operationsClient, disableAdvancedSiteSearchResponse.decode.bind(disableAdvancedSiteSearchResponse), disableAdvancedSiteSearchMetadata.decode.bind(disableAdvancedSiteSearchMetadata)),
298
+ recrawlUris: new this._gaxModule.LongrunningDescriptor(this.operationsClient, recrawlUrisResponse.decode.bind(recrawlUrisResponse), recrawlUrisMetadata.decode.bind(recrawlUrisMetadata)),
299
+ batchVerifyTargetSites: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchVerifyTargetSitesResponse.decode.bind(batchVerifyTargetSitesResponse), batchVerifyTargetSitesMetadata.decode.bind(batchVerifyTargetSitesMetadata)),
300
+ };
301
+ // Put together the default options sent with requests.
302
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.SiteSearchEngineService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
303
+ // Set up a dictionary of "inner API calls"; the core implementation
304
+ // of calling the API is handled in `google-gax`, with this code
305
+ // merely providing the destination and request information.
306
+ this.innerApiCalls = {};
307
+ // Add a warn function to the client constructor so it can be easily tested.
308
+ this.warn = this._gaxModule.warn;
309
+ }
310
+ /**
311
+ * Initialize the client.
312
+ * Performs asynchronous operations (such as authentication) and prepares the client.
313
+ * This function will be called automatically when any class method is called for the
314
+ * first time, but if you need to initialize it before calling an actual method,
315
+ * feel free to call initialize() directly.
316
+ *
317
+ * You can await on this method if you want to make sure the client is initialized.
318
+ *
319
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
320
+ */
321
+ initialize() {
322
+ // If the client stub promise is already initialized, return immediately.
323
+ if (this.siteSearchEngineServiceStub) {
324
+ return this.siteSearchEngineServiceStub;
325
+ }
326
+ // Put together the "service stub" for
327
+ // google.cloud.discoveryengine.v1beta.SiteSearchEngineService.
328
+ this.siteSearchEngineServiceStub = this._gaxGrpc.createStub(this._opts.fallback
329
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1beta.SiteSearchEngineService')
330
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
331
+ this._protos.google.cloud.discoveryengine.v1beta
332
+ .SiteSearchEngineService, this._opts, this._providedCustomServicePath);
333
+ // Iterate over each of the methods that the service provides
334
+ // and create an API call method for each.
335
+ const siteSearchEngineServiceStubMethods = [
336
+ 'getSiteSearchEngine',
337
+ 'createTargetSite',
338
+ 'batchCreateTargetSites',
339
+ 'getTargetSite',
340
+ 'updateTargetSite',
341
+ 'deleteTargetSite',
342
+ 'listTargetSites',
343
+ 'enableAdvancedSiteSearch',
344
+ 'disableAdvancedSiteSearch',
345
+ 'recrawlUris',
346
+ 'batchVerifyTargetSites',
347
+ 'fetchDomainVerificationStatus',
348
+ ];
349
+ for (const methodName of siteSearchEngineServiceStubMethods) {
350
+ const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
351
+ if (this._terminated) {
352
+ return Promise.reject('The client has already been closed.');
353
+ }
354
+ const func = stub[methodName];
355
+ return func.apply(stub, args);
356
+ }, (err) => () => {
357
+ throw err;
358
+ });
359
+ const descriptor = this.descriptors.page[methodName] ||
360
+ this.descriptors.longrunning[methodName] ||
361
+ undefined;
362
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
363
+ this.innerApiCalls[methodName] = apiCall;
364
+ }
365
+ return this.siteSearchEngineServiceStub;
366
+ }
367
+ /**
368
+ * The DNS address for this API service.
369
+ * @deprecated Use the apiEndpoint method of the client instance.
370
+ * @returns {string} The DNS address for this service.
371
+ */
372
+ static get servicePath() {
373
+ if (typeof process !== undefined &&
374
+ typeof process.emitWarning === 'function') {
375
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
376
+ }
377
+ return 'discoveryengine.googleapis.com';
378
+ }
379
+ /**
380
+ * The DNS address for this API service - same as servicePath.
381
+ * @deprecated Use the apiEndpoint method of the client instance.
382
+ * @returns {string} The DNS address for this service.
383
+ */
384
+ static get apiEndpoint() {
385
+ if (typeof process !== undefined &&
386
+ typeof process.emitWarning === 'function') {
387
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
388
+ }
389
+ return 'discoveryengine.googleapis.com';
390
+ }
391
+ /**
392
+ * The DNS address for this API service.
393
+ * @returns {string} The DNS address for this service.
394
+ */
395
+ get apiEndpoint() {
396
+ return this._servicePath;
397
+ }
398
+ get universeDomain() {
399
+ return this._universeDomain;
400
+ }
401
+ /**
402
+ * The port for this API service.
403
+ * @returns {number} The default port for this service.
404
+ */
405
+ static get port() {
406
+ return 443;
407
+ }
408
+ /**
409
+ * The scopes needed to make gRPC calls for every method defined
410
+ * in this service.
411
+ * @returns {string[]} List of default scopes.
412
+ */
413
+ static get scopes() {
414
+ return ['https://www.googleapis.com/auth/cloud-platform'];
415
+ }
416
+ /**
417
+ * Return the project ID used by this class.
418
+ * @returns {Promise} A promise that resolves to string containing the project ID.
419
+ */
420
+ getProjectId(callback) {
421
+ if (callback) {
422
+ this.auth.getProjectId(callback);
423
+ return;
424
+ }
425
+ return this.auth.getProjectId();
426
+ }
427
+ getSiteSearchEngine(request, optionsOrCallback, callback) {
428
+ var _a;
429
+ request = request || {};
430
+ let options;
431
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
432
+ callback = optionsOrCallback;
433
+ options = {};
434
+ }
435
+ else {
436
+ options = optionsOrCallback;
437
+ }
438
+ options = options || {};
439
+ options.otherArgs = options.otherArgs || {};
440
+ options.otherArgs.headers = options.otherArgs.headers || {};
441
+ options.otherArgs.headers['x-goog-request-params'] =
442
+ this._gaxModule.routingHeader.fromParams({
443
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
444
+ });
445
+ this.initialize();
446
+ return this.innerApiCalls.getSiteSearchEngine(request, options, callback);
447
+ }
448
+ getTargetSite(request, optionsOrCallback, callback) {
449
+ var _a;
450
+ request = request || {};
451
+ let options;
452
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
453
+ callback = optionsOrCallback;
454
+ options = {};
455
+ }
456
+ else {
457
+ options = optionsOrCallback;
458
+ }
459
+ options = options || {};
460
+ options.otherArgs = options.otherArgs || {};
461
+ options.otherArgs.headers = options.otherArgs.headers || {};
462
+ options.otherArgs.headers['x-goog-request-params'] =
463
+ this._gaxModule.routingHeader.fromParams({
464
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
465
+ });
466
+ this.initialize();
467
+ return this.innerApiCalls.getTargetSite(request, options, callback);
468
+ }
469
+ createTargetSite(request, optionsOrCallback, callback) {
470
+ var _a;
471
+ request = request || {};
472
+ let options;
473
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
474
+ callback = optionsOrCallback;
475
+ options = {};
476
+ }
477
+ else {
478
+ options = optionsOrCallback;
479
+ }
480
+ options = options || {};
481
+ options.otherArgs = options.otherArgs || {};
482
+ options.otherArgs.headers = options.otherArgs.headers || {};
483
+ options.otherArgs.headers['x-goog-request-params'] =
484
+ this._gaxModule.routingHeader.fromParams({
485
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
486
+ });
487
+ this.initialize();
488
+ return this.innerApiCalls.createTargetSite(request, options, callback);
489
+ }
490
+ /**
491
+ * Check the status of the long running operation returned by `createTargetSite()`.
492
+ * @param {String} name
493
+ * The operation name that will be passed.
494
+ * @returns {Promise} - The promise which resolves to an object.
495
+ * The decoded operation object has result and metadata field to get information from.
496
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
497
+ * for more details and examples.
498
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.create_target_site.js</caption>
499
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_CreateTargetSite_async
500
+ */
501
+ async checkCreateTargetSiteProgress(name) {
502
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
503
+ const [operation] = await this.operationsClient.getOperation(request);
504
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createTargetSite, this._gaxModule.createDefaultBackoffSettings());
505
+ return decodeOperation;
506
+ }
507
+ batchCreateTargetSites(request, optionsOrCallback, callback) {
508
+ var _a;
509
+ request = request || {};
510
+ let options;
511
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
512
+ callback = optionsOrCallback;
513
+ options = {};
514
+ }
515
+ else {
516
+ options = optionsOrCallback;
517
+ }
518
+ options = options || {};
519
+ options.otherArgs = options.otherArgs || {};
520
+ options.otherArgs.headers = options.otherArgs.headers || {};
521
+ options.otherArgs.headers['x-goog-request-params'] =
522
+ this._gaxModule.routingHeader.fromParams({
523
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
524
+ });
525
+ this.initialize();
526
+ return this.innerApiCalls.batchCreateTargetSites(request, options, callback);
527
+ }
528
+ /**
529
+ * Check the status of the long running operation returned by `batchCreateTargetSites()`.
530
+ * @param {String} name
531
+ * The operation name that will be passed.
532
+ * @returns {Promise} - The promise which resolves to an object.
533
+ * The decoded operation object has result and metadata field to get information from.
534
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
535
+ * for more details and examples.
536
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.batch_create_target_sites.js</caption>
537
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_BatchCreateTargetSites_async
538
+ */
539
+ async checkBatchCreateTargetSitesProgress(name) {
540
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
541
+ const [operation] = await this.operationsClient.getOperation(request);
542
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.batchCreateTargetSites, this._gaxModule.createDefaultBackoffSettings());
543
+ return decodeOperation;
544
+ }
545
+ updateTargetSite(request, optionsOrCallback, callback) {
546
+ var _a;
547
+ request = request || {};
548
+ let options;
549
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
550
+ callback = optionsOrCallback;
551
+ options = {};
552
+ }
553
+ else {
554
+ options = optionsOrCallback;
555
+ }
556
+ options = options || {};
557
+ options.otherArgs = options.otherArgs || {};
558
+ options.otherArgs.headers = options.otherArgs.headers || {};
559
+ options.otherArgs.headers['x-goog-request-params'] =
560
+ this._gaxModule.routingHeader.fromParams({
561
+ 'target_site.name': (_a = request.targetSite.name) !== null && _a !== void 0 ? _a : '',
562
+ });
563
+ this.initialize();
564
+ return this.innerApiCalls.updateTargetSite(request, options, callback);
565
+ }
566
+ /**
567
+ * Check the status of the long running operation returned by `updateTargetSite()`.
568
+ * @param {String} name
569
+ * The operation name that will be passed.
570
+ * @returns {Promise} - The promise which resolves to an object.
571
+ * The decoded operation object has result and metadata field to get information from.
572
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
573
+ * for more details and examples.
574
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.update_target_site.js</caption>
575
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_UpdateTargetSite_async
576
+ */
577
+ async checkUpdateTargetSiteProgress(name) {
578
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
579
+ const [operation] = await this.operationsClient.getOperation(request);
580
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateTargetSite, this._gaxModule.createDefaultBackoffSettings());
581
+ return decodeOperation;
582
+ }
583
+ deleteTargetSite(request, optionsOrCallback, callback) {
584
+ var _a;
585
+ request = request || {};
586
+ let options;
587
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
588
+ callback = optionsOrCallback;
589
+ options = {};
590
+ }
591
+ else {
592
+ options = optionsOrCallback;
593
+ }
594
+ options = options || {};
595
+ options.otherArgs = options.otherArgs || {};
596
+ options.otherArgs.headers = options.otherArgs.headers || {};
597
+ options.otherArgs.headers['x-goog-request-params'] =
598
+ this._gaxModule.routingHeader.fromParams({
599
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
600
+ });
601
+ this.initialize();
602
+ return this.innerApiCalls.deleteTargetSite(request, options, callback);
603
+ }
604
+ /**
605
+ * Check the status of the long running operation returned by `deleteTargetSite()`.
606
+ * @param {String} name
607
+ * The operation name that will be passed.
608
+ * @returns {Promise} - The promise which resolves to an object.
609
+ * The decoded operation object has result and metadata field to get information from.
610
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
611
+ * for more details and examples.
612
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.delete_target_site.js</caption>
613
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_DeleteTargetSite_async
614
+ */
615
+ async checkDeleteTargetSiteProgress(name) {
616
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
617
+ const [operation] = await this.operationsClient.getOperation(request);
618
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteTargetSite, this._gaxModule.createDefaultBackoffSettings());
619
+ return decodeOperation;
620
+ }
621
+ enableAdvancedSiteSearch(request, optionsOrCallback, callback) {
622
+ var _a;
623
+ request = request || {};
624
+ let options;
625
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
626
+ callback = optionsOrCallback;
627
+ options = {};
628
+ }
629
+ else {
630
+ options = optionsOrCallback;
631
+ }
632
+ options = options || {};
633
+ options.otherArgs = options.otherArgs || {};
634
+ options.otherArgs.headers = options.otherArgs.headers || {};
635
+ options.otherArgs.headers['x-goog-request-params'] =
636
+ this._gaxModule.routingHeader.fromParams({
637
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
638
+ });
639
+ this.initialize();
640
+ return this.innerApiCalls.enableAdvancedSiteSearch(request, options, callback);
641
+ }
642
+ /**
643
+ * Check the status of the long running operation returned by `enableAdvancedSiteSearch()`.
644
+ * @param {String} name
645
+ * The operation name that will be passed.
646
+ * @returns {Promise} - The promise which resolves to an object.
647
+ * The decoded operation object has result and metadata field to get information from.
648
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
649
+ * for more details and examples.
650
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.enable_advanced_site_search.js</caption>
651
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_EnableAdvancedSiteSearch_async
652
+ */
653
+ async checkEnableAdvancedSiteSearchProgress(name) {
654
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
655
+ const [operation] = await this.operationsClient.getOperation(request);
656
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.enableAdvancedSiteSearch, this._gaxModule.createDefaultBackoffSettings());
657
+ return decodeOperation;
658
+ }
659
+ disableAdvancedSiteSearch(request, optionsOrCallback, callback) {
660
+ var _a;
661
+ request = request || {};
662
+ let options;
663
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
664
+ callback = optionsOrCallback;
665
+ options = {};
666
+ }
667
+ else {
668
+ options = optionsOrCallback;
669
+ }
670
+ options = options || {};
671
+ options.otherArgs = options.otherArgs || {};
672
+ options.otherArgs.headers = options.otherArgs.headers || {};
673
+ options.otherArgs.headers['x-goog-request-params'] =
674
+ this._gaxModule.routingHeader.fromParams({
675
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
676
+ });
677
+ this.initialize();
678
+ return this.innerApiCalls.disableAdvancedSiteSearch(request, options, callback);
679
+ }
680
+ /**
681
+ * Check the status of the long running operation returned by `disableAdvancedSiteSearch()`.
682
+ * @param {String} name
683
+ * The operation name that will be passed.
684
+ * @returns {Promise} - The promise which resolves to an object.
685
+ * The decoded operation object has result and metadata field to get information from.
686
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
687
+ * for more details and examples.
688
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.disable_advanced_site_search.js</caption>
689
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_DisableAdvancedSiteSearch_async
690
+ */
691
+ async checkDisableAdvancedSiteSearchProgress(name) {
692
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
693
+ const [operation] = await this.operationsClient.getOperation(request);
694
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.disableAdvancedSiteSearch, this._gaxModule.createDefaultBackoffSettings());
695
+ return decodeOperation;
696
+ }
697
+ recrawlUris(request, optionsOrCallback, callback) {
698
+ var _a;
699
+ request = request || {};
700
+ let options;
701
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
702
+ callback = optionsOrCallback;
703
+ options = {};
704
+ }
705
+ else {
706
+ options = optionsOrCallback;
707
+ }
708
+ options = options || {};
709
+ options.otherArgs = options.otherArgs || {};
710
+ options.otherArgs.headers = options.otherArgs.headers || {};
711
+ options.otherArgs.headers['x-goog-request-params'] =
712
+ this._gaxModule.routingHeader.fromParams({
713
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
714
+ });
715
+ this.initialize();
716
+ return this.innerApiCalls.recrawlUris(request, options, callback);
717
+ }
718
+ /**
719
+ * Check the status of the long running operation returned by `recrawlUris()`.
720
+ * @param {String} name
721
+ * The operation name that will be passed.
722
+ * @returns {Promise} - The promise which resolves to an object.
723
+ * The decoded operation object has result and metadata field to get information from.
724
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
725
+ * for more details and examples.
726
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.recrawl_uris.js</caption>
727
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_RecrawlUris_async
728
+ */
729
+ async checkRecrawlUrisProgress(name) {
730
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
731
+ const [operation] = await this.operationsClient.getOperation(request);
732
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.recrawlUris, this._gaxModule.createDefaultBackoffSettings());
733
+ return decodeOperation;
734
+ }
735
+ batchVerifyTargetSites(request, optionsOrCallback, callback) {
736
+ var _a;
737
+ request = request || {};
738
+ let options;
739
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
740
+ callback = optionsOrCallback;
741
+ options = {};
742
+ }
743
+ else {
744
+ options = optionsOrCallback;
745
+ }
746
+ options = options || {};
747
+ options.otherArgs = options.otherArgs || {};
748
+ options.otherArgs.headers = options.otherArgs.headers || {};
749
+ options.otherArgs.headers['x-goog-request-params'] =
750
+ this._gaxModule.routingHeader.fromParams({
751
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
752
+ });
753
+ this.initialize();
754
+ return this.innerApiCalls.batchVerifyTargetSites(request, options, callback);
755
+ }
756
+ /**
757
+ * Check the status of the long running operation returned by `batchVerifyTargetSites()`.
758
+ * @param {String} name
759
+ * The operation name that will be passed.
760
+ * @returns {Promise} - The promise which resolves to an object.
761
+ * The decoded operation object has result and metadata field to get information from.
762
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
763
+ * for more details and examples.
764
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.batch_verify_target_sites.js</caption>
765
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_BatchVerifyTargetSites_async
766
+ */
767
+ async checkBatchVerifyTargetSitesProgress(name) {
768
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
769
+ const [operation] = await this.operationsClient.getOperation(request);
770
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.batchVerifyTargetSites, this._gaxModule.createDefaultBackoffSettings());
771
+ return decodeOperation;
772
+ }
773
+ listTargetSites(request, optionsOrCallback, callback) {
774
+ var _a;
775
+ request = request || {};
776
+ let options;
777
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
778
+ callback = optionsOrCallback;
779
+ options = {};
780
+ }
781
+ else {
782
+ options = optionsOrCallback;
783
+ }
784
+ options = options || {};
785
+ options.otherArgs = options.otherArgs || {};
786
+ options.otherArgs.headers = options.otherArgs.headers || {};
787
+ options.otherArgs.headers['x-goog-request-params'] =
788
+ this._gaxModule.routingHeader.fromParams({
789
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
790
+ });
791
+ this.initialize();
792
+ return this.innerApiCalls.listTargetSites(request, options, callback);
793
+ }
794
+ /**
795
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
796
+ * @param {Object} request
797
+ * The request object that will be sent.
798
+ * @param {string} request.parent
799
+ * Required. The parent site search engine resource name, such as
800
+ * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
801
+ *
802
+ * If the caller does not have permission to list
803
+ * {@link protos.google.cloud.discoveryengine.v1beta.TargetSite|TargetSite}s under this
804
+ * site search engine, regardless of whether or not this branch exists, a
805
+ * PERMISSION_DENIED error is returned.
806
+ * @param {number} request.pageSize
807
+ * Requested page size. Server may return fewer items than requested. If
808
+ * unspecified, server will pick an appropriate default. The maximum value is
809
+ * 1000; values above 1000 will be coerced to 1000.
810
+ *
811
+ * If this field is negative, an INVALID_ARGUMENT error is returned.
812
+ * @param {string} request.pageToken
813
+ * A page token, received from a previous `ListTargetSites` call.
814
+ * Provide this to retrieve the subsequent page.
815
+ *
816
+ * When paginating, all other parameters provided to `ListTargetSites`
817
+ * must match the call that provided the page token.
818
+ * @param {object} [options]
819
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
820
+ * @returns {Stream}
821
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1beta.TargetSite|TargetSite} on 'data' event.
822
+ * The client library will perform auto-pagination by default: it will call the API as many
823
+ * times as needed. Note that it can affect your quota.
824
+ * We recommend using `listTargetSitesAsync()`
825
+ * method described below for async iteration which you can stop as needed.
826
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
827
+ * for more details and examples.
828
+ */
829
+ listTargetSitesStream(request, options) {
830
+ var _a;
831
+ request = request || {};
832
+ options = options || {};
833
+ options.otherArgs = options.otherArgs || {};
834
+ options.otherArgs.headers = options.otherArgs.headers || {};
835
+ options.otherArgs.headers['x-goog-request-params'] =
836
+ this._gaxModule.routingHeader.fromParams({
837
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
838
+ });
839
+ const defaultCallSettings = this._defaults['listTargetSites'];
840
+ const callSettings = defaultCallSettings.merge(options);
841
+ this.initialize();
842
+ return this.descriptors.page.listTargetSites.createStream(this.innerApiCalls.listTargetSites, request, callSettings);
843
+ }
844
+ /**
845
+ * Equivalent to `listTargetSites`, but returns an iterable object.
846
+ *
847
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
848
+ * @param {Object} request
849
+ * The request object that will be sent.
850
+ * @param {string} request.parent
851
+ * Required. The parent site search engine resource name, such as
852
+ * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
853
+ *
854
+ * If the caller does not have permission to list
855
+ * {@link protos.google.cloud.discoveryengine.v1beta.TargetSite|TargetSite}s under this
856
+ * site search engine, regardless of whether or not this branch exists, a
857
+ * PERMISSION_DENIED error is returned.
858
+ * @param {number} request.pageSize
859
+ * Requested page size. Server may return fewer items than requested. If
860
+ * unspecified, server will pick an appropriate default. The maximum value is
861
+ * 1000; values above 1000 will be coerced to 1000.
862
+ *
863
+ * If this field is negative, an INVALID_ARGUMENT error is returned.
864
+ * @param {string} request.pageToken
865
+ * A page token, received from a previous `ListTargetSites` call.
866
+ * Provide this to retrieve the subsequent page.
867
+ *
868
+ * When paginating, all other parameters provided to `ListTargetSites`
869
+ * must match the call that provided the page token.
870
+ * @param {object} [options]
871
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
872
+ * @returns {Object}
873
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
874
+ * When you iterate the returned iterable, each element will be an object representing
875
+ * {@link protos.google.cloud.discoveryengine.v1beta.TargetSite|TargetSite}. The API will be called under the hood as needed, once per the page,
876
+ * so you can stop the iteration when you don't need more results.
877
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
878
+ * for more details and examples.
879
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.list_target_sites.js</caption>
880
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_ListTargetSites_async
881
+ */
882
+ listTargetSitesAsync(request, options) {
883
+ var _a;
884
+ request = request || {};
885
+ options = options || {};
886
+ options.otherArgs = options.otherArgs || {};
887
+ options.otherArgs.headers = options.otherArgs.headers || {};
888
+ options.otherArgs.headers['x-goog-request-params'] =
889
+ this._gaxModule.routingHeader.fromParams({
890
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
891
+ });
892
+ const defaultCallSettings = this._defaults['listTargetSites'];
893
+ const callSettings = defaultCallSettings.merge(options);
894
+ this.initialize();
895
+ return this.descriptors.page.listTargetSites.asyncIterate(this.innerApiCalls['listTargetSites'], request, callSettings);
896
+ }
897
+ fetchDomainVerificationStatus(request, optionsOrCallback, callback) {
898
+ var _a;
899
+ request = request || {};
900
+ let options;
901
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
902
+ callback = optionsOrCallback;
903
+ options = {};
904
+ }
905
+ else {
906
+ options = optionsOrCallback;
907
+ }
908
+ options = options || {};
909
+ options.otherArgs = options.otherArgs || {};
910
+ options.otherArgs.headers = options.otherArgs.headers || {};
911
+ options.otherArgs.headers['x-goog-request-params'] =
912
+ this._gaxModule.routingHeader.fromParams({
913
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
914
+ });
915
+ this.initialize();
916
+ return this.innerApiCalls.fetchDomainVerificationStatus(request, options, callback);
917
+ }
918
+ /**
919
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
920
+ * @param {Object} request
921
+ * The request object that will be sent.
922
+ * @param {string} request.siteSearchEngine
923
+ * Required. The site search engine resource under which we fetch all the
924
+ * domain verification status.
925
+ * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
926
+ * @param {number} request.pageSize
927
+ * Requested page size. Server may return fewer items than requested. If
928
+ * unspecified, server will pick an appropriate default. The maximum value is
929
+ * 1000; values above 1000 will be coerced to 1000.
930
+ *
931
+ * If this field is negative, an INVALID_ARGUMENT error is returned.
932
+ * @param {string} request.pageToken
933
+ * A page token, received from a previous `FetchDomainVerificationStatus`
934
+ * call. Provide this to retrieve the subsequent page.
935
+ *
936
+ * When paginating, all other parameters provided to
937
+ * `FetchDomainVerificationStatus` must match the call that provided the page
938
+ * token.
939
+ * @param {object} [options]
940
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
941
+ * @returns {Stream}
942
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1beta.TargetSite|TargetSite} on 'data' event.
943
+ * The client library will perform auto-pagination by default: it will call the API as many
944
+ * times as needed. Note that it can affect your quota.
945
+ * We recommend using `fetchDomainVerificationStatusAsync()`
946
+ * method described below for async iteration which you can stop as needed.
947
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
948
+ * for more details and examples.
949
+ */
950
+ fetchDomainVerificationStatusStream(request, options) {
951
+ var _a;
952
+ request = request || {};
953
+ options = options || {};
954
+ options.otherArgs = options.otherArgs || {};
955
+ options.otherArgs.headers = options.otherArgs.headers || {};
956
+ options.otherArgs.headers['x-goog-request-params'] =
957
+ this._gaxModule.routingHeader.fromParams({
958
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
959
+ });
960
+ const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
961
+ const callSettings = defaultCallSettings.merge(options);
962
+ this.initialize();
963
+ return this.descriptors.page.fetchDomainVerificationStatus.createStream(this.innerApiCalls.fetchDomainVerificationStatus, request, callSettings);
964
+ }
965
+ /**
966
+ * Equivalent to `fetchDomainVerificationStatus`, but returns an iterable object.
967
+ *
968
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
969
+ * @param {Object} request
970
+ * The request object that will be sent.
971
+ * @param {string} request.siteSearchEngine
972
+ * Required. The site search engine resource under which we fetch all the
973
+ * domain verification status.
974
+ * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.
975
+ * @param {number} request.pageSize
976
+ * Requested page size. Server may return fewer items than requested. If
977
+ * unspecified, server will pick an appropriate default. The maximum value is
978
+ * 1000; values above 1000 will be coerced to 1000.
979
+ *
980
+ * If this field is negative, an INVALID_ARGUMENT error is returned.
981
+ * @param {string} request.pageToken
982
+ * A page token, received from a previous `FetchDomainVerificationStatus`
983
+ * call. Provide this to retrieve the subsequent page.
984
+ *
985
+ * When paginating, all other parameters provided to
986
+ * `FetchDomainVerificationStatus` must match the call that provided the page
987
+ * token.
988
+ * @param {object} [options]
989
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
990
+ * @returns {Object}
991
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
992
+ * When you iterate the returned iterable, each element will be an object representing
993
+ * {@link protos.google.cloud.discoveryengine.v1beta.TargetSite|TargetSite}. The API will be called under the hood as needed, once per the page,
994
+ * so you can stop the iteration when you don't need more results.
995
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
996
+ * for more details and examples.
997
+ * @example <caption>include:samples/generated/v1beta/site_search_engine_service.fetch_domain_verification_status.js</caption>
998
+ * region_tag:discoveryengine_v1beta_generated_SiteSearchEngineService_FetchDomainVerificationStatus_async
999
+ */
1000
+ fetchDomainVerificationStatusAsync(request, options) {
1001
+ var _a;
1002
+ request = request || {};
1003
+ options = options || {};
1004
+ options.otherArgs = options.otherArgs || {};
1005
+ options.otherArgs.headers = options.otherArgs.headers || {};
1006
+ options.otherArgs.headers['x-goog-request-params'] =
1007
+ this._gaxModule.routingHeader.fromParams({
1008
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
1009
+ });
1010
+ const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1011
+ const callSettings = defaultCallSettings.merge(options);
1012
+ this.initialize();
1013
+ return this.descriptors.page.fetchDomainVerificationStatus.asyncIterate(this.innerApiCalls['fetchDomainVerificationStatus'], request, callSettings);
1014
+ }
1015
+ /**
1016
+ * Gets information about a location.
1017
+ *
1018
+ * @param {Object} request
1019
+ * The request object that will be sent.
1020
+ * @param {string} request.name
1021
+ * Resource name for the location.
1022
+ * @param {object} [options]
1023
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
1024
+ * @returns {Promise} - The promise which resolves to an array.
1025
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
1026
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
1027
+ * for more details and examples.
1028
+ * @example
1029
+ * ```
1030
+ * const [response] = await client.getLocation(request);
1031
+ * ```
1032
+ */
1033
+ getLocation(request, options, callback) {
1034
+ return this.locationsClient.getLocation(request, options, callback);
1035
+ }
1036
+ /**
1037
+ * Lists information about the supported locations for this service. Returns an iterable object.
1038
+ *
1039
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1040
+ * @param {Object} request
1041
+ * The request object that will be sent.
1042
+ * @param {string} request.name
1043
+ * The resource that owns the locations collection, if applicable.
1044
+ * @param {string} request.filter
1045
+ * The standard list filter.
1046
+ * @param {number} request.pageSize
1047
+ * The standard list page size.
1048
+ * @param {string} request.pageToken
1049
+ * The standard list page token.
1050
+ * @param {object} [options]
1051
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1052
+ * @returns {Object}
1053
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1054
+ * When you iterate the returned iterable, each element will be an object representing
1055
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
1056
+ * so you can stop the iteration when you don't need more results.
1057
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1058
+ * for more details and examples.
1059
+ * @example
1060
+ * ```
1061
+ * const iterable = client.listLocationsAsync(request);
1062
+ * for await (const response of iterable) {
1063
+ * // process response
1064
+ * }
1065
+ * ```
1066
+ */
1067
+ listLocationsAsync(request, options) {
1068
+ return this.locationsClient.listLocationsAsync(request, options);
1069
+ }
1070
+ /**
1071
+ * Gets the latest state of a long-running operation. Clients can use this
1072
+ * method to poll the operation result at intervals as recommended by the API
1073
+ * service.
1074
+ *
1075
+ * @param {Object} request - The request object that will be sent.
1076
+ * @param {string} request.name - The name of the operation resource.
1077
+ * @param {Object=} options
1078
+ * Optional parameters. You can override the default settings for this call,
1079
+ * e.g, timeout, retries, paginations, etc. See {@link
1080
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
1081
+ * for the details.
1082
+ * @param {function(?Error, ?Object)=} callback
1083
+ * The function which will be called with the result of the API call.
1084
+ *
1085
+ * The second parameter to the callback is an object representing
1086
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
1087
+ * @return {Promise} - The promise which resolves to an array.
1088
+ * The first element of the array is an object representing
1089
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
1090
+ * The promise has a method named "cancel" which cancels the ongoing API call.
1091
+ *
1092
+ * @example
1093
+ * ```
1094
+ * const client = longrunning.operationsClient();
1095
+ * const name = '';
1096
+ * const [response] = await client.getOperation({name});
1097
+ * // doThingsWith(response)
1098
+ * ```
1099
+ */
1100
+ getOperation(request, options, callback) {
1101
+ return this.operationsClient.getOperation(request, options, callback);
1102
+ }
1103
+ /**
1104
+ * Lists operations that match the specified filter in the request. If the
1105
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
1106
+ *
1107
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
1108
+ *
1109
+ * @param {Object} request - The request object that will be sent.
1110
+ * @param {string} request.name - The name of the operation collection.
1111
+ * @param {string} request.filter - The standard list filter.
1112
+ * @param {number=} request.pageSize -
1113
+ * The maximum number of resources contained in the underlying API
1114
+ * response. If page streaming is performed per-resource, this
1115
+ * parameter does not affect the return value. If page streaming is
1116
+ * performed per-page, this determines the maximum number of
1117
+ * resources in a page.
1118
+ * @param {Object=} options
1119
+ * Optional parameters. You can override the default settings for this call,
1120
+ * e.g, timeout, retries, paginations, etc. See {@link
1121
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
1122
+ * details.
1123
+ * @returns {Object}
1124
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
1125
+ *
1126
+ * @example
1127
+ * ```
1128
+ * const client = longrunning.operationsClient();
1129
+ * for await (const response of client.listOperationsAsync(request));
1130
+ * // doThingsWith(response)
1131
+ * ```
1132
+ */
1133
+ listOperationsAsync(request, options) {
1134
+ return this.operationsClient.listOperationsAsync(request, options);
1135
+ }
1136
+ /**
1137
+ * Starts asynchronous cancellation on a long-running operation. The server
1138
+ * makes a best effort to cancel the operation, but success is not
1139
+ * guaranteed. If the server doesn't support this method, it returns
1140
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
1141
+ * {@link Operations.GetOperation} or
1142
+ * other methods to check whether the cancellation succeeded or whether the
1143
+ * operation completed despite cancellation. On successful cancellation,
1144
+ * the operation is not deleted; instead, it becomes an operation with
1145
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
1146
+ * 1, corresponding to `Code.CANCELLED`.
1147
+ *
1148
+ * @param {Object} request - The request object that will be sent.
1149
+ * @param {string} request.name - The name of the operation resource to be cancelled.
1150
+ * @param {Object=} options
1151
+ * Optional parameters. You can override the default settings for this call,
1152
+ * e.g, timeout, retries, paginations, etc. See {@link
1153
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
1154
+ * details.
1155
+ * @param {function(?Error)=} callback
1156
+ * The function which will be called with the result of the API call.
1157
+ * @return {Promise} - The promise which resolves when API call finishes.
1158
+ * The promise has a method named "cancel" which cancels the ongoing API
1159
+ * call.
1160
+ *
1161
+ * @example
1162
+ * ```
1163
+ * const client = longrunning.operationsClient();
1164
+ * await client.cancelOperation({name: ''});
1165
+ * ```
1166
+ */
1167
+ cancelOperation(request, options, callback) {
1168
+ return this.operationsClient.cancelOperation(request, options, callback);
1169
+ }
1170
+ /**
1171
+ * Deletes a long-running operation. This method indicates that the client is
1172
+ * no longer interested in the operation result. It does not cancel the
1173
+ * operation. If the server doesn't support this method, it returns
1174
+ * `google.rpc.Code.UNIMPLEMENTED`.
1175
+ *
1176
+ * @param {Object} request - The request object that will be sent.
1177
+ * @param {string} request.name - The name of the operation resource to be deleted.
1178
+ * @param {Object=} options
1179
+ * Optional parameters. You can override the default settings for this call,
1180
+ * e.g, timeout, retries, paginations, etc. See {@link
1181
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
1182
+ * for the details.
1183
+ * @param {function(?Error)=} callback
1184
+ * The function which will be called with the result of the API call.
1185
+ * @return {Promise} - The promise which resolves when API call finishes.
1186
+ * The promise has a method named "cancel" which cancels the ongoing API
1187
+ * call.
1188
+ *
1189
+ * @example
1190
+ * ```
1191
+ * const client = longrunning.operationsClient();
1192
+ * await client.deleteOperation({name: ''});
1193
+ * ```
1194
+ */
1195
+ deleteOperation(request, options, callback) {
1196
+ return this.operationsClient.deleteOperation(request, options, callback);
1197
+ }
1198
+ // --------------------
1199
+ // -- Path templates --
1200
+ // --------------------
1201
+ /**
1202
+ * Return a fully-qualified engine resource name string.
1203
+ *
1204
+ * @param {string} project
1205
+ * @param {string} location
1206
+ * @param {string} collection
1207
+ * @param {string} engine
1208
+ * @returns {string} Resource name string.
1209
+ */
1210
+ enginePath(project, location, collection, engine) {
1211
+ return this.pathTemplates.enginePathTemplate.render({
1212
+ project: project,
1213
+ location: location,
1214
+ collection: collection,
1215
+ engine: engine,
1216
+ });
1217
+ }
1218
+ /**
1219
+ * Parse the project from Engine resource.
1220
+ *
1221
+ * @param {string} engineName
1222
+ * A fully-qualified path representing Engine resource.
1223
+ * @returns {string} A string representing the project.
1224
+ */
1225
+ matchProjectFromEngineName(engineName) {
1226
+ return this.pathTemplates.enginePathTemplate.match(engineName).project;
1227
+ }
1228
+ /**
1229
+ * Parse the location from Engine resource.
1230
+ *
1231
+ * @param {string} engineName
1232
+ * A fully-qualified path representing Engine resource.
1233
+ * @returns {string} A string representing the location.
1234
+ */
1235
+ matchLocationFromEngineName(engineName) {
1236
+ return this.pathTemplates.enginePathTemplate.match(engineName).location;
1237
+ }
1238
+ /**
1239
+ * Parse the collection from Engine resource.
1240
+ *
1241
+ * @param {string} engineName
1242
+ * A fully-qualified path representing Engine resource.
1243
+ * @returns {string} A string representing the collection.
1244
+ */
1245
+ matchCollectionFromEngineName(engineName) {
1246
+ return this.pathTemplates.enginePathTemplate.match(engineName).collection;
1247
+ }
1248
+ /**
1249
+ * Parse the engine from Engine resource.
1250
+ *
1251
+ * @param {string} engineName
1252
+ * A fully-qualified path representing Engine resource.
1253
+ * @returns {string} A string representing the engine.
1254
+ */
1255
+ matchEngineFromEngineName(engineName) {
1256
+ return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1257
+ }
1258
+ /**
1259
+ * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1260
+ *
1261
+ * @param {string} project
1262
+ * @param {string} location
1263
+ * @param {string} collection
1264
+ * @param {string} data_store
1265
+ * @returns {string} Resource name string.
1266
+ */
1267
+ projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
1268
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
1269
+ project: project,
1270
+ location: location,
1271
+ collection: collection,
1272
+ data_store: dataStore,
1273
+ });
1274
+ }
1275
+ /**
1276
+ * Parse the project from ProjectLocationCollectionDataStore resource.
1277
+ *
1278
+ * @param {string} projectLocationCollectionDataStoreName
1279
+ * A fully-qualified path representing project_location_collection_data_store resource.
1280
+ * @returns {string} A string representing the project.
1281
+ */
1282
+ matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1283
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
1284
+ }
1285
+ /**
1286
+ * Parse the location from ProjectLocationCollectionDataStore resource.
1287
+ *
1288
+ * @param {string} projectLocationCollectionDataStoreName
1289
+ * A fully-qualified path representing project_location_collection_data_store resource.
1290
+ * @returns {string} A string representing the location.
1291
+ */
1292
+ matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1293
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
1294
+ }
1295
+ /**
1296
+ * Parse the collection from ProjectLocationCollectionDataStore resource.
1297
+ *
1298
+ * @param {string} projectLocationCollectionDataStoreName
1299
+ * A fully-qualified path representing project_location_collection_data_store resource.
1300
+ * @returns {string} A string representing the collection.
1301
+ */
1302
+ matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1303
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
1304
+ }
1305
+ /**
1306
+ * Parse the data_store from ProjectLocationCollectionDataStore resource.
1307
+ *
1308
+ * @param {string} projectLocationCollectionDataStoreName
1309
+ * A fully-qualified path representing project_location_collection_data_store resource.
1310
+ * @returns {string} A string representing the data_store.
1311
+ */
1312
+ matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
1313
+ return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
1314
+ }
1315
+ /**
1316
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
1317
+ *
1318
+ * @param {string} project
1319
+ * @param {string} location
1320
+ * @param {string} collection
1321
+ * @param {string} data_store
1322
+ * @param {string} branch
1323
+ * @param {string} document
1324
+ * @returns {string} Resource name string.
1325
+ */
1326
+ projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
1327
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
1328
+ project: project,
1329
+ location: location,
1330
+ collection: collection,
1331
+ data_store: dataStore,
1332
+ branch: branch,
1333
+ document: document,
1334
+ });
1335
+ }
1336
+ /**
1337
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
1338
+ *
1339
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1340
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1341
+ * @returns {string} A string representing the project.
1342
+ */
1343
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1344
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
1345
+ }
1346
+ /**
1347
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
1348
+ *
1349
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1350
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1351
+ * @returns {string} A string representing the location.
1352
+ */
1353
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1354
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
1355
+ }
1356
+ /**
1357
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
1358
+ *
1359
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1360
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1361
+ * @returns {string} A string representing the collection.
1362
+ */
1363
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1364
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
1365
+ }
1366
+ /**
1367
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
1368
+ *
1369
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1370
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1371
+ * @returns {string} A string representing the data_store.
1372
+ */
1373
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1374
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
1375
+ }
1376
+ /**
1377
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
1378
+ *
1379
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1380
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1381
+ * @returns {string} A string representing the branch.
1382
+ */
1383
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1384
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
1385
+ }
1386
+ /**
1387
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
1388
+ *
1389
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentName
1390
+ * A fully-qualified path representing project_location_collection_data_store_branch_document resource.
1391
+ * @returns {string} A string representing the document.
1392
+ */
1393
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1394
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1395
+ }
1396
+ /**
1397
+ * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1398
+ *
1399
+ * @param {string} project
1400
+ * @param {string} location
1401
+ * @param {string} collection
1402
+ * @param {string} data_store
1403
+ * @param {string} conversation
1404
+ * @returns {string} Resource name string.
1405
+ */
1406
+ projectLocationCollectionDataStoreConversationPath(project, location, collection, dataStore, conversation) {
1407
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.render({
1408
+ project: project,
1409
+ location: location,
1410
+ collection: collection,
1411
+ data_store: dataStore,
1412
+ conversation: conversation,
1413
+ });
1414
+ }
1415
+ /**
1416
+ * Parse the project from ProjectLocationCollectionDataStoreConversation resource.
1417
+ *
1418
+ * @param {string} projectLocationCollectionDataStoreConversationName
1419
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1420
+ * @returns {string} A string representing the project.
1421
+ */
1422
+ matchProjectFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1423
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).project;
1424
+ }
1425
+ /**
1426
+ * Parse the location from ProjectLocationCollectionDataStoreConversation resource.
1427
+ *
1428
+ * @param {string} projectLocationCollectionDataStoreConversationName
1429
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1430
+ * @returns {string} A string representing the location.
1431
+ */
1432
+ matchLocationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1433
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).location;
1434
+ }
1435
+ /**
1436
+ * Parse the collection from ProjectLocationCollectionDataStoreConversation resource.
1437
+ *
1438
+ * @param {string} projectLocationCollectionDataStoreConversationName
1439
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1440
+ * @returns {string} A string representing the collection.
1441
+ */
1442
+ matchCollectionFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1443
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).collection;
1444
+ }
1445
+ /**
1446
+ * Parse the data_store from ProjectLocationCollectionDataStoreConversation resource.
1447
+ *
1448
+ * @param {string} projectLocationCollectionDataStoreConversationName
1449
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1450
+ * @returns {string} A string representing the data_store.
1451
+ */
1452
+ matchDataStoreFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1453
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).data_store;
1454
+ }
1455
+ /**
1456
+ * Parse the conversation from ProjectLocationCollectionDataStoreConversation resource.
1457
+ *
1458
+ * @param {string} projectLocationCollectionDataStoreConversationName
1459
+ * A fully-qualified path representing project_location_collection_data_store_conversation resource.
1460
+ * @returns {string} A string representing the conversation.
1461
+ */
1462
+ matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1463
+ return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1464
+ }
1465
+ /**
1466
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1467
+ *
1468
+ * @param {string} project
1469
+ * @param {string} location
1470
+ * @param {string} collection
1471
+ * @param {string} data_store
1472
+ * @returns {string} Resource name string.
1473
+ */
1474
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1475
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1476
+ project: project,
1477
+ location: location,
1478
+ collection: collection,
1479
+ data_store: dataStore,
1480
+ });
1481
+ }
1482
+ /**
1483
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1484
+ *
1485
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1486
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1487
+ * @returns {string} A string representing the project.
1488
+ */
1489
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1490
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1491
+ }
1492
+ /**
1493
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1494
+ *
1495
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1496
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1497
+ * @returns {string} A string representing the location.
1498
+ */
1499
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1500
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1501
+ }
1502
+ /**
1503
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1504
+ *
1505
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1506
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1507
+ * @returns {string} A string representing the collection.
1508
+ */
1509
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1510
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1511
+ }
1512
+ /**
1513
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1514
+ *
1515
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1516
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1517
+ * @returns {string} A string representing the data_store.
1518
+ */
1519
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1520
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1521
+ }
1522
+ /**
1523
+ * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
1524
+ *
1525
+ * @param {string} project
1526
+ * @param {string} location
1527
+ * @param {string} collection
1528
+ * @param {string} data_store
1529
+ * @param {string} schema
1530
+ * @returns {string} Resource name string.
1531
+ */
1532
+ projectLocationCollectionDataStoreSchemaPath(project, location, collection, dataStore, schema) {
1533
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.render({
1534
+ project: project,
1535
+ location: location,
1536
+ collection: collection,
1537
+ data_store: dataStore,
1538
+ schema: schema,
1539
+ });
1540
+ }
1541
+ /**
1542
+ * Parse the project from ProjectLocationCollectionDataStoreSchema resource.
1543
+ *
1544
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1545
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1546
+ * @returns {string} A string representing the project.
1547
+ */
1548
+ matchProjectFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1549
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).project;
1550
+ }
1551
+ /**
1552
+ * Parse the location from ProjectLocationCollectionDataStoreSchema resource.
1553
+ *
1554
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1555
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1556
+ * @returns {string} A string representing the location.
1557
+ */
1558
+ matchLocationFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1559
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).location;
1560
+ }
1561
+ /**
1562
+ * Parse the collection from ProjectLocationCollectionDataStoreSchema resource.
1563
+ *
1564
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1565
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1566
+ * @returns {string} A string representing the collection.
1567
+ */
1568
+ matchCollectionFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1569
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).collection;
1570
+ }
1571
+ /**
1572
+ * Parse the data_store from ProjectLocationCollectionDataStoreSchema resource.
1573
+ *
1574
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1575
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1576
+ * @returns {string} A string representing the data_store.
1577
+ */
1578
+ matchDataStoreFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1579
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).data_store;
1580
+ }
1581
+ /**
1582
+ * Parse the schema from ProjectLocationCollectionDataStoreSchema resource.
1583
+ *
1584
+ * @param {string} projectLocationCollectionDataStoreSchemaName
1585
+ * A fully-qualified path representing project_location_collection_data_store_schema resource.
1586
+ * @returns {string} A string representing the schema.
1587
+ */
1588
+ matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1589
+ return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1590
+ }
1591
+ /**
1592
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1593
+ *
1594
+ * @param {string} project
1595
+ * @param {string} location
1596
+ * @param {string} collection
1597
+ * @param {string} data_store
1598
+ * @param {string} serving_config
1599
+ * @returns {string} Resource name string.
1600
+ */
1601
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1602
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1603
+ project: project,
1604
+ location: location,
1605
+ collection: collection,
1606
+ data_store: dataStore,
1607
+ serving_config: servingConfig,
1608
+ });
1609
+ }
1610
+ /**
1611
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1612
+ *
1613
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1614
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1615
+ * @returns {string} A string representing the project.
1616
+ */
1617
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1618
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1619
+ }
1620
+ /**
1621
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1622
+ *
1623
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1624
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1625
+ * @returns {string} A string representing the location.
1626
+ */
1627
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1628
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1629
+ }
1630
+ /**
1631
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1632
+ *
1633
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1634
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1635
+ * @returns {string} A string representing the collection.
1636
+ */
1637
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1638
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1639
+ }
1640
+ /**
1641
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1642
+ *
1643
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1644
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1645
+ * @returns {string} A string representing the data_store.
1646
+ */
1647
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1648
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1649
+ }
1650
+ /**
1651
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1652
+ *
1653
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1654
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1655
+ * @returns {string} A string representing the serving_config.
1656
+ */
1657
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1658
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1659
+ }
1660
+ /**
1661
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1662
+ *
1663
+ * @param {string} project
1664
+ * @param {string} location
1665
+ * @param {string} collection
1666
+ * @param {string} data_store
1667
+ * @returns {string} Resource name string.
1668
+ */
1669
+ projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
1670
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
1671
+ project: project,
1672
+ location: location,
1673
+ collection: collection,
1674
+ data_store: dataStore,
1675
+ });
1676
+ }
1677
+ /**
1678
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1679
+ *
1680
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1681
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1682
+ * @returns {string} A string representing the project.
1683
+ */
1684
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1685
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
1686
+ }
1687
+ /**
1688
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1689
+ *
1690
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1691
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1692
+ * @returns {string} A string representing the location.
1693
+ */
1694
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1695
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
1696
+ }
1697
+ /**
1698
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1699
+ *
1700
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1701
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1702
+ * @returns {string} A string representing the collection.
1703
+ */
1704
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1705
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
1706
+ }
1707
+ /**
1708
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
1709
+ *
1710
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
1711
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
1712
+ * @returns {string} A string representing the data_store.
1713
+ */
1714
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1715
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1716
+ }
1717
+ /**
1718
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1719
+ *
1720
+ * @param {string} project
1721
+ * @param {string} location
1722
+ * @param {string} collection
1723
+ * @param {string} data_store
1724
+ * @param {string} target_site
1725
+ * @returns {string} Resource name string.
1726
+ */
1727
+ projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
1728
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
1729
+ project: project,
1730
+ location: location,
1731
+ collection: collection,
1732
+ data_store: dataStore,
1733
+ target_site: targetSite,
1734
+ });
1735
+ }
1736
+ /**
1737
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1738
+ *
1739
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1740
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1741
+ * @returns {string} A string representing the project.
1742
+ */
1743
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1744
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
1745
+ }
1746
+ /**
1747
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1748
+ *
1749
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1750
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1751
+ * @returns {string} A string representing the location.
1752
+ */
1753
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1754
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
1755
+ }
1756
+ /**
1757
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1758
+ *
1759
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1760
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1761
+ * @returns {string} A string representing the collection.
1762
+ */
1763
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1764
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
1765
+ }
1766
+ /**
1767
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1768
+ *
1769
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1770
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1771
+ * @returns {string} A string representing the data_store.
1772
+ */
1773
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1774
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
1775
+ }
1776
+ /**
1777
+ * Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
1778
+ *
1779
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
1780
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
1781
+ * @returns {string} A string representing the target_site.
1782
+ */
1783
+ matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1784
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1785
+ }
1786
+ /**
1787
+ * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1788
+ *
1789
+ * @param {string} project
1790
+ * @param {string} location
1791
+ * @param {string} collection
1792
+ * @param {string} engine
1793
+ * @param {string} conversation
1794
+ * @returns {string} Resource name string.
1795
+ */
1796
+ projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
1797
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
1798
+ project: project,
1799
+ location: location,
1800
+ collection: collection,
1801
+ engine: engine,
1802
+ conversation: conversation,
1803
+ });
1804
+ }
1805
+ /**
1806
+ * Parse the project from ProjectLocationCollectionEngineConversation resource.
1807
+ *
1808
+ * @param {string} projectLocationCollectionEngineConversationName
1809
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1810
+ * @returns {string} A string representing the project.
1811
+ */
1812
+ matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1813
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
1814
+ }
1815
+ /**
1816
+ * Parse the location from ProjectLocationCollectionEngineConversation resource.
1817
+ *
1818
+ * @param {string} projectLocationCollectionEngineConversationName
1819
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1820
+ * @returns {string} A string representing the location.
1821
+ */
1822
+ matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1823
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
1824
+ }
1825
+ /**
1826
+ * Parse the collection from ProjectLocationCollectionEngineConversation resource.
1827
+ *
1828
+ * @param {string} projectLocationCollectionEngineConversationName
1829
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1830
+ * @returns {string} A string representing the collection.
1831
+ */
1832
+ matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1833
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
1834
+ }
1835
+ /**
1836
+ * Parse the engine from ProjectLocationCollectionEngineConversation resource.
1837
+ *
1838
+ * @param {string} projectLocationCollectionEngineConversationName
1839
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1840
+ * @returns {string} A string representing the engine.
1841
+ */
1842
+ matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1843
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
1844
+ }
1845
+ /**
1846
+ * Parse the conversation from ProjectLocationCollectionEngineConversation resource.
1847
+ *
1848
+ * @param {string} projectLocationCollectionEngineConversationName
1849
+ * A fully-qualified path representing project_location_collection_engine_conversation resource.
1850
+ * @returns {string} A string representing the conversation.
1851
+ */
1852
+ matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1853
+ return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1854
+ }
1855
+ /**
1856
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1857
+ *
1858
+ * @param {string} project
1859
+ * @param {string} location
1860
+ * @param {string} collection
1861
+ * @param {string} engine
1862
+ * @param {string} serving_config
1863
+ * @returns {string} Resource name string.
1864
+ */
1865
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1866
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1867
+ project: project,
1868
+ location: location,
1869
+ collection: collection,
1870
+ engine: engine,
1871
+ serving_config: servingConfig,
1872
+ });
1873
+ }
1874
+ /**
1875
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1876
+ *
1877
+ * @param {string} projectLocationCollectionEngineServingConfigName
1878
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1879
+ * @returns {string} A string representing the project.
1880
+ */
1881
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1882
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1883
+ }
1884
+ /**
1885
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1886
+ *
1887
+ * @param {string} projectLocationCollectionEngineServingConfigName
1888
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1889
+ * @returns {string} A string representing the location.
1890
+ */
1891
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1892
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1893
+ }
1894
+ /**
1895
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1896
+ *
1897
+ * @param {string} projectLocationCollectionEngineServingConfigName
1898
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1899
+ * @returns {string} A string representing the collection.
1900
+ */
1901
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1902
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1903
+ }
1904
+ /**
1905
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1906
+ *
1907
+ * @param {string} projectLocationCollectionEngineServingConfigName
1908
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1909
+ * @returns {string} A string representing the engine.
1910
+ */
1911
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1912
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1913
+ }
1914
+ /**
1915
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1916
+ *
1917
+ * @param {string} projectLocationCollectionEngineServingConfigName
1918
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1919
+ * @returns {string} A string representing the serving_config.
1920
+ */
1921
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1922
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1923
+ }
1924
+ /**
1925
+ * Return a fully-qualified projectLocationDataStore resource name string.
1926
+ *
1927
+ * @param {string} project
1928
+ * @param {string} location
1929
+ * @param {string} data_store
1930
+ * @returns {string} Resource name string.
1931
+ */
1932
+ projectLocationDataStorePath(project, location, dataStore) {
1933
+ return this.pathTemplates.projectLocationDataStorePathTemplate.render({
1934
+ project: project,
1935
+ location: location,
1936
+ data_store: dataStore,
1937
+ });
1938
+ }
1939
+ /**
1940
+ * Parse the project from ProjectLocationDataStore resource.
1941
+ *
1942
+ * @param {string} projectLocationDataStoreName
1943
+ * A fully-qualified path representing project_location_data_store resource.
1944
+ * @returns {string} A string representing the project.
1945
+ */
1946
+ matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1947
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
1948
+ }
1949
+ /**
1950
+ * Parse the location from ProjectLocationDataStore resource.
1951
+ *
1952
+ * @param {string} projectLocationDataStoreName
1953
+ * A fully-qualified path representing project_location_data_store resource.
1954
+ * @returns {string} A string representing the location.
1955
+ */
1956
+ matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1957
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
1958
+ }
1959
+ /**
1960
+ * Parse the data_store from ProjectLocationDataStore resource.
1961
+ *
1962
+ * @param {string} projectLocationDataStoreName
1963
+ * A fully-qualified path representing project_location_data_store resource.
1964
+ * @returns {string} A string representing the data_store.
1965
+ */
1966
+ matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
1967
+ return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
1968
+ }
1969
+ /**
1970
+ * Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
1971
+ *
1972
+ * @param {string} project
1973
+ * @param {string} location
1974
+ * @param {string} data_store
1975
+ * @param {string} branch
1976
+ * @param {string} document
1977
+ * @returns {string} Resource name string.
1978
+ */
1979
+ projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
1980
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
1981
+ project: project,
1982
+ location: location,
1983
+ data_store: dataStore,
1984
+ branch: branch,
1985
+ document: document,
1986
+ });
1987
+ }
1988
+ /**
1989
+ * Parse the project from ProjectLocationDataStoreBranchDocument resource.
1990
+ *
1991
+ * @param {string} projectLocationDataStoreBranchDocumentName
1992
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
1993
+ * @returns {string} A string representing the project.
1994
+ */
1995
+ matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1996
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
1997
+ }
1998
+ /**
1999
+ * Parse the location from ProjectLocationDataStoreBranchDocument resource.
2000
+ *
2001
+ * @param {string} projectLocationDataStoreBranchDocumentName
2002
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2003
+ * @returns {string} A string representing the location.
2004
+ */
2005
+ matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2006
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
2007
+ }
2008
+ /**
2009
+ * Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
2010
+ *
2011
+ * @param {string} projectLocationDataStoreBranchDocumentName
2012
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2013
+ * @returns {string} A string representing the data_store.
2014
+ */
2015
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2016
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
2017
+ }
2018
+ /**
2019
+ * Parse the branch from ProjectLocationDataStoreBranchDocument resource.
2020
+ *
2021
+ * @param {string} projectLocationDataStoreBranchDocumentName
2022
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2023
+ * @returns {string} A string representing the branch.
2024
+ */
2025
+ matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2026
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
2027
+ }
2028
+ /**
2029
+ * Parse the document from ProjectLocationDataStoreBranchDocument resource.
2030
+ *
2031
+ * @param {string} projectLocationDataStoreBranchDocumentName
2032
+ * A fully-qualified path representing project_location_data_store_branch_document resource.
2033
+ * @returns {string} A string representing the document.
2034
+ */
2035
+ matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2036
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2037
+ }
2038
+ /**
2039
+ * Return a fully-qualified projectLocationDataStoreConversation resource name string.
2040
+ *
2041
+ * @param {string} project
2042
+ * @param {string} location
2043
+ * @param {string} data_store
2044
+ * @param {string} conversation
2045
+ * @returns {string} Resource name string.
2046
+ */
2047
+ projectLocationDataStoreConversationPath(project, location, dataStore, conversation) {
2048
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.render({
2049
+ project: project,
2050
+ location: location,
2051
+ data_store: dataStore,
2052
+ conversation: conversation,
2053
+ });
2054
+ }
2055
+ /**
2056
+ * Parse the project from ProjectLocationDataStoreConversation resource.
2057
+ *
2058
+ * @param {string} projectLocationDataStoreConversationName
2059
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2060
+ * @returns {string} A string representing the project.
2061
+ */
2062
+ matchProjectFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2063
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).project;
2064
+ }
2065
+ /**
2066
+ * Parse the location from ProjectLocationDataStoreConversation resource.
2067
+ *
2068
+ * @param {string} projectLocationDataStoreConversationName
2069
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2070
+ * @returns {string} A string representing the location.
2071
+ */
2072
+ matchLocationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2073
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).location;
2074
+ }
2075
+ /**
2076
+ * Parse the data_store from ProjectLocationDataStoreConversation resource.
2077
+ *
2078
+ * @param {string} projectLocationDataStoreConversationName
2079
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2080
+ * @returns {string} A string representing the data_store.
2081
+ */
2082
+ matchDataStoreFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2083
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).data_store;
2084
+ }
2085
+ /**
2086
+ * Parse the conversation from ProjectLocationDataStoreConversation resource.
2087
+ *
2088
+ * @param {string} projectLocationDataStoreConversationName
2089
+ * A fully-qualified path representing project_location_data_store_conversation resource.
2090
+ * @returns {string} A string representing the conversation.
2091
+ */
2092
+ matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2093
+ return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
2094
+ }
2095
+ /**
2096
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2097
+ *
2098
+ * @param {string} project
2099
+ * @param {string} location
2100
+ * @param {string} data_store
2101
+ * @returns {string} Resource name string.
2102
+ */
2103
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
2104
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
2105
+ project: project,
2106
+ location: location,
2107
+ data_store: dataStore,
2108
+ });
2109
+ }
2110
+ /**
2111
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
2112
+ *
2113
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2114
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2115
+ * @returns {string} A string representing the project.
2116
+ */
2117
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2118
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
2119
+ }
2120
+ /**
2121
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
2122
+ *
2123
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2124
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2125
+ * @returns {string} A string representing the location.
2126
+ */
2127
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2128
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
2129
+ }
2130
+ /**
2131
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
2132
+ *
2133
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2134
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2135
+ * @returns {string} A string representing the data_store.
2136
+ */
2137
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2138
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
2139
+ }
2140
+ /**
2141
+ * Return a fully-qualified projectLocationDataStoreSchema resource name string.
2142
+ *
2143
+ * @param {string} project
2144
+ * @param {string} location
2145
+ * @param {string} data_store
2146
+ * @param {string} schema
2147
+ * @returns {string} Resource name string.
2148
+ */
2149
+ projectLocationDataStoreSchemaPath(project, location, dataStore, schema) {
2150
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.render({
2151
+ project: project,
2152
+ location: location,
2153
+ data_store: dataStore,
2154
+ schema: schema,
2155
+ });
2156
+ }
2157
+ /**
2158
+ * Parse the project from ProjectLocationDataStoreSchema resource.
2159
+ *
2160
+ * @param {string} projectLocationDataStoreSchemaName
2161
+ * A fully-qualified path representing project_location_data_store_schema resource.
2162
+ * @returns {string} A string representing the project.
2163
+ */
2164
+ matchProjectFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2165
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).project;
2166
+ }
2167
+ /**
2168
+ * Parse the location from ProjectLocationDataStoreSchema resource.
2169
+ *
2170
+ * @param {string} projectLocationDataStoreSchemaName
2171
+ * A fully-qualified path representing project_location_data_store_schema resource.
2172
+ * @returns {string} A string representing the location.
2173
+ */
2174
+ matchLocationFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2175
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).location;
2176
+ }
2177
+ /**
2178
+ * Parse the data_store from ProjectLocationDataStoreSchema resource.
2179
+ *
2180
+ * @param {string} projectLocationDataStoreSchemaName
2181
+ * A fully-qualified path representing project_location_data_store_schema resource.
2182
+ * @returns {string} A string representing the data_store.
2183
+ */
2184
+ matchDataStoreFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2185
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).data_store;
2186
+ }
2187
+ /**
2188
+ * Parse the schema from ProjectLocationDataStoreSchema resource.
2189
+ *
2190
+ * @param {string} projectLocationDataStoreSchemaName
2191
+ * A fully-qualified path representing project_location_data_store_schema resource.
2192
+ * @returns {string} A string representing the schema.
2193
+ */
2194
+ matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2195
+ return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2196
+ }
2197
+ /**
2198
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2199
+ *
2200
+ * @param {string} project
2201
+ * @param {string} location
2202
+ * @param {string} data_store
2203
+ * @param {string} serving_config
2204
+ * @returns {string} Resource name string.
2205
+ */
2206
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2207
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2208
+ project: project,
2209
+ location: location,
2210
+ data_store: dataStore,
2211
+ serving_config: servingConfig,
2212
+ });
2213
+ }
2214
+ /**
2215
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2216
+ *
2217
+ * @param {string} projectLocationDataStoreServingConfigName
2218
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2219
+ * @returns {string} A string representing the project.
2220
+ */
2221
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2222
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2223
+ }
2224
+ /**
2225
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2226
+ *
2227
+ * @param {string} projectLocationDataStoreServingConfigName
2228
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2229
+ * @returns {string} A string representing the location.
2230
+ */
2231
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2232
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2233
+ }
2234
+ /**
2235
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2236
+ *
2237
+ * @param {string} projectLocationDataStoreServingConfigName
2238
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2239
+ * @returns {string} A string representing the data_store.
2240
+ */
2241
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2242
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2243
+ }
2244
+ /**
2245
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2246
+ *
2247
+ * @param {string} projectLocationDataStoreServingConfigName
2248
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2249
+ * @returns {string} A string representing the serving_config.
2250
+ */
2251
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2252
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2253
+ }
2254
+ /**
2255
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2256
+ *
2257
+ * @param {string} project
2258
+ * @param {string} location
2259
+ * @param {string} data_store
2260
+ * @returns {string} Resource name string.
2261
+ */
2262
+ projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
2263
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
2264
+ project: project,
2265
+ location: location,
2266
+ data_store: dataStore,
2267
+ });
2268
+ }
2269
+ /**
2270
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
2271
+ *
2272
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2273
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2274
+ * @returns {string} A string representing the project.
2275
+ */
2276
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2277
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
2278
+ }
2279
+ /**
2280
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
2281
+ *
2282
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2283
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2284
+ * @returns {string} A string representing the location.
2285
+ */
2286
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2287
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
2288
+ }
2289
+ /**
2290
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
2291
+ *
2292
+ * @param {string} projectLocationDataStoreSiteSearchEngineName
2293
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
2294
+ * @returns {string} A string representing the data_store.
2295
+ */
2296
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2297
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2298
+ }
2299
+ /**
2300
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2301
+ *
2302
+ * @param {string} project
2303
+ * @param {string} location
2304
+ * @param {string} data_store
2305
+ * @param {string} target_site
2306
+ * @returns {string} Resource name string.
2307
+ */
2308
+ projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
2309
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
2310
+ project: project,
2311
+ location: location,
2312
+ data_store: dataStore,
2313
+ target_site: targetSite,
2314
+ });
2315
+ }
2316
+ /**
2317
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2318
+ *
2319
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2320
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2321
+ * @returns {string} A string representing the project.
2322
+ */
2323
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2324
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
2325
+ }
2326
+ /**
2327
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2328
+ *
2329
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2330
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2331
+ * @returns {string} A string representing the location.
2332
+ */
2333
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2334
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
2335
+ }
2336
+ /**
2337
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2338
+ *
2339
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2340
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2341
+ * @returns {string} A string representing the data_store.
2342
+ */
2343
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2344
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
2345
+ }
2346
+ /**
2347
+ * Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
2348
+ *
2349
+ * @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
2350
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
2351
+ * @returns {string} A string representing the target_site.
2352
+ */
2353
+ matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2354
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2355
+ }
2356
+ /**
2357
+ * Terminate the gRPC channel and close the client.
2358
+ *
2359
+ * The client will no longer be usable and all future behavior is undefined.
2360
+ * @returns {Promise} A promise that resolves when the client is closed.
2361
+ */
2362
+ close() {
2363
+ if (this.siteSearchEngineServiceStub && !this._terminated) {
2364
+ return this.siteSearchEngineServiceStub.then(stub => {
2365
+ this._terminated = true;
2366
+ stub.close();
2367
+ this.locationsClient.close();
2368
+ this.operationsClient.close();
2369
+ });
2370
+ }
2371
+ return Promise.resolve();
2372
+ }
2373
+ }
2374
+ exports.SiteSearchEngineServiceClient = SiteSearchEngineServiceClient;
2375
+ //# sourceMappingURL=site_search_engine_service_client.js.map