Class NotificationsApiServiceClientImpl
NotificationsApiService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Notifications.V1Beta
Assembly: Google.Shopping.Merchant.Notifications.V1Beta.dll
Syntax
public sealed class NotificationsApiServiceClientImpl : NotificationsApiServiceClient
Remarks
Service to manage notification subscriptions for merchants
Constructors
NotificationsApiServiceClientImpl(NotificationsApiServiceClient, NotificationsApiServiceSettings, ILogger)
Constructs a client wrapper for the NotificationsApiService service, with the specified gRPC client and settings.
Declaration
public NotificationsApiServiceClientImpl(NotificationsApiService.NotificationsApiServiceClient grpcClient, NotificationsApiServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
NotificationsApiService.NotificationsApiServiceClient | grpcClient | The underlying gRPC client. |
NotificationsApiServiceSettings | settings | The base NotificationsApiServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC NotificationsApiService client
Declaration
public override NotificationsApiService.NotificationsApiServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
NotificationsApiService.NotificationsApiServiceClient |
Overrides
Methods
CreateNotificationSubscription(CreateNotificationSubscriptionRequest, CallSettings)
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):
- Subscription for all managed accounts + subscription for self
- Multiple "partial" subscriptions for managed accounts + subscription for self
we will not allow (per merchant as a subscriber per event type):
- multiple self subscriptions.
- multiple "all managed accounts" subscriptions.
- all and partial subscriptions at the same time.
- multiple partial subscriptions for the same target account
Declaration
public override NotificationSubscription CreateNotificationSubscription(CreateNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
NotificationSubscription | The RPC response. |
Overrides
CreateNotificationSubscriptionAsync(CreateNotificationSubscriptionRequest, CallSettings)
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):
- Subscription for all managed accounts + subscription for self
- Multiple "partial" subscriptions for managed accounts + subscription for self
we will not allow (per merchant as a subscriber per event type):
- multiple self subscriptions.
- multiple "all managed accounts" subscriptions.
- all and partial subscriptions at the same time.
- multiple partial subscriptions for the same target account
Declaration
public override Task<NotificationSubscription> CreateNotificationSubscriptionAsync(CreateNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<NotificationSubscription> | A Task containing the RPC response. |
Overrides
DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest, CallSettings)
Deletes a notification subscription for a merchant.
Declaration
public override void DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteNotificationSubscriptionAsync(DeleteNotificationSubscriptionRequest, CallSettings)
Deletes a notification subscription for a merchant.
Declaration
public override Task DeleteNotificationSubscriptionAsync(DeleteNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Overrides
GetNotificationSubscription(GetNotificationSubscriptionRequest, CallSettings)
Gets notification subscriptions for an account.
Declaration
public override NotificationSubscription GetNotificationSubscription(GetNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
NotificationSubscription | The RPC response. |
Overrides
GetNotificationSubscriptionAsync(GetNotificationSubscriptionRequest, CallSettings)
Gets notification subscriptions for an account.
Declaration
public override Task<NotificationSubscription> GetNotificationSubscriptionAsync(GetNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<NotificationSubscription> | A Task containing the RPC response. |
Overrides
ListNotificationSubscriptions(ListNotificationSubscriptionsRequest, CallSettings)
Gets all the notification subscriptions for a merchant.
Declaration
public override PagedEnumerable<ListNotificationSubscriptionsResponse, NotificationSubscription> ListNotificationSubscriptions(ListNotificationSubscriptionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListNotificationSubscriptionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListNotificationSubscriptionsResponse, NotificationSubscription> | A pageable sequence of NotificationSubscription resources. |
Overrides
ListNotificationSubscriptionsAsync(ListNotificationSubscriptionsRequest, CallSettings)
Gets all the notification subscriptions for a merchant.
Declaration
public override PagedAsyncEnumerable<ListNotificationSubscriptionsResponse, NotificationSubscription> ListNotificationSubscriptionsAsync(ListNotificationSubscriptionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListNotificationSubscriptionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListNotificationSubscriptionsResponse, NotificationSubscription> | A pageable asynchronous sequence of NotificationSubscription resources. |
Overrides
UpdateNotificationSubscription(UpdateNotificationSubscriptionRequest, CallSettings)
Updates an existing notification subscription for a merchant.
Declaration
public override NotificationSubscription UpdateNotificationSubscription(UpdateNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
NotificationSubscription | The RPC response. |
Overrides
UpdateNotificationSubscriptionAsync(UpdateNotificationSubscriptionRequest, CallSettings)
Updates an existing notification subscription for a merchant.
Declaration
public override Task<NotificationSubscription> UpdateNotificationSubscriptionAsync(UpdateNotificationSubscriptionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateNotificationSubscriptionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<NotificationSubscription> | A Task containing the RPC response. |