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

Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetOperationMetadata

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest

Inherits from Protobuf::Message.

Accessors

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

Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentRequest

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentResponse

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsRequest

Inherits from Protobuf::Message.

Accessors

  • $msg->dataset() / $msg->dataset($value)

    Type: String

    Required. 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: Int32

    The 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: String

    A 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: String

    Optional. 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: Bool

    Optional. 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: Int32

    Optional. 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: String

    A 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: Int32

    Total count of documents queried.

Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsRequest

Inherits from Protobuf::Message.

Accessors

  • $msg->dataset() / $msg->dataset($value)

    Type: String

    Required. 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

Google::Cloud::Documentai::V1beta3::DocumentService::GetDatasetSchemaRequest

Request for `GetDatasetSchema`.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

  • $msg->visible_fields_only() / $msg->visible_fields_only($value)

    Type: Bool

    If set, only returns the visible fields of the schema.

Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetSchemaRequest

Request for `UpdateDatasetSchema`.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Documentai::V1beta3::DocumentService::DocumentPageRange

Range of pages present in a document.

Inherits from Protobuf::Message.

Accessors

  • $msg->start() / $msg->start($value)

    Type: Int32

    First page number (one-based index) to be returned.

  • $msg->end() / $msg->end($value)

    Type: Int32

    Last page number (one-based index) to be returned.

Google::Cloud::Documentai::V1beta3::DocumentService::DocumentMetadata

Metadata about a document.

Inherits from Protobuf::Message.

Accessors

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.