Advisory Notifications v1 API - Class AdvisoryNotificationsService.AdvisoryNotificationsServiceClient (1.6.0)

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.AdvisoryNotificationsServiceClient

Namespace

Google.Cloud.AdvisoryNotifications.V1

Assembly

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 CallInvoker

The callInvoker to use to make remote calls.

AdvisoryNotificationsServiceClient(ChannelBase)

public AdvisoryNotificationsServiceClient(ChannelBase channel)

Creates a new client for AdvisoryNotificationsService

Parameter
Name Description
channel ChannelBase

The 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 ClientBaseClientBaseConfiguration

The client configuration.

Methods

GetNotification(GetNotificationRequest, CallOptions)

public virtual Notification GetNotification(GetNotificationRequest request, CallOptions options)

Gets a notification.

Parameters
Name Description
request GetNotificationRequest

The request to send to the server.

options CallOptions

The 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 GetNotificationRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 GetNotificationRequest

The request to send to the server.

options CallOptions

The 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 GetNotificationRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNotification

The call object.

GetSettings(GetSettingsRequest, CallOptions)

public virtual Settings GetSettings(GetSettingsRequest request, CallOptions options)

Get notification settings.

Parameters
Name Description
request GetSettingsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Settings

The response received from the server.

GetSettings(GetSettingsRequest, Metadata, DateTime?, CancellationToken)

public virtual Settings GetSettings(GetSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get notification settings.

Parameters
Name Description
request GetSettingsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Settings

The response received from the server.

GetSettingsAsync(GetSettingsRequest, CallOptions)

public virtual AsyncUnaryCall<Settings> GetSettingsAsync(GetSettingsRequest request, CallOptions options)

Get notification settings.

Parameters
Name Description
request GetSettingsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSettings

The call object.

GetSettingsAsync(GetSettingsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Settings> GetSettingsAsync(GetSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Get notification settings.

Parameters
Name Description
request GetSettingsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSettings

The call object.

ListNotifications(ListNotificationsRequest, CallOptions)

public virtual ListNotificationsResponse ListNotifications(ListNotificationsRequest request, CallOptions options)

Lists notifications under a given parent.

Parameters
Name Description
request ListNotificationsRequest

The request to send to the server.

options CallOptions

The 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 ListNotificationsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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 ListNotificationsRequest

The request to send to the server.

options CallOptions

The 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 ListNotificationsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An 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
Overrides

UpdateSettings(UpdateSettingsRequest, CallOptions)

public virtual Settings UpdateSettings(UpdateSettingsRequest request, CallOptions options)

Update notification settings.

Parameters
Name Description
request UpdateSettingsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Settings

The response received from the server.

UpdateSettings(UpdateSettingsRequest, Metadata, DateTime?, CancellationToken)

public virtual Settings UpdateSettings(UpdateSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update notification settings.

Parameters
Name Description
request UpdateSettingsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Settings

The response received from the server.

UpdateSettingsAsync(UpdateSettingsRequest, CallOptions)

public virtual AsyncUnaryCall<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CallOptions options)

Update notification settings.

Parameters
Name Description
request UpdateSettingsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSettings

The call object.

UpdateSettingsAsync(UpdateSettingsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update notification settings.

Parameters
Name Description
request UpdateSettingsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSettings

The call object.