Google Cloud Support v2 API - Class CommentServiceClientImpl (1.2.0)

public sealed class CommentServiceClientImpl : CommentServiceClient

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

CommentService client wrapper implementation, for convenient use.

Inheritance

object > CommentServiceClient > CommentServiceClientImpl

Namespace

Google.Cloud.Support.V2

Assembly

Google.Cloud.Support.V2.dll

Remarks

A service to manage comments on cases.

Constructors

CommentServiceClientImpl(CommentServiceClient, CommentServiceSettings, ILogger)

public CommentServiceClientImpl(CommentService.CommentServiceClient grpcClient, CommentServiceSettings settings, ILogger logger)

Constructs a client wrapper for the CommentService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient CommentServiceCommentServiceClient

The underlying gRPC client.

settings CommentServiceSettings

The base CommentServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CommentService.CommentServiceClient GrpcClient { get; }

The underlying gRPC CommentService client

Property Value
Type Description
CommentServiceCommentServiceClient
Overrides

Methods

CreateComment(CreateCommentRequest, CallSettings)

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

Add a new comment to the specified Case. The comment object must have the following fields set: body.

Parameters
Name Description
request CreateCommentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Comment

The RPC response.

Overrides

CreateCommentAsync(CreateCommentRequest, CallSettings)

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

Add a new comment to the specified Case. The comment object must have the following fields set: body.

Parameters
Name Description
request CreateCommentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskComment

A Task containing the RPC response.

Overrides

ListComments(ListCommentsRequest, CallSettings)

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

Retrieve all Comments associated with the Case object.

Parameters
Name Description
request ListCommentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListCommentsResponseComment

A pageable sequence of Comment resources.

Overrides

ListCommentsAsync(ListCommentsRequest, CallSettings)

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

Retrieve all Comments associated with the Case object.

Parameters
Name Description
request ListCommentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListCommentsResponseComment

A pageable asynchronous sequence of Comment resources.

Overrides