Service Client: Google::Cloud::Discoveryengine::V1beta::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::V1beta::DocumentService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1beta/document_service.proto

SYNOPSIS

use Google::Cloud::Discoveryengine::V1beta::DocumentService;

my $msg = Google::Cloud::Discoveryengine::V1beta::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::V1beta::DocumentService::GetDocumentRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1beta/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::V1beta::DocumentService::GetDocumentRequest

Request message for [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of [Document][google.cloud.discoveryengine.v1beta.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.v1beta.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.

    If the requested [Document][google.cloud.discoveryengine.v1beta.Document] does not exist, a `NOT_FOUND` error is returned.

Google::Cloud::Discoveryengine::V1beta::DocumentService::ListDocumentsRequest

Request message for [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

    Maximum number of [Document][google.cloud.discoveryengine.v1beta.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: String

    A page token [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDocumentsResponse.next_page_token], received from a previous [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments] call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments] must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.

Google::Cloud::Discoveryengine::V1beta::DocumentService::ListDocumentsResponse

Response message for [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Discoveryengine::V1beta::Document::Document)

    The [Document][google.cloud.discoveryengine.v1beta.Document]s.

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

    Type: String

    A token that can be sent as [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1beta.ListDocumentsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Discoveryengine::V1beta::DocumentService::CreateDocumentRequest

Request message for [DocumentService.CreateDocument][google.cloud.discoveryengine.v1beta.DocumentService.CreateDocument] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. 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::V1beta::Document::Document)

    Required. The [Document][google.cloud.discoveryengine.v1beta.Document] to create.

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

    Type: String

    Required. The ID to use for the [Document][google.cloud.discoveryengine.v1beta.Document], which becomes the final component of the [Document.name][google.cloud.discoveryengine.v1beta.Document.name].

    If the caller does not have permission to create the [Document][google.cloud.discoveryengine.v1beta.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.v1beta.Document]s with the same [parent][google.cloud.discoveryengine.v1beta.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 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.

Google::Cloud::Discoveryengine::V1beta::DocumentService::UpdateDocumentRequest

Request message for [DocumentService.UpdateDocument][google.cloud.discoveryengine.v1beta.DocumentService.UpdateDocument] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Discoveryengine::V1beta::Document::Document)

    Required. The document to update/create.

    If the caller does not have permission to update the [Document][google.cloud.discoveryengine.v1beta.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.

    If the [Document][google.cloud.discoveryengine.v1beta.Document] to update does not exist and [allow_missing][google.cloud.discoveryengine.v1beta.UpdateDocumentRequest.allow_missing] is not set, a `NOT_FOUND` error is returned.

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

    Type: Bool

    If set to `true` and the [Document][google.cloud.discoveryengine.v1beta.Document] is not found, a new [Document][google.cloud.discoveryengine.v1beta.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::V1beta::DocumentService::DeleteDocumentRequest

Request message for [DocumentService.DeleteDocument][google.cloud.discoveryengine.v1beta.DocumentService.DeleteDocument] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of [Document][google.cloud.discoveryengine.v1beta.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.v1beta.Document], regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned.

    If the [Document][google.cloud.discoveryengine.v1beta.Document] to delete does not exist, a `NOT_FOUND` error is returned.

Google::Cloud::Discoveryengine::V1beta::DocumentService::BatchGetDocumentsMetadataRequest

Request message for [DocumentService.BatchGetDocumentsMetadata][google.cloud.discoveryengine.v1beta.DocumentService.BatchGetDocumentsMetadata] method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1beta::DocumentService::BatchGetDocumentsMetadataResponse

Response message for [DocumentService.BatchGetDocumentsMetadata][google.cloud.discoveryengine.v1beta.DocumentService.BatchGetDocumentsMetadata] method.

Inherits from Protobuf::Message.

Accessors

Enum: BatchGetDocumentsMetadataResponse::State

  • STATE_UNSPECIFIED => 0

  • INDEXED => 1

  • NOT_IN_TARGET_SITE => 2

  • NOT_IN_INDEX => 3

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1beta::DocumentService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.