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

Represents a CommentService

Inheritance

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

Package

@google-cloud/support

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createComment(request, callback)

public createComment(request: google.cloud.support.v2.ICreateCommentRequest, callback: google.cloud.support.v2.CommentService.CreateCommentCallback): void;

Calls CreateComment.

Parameters
NameDescription
request ICreateCommentRequest

CreateCommentRequest message or plain object

callback CreateCommentCallback

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

Returns
TypeDescription
void

createComment(request)

public createComment(request: google.cloud.support.v2.ICreateCommentRequest): Promise<google.cloud.support.v2.Comment>;

Calls CreateComment.

Parameter
NameDescription
request ICreateCommentRequest

CreateCommentRequest message or plain object

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

Promise

listComments(request, callback)

public listComments(request: google.cloud.support.v2.IListCommentsRequest, callback: google.cloud.support.v2.CommentService.ListCommentsCallback): void;

Calls ListComments.

Parameters
NameDescription
request IListCommentsRequest

ListCommentsRequest message or plain object

callback ListCommentsCallback

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

Returns
TypeDescription
void

listComments(request)

public listComments(request: google.cloud.support.v2.IListCommentsRequest): Promise<google.cloud.support.v2.ListCommentsResponse>;

Calls ListComments.

Parameter
NameDescription
request IListCommentsRequest

ListCommentsRequest message or plain object

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

Promise