Service Client: Google::Cloud::Discoveryengine::V1alpha::DocumentService::DocumentServiceClient
Client stub representing the remote DocumentService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to discoveryengine.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Discoveryengine::V1alpha::DocumentService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1alpha/document_service.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1alpha::DocumentService;
my $msg = Google::Cloud::Discoveryengine::V1alpha::DocumentService::GetDocumentRequest->new({
name => $name,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1alpha::DocumentService::GetDocumentRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1alpha/document_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Discoveryengine::V1alpha::DocumentService::GetDocumentRequest
Request message for [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Full resource name of [Document][google.cloud.discoveryengine.v1alpha.Document], such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
If the caller does not have permission to access the [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.
If the requested [Document][google.cloud.discoveryengine.v1alpha.Document] does not exist, a `NOT_FOUND` error is returned.
Google::Cloud::Discoveryengine::V1alpha::DocumentService::ListDocumentsRequest
Request message for [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{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 [Document][google.cloud.discoveryengine.v1alpha.Document]s under this branch, regardless of whether or not this branch exists, a `PERMISSION_DENIED` error is returned.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 are set to 1000.
If this field is negative, an `INVALID_ARGUMENT` error is returned.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsResponse.next_page_token], received from a previous [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
Google::Cloud::Discoveryengine::V1alpha::DocumentService::ListDocumentsResponse
Response message for [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments] method.
Inherits from Protobuf::Message.
Accessors
$msg->documents()/$msg->documents($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::Document::Document)The [Document][google.cloud.discoveryengine.v1alpha.Document]s.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1alpha.ListDocumentsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Discoveryengine::V1alpha::DocumentService::CreateDocumentRequest
Request message for [DocumentService.CreateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
$msg->document()/$msg->document($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::Document::Document)Required. The [Document][google.cloud.discoveryengine.v1alpha.Document] to create.
$msg->document_id()/$msg->document_id($value)Type:
StringRequired. The ID to use for the [Document][google.cloud.discoveryengine.v1alpha.Document], which becomes the final component of the [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
If the caller does not have permission to create the [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.
This field must be unique among all [Document][google.cloud.discoveryengine.v1alpha.Document]s with the same [parent][google.cloud.discoveryengine.v1alpha.CreateDocumentRequest.parent]. Otherwise, an `ALREADY_EXISTS` error is returned.
This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
Google::Cloud::Discoveryengine::V1alpha::DocumentService::UpdateDocumentRequest
Request message for [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1alpha.DocumentService.UpdateDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->document()/$msg->document($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::Document::Document)Required. The document to update/create.
If the caller does not have permission to update the [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.
If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update does not exist and [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing] is not set, a `NOT_FOUND` error is returned.
$msg->allow_missing()/$msg->allow_missing($value)Type:
BoolIf set to `true` and the [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a new [Document][google.cloud.discoveryengine.v1alpha.Document] is be created.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Indicates which fields in the provided imported 'document' to update. If not set, by default updates all fields.
Google::Cloud::Discoveryengine::V1alpha::DocumentService::DeleteDocumentRequest
Request message for [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1alpha.DocumentService.DeleteDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Full resource name of [Document][google.cloud.discoveryengine.v1alpha.Document], such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
If the caller does not have permission to delete the [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.
If the [Document][google.cloud.discoveryengine.v1alpha.Document] to delete does not exist, a `NOT_FOUND` error is returned.
Google::Cloud::Discoveryengine::V1alpha::DocumentService::GetProcessedDocumentRequest
Request message for [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Full resource name of [Document][google.cloud.discoveryengine.v1alpha.Document], such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
If the caller does not have permission to access the [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.
If the requested [Document][google.cloud.discoveryengine.v1alpha.Document] does not exist, a `NOT_FOUND` error is returned.
$msg->processed_document_type()/$msg->processed_document_type($value)Type:
Enum(Google::Cloud::Discoveryengine::V1alpha::GetProcessedDocumentRequest::ProcessedDocumentType)Required. What type of processing to return.
$msg->processed_document_format()/$msg->processed_document_format($value)Type:
Enum(Google::Cloud::Discoveryengine::V1alpha::GetProcessedDocumentRequest::ProcessedDocumentFormat)What format output should be. If unspecified, defaults to JSON.
Enum: GetProcessedDocumentRequest::ProcessedDocumentType
PROCESSED_DOCUMENT_TYPE_UNSPECIFIED=>0PARSED_DOCUMENT=>1CHUNKED_DOCUMENT=>2PNG_CONVERTED_DOCUMENT=>3
Enum: GetProcessedDocumentRequest::ProcessedDocumentFormat
PROCESSED_DOCUMENT_FORMAT_UNSPECIFIED=>0JSON=>1
Google::Cloud::Discoveryengine::V1alpha::DocumentService::BatchGetDocumentsMetadataRequest
Request message for [DocumentService.BatchGetDocumentsMetadata][google.cloud.discoveryengine.v1alpha.DocumentService.BatchGetDocumentsMetadata] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
$msg->matcher()/$msg->matcher($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::DocumentService::BatchGetDocumentsMetadataRequest::Matcher)Required. Matcher for the [Document][google.cloud.discoveryengine.v1alpha.Document]s.
Google::Cloud::Discoveryengine::V1alpha::DocumentService::BatchGetDocumentsMetadataResponse
Response message for [DocumentService.BatchGetDocumentsMetadata][google.cloud.discoveryengine.v1alpha.DocumentService.BatchGetDocumentsMetadata] method.
Inherits from Protobuf::Message.
Accessors
$msg->documents_metadata()/$msg->documents_metadata($value)Type:
Message(Google::Cloud::Discoveryengine::V1alpha::DocumentService::BatchGetDocumentsMetadataResponse::DocumentMetadata)The metadata of the [Document][google.cloud.discoveryengine.v1alpha.Document]s.
Enum: BatchGetDocumentsMetadataResponse::State
STATE_UNSPECIFIED=>0INDEXED=>1NOT_IN_TARGET_SITE=>2NOT_IN_INDEX=>3
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1alpha::DocumentService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.