@google-cloud/discoveryengine 1.5.0 → 1.7.0

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