1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    [BindServiceMethod(typeof(CommentService), "BindService")]
    public abstract class CommentService.CommentServiceBase

Reference documentation and code samples for the Google Cloud Support v2 API class CommentService.CommentServiceBase.

Base class for server-side implementations of CommentService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CommentService.CommentServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Support.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.md.txt)

## Assembly

Google.Cloud.Support.V2.dll

## Methods

### CreateComment(CreateCommentRequest, ServerCallContext)

    public virtual Task<Comment> CreateComment(CreateCommentRequest request, ServerCallContext context)

Add a new comment to a case.

The comment must have the following fields set: `body`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateCommentRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskComment` | The response to send back to the client (wrapped by a task). |

### GetComment(GetCommentRequest, ServerCallContext)

    public virtual Task<Comment> GetComment(GetCommentRequest request, ServerCallContext context)

Retrieve a comment.

EXAMPLES:

cURL:

```shell
comment="projects/some-project/cases/43595344/comments/234567890"
curl \
  --header "Authorization: Bearer $(gcloud auth print-access-token)" \
  "https://cloudsupport.googleapis.com/v2/$comment"
```

Python:

```python
import googleapiclient.discovery

api_version = "v2"
supportApiService = googleapiclient.discovery.build(
    serviceName="cloudsupport",
    version=api_version,
    discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
)

request = supportApiService.cases().comments().get(
    name="projects/some-project/cases/43595344/comments/234567890",
)
print(request.execute())
```

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetCommentRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskComment` | The response to send back to the client (wrapped by a task). |

### ListComments(ListCommentsRequest, ServerCallContext)

    public virtual Task<ListCommentsResponse> ListComments(ListCommentsRequest request, ServerCallContext context)

List all the comments associated with a case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListCommentsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListCommentsResponse` | The response to send back to the client (wrapped by a task). |