public class AdvisoryNotificationsService.AdvisoryNotificationsServiceClient : ClientBase<AdvisoryNotificationsService.AdvisoryNotificationsServiceClient>Reference documentation and code samples for the Advisory Notifications v1 API class AdvisoryNotificationsService.AdvisoryNotificationsServiceClient.
Client for AdvisoryNotificationsService
Inheritance
object > ClientBase > ClientBaseAdvisoryNotificationsServiceAdvisoryNotificationsServiceClient > AdvisoryNotificationsService.AdvisoryNotificationsServiceClientNamespace
Google.Cloud.AdvisoryNotifications.V1Assembly
Google.Cloud.AdvisoryNotifications.V1.dll
Constructors
AdvisoryNotificationsServiceClient()
protected AdvisoryNotificationsServiceClient()Protected parameterless constructor to allow creation of test doubles.
AdvisoryNotificationsServiceClient(CallInvoker)
public AdvisoryNotificationsServiceClient(CallInvoker callInvoker)Creates a new client for AdvisoryNotificationsService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description | 
| callInvoker | CallInvokerThe callInvoker to use to make remote calls. | 
AdvisoryNotificationsServiceClient(ChannelBase)
public AdvisoryNotificationsServiceClient(ChannelBase channel)Creates a new client for AdvisoryNotificationsService
| Parameter | |
|---|---|
| Name | Description | 
| channel | ChannelBaseThe channel to use to make remote calls. | 
AdvisoryNotificationsServiceClient(ClientBaseConfiguration)
protected AdvisoryNotificationsServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description | 
| configuration | ClientBaseClientBaseConfigurationThe client configuration. | 
Methods
GetNotification(GetNotificationRequest, CallOptions)
public virtual Notification GetNotification(GetNotificationRequest request, CallOptions options)Gets a notification.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetNotificationRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| Notification | The response received from the server. | 
GetNotification(GetNotificationRequest, Metadata, DateTime?, CancellationToken)
public virtual Notification GetNotification(GetNotificationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets a notification.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetNotificationRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| Notification | The response received from the server. | 
GetNotificationAsync(GetNotificationRequest, CallOptions)
public virtual AsyncUnaryCall<Notification> GetNotificationAsync(GetNotificationRequest request, CallOptions options)Gets a notification.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetNotificationRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallNotification | The call object. | 
GetNotificationAsync(GetNotificationRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Notification> GetNotificationAsync(GetNotificationRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Gets a notification.
| Parameters | |
|---|---|
| Name | Description | 
| request | GetNotificationRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallNotification | The call object. | 
ListNotifications(ListNotificationsRequest, CallOptions)
public virtual ListNotificationsResponse ListNotifications(ListNotificationsRequest request, CallOptions options)Lists notifications under a given parent.
| Parameters | |
|---|---|
| Name | Description | 
| request | ListNotificationsRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| ListNotificationsResponse | The response received from the server. | 
ListNotifications(ListNotificationsRequest, Metadata, DateTime?, CancellationToken)
public virtual ListNotificationsResponse ListNotifications(ListNotificationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists notifications under a given parent.
| Parameters | |
|---|---|
| Name | Description | 
| request | ListNotificationsRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| ListNotificationsResponse | The response received from the server. | 
ListNotificationsAsync(ListNotificationsRequest, CallOptions)
public virtual AsyncUnaryCall<ListNotificationsResponse> ListNotificationsAsync(ListNotificationsRequest request, CallOptions options)Lists notifications under a given parent.
| Parameters | |
|---|---|
| Name | Description | 
| request | ListNotificationsRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallListNotificationsResponse | The call object. | 
ListNotificationsAsync(ListNotificationsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ListNotificationsResponse> ListNotificationsAsync(ListNotificationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Lists notifications under a given parent.
| Parameters | |
|---|---|
| Name | Description | 
| request | ListNotificationsRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallListNotificationsResponse | The call object. | 
NewInstance(ClientBaseConfiguration)
protected override AdvisoryNotificationsService.AdvisoryNotificationsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description | 
| configuration | ClientBaseClientBaseConfiguration | 
| Returns | |
|---|---|
| Type | Description | 
| AdvisoryNotificationsServiceAdvisoryNotificationsServiceClient | |