Google Cloud Support v2 API - Class CommentServiceClientImpl (1.0.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
NameDescription
grpcClientCommentServiceCommentServiceClient

The underlying gRPC client.

settingsCommentServiceSettings

The base CommentServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override CommentService.CommentServiceClient GrpcClient { get; }

The underlying gRPC CommentService client

Property Value
TypeDescription
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
NameDescription
requestCreateCommentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateCommentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListCommentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListCommentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListCommentsResponseComment

A pageable asynchronous sequence of Comment resources.

Overrides