@google-cloud/discoveryengine 1.3.1 → 1.4.1

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