public class DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents extends Object
| Constructor and Description |
|---|
Documents() |
public DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents.Create create(String parent, GoogleCloudDiscoveryengineV1Document content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{co
llection}/dataStores/{data_store}/branches/{branch}`.content - the GoogleCloudDiscoveryengineV1DocumentIOExceptionpublic DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collectio
ns/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the
caller does not have permission to delete the Document, regardless of whether or not it
exists, a `PERMISSION_DENIED` error is returned. If the Document to delete does not exist,
a `NOT_FOUND` error is returned.IOExceptionpublic DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collectio
ns/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the
caller does not have permission to access the Document, regardless of whether or not it
exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist,
a `NOT_FOUND` error is returned.IOExceptionpublic DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents.DiscoveryEngineImport discoveryengineImport(String parent, GoogleCloudDiscoveryengineV1ImportDocumentsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.parent - Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collecti
ons/{collection}/dataStores/{data_store}/branches/{branch}`. Requires create/update
permission.content - the GoogleCloudDiscoveryengineV1ImportDocumentsRequestIOExceptionpublic DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collecti
ons/{collection}/dataStores/{data_store}/branches/{branch}`. Use `default_branch` as the
branch ID, to list documents under the default branch. If the caller does not have
permission to list Documents under this branch, regardless of whether or not this branch
exists, a `PERMISSION_DENIED` error is returned.IOExceptionpublic DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents.Patch patch(String name, GoogleCloudDiscoveryengineV1Document content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Immutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/
collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}
`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.content - the GoogleCloudDiscoveryengineV1DocumentIOExceptionpublic DiscoveryEngine.Projects.Locations.DataStores.Branches.Documents.Purge purge(String parent, GoogleCloudDiscoveryengineV1PurgeDocumentsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{co
llection}/dataStores/{data_store}/branches/{branch}`.content - the GoogleCloudDiscoveryengineV1PurgeDocumentsRequestIOExceptionCopyright © 2011–2026 Google. All rights reserved.