Represents a CommentService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.support.v2.CommentServicePackage
@google-cloud/supportConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new CommentService service.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ICreateCommentRequest
CreateCommentRequest message or plain object |
callback |
CreateCommentCallback
Node-style callback called with the error, if any, and Comment |
| Returns | |
|---|---|
| Type | Description |
void |
|
createComment(request)
public createComment(request: google.cloud.support.v2.ICreateCommentRequest): Promise<google.cloud.support.v2.Comment>;Calls CreateComment.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateCommentRequest
CreateCommentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.support.v2.Comment> |
Promise |
getComment(request, callback)
public getComment(request: google.cloud.support.v2.IGetCommentRequest, callback: google.cloud.support.v2.CommentService.GetCommentCallback): void;Calls GetComment.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetCommentRequest
GetCommentRequest message or plain object |
callback |
GetCommentCallback
Node-style callback called with the error, if any, and Comment |
| Returns | |
|---|---|
| Type | Description |
void |
|
getComment(request)
public getComment(request: google.cloud.support.v2.IGetCommentRequest): Promise<google.cloud.support.v2.Comment>;Calls GetComment.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetCommentRequest
GetCommentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IListCommentsRequest
ListCommentsRequest message or plain object |
callback |
ListCommentsCallback
Node-style callback called with the error, if any, and ListCommentsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listComments(request)
public listComments(request: google.cloud.support.v2.IListCommentsRequest): Promise<google.cloud.support.v2.ListCommentsResponse>;Calls ListComments.
| Parameter | |
|---|---|
| Name | Description |
request |
IListCommentsRequest
ListCommentsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.support.v2.ListCommentsResponse> |
Promise |