@google-cloud/discoveryengine 1.3.1 → 1.4.1

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