public sealed class CommentServiceClientImpl : CommentServiceClientReference documentation and code samples for the Google Cloud Support v2beta API class CommentServiceClientImpl.
CommentService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Support.V2BetaAssembly
Google.Cloud.Support.V2Beta.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 |
CommentServiceCommentServiceClientThe underlying gRPC client. |
settings |
CommentServiceSettingsThe base CommentServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override CommentService.CommentServiceClient GrpcClient { get; }The underlying gRPC CommentService client
| Property Value | |
|---|---|
| Type | Description |
CommentServiceCommentServiceClient |
|
Methods
CreateComment(CreateCommentRequest, CallSettings)
public override 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 |
CreateCommentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Comment |
The RPC response. |
CreateCommentAsync(CreateCommentRequest, CallSettings)
public override 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 |
CreateCommentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskComment |
A Task containing the RPC response. |
GetComment(GetCommentRequest, CallSettings)
public override Comment GetComment(GetCommentRequest request, CallSettings callSettings = null)Retrieve a comment.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCommentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Comment |
The RPC response. |
GetCommentAsync(GetCommentRequest, CallSettings)
public override Task<Comment> GetCommentAsync(GetCommentRequest request, CallSettings callSettings = null)Retrieve a comment.
| Parameters | |
|---|---|
| Name | Description |
request |
GetCommentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskComment |
A Task containing the RPC response. |
ListComments(ListCommentsRequest, CallSettings)
public override PagedEnumerable<ListCommentsResponse, Comment> ListComments(ListCommentsRequest request, CallSettings callSettings = null)List all the comments associated with a case.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCommentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListCommentsResponseComment |
A pageable sequence of Comment resources. |
ListCommentsAsync(ListCommentsRequest, CallSettings)
public override PagedAsyncEnumerable<ListCommentsResponse, Comment> ListCommentsAsync(ListCommentsRequest request, CallSettings callSettings = null)List all the comments associated with a case.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCommentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListCommentsResponseComment |
A pageable asynchronous sequence of Comment resources. |