@google-cloud/discoveryengine 1.9.0 → 1.10.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 +2 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +35 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +108 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +200 -4
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +3 -0
- package/build/protos/protos.d.ts +3851 -1527
- package/build/protos/protos.js +14056 -8213
- package/build/protos/protos.json +548 -8
- package/build/src/v1/completion_service_client.d.ts +220 -0
- package/build/src/v1/completion_service_client.js +260 -0
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/control_service_client.d.ts +129 -1
- package/build/src/v1/control_service_client.js +176 -0
- package/build/src/v1/conversational_search_service_client.d.ts +147 -1
- package/build/src/v1/conversational_search_service_client.js +176 -0
- package/build/src/v1/data_store_service_client.d.ts +129 -1
- package/build/src/v1/data_store_service_client.js +176 -0
- package/build/src/v1/document_service_client.d.ts +131 -1
- package/build/src/v1/document_service_client.js +176 -0
- package/build/src/v1/engine_service_client.d.ts +129 -1
- package/build/src/v1/engine_service_client.js +176 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +129 -0
- package/build/src/v1/grounded_generation_service_client.js +176 -0
- package/build/src/v1/project_service_client.d.ts +129 -0
- package/build/src/v1/project_service_client.js +176 -0
- package/build/src/v1/rank_service_client.d.ts +129 -0
- package/build/src/v1/rank_service_client.js +176 -0
- package/build/src/v1/recommendation_service_client.d.ts +129 -0
- package/build/src/v1/recommendation_service_client.js +176 -0
- package/build/src/v1/schema_service_client.d.ts +129 -1
- package/build/src/v1/schema_service_client.js +176 -0
- package/build/src/v1/search_service_client.d.ts +252 -1
- package/build/src/v1/search_service_client.js +258 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +129 -1
- package/build/src/v1/site_search_engine_service_client.js +176 -0
- package/build/src/v1/user_event_service_client.d.ts +129 -0
- package/build/src/v1/user_event_service_client.js +176 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +0 -1
- package/build/src/v1alpha/control_service_client.d.ts +0 -1
- package/build/src/v1alpha/conversational_search_service_client.d.ts +0 -1
- package/build/src/v1alpha/data_store_service_client.d.ts +0 -1
- package/build/src/v1alpha/document_service_client.d.ts +0 -1
- package/build/src/v1alpha/engine_service_client.d.ts +0 -1
- package/build/src/v1alpha/schema_service_client.d.ts +0 -1
- package/build/src/v1alpha/search_service_client.d.ts +0 -1
- package/build/src/v1alpha/serving_config_service_client.d.ts +0 -1
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +0 -1
- package/build/src/v1beta/control_service_client.d.ts +0 -1
- package/build/src/v1beta/conversational_search_service_client.d.ts +0 -1
- package/build/src/v1beta/data_store_service_client.d.ts +0 -1
- package/build/src/v1beta/document_service_client.d.ts +0 -1
- package/build/src/v1beta/engine_service_client.d.ts +0 -1
- package/build/src/v1beta/schema_service_client.d.ts +0 -1
- package/build/src/v1beta/search_service_client.d.ts +0 -1
- package/build/src/v1beta/serving_config_service_client.d.ts +0 -1
- package/build/src/v1beta/site_search_engine_service_client.d.ts +0 -1
- package/package.json +1 -1
@@ -153,6 +153,7 @@ class UserEventServiceClient {
|
|
153
153
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
154
154
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
155
155
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
156
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
156
157
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
157
158
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
158
159
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
@@ -167,6 +168,7 @@ class UserEventServiceClient {
|
|
167
168
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
168
169
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
169
170
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
171
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
170
172
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
171
173
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
172
174
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
@@ -893,6 +895,99 @@ class UserEventServiceClient {
|
|
893
895
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
894
896
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
895
897
|
}
|
898
|
+
/**
|
899
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
900
|
+
*
|
901
|
+
* @param {string} project
|
902
|
+
* @param {string} location
|
903
|
+
* @param {string} collection
|
904
|
+
* @param {string} data_store
|
905
|
+
* @param {string} branch
|
906
|
+
* @param {string} document
|
907
|
+
* @param {string} chunk
|
908
|
+
* @returns {string} Resource name string.
|
909
|
+
*/
|
910
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
911
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
912
|
+
project: project,
|
913
|
+
location: location,
|
914
|
+
collection: collection,
|
915
|
+
data_store: dataStore,
|
916
|
+
branch: branch,
|
917
|
+
document: document,
|
918
|
+
chunk: chunk,
|
919
|
+
});
|
920
|
+
}
|
921
|
+
/**
|
922
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
923
|
+
*
|
924
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
925
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
926
|
+
* @returns {string} A string representing the project.
|
927
|
+
*/
|
928
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
929
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
930
|
+
}
|
931
|
+
/**
|
932
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
933
|
+
*
|
934
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
935
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
936
|
+
* @returns {string} A string representing the location.
|
937
|
+
*/
|
938
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
939
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
940
|
+
}
|
941
|
+
/**
|
942
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
943
|
+
*
|
944
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
945
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
946
|
+
* @returns {string} A string representing the collection.
|
947
|
+
*/
|
948
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
949
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
950
|
+
}
|
951
|
+
/**
|
952
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
953
|
+
*
|
954
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
955
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
956
|
+
* @returns {string} A string representing the data_store.
|
957
|
+
*/
|
958
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
959
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
960
|
+
}
|
961
|
+
/**
|
962
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
963
|
+
*
|
964
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
965
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
966
|
+
* @returns {string} A string representing the branch.
|
967
|
+
*/
|
968
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
969
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
970
|
+
}
|
971
|
+
/**
|
972
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
973
|
+
*
|
974
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
975
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
976
|
+
* @returns {string} A string representing the document.
|
977
|
+
*/
|
978
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
979
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
980
|
+
}
|
981
|
+
/**
|
982
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
983
|
+
*
|
984
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
985
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
986
|
+
* @returns {string} A string representing the chunk.
|
987
|
+
*/
|
988
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
989
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
990
|
+
}
|
896
991
|
/**
|
897
992
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
898
993
|
*
|
@@ -1835,6 +1930,87 @@ class UserEventServiceClient {
|
|
1835
1930
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1836
1931
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1837
1932
|
}
|
1933
|
+
/**
|
1934
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1935
|
+
*
|
1936
|
+
* @param {string} project
|
1937
|
+
* @param {string} location
|
1938
|
+
* @param {string} data_store
|
1939
|
+
* @param {string} branch
|
1940
|
+
* @param {string} document
|
1941
|
+
* @param {string} chunk
|
1942
|
+
* @returns {string} Resource name string.
|
1943
|
+
*/
|
1944
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
1945
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
1946
|
+
project: project,
|
1947
|
+
location: location,
|
1948
|
+
data_store: dataStore,
|
1949
|
+
branch: branch,
|
1950
|
+
document: document,
|
1951
|
+
chunk: chunk,
|
1952
|
+
});
|
1953
|
+
}
|
1954
|
+
/**
|
1955
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1956
|
+
*
|
1957
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1958
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1959
|
+
* @returns {string} A string representing the project.
|
1960
|
+
*/
|
1961
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1962
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
1963
|
+
}
|
1964
|
+
/**
|
1965
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1966
|
+
*
|
1967
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1968
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1969
|
+
* @returns {string} A string representing the location.
|
1970
|
+
*/
|
1971
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1972
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
1973
|
+
}
|
1974
|
+
/**
|
1975
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1976
|
+
*
|
1977
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1978
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1979
|
+
* @returns {string} A string representing the data_store.
|
1980
|
+
*/
|
1981
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1982
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
1983
|
+
}
|
1984
|
+
/**
|
1985
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1986
|
+
*
|
1987
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1988
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1989
|
+
* @returns {string} A string representing the branch.
|
1990
|
+
*/
|
1991
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1992
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
1993
|
+
}
|
1994
|
+
/**
|
1995
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1996
|
+
*
|
1997
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1998
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1999
|
+
* @returns {string} A string representing the document.
|
2000
|
+
*/
|
2001
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2002
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2003
|
+
}
|
2004
|
+
/**
|
2005
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2006
|
+
*
|
2007
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2008
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2009
|
+
* @returns {string} A string representing the chunk.
|
2010
|
+
*/
|
2011
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2012
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2013
|
+
}
|
1838
2014
|
/**
|
1839
2015
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
1840
2016
|
*
|