Class protos.google.cloud.support.v2.CaseAttachmentService (1.0.2)

Represents a CaseAttachmentService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.support.v2.CaseAttachmentService

Package

@google-cloud/support

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CaseAttachmentService 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): CaseAttachmentService;

Creates new CaseAttachmentService 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
CaseAttachmentService

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

listAttachments(request, callback)

public listAttachments(request: google.cloud.support.v2.IListAttachmentsRequest, callback: google.cloud.support.v2.CaseAttachmentService.ListAttachmentsCallback): void;

Calls ListAttachments.

Parameters
NameDescription
request IListAttachmentsRequest

ListAttachmentsRequest message or plain object

callback ListAttachmentsCallback

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

Returns
TypeDescription
void

listAttachments(request)

public listAttachments(request: google.cloud.support.v2.IListAttachmentsRequest): Promise<google.cloud.support.v2.ListAttachmentsResponse>;

Calls ListAttachments.

Parameter
NameDescription
request IListAttachmentsRequest

ListAttachmentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.support.v2.ListAttachmentsResponse>

Promise