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 |
---|---|---|
Notifications |
grpcClient | The underlying gRPC client. |
Notifications |
settings | The base Notifications |
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 |
---|---|
Notifications |
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 |
---|---|---|
Create |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Notification |
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 |
---|---|---|
Create |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Notification |
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 |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Notification |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Notification |
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable sequence of Notification |
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable asynchronous sequence of Notification |
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 |
---|---|---|
Update |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Notification |
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 |
---|---|---|
Update |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Notification |
A Task containing the RPC response. |