# Interface NotificationsApiServiceGrpc.AsyncService (1.21.0)

1.21.0 (latest) 1.19.0 1.16.0 1.15.0 1.13.0 1.11.0 1.10.0 1.8.0 1.6.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static interface NotificationsApiServiceGrpc.AsyncService

Service to manage notification subscriptions for merchants

## Methods

### createNotificationSubscription(CreateNotificationSubscriptionRequest request, StreamObserver\<NotificationSubscription\> responseObserver)

    public default void createNotificationSubscription(CreateNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)

Creates a notification subscription for a merchant. We will allow the
following types of notification subscriptions to exist together (per
merchant as a subscriber per event type):

1. Subscription for all managed accounts + subscription for self
2. Multiple "partial" subscriptions for managed accounts + subscription for self we will not allow (per merchant as a subscriber per event type):
3. multiple self subscriptions.
4. multiple "all managed accounts" subscriptions.
5. all and partial subscriptions at the same time.
6. multiple partial subscriptions for the same target account

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.CreateNotificationSubscriptionRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.NotificationSubscription>` |

### deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request, StreamObserver\<Empty\> responseObserver)

    public default void deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request, StreamObserver<Empty> responseObserver)

Deletes a notification subscription for a merchant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.DeleteNotificationSubscriptionRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |

### getNotificationSubscription(GetNotificationSubscriptionRequest request, StreamObserver\<NotificationSubscription\> responseObserver)

    public default void getNotificationSubscription(GetNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)

Gets notification subscriptions for an account.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.GetNotificationSubscriptionRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.NotificationSubscription>` |

### listNotificationSubscriptions(ListNotificationSubscriptionsRequest request, StreamObserver\<ListNotificationSubscriptionsResponse\> responseObserver)

    public default void listNotificationSubscriptions(ListNotificationSubscriptionsRequest request, StreamObserver<ListNotificationSubscriptionsResponse> responseObserver)

Gets all the notification subscriptions for a merchant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.ListNotificationSubscriptionsRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.ListNotificationSubscriptionsResponse>` |

### updateNotificationSubscription(UpdateNotificationSubscriptionRequest request, StreamObserver\<NotificationSubscription\> responseObserver)

    public default void updateNotificationSubscription(UpdateNotificationSubscriptionRequest request, StreamObserver<NotificationSubscription> responseObserver)

Updates an existing notification subscription for a merchant.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.UpdateNotificationSubscriptionRequest` |
| `responseObserver` | `io.grpc.stub.StreamObserver<https://docs.cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/com.google.shopping.merchant.notifications.v1beta.NotificationSubscription>` |