@google-cloud/discoveryengine 1.3.0 → 1.4.0

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