Advisory Notifications v1 API - Class AdvisoryNotificationsService.AdvisoryNotificationsServiceClient (1.1.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

AdvisoryNotificationsServiceClient(ChannelBase)

public AdvisoryNotificationsServiceClient(ChannelBase channel)

Creates a new client for AdvisoryNotificationsService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

AdvisoryNotificationsServiceClient(ClientBaseConfiguration)

protected AdvisoryNotificationsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

GetNotification(GetNotificationRequest, CallOptions)

public virtual Notification GetNotification(GetNotificationRequest request, CallOptions options)

Gets a notification.

Parameters
NameDescription
requestGetNotificationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Notification

The response received from the server.

GetNotificationAsync(GetNotificationRequest, CallOptions)

public virtual AsyncUnaryCall<Notification> GetNotificationAsync(GetNotificationRequest request, CallOptions options)

Gets a notification.

Parameters
NameDescription
requestGetNotificationRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallNotification

The call object.

ListNotifications(ListNotificationsRequest, CallOptions)

public virtual ListNotificationsResponse ListNotifications(ListNotificationsRequest request, CallOptions options)

Lists notifications under a given parent.

Parameters
NameDescription
requestListNotificationsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListNotificationsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override AdvisoryNotificationsService.AdvisoryNotificationsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
AdvisoryNotificationsServiceAdvisoryNotificationsServiceClient
Overrides