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