@google-cloud/discoveryengine 1.5.0 → 1.7.0

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