@google-cloud/discoveryengine 1.6.0 → 1.7.0

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