@google-cloud/discoveryengine 1.3.1 → 1.4.1

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