@google-cloud/discoveryengine 1.4.0 → 1.5.0

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