@google-cloud/discoveryengine 1.3.1 → 1.4.1

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