Service Client: Google::Cloud::Documentai::V1beta3::DocumentService::DocumentServiceClient
Client stub representing the remote DocumentService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to documentai.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Documentai::V1beta3::DocumentService - Compiled Protocol Buffers messages for google/cloud/documentai/v1beta3/document_service.proto
SYNOPSIS
use Google::Cloud::Documentai::V1beta3::DocumentService;
my $msg = Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetRequest->new({
dataset => $dataset,
update_mask => $update_mask,
});
# Read or update a field
my $val = $msg->dataset();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/documentai/v1beta3/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::Documentai::V1beta3::DocumentService::UpdateDatasetRequest
Inherits from Protobuf::Message.
Accessors
$msg->dataset()/$msg->dataset($value)Type:
Message(Google::Cloud::Documentai::V1beta3::Dataset::Dataset)Required. The `name` field of the `Dataset` is used to identify the resource to be updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The update mask applies to the resource.
Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetOperationMetadata
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1beta3::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest
Inherits from Protobuf::Message.
Accessors
$msg->dataset()/$msg->dataset($value)Type:
StringRequired. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
$msg->batch_documents_import_configs()/$msg->batch_documents_import_configs($value)Type:
Message(Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest::BatchDocumentsImportConfig)Required. The Cloud Storage uri containing raw documents that must be imported.
Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsResponse
Response of the import document operation.
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata
Metadata of the import document operation.
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1beta3::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
$msg->individual_import_statuses()/$msg->individual_import_statuses($value)Type:
Message(Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::IndividualImportStatus)The list of response details of each document.
$msg->import_config_validation_results()/$msg->import_config_validation_results($value)Type:
Message(Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::ImportConfigValidationResult)Validation statuses of the batch documents import config.
$msg->total_document_count()/$msg->total_document_count($value)Type:
Int32Total number of the documents that are qualified for importing.
Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentRequest
Inherits from Protobuf::Message.
Accessors
$msg->dataset()/$msg->dataset($value)Type:
StringRequired. The resource name of the dataset that the document belongs to . Format: projects/{project}/locations/{location}/processors/{processor}/dataset
$msg->document_id()/$msg->document_id($value)Type:
Message(Google::Cloud::Documentai::V1beta3::Dataset::DocumentId)Required. Document identifier.
$msg->read_mask()/$msg->read_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)If set, only fields listed here will be returned. Otherwise, all fields will be returned by default.
$msg->page_range()/$msg->page_range($value)Type:
Message(Google::Cloud::Documentai::V1beta3::DocumentService::DocumentPageRange)List of pages for which the fields specified in the `read_mask` must be served.
Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentResponse
Inherits from Protobuf::Message.
Accessors
$msg->document()/$msg->document($value)Type:
Message(Google::Cloud::Documentai::V1beta3::Document::Document)
Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsRequest
Inherits from Protobuf::Message.
Accessors
$msg->dataset()/$msg->dataset($value)Type:
StringRequired. The resource name of the dataset to be listed. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of documents to return. The service may return fewer than this value. If unspecified, at most 20 documents will be returned. The maximum value is 100; values above 100 will be coerced to 100.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListDocuments` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Query to filter the documents based on https://google.aip.dev/160. ## Currently support query strings are:
`SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED` - `LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED` - `DisplayName=\"file_name.pdf\"` - `EntityType=abc/def` - `TagName=\"auto-labeling-running\"|\"sampled\"`
Note: - Only `AND`, `=` and `!=` are supported. e.g. `DisplayName=file_name AND EntityType!=abc` IS supported. - Wildcard `*` is supported only in `DisplayName` filter - No duplicate filter keys are allowed, e.g. `EntityType=a AND EntityType=b` is NOT supported. - String match is case sensitive (for filter `DisplayName` & `EntityType`).
$msg->return_total_size()/$msg->return_total_size($value)Type:
BoolOptional. Controls if the request requires a total size of matched documents. See [ListDocumentsResponse.total_size][google.cloud.documentai.v1beta3.ListDocumentsResponse.total_size].
Enabling this flag may adversely impact performance.
Defaults to false.
$msg->skip()/$msg->skip($value)Type:
Int32Optional. Number of results to skip beginning from the `page_token` if provided. https://google.aip.dev/158#skipping-results. It must be a non-negative integer. Negative values will be rejected. Note that this is not the number of pages to skip. If this value causes the cursor to move past the end of results, [ListDocumentsResponse.document_metadata][google.cloud.documentai.v1beta3.ListDocumentsResponse.document_metadata] and [ListDocumentsResponse.next_page_token][google.cloud.documentai.v1beta3.ListDocumentsResponse.next_page_token] will be empty.
Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsResponse
Inherits from Protobuf::Message.
Accessors
$msg->document_metadata()/$msg->document_metadata($value)Type:
Message(Google::Cloud::Documentai::V1beta3::DocumentService::DocumentMetadata)Document metadata corresponding to the listed documents.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as [ListDocumentsRequest.page_token][google.cloud.documentai.v1beta3.ListDocumentsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
$msg->total_size()/$msg->total_size($value)Type:
Int32Total count of documents queried.
Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsRequest
Inherits from Protobuf::Message.
Accessors
$msg->dataset()/$msg->dataset($value)Type:
StringRequired. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
$msg->dataset_documents()/$msg->dataset_documents($value)Type:
Message(Google::Cloud::Documentai::V1beta3::Dataset::BatchDatasetDocuments)Required. Dataset documents input. If given `filter`, all documents satisfying the filter will be deleted. If given documentIds, a maximum of 50 documents can be deleted in a batch. The request will be rejected if more than 50 document_ids are provided.
Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsResponse
Response of the delete documents operation.
Inherits from Protobuf::Message.
Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata
Inherits from Protobuf::Message.
Accessors
$msg->common_metadata()/$msg->common_metadata($value)Type:
Message(Google::Cloud::Documentai::V1beta3::OperationMetadata::CommonOperationMetadata)The basic metadata of the long-running operation.
$msg->individual_batch_delete_statuses()/$msg->individual_batch_delete_statuses($value)Type:
Message(Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata::IndividualBatchDeleteStatus)The list of response details of each document.
$msg->total_document_count()/$msg->total_document_count($value)Type:
Int32Total number of documents deleting from dataset.
$msg->error_document_count()/$msg->error_document_count($value)Type:
Int32Total number of documents that failed to be deleted in storage.
Google::Cloud::Documentai::V1beta3::DocumentService::GetDatasetSchemaRequest
Request for `GetDatasetSchema`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
$msg->visible_fields_only()/$msg->visible_fields_only($value)Type:
BoolIf set, only returns the visible fields of the schema.
Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetSchemaRequest
Request for `UpdateDatasetSchema`.
Inherits from Protobuf::Message.
Accessors
$msg->dataset_schema()/$msg->dataset_schema($value)Type:
Message(Google::Cloud::Documentai::V1beta3::Dataset::DatasetSchema)Required. The name field of the `DatasetSchema` is used to identify the resource to be updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The update mask applies to the resource.
Google::Cloud::Documentai::V1beta3::DocumentService::DocumentPageRange
Range of pages present in a document.
Inherits from Protobuf::Message.
Accessors
$msg->start()/$msg->start($value)Type:
Int32First page number (one-based index) to be returned.
$msg->end()/$msg->end($value)Type:
Int32Last page number (one-based index) to be returned.
Google::Cloud::Documentai::V1beta3::DocumentService::DocumentMetadata
Metadata about a document.
Inherits from Protobuf::Message.
Accessors
$msg->document_id()/$msg->document_id($value)Type:
Message(Google::Cloud::Documentai::V1beta3::Dataset::DocumentId)Document identifier.
$msg->page_count()/$msg->page_count($value)Type:
Int32Number of pages in the document.
$msg->dataset_type()/$msg->dataset_type($value)Type:
Enum(Google::Cloud::Documentai::V1beta3::DatasetSplitType)Type of the dataset split to which the document belongs.
$msg->labeling_state()/$msg->labeling_state($value)Type:
Enum(Google::Cloud::Documentai::V1beta3::DocumentLabelingState)Labeling state of the document.
$msg->display_name()/$msg->display_name($value)Type:
StringThe display name of the document.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Documentai::V1beta3::DocumentService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.