@google-cloud/discoveryengine 2.0.1 → 2.1.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.
- package/CHANGELOG.md +7 -0
- package/README.md +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
- package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
- package/build/protos/protos.d.ts +5356 -981
- package/build/protos/protos.js +32266 -20956
- package/build/protos/protos.json +1391 -74
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -1
- package/build/src/v1/completion_service_client.d.ts +237 -0
- package/build/src/v1/completion_service_client.js +326 -0
- package/build/src/v1/completion_service_proto_list.json +3 -0
- package/build/src/v1/control_service_client.d.ts +237 -0
- package/build/src/v1/control_service_client.js +326 -0
- package/build/src/v1/control_service_proto_list.json +3 -0
- package/build/src/v1/conversational_search_service_client.d.ts +213 -6
- package/build/src/v1/conversational_search_service_client.js +265 -5
- package/build/src/v1/conversational_search_service_client_config.json +5 -0
- package/build/src/v1/conversational_search_service_proto_list.json +3 -0
- package/build/src/v1/data_store_service_client.d.ts +237 -0
- package/build/src/v1/data_store_service_client.js +326 -0
- package/build/src/v1/data_store_service_proto_list.json +3 -0
- package/build/src/v1/document_service_client.d.ts +244 -1
- package/build/src/v1/document_service_client.js +326 -0
- package/build/src/v1/document_service_proto_list.json +3 -0
- package/build/src/v1/engine_service_client.d.ts +237 -0
- package/build/src/v1/engine_service_client.js +326 -0
- package/build/src/v1/engine_service_proto_list.json +3 -0
- package/build/src/v1/gapic_metadata.json +59 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +238 -3
- package/build/src/v1/grounded_generation_service_client.js +326 -0
- package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/project_service_client.d.ts +237 -0
- package/build/src/v1/project_service_client.js +326 -0
- package/build/src/v1/project_service_proto_list.json +3 -0
- package/build/src/v1/rank_service_client.d.ts +238 -1
- package/build/src/v1/rank_service_client.js +326 -0
- package/build/src/v1/rank_service_proto_list.json +3 -0
- package/build/src/v1/recommendation_service_client.d.ts +95 -2
- package/build/src/v1/recommendation_service_client.js +128 -0
- package/build/src/v1/recommendation_service_proto_list.json +3 -0
- package/build/src/v1/schema_service_client.d.ts +237 -0
- package/build/src/v1/schema_service_client.js +326 -0
- package/build/src/v1/schema_service_proto_list.json +3 -0
- package/build/src/v1/search_service_client.d.ts +219 -30
- package/build/src/v1/search_service_client.js +212 -20
- package/build/src/v1/search_service_proto_list.json +3 -0
- package/build/src/v1/search_tuning_service_client.d.ts +237 -0
- package/build/src/v1/search_tuning_service_client.js +326 -0
- package/build/src/v1/search_tuning_service_proto_list.json +3 -0
- package/build/src/v1/serving_config_service_client.d.ts +1851 -0
- package/build/src/v1/serving_config_service_client.js +2653 -0
- package/build/src/v1/serving_config_service_client_config.json +30 -0
- package/build/src/v1/serving_config_service_proto_list.json +39 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +356 -3
- package/build/src/v1/site_search_engine_service_client.js +473 -0
- package/build/src/v1/site_search_engine_service_client_config.json +12 -0
- package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
- package/build/src/v1/user_event_service_client.d.ts +258 -9
- package/build/src/v1/user_event_service_client.js +326 -0
- package/build/src/v1/user_event_service_proto_list.json +3 -0
- package/package.json +4 -4
@@ -179,12 +179,15 @@ class CompletionServiceClient {
|
|
179
179
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
180
180
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
181
181
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
182
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
182
183
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
183
184
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
184
185
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
186
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
185
187
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
186
188
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
187
189
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
190
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
188
191
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
189
192
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
190
193
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -195,9 +198,11 @@ class CompletionServiceClient {
|
|
195
198
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
196
199
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
197
200
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
201
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
198
202
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
199
203
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
200
204
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
205
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
201
206
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
202
207
|
};
|
203
208
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
@@ -1574,6 +1579,75 @@ class CompletionServiceClient {
|
|
1574
1579
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1575
1580
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1576
1581
|
}
|
1582
|
+
/**
|
1583
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1584
|
+
*
|
1585
|
+
* @param {string} project
|
1586
|
+
* @param {string} location
|
1587
|
+
* @param {string} collection
|
1588
|
+
* @param {string} data_store
|
1589
|
+
* @param {string} serving_config
|
1590
|
+
* @returns {string} Resource name string.
|
1591
|
+
*/
|
1592
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1593
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1594
|
+
project: project,
|
1595
|
+
location: location,
|
1596
|
+
collection: collection,
|
1597
|
+
data_store: dataStore,
|
1598
|
+
serving_config: servingConfig,
|
1599
|
+
});
|
1600
|
+
}
|
1601
|
+
/**
|
1602
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1603
|
+
*
|
1604
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1605
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1606
|
+
* @returns {string} A string representing the project.
|
1607
|
+
*/
|
1608
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1609
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1610
|
+
}
|
1611
|
+
/**
|
1612
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1613
|
+
*
|
1614
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1615
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1616
|
+
* @returns {string} A string representing the location.
|
1617
|
+
*/
|
1618
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1619
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1620
|
+
}
|
1621
|
+
/**
|
1622
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1623
|
+
*
|
1624
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1625
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1626
|
+
* @returns {string} A string representing the collection.
|
1627
|
+
*/
|
1628
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1629
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1630
|
+
}
|
1631
|
+
/**
|
1632
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1633
|
+
*
|
1634
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1635
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1636
|
+
* @returns {string} A string representing the data_store.
|
1637
|
+
*/
|
1638
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1639
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1640
|
+
}
|
1641
|
+
/**
|
1642
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1643
|
+
*
|
1644
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1645
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1646
|
+
* @returns {string} A string representing the serving_config.
|
1647
|
+
*/
|
1648
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1649
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1650
|
+
}
|
1577
1651
|
/**
|
1578
1652
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1579
1653
|
*
|
@@ -1781,6 +1855,75 @@ class CompletionServiceClient {
|
|
1781
1855
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1782
1856
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1783
1857
|
}
|
1858
|
+
/**
|
1859
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1860
|
+
*
|
1861
|
+
* @param {string} project
|
1862
|
+
* @param {string} location
|
1863
|
+
* @param {string} collection
|
1864
|
+
* @param {string} data_store
|
1865
|
+
* @param {string} sitemap
|
1866
|
+
* @returns {string} Resource name string.
|
1867
|
+
*/
|
1868
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1869
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1870
|
+
project: project,
|
1871
|
+
location: location,
|
1872
|
+
collection: collection,
|
1873
|
+
data_store: dataStore,
|
1874
|
+
sitemap: sitemap,
|
1875
|
+
});
|
1876
|
+
}
|
1877
|
+
/**
|
1878
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1879
|
+
*
|
1880
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1881
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1882
|
+
* @returns {string} A string representing the project.
|
1883
|
+
*/
|
1884
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1885
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1886
|
+
}
|
1887
|
+
/**
|
1888
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1889
|
+
*
|
1890
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1891
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1892
|
+
* @returns {string} A string representing the location.
|
1893
|
+
*/
|
1894
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1895
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1896
|
+
}
|
1897
|
+
/**
|
1898
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1899
|
+
*
|
1900
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1901
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1902
|
+
* @returns {string} A string representing the collection.
|
1903
|
+
*/
|
1904
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1905
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1906
|
+
}
|
1907
|
+
/**
|
1908
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1909
|
+
*
|
1910
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1911
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1912
|
+
* @returns {string} A string representing the data_store.
|
1913
|
+
*/
|
1914
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1915
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1916
|
+
}
|
1917
|
+
/**
|
1918
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1919
|
+
*
|
1920
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1921
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1922
|
+
* @returns {string} A string representing the sitemap.
|
1923
|
+
*/
|
1924
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1925
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1926
|
+
}
|
1784
1927
|
/**
|
1785
1928
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1786
1929
|
*
|
@@ -1988,6 +2131,75 @@ class CompletionServiceClient {
|
|
1988
2131
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1989
2132
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1990
2133
|
}
|
2134
|
+
/**
|
2135
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
2136
|
+
*
|
2137
|
+
* @param {string} project
|
2138
|
+
* @param {string} location
|
2139
|
+
* @param {string} collection
|
2140
|
+
* @param {string} engine
|
2141
|
+
* @param {string} serving_config
|
2142
|
+
* @returns {string} Resource name string.
|
2143
|
+
*/
|
2144
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
2145
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
2146
|
+
project: project,
|
2147
|
+
location: location,
|
2148
|
+
collection: collection,
|
2149
|
+
engine: engine,
|
2150
|
+
serving_config: servingConfig,
|
2151
|
+
});
|
2152
|
+
}
|
2153
|
+
/**
|
2154
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
2155
|
+
*
|
2156
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2157
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2158
|
+
* @returns {string} A string representing the project.
|
2159
|
+
*/
|
2160
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2161
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
2162
|
+
}
|
2163
|
+
/**
|
2164
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
2165
|
+
*
|
2166
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2167
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2168
|
+
* @returns {string} A string representing the location.
|
2169
|
+
*/
|
2170
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2171
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2172
|
+
}
|
2173
|
+
/**
|
2174
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2175
|
+
*
|
2176
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2177
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2178
|
+
* @returns {string} A string representing the collection.
|
2179
|
+
*/
|
2180
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2181
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2182
|
+
}
|
2183
|
+
/**
|
2184
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2185
|
+
*
|
2186
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2187
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2188
|
+
* @returns {string} A string representing the engine.
|
2189
|
+
*/
|
2190
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2191
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2192
|
+
}
|
2193
|
+
/**
|
2194
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2195
|
+
*
|
2196
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2197
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2198
|
+
* @returns {string} A string representing the serving_config.
|
2199
|
+
*/
|
2200
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2201
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2202
|
+
}
|
1991
2203
|
/**
|
1992
2204
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1993
2205
|
*
|
@@ -2606,6 +2818,63 @@ class CompletionServiceClient {
|
|
2606
2818
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2607
2819
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2608
2820
|
}
|
2821
|
+
/**
|
2822
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2823
|
+
*
|
2824
|
+
* @param {string} project
|
2825
|
+
* @param {string} location
|
2826
|
+
* @param {string} data_store
|
2827
|
+
* @param {string} serving_config
|
2828
|
+
* @returns {string} Resource name string.
|
2829
|
+
*/
|
2830
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2831
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2832
|
+
project: project,
|
2833
|
+
location: location,
|
2834
|
+
data_store: dataStore,
|
2835
|
+
serving_config: servingConfig,
|
2836
|
+
});
|
2837
|
+
}
|
2838
|
+
/**
|
2839
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2840
|
+
*
|
2841
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2842
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2843
|
+
* @returns {string} A string representing the project.
|
2844
|
+
*/
|
2845
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2846
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2847
|
+
}
|
2848
|
+
/**
|
2849
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2850
|
+
*
|
2851
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2852
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2853
|
+
* @returns {string} A string representing the location.
|
2854
|
+
*/
|
2855
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2856
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2857
|
+
}
|
2858
|
+
/**
|
2859
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2860
|
+
*
|
2861
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2862
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2863
|
+
* @returns {string} A string representing the data_store.
|
2864
|
+
*/
|
2865
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2866
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2867
|
+
}
|
2868
|
+
/**
|
2869
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2870
|
+
*
|
2871
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2872
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2873
|
+
* @returns {string} A string representing the serving_config.
|
2874
|
+
*/
|
2875
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2876
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2877
|
+
}
|
2609
2878
|
/**
|
2610
2879
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2611
2880
|
*
|
@@ -2777,6 +3046,63 @@ class CompletionServiceClient {
|
|
2777
3046
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2778
3047
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2779
3048
|
}
|
3049
|
+
/**
|
3050
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
3051
|
+
*
|
3052
|
+
* @param {string} project
|
3053
|
+
* @param {string} location
|
3054
|
+
* @param {string} data_store
|
3055
|
+
* @param {string} sitemap
|
3056
|
+
* @returns {string} Resource name string.
|
3057
|
+
*/
|
3058
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
3059
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
3060
|
+
project: project,
|
3061
|
+
location: location,
|
3062
|
+
data_store: dataStore,
|
3063
|
+
sitemap: sitemap,
|
3064
|
+
});
|
3065
|
+
}
|
3066
|
+
/**
|
3067
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3068
|
+
*
|
3069
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3070
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3071
|
+
* @returns {string} A string representing the project.
|
3072
|
+
*/
|
3073
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3074
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
3075
|
+
}
|
3076
|
+
/**
|
3077
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3078
|
+
*
|
3079
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3080
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3081
|
+
* @returns {string} A string representing the location.
|
3082
|
+
*/
|
3083
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3084
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
3085
|
+
}
|
3086
|
+
/**
|
3087
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3088
|
+
*
|
3089
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3090
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3091
|
+
* @returns {string} A string representing the data_store.
|
3092
|
+
*/
|
3093
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3094
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
3095
|
+
}
|
3096
|
+
/**
|
3097
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3098
|
+
*
|
3099
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3100
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3101
|
+
* @returns {string} A string representing the sitemap.
|
3102
|
+
*/
|
3103
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3104
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
3105
|
+
}
|
2780
3106
|
/**
|
2781
3107
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2782
3108
|
*
|
@@ -24,10 +24,13 @@
|
|
24
24
|
"../../protos/google/cloud/discoveryengine/v1/purge_config.proto",
|
25
25
|
"../../protos/google/cloud/discoveryengine/v1/rank_service.proto",
|
26
26
|
"../../protos/google/cloud/discoveryengine/v1/recommendation_service.proto",
|
27
|
+
"../../protos/google/cloud/discoveryengine/v1/safety.proto",
|
27
28
|
"../../protos/google/cloud/discoveryengine/v1/schema.proto",
|
28
29
|
"../../protos/google/cloud/discoveryengine/v1/schema_service.proto",
|
29
30
|
"../../protos/google/cloud/discoveryengine/v1/search_service.proto",
|
30
31
|
"../../protos/google/cloud/discoveryengine/v1/search_tuning_service.proto",
|
32
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config.proto",
|
33
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config_service.proto",
|
31
34
|
"../../protos/google/cloud/discoveryengine/v1/session.proto",
|
32
35
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
|
33
36
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
|