1.0.0-beta05 (latest) 1.0.0-beta04

    public abstract class CommentServiceClient

Reference documentation and code samples for the Google Cloud Support v2beta API class CommentServiceClient.

CommentService client wrapper, for convenient use.

## Inheritance

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

## 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)

## Derived Types

[CommentServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClientImpl)

## Namespace

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

## Assembly

Google.Cloud.Support.V2Beta.dll

## Remarks

A service to manage comments on cases.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the CommentService service, which is a host of "cloudsupport.googleapis.com" and a
port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default CommentService scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default CommentService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

### GrpcClient

    public virtual CommentService.CommentServiceClient GrpcClient { get; }

The underlying gRPC CommentService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentService.CommentServiceClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static CommentServiceClient Create()

Synchronously creates a [CommentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [CommentServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient` | The created [CommentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient). |

### CreateAsync(CancellationToken)

    public static Task<CommentServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [CommentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [CommentServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient` | The task representing the created [CommentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient). |

### CreateComment(CaseName, Comment, CallSettings)

    public virtual Comment CreateComment(CaseName parent, Comment comment, CallSettings callSettings = null)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseName` Required. The name of the case to which the comment should be added. |
| `comment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` Required. The comment to be added. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | The RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    CaseName parent = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]");
    Comment comment = new Comment();
    // Make the request
    Comment response = commentServiceClient.CreateComment(parent, comment);

### CreateComment(CreateCommentRequest, CallSettings)

    public virtual Comment CreateComment(CreateCommentRequest request, CallSettings callSettings = null)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CreateCommentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | The RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    CreateCommentRequest request = new CreateCommentRequest
    {
        ParentAsCaseName = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]"),
        Comment = new Comment(),
    };
    // Make the request
    Comment response = commentServiceClient.CreateComment(request);

### CreateComment(string, Comment, CallSettings)

    public virtual Comment CreateComment(string parent, Comment comment, CallSettings callSettings = null)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the case to which the comment should be added. |
| `comment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` Required. The comment to be added. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | The RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/cases/[CASE]";
    Comment comment = new Comment();
    // Make the request
    Comment response = commentServiceClient.CreateComment(parent, comment);

### CreateCommentAsync(CaseName, Comment, CallSettings)

    public virtual Task<Comment> CreateCommentAsync(CaseName parent, Comment comment, CallSettings callSettings = null)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseName` Required. The name of the case to which the comment should be added. |
| `comment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` Required. The comment to be added. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CaseName parent = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]");
    Comment comment = new Comment();
    // Make the request
    Comment response = await commentServiceClient.CreateCommentAsync(parent, comment);

### CreateCommentAsync(CaseName, Comment, CancellationToken)

    public virtual Task<Comment> CreateCommentAsync(CaseName parent, Comment comment, CancellationToken cancellationToken)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseName` Required. The name of the case to which the comment should be added. |
| `comment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` Required. The comment to be added. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CaseName parent = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]");
    Comment comment = new Comment();
    // Make the request
    Comment response = await commentServiceClient.CreateCommentAsync(parent, comment);

### CreateCommentAsync(CreateCommentRequest, CallSettings)

    public virtual Task<Comment> CreateCommentAsync(CreateCommentRequest request, CallSettings callSettings = null)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CreateCommentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateCommentRequest request = new CreateCommentRequest
    {
        ParentAsCaseName = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]"),
        Comment = new Comment(),
    };
    // Make the request
    Comment response = await commentServiceClient.CreateCommentAsync(request);

### CreateCommentAsync(CreateCommentRequest, CancellationToken)

    public virtual Task<Comment> CreateCommentAsync(CreateCommentRequest request, CancellationToken cancellationToken)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CreateCommentRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateCommentRequest request = new CreateCommentRequest
    {
        ParentAsCaseName = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]"),
        Comment = new Comment(),
    };
    // Make the request
    Comment response = await commentServiceClient.CreateCommentAsync(request);

### CreateCommentAsync(string, Comment, CallSettings)

    public virtual Task<Comment> CreateCommentAsync(string parent, Comment comment, CallSettings callSettings = null)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the case to which the comment should be added. |
| `comment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` Required. The comment to be added. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/cases/[CASE]";
    Comment comment = new Comment();
    // Make the request
    Comment response = await commentServiceClient.CreateCommentAsync(parent, comment);

### CreateCommentAsync(string, Comment, CancellationToken)

    public virtual Task<Comment> CreateCommentAsync(string parent, Comment comment, CancellationToken cancellationToken)

Add a new comment to a case.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the case to which the comment should be added. |
| `comment` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` Required. The comment to be added. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/cases/[CASE]";
    Comment comment = new Comment();
    // Make the request
    Comment response = await commentServiceClient.CreateCommentAsync(parent, comment);

### GetComment(CommentName, CallSettings)

    public virtual Comment GetComment(CommentName name, CallSettings callSettings = null)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentName` Required. The name of the comment to retrieve. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | The RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    CommentName name = CommentName.FromOrganizationCaseComment("[ORGANIZATION]", "[CASE]", "[COMMENT]");
    // Make the request
    Comment response = commentServiceClient.GetComment(name);

### GetComment(GetCommentRequest, CallSettings)

    public virtual Comment GetComment(GetCommentRequest request, CallSettings callSettings = null)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.GetCommentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | The RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    GetCommentRequest request = new GetCommentRequest
    {
        CommentName = CommentName.FromOrganizationCaseComment("[ORGANIZATION]", "[CASE]", "[COMMENT]"),
    };
    // Make the request
    Comment response = commentServiceClient.GetComment(request);

### GetComment(string, CallSettings)

    public virtual Comment GetComment(string name, CallSettings callSettings = null)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the comment to retrieve. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | The RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/cases/[CASE]/comments/[COMMENT]";
    // Make the request
    Comment response = commentServiceClient.GetComment(name);

### GetCommentAsync(CommentName, CallSettings)

    public virtual Task<Comment> GetCommentAsync(CommentName name, CallSettings callSettings = null)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentName` Required. The name of the comment to retrieve. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CommentName name = CommentName.FromOrganizationCaseComment("[ORGANIZATION]", "[CASE]", "[COMMENT]");
    // Make the request
    Comment response = await commentServiceClient.GetCommentAsync(name);

### GetCommentAsync(CommentName, CancellationToken)

    public virtual Task<Comment> GetCommentAsync(CommentName name, CancellationToken cancellationToken)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentName` Required. The name of the comment to retrieve. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CommentName name = CommentName.FromOrganizationCaseComment("[ORGANIZATION]", "[CASE]", "[COMMENT]");
    // Make the request
    Comment response = await commentServiceClient.GetCommentAsync(name);

### GetCommentAsync(GetCommentRequest, CallSettings)

    public virtual Task<Comment> GetCommentAsync(GetCommentRequest request, CallSettings callSettings = null)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.GetCommentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetCommentRequest request = new GetCommentRequest
    {
        CommentName = CommentName.FromOrganizationCaseComment("[ORGANIZATION]", "[CASE]", "[COMMENT]"),
    };
    // Make the request
    Comment response = await commentServiceClient.GetCommentAsync(request);

### GetCommentAsync(GetCommentRequest, CancellationToken)

    public virtual Task<Comment> GetCommentAsync(GetCommentRequest request, CancellationToken cancellationToken)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.GetCommentRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetCommentRequest request = new GetCommentRequest
    {
        CommentName = CommentName.FromOrganizationCaseComment("[ORGANIZATION]", "[CASE]", "[COMMENT]"),
    };
    // Make the request
    Comment response = await commentServiceClient.GetCommentAsync(request);

### GetCommentAsync(string, CallSettings)

    public virtual Task<Comment> GetCommentAsync(string name, CallSettings callSettings = null)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the comment to retrieve. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/cases/[CASE]/comments/[COMMENT]";
    // Make the request
    Comment response = await commentServiceClient.GetCommentAsync(name);

### GetCommentAsync(string, CancellationToken)

    public virtual Task<Comment> GetCommentAsync(string name, CancellationToken cancellationToken)

Retrieve a comment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the comment to retrieve. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A Task containing the RPC response. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "organizations/[ORGANIZATION]/cases/[CASE]/comments/[COMMENT]";
    // Make the request
    Comment response = await commentServiceClient.GetCommentAsync(name);

### ListComments(CaseName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListCommentsResponse, Comment> ListComments(CaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the comments associated with a case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseName` Required. The name of the case for which to list comments. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A pageable sequence of [Comment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment) resources. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    CaseName parent = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]");
    // Make the request
    PagedEnumerable<ListCommentsResponse, Comment> response = commentServiceClient.ListComments(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Comment item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCommentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Comment item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Comment> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Comment item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListComments(ListCommentsRequest, CallSettings)

    public virtual PagedEnumerable<ListCommentsResponse, Comment> ListComments(ListCommentsRequest request, CallSettings callSettings = null)

List all the comments associated with a case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A pageable sequence of [Comment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment) resources. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    ListCommentsRequest request = new ListCommentsRequest
    {
        ParentAsCaseName = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]"),
    };
    // Make the request
    PagedEnumerable<ListCommentsResponse, Comment> response = commentServiceClient.ListComments(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Comment item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCommentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Comment item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Comment> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Comment item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListComments(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListCommentsResponse, Comment> ListComments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the comments associated with a case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the case for which to list comments. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A pageable sequence of [Comment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment) resources. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = CommentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/cases/[CASE]";
    // Make the request
    PagedEnumerable<ListCommentsResponse, Comment> response = commentServiceClient.ListComments(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Comment item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCommentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Comment item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Comment> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Comment item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCommentsAsync(CaseName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListCommentsResponse, Comment> ListCommentsAsync(CaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the comments associated with a case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CaseName` Required. The name of the case for which to list comments. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A pageable asynchronous sequence of [Comment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment) resources. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CaseName parent = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]");
    // Make the request
    PagedAsyncEnumerable<ListCommentsResponse, Comment> response = commentServiceClient.ListCommentsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Comment item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListCommentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Comment item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Comment> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Comment item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCommentsAsync(ListCommentsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListCommentsResponse, Comment> ListCommentsAsync(ListCommentsRequest request, CallSettings callSettings = null)

List all the comments associated with a case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A pageable asynchronous sequence of [Comment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment) resources. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListCommentsRequest request = new ListCommentsRequest
    {
        ParentAsCaseName = CaseName.FromOrganizationCase("[ORGANIZATION]", "[CASE]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListCommentsResponse, Comment> response = commentServiceClient.ListCommentsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Comment item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListCommentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Comment item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Comment> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Comment item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCommentsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListCommentsResponse, Comment> ListCommentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all the comments associated with a case.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the case for which to list comments. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.ListCommentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment` | A pageable asynchronous sequence of [Comment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.Comment) resources. |

**Example**

    // Create client
    CommentServiceClient commentServiceClient = await CommentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "organizations/[ORGANIZATION]/cases/[CASE]";
    // Make the request
    PagedAsyncEnumerable<ListCommentsResponse, Comment> response = commentServiceClient.ListCommentsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Comment item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListCommentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Comment item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Comment> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Comment item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient#Google_Cloud_Support_V2Beta_CommentServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient#Google_Cloud_Support_V2Beta_CommentServiceClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient#Google_Cloud_Support_V2Beta_CommentServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Support.V2Beta/latest/Google.Cloud.Support.V2Beta.CommentServiceClient#Google_Cloud_Support_V2Beta_CommentServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.