Class protos.google.cloud.contentwarehouse.v1.DocumentLinkService (1.7.0)

Represents a DocumentLinkService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.contentwarehouse.v1.DocumentLinkService

Package

@google-cloud/contentwarehouse

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new DocumentLinkService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DocumentLinkService;

Creates new DocumentLinkService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
DocumentLinkService

RPC service. Useful where requests and/or responses are streamed.

public createDocumentLink(request: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.CreateDocumentLinkCallback): void;

Calls CreateDocumentLink.

Parameters
NameDescription
request ICreateDocumentLinkRequest

CreateDocumentLinkRequest message or plain object

callback CreateDocumentLinkCallback

Node-style callback called with the error, if any, and DocumentLink

Returns
TypeDescription
void
public createDocumentLink(request: google.cloud.contentwarehouse.v1.ICreateDocumentLinkRequest): Promise<google.cloud.contentwarehouse.v1.DocumentLink>;

Calls CreateDocumentLink.

Parameter
NameDescription
request ICreateDocumentLinkRequest

CreateDocumentLinkRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.DocumentLink>

Promise

public deleteDocumentLink(request: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.DeleteDocumentLinkCallback): void;

Calls DeleteDocumentLink.

Parameters
NameDescription
request IDeleteDocumentLinkRequest

DeleteDocumentLinkRequest message or plain object

callback DeleteDocumentLinkCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void
public deleteDocumentLink(request: google.cloud.contentwarehouse.v1.IDeleteDocumentLinkRequest): Promise<google.protobuf.Empty>;

Calls DeleteDocumentLink.

Parameter
NameDescription
request IDeleteDocumentLinkRequest

DeleteDocumentLinkRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

listLinkedSources(request, callback)

public listLinkedSources(request: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedSourcesCallback): void;

Calls ListLinkedSources.

Parameters
NameDescription
request IListLinkedSourcesRequest

ListLinkedSourcesRequest message or plain object

callback ListLinkedSourcesCallback

Node-style callback called with the error, if any, and ListLinkedSourcesResponse

Returns
TypeDescription
void

listLinkedSources(request)

public listLinkedSources(request: google.cloud.contentwarehouse.v1.IListLinkedSourcesRequest): Promise<google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>;

Calls ListLinkedSources.

Parameter
NameDescription
request IListLinkedSourcesRequest

ListLinkedSourcesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse>

Promise

listLinkedTargets(request, callback)

public listLinkedTargets(request: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest, callback: google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedTargetsCallback): void;

Calls ListLinkedTargets.

Parameters
NameDescription
request IListLinkedTargetsRequest

ListLinkedTargetsRequest message or plain object

callback ListLinkedTargetsCallback

Node-style callback called with the error, if any, and ListLinkedTargetsResponse

Returns
TypeDescription
void

listLinkedTargets(request)

public listLinkedTargets(request: google.cloud.contentwarehouse.v1.IListLinkedTargetsRequest): Promise<google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>;

Calls ListLinkedTargets.

Parameter
NameDescription
request IListLinkedTargetsRequest

ListLinkedTargetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse>

Promise