Service Client: Google::Cloud::Contentwarehouse::V1::DocumentService::DocumentServiceClient

Client stub representing the remote DocumentService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to contentwarehouse.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Contentwarehouse::V1::DocumentService - Compiled Protocol Buffers messages for google/cloud/contentwarehouse/v1/document_service.proto

SYNOPSIS

use Google::Cloud::Contentwarehouse::V1::DocumentService;

my $msg = Google::Cloud::Contentwarehouse::V1::DocumentService::CreateDocumentResponse->new({
    document => $document,
    rule_engine_output => $rule_engine_output,
    metadata => $metadata,
    long_running_operations => $long_running_operations,
});

# Read or update a field
my $val = $msg->document();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Contentwarehouse::V1::DocumentService::CreateDocumentResponse->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/contentwarehouse/v1/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::Contentwarehouse::V1::DocumentService::CreateDocumentResponse

Response message for DocumentService.CreateDocument.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::DocumentService::UpdateDocumentResponse

Response message for DocumentService.UpdateDocument.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult

Additional result info for the question-answering feature.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::DocumentService::QAResult::Highlight)

    Highlighted sections in the snippet.

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

    Type: Float

    The calibrated confidence score for this document, in the range [0., 1.]. This represents the confidence level for whether the returned document and snippet answers the user's query.

Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse

Response message for DocumentService.SearchDocuments.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::DocumentService::SearchDocumentsResponse::MatchingDocument)

    The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].

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

    Type: String

    The token that specifies the starting position of the next page of results. This field is empty if there are no more results.

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

    Type: Int32

    The total number of matched documents which is available only if the client set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true` or set [SearchDocumentsRequest.total_result_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.total_result_size] to `ESTIMATED_SIZE` or `ACTUAL_SIZE`. Otherwise, the value will be `-1`. Typically a UI would handle this condition by displaying "of many", for example: "Displaying 10 of many".

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::Common::ResponseMetadata)

    Additional information for the API invocation, such as the request tracking id.

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

    Type: Message (Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult)

    The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].

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

    Type: String

    Experimental. Question answer from the query against the document.

Google::Cloud::Contentwarehouse::V1::DocumentService::FetchAclResponse

Response message for DocumentService.FetchAcl.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::DocumentService::SetAclResponse

Response message for DocumentService.SetAcl.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Contentwarehouse::V1::DocumentService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.