Service Client: Google::Cloud::Contentwarehouse::V1::DocumentLinkService::DocumentLinkServiceClient
Client stub representing the remote DocumentLinkService 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::DocumentLinkService - Compiled Protocol Buffers messages for google/cloud/contentwarehouse/v1/document_link_service.proto
SYNOPSIS
use Google::Cloud::Contentwarehouse::V1::DocumentLinkService;
my $msg = Google::Cloud::Contentwarehouse::V1::DocumentLinkService::ListLinkedTargetsResponse->new({
document_links => $document_links,
next_page_token => $next_page_token,
});
# Read or update a field
my $val = $msg->document_links();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Contentwarehouse::V1::DocumentLinkService::ListLinkedTargetsResponse->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/contentwarehouse/v1/document_link_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::DocumentLinkService::ListLinkedTargetsResponse
Response message for DocumentLinkService.ListLinkedTargets.
Inherits from Protobuf::Message.
Accessors
$msg->document_links()/$msg->document_links($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentLinkService::DocumentLink)Target document-links.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Contentwarehouse::V1::DocumentLinkService::ListLinkedTargetsRequest
Request message for DocumentLinkService.ListLinkedTargets.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the document, for which all target links are returned. Format: projects/{project_number}/locations/{location}/documents/{target_document_id}.
$msg->request_metadata()/$msg->request_metadata($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Common::RequestMetadata)The meta information collected about the document creator, used to enforce access control for the service.
Google::Cloud::Contentwarehouse::V1::DocumentLinkService::ListLinkedSourcesResponse
Response message for DocumentLinkService.ListLinkedSources.
Inherits from Protobuf::Message.
Accessors
$msg->document_links()/$msg->document_links($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentLinkService::DocumentLink)Source document-links.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Contentwarehouse::V1::DocumentLinkService::ListLinkedSourcesRequest
Response message for DocumentLinkService.ListLinkedSources.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the document, for which all source links are returned. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of document-links to return. The service may return fewer than this value.
If unspecified, at most 50 document-links will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListLinkedSources` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListLinkedSources` must match the call that provided the page token.
$msg->request_metadata()/$msg->request_metadata($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Common::RequestMetadata)The meta information collected about the document creator, used to enforce access control for the service.
Google::Cloud::Contentwarehouse::V1::DocumentLinkService::DocumentLink
A document-link between source and target document.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of this document-link. It is required that the parent derived form the name to be consistent with the source document reference. Otherwise an exception will be thrown. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
$msg->source_document_reference()/$msg->source_document_reference($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Document::DocumentReference)Document references of the source document.
$msg->target_document_reference()/$msg->target_document_reference($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Document::DocumentReference)Document references of the target document.
$msg->description()/$msg->description($value)Type:
StringDescription of this document-link.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the documentLink is last updated.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the documentLink is created.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Contentwarehouse::V1::DocumentLink::State)The state of the documentlink. If target node has been deleted, the link is marked as invalid. Removing a source node will result in removal of all associated links.
Enum: DocumentLink::State
STATE_UNSPECIFIED=>0ACTIVE=>1SOFT_DELETED=>2
Google::Cloud::Contentwarehouse::V1::DocumentLinkService::CreateDocumentLinkRequest
Request message for DocumentLinkService.CreateDocumentLink.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent of the document-link to be created. parent of document-link should be a document. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}.
$msg->document_link()/$msg->document_link($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::DocumentLinkService::DocumentLink)Required. Document links associated with the source documents (source_document_id).
$msg->request_metadata()/$msg->request_metadata($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Common::RequestMetadata)The meta information collected about the document creator, used to enforce access control for the service.
Google::Cloud::Contentwarehouse::V1::DocumentLinkService::DeleteDocumentLinkRequest
Request message for DocumentLinkService.DeleteDocumentLink.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the document-link to be deleted. Format: projects/{project_number}/locations/{location}/documents/{source_document_id}/documentLinks/{document_link_id}.
$msg->request_metadata()/$msg->request_metadata($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Common::RequestMetadata)The meta information collected about the document creator, used to enforce access control for the service.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Contentwarehouse::V1::DocumentLinkService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.