1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.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](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[AdvisoryNotificationsService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AdvisoryNotifications.V1/latest/Google.Cloud.AdvisoryNotifications.V1.AdvisoryNotificationsService.md.txt)[AdvisoryNotificationsServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AdvisoryNotifications.V1/latest/Google.Cloud.AdvisoryNotifications.V1.AdvisoryNotificationsService.AdvisoryNotificationsServiceClient.md.txt) \> AdvisoryNotificationsService.AdvisoryNotificationsServiceClient

## Inherited Members

[ClientBase\<AdvisoryNotificationsService.AdvisoryNotificationsServiceClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AdvisoryNotifications.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AdvisoryNotifications.V1/latest/Google.Cloud.AdvisoryNotifications.V1.md.txt)

## 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` | `System.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` | `System.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` | `System.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` | `System.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` | `System.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` | `System.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** Grpc.Core.ClientBase\<Google.Cloud.AdvisoryNotifications.V1.AdvisoryNotificationsService.AdvisoryNotificationsServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### 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` | `System.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` | `System.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. |