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