Represents a NotificationsApiService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.notifications.v1beta.NotificationsApiServicePackage
@google-shopping/notificationsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new NotificationsApiService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): NotificationsApiService;
Creates new NotificationsApiService service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
NotificationsApiService |
RPC service. Useful where requests and/or responses are streamed. |
createNotificationSubscription(request, callback)
public createNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.ICreateNotificationSubscriptionRequest, callback: google.shopping.merchant.notifications.v1beta.NotificationsApiService.CreateNotificationSubscriptionCallback): void;
Calls CreateNotificationSubscription.
Parameters | |
---|---|
Name | Description |
request |
ICreateNotificationSubscriptionRequest
CreateNotificationSubscriptionRequest message or plain object |
callback |
CreateNotificationSubscriptionCallback
Node-style callback called with the error, if any, and NotificationSubscription |
Returns | |
---|---|
Type | Description |
void |
createNotificationSubscription(request)
public createNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.ICreateNotificationSubscriptionRequest): Promise<google.shopping.merchant.notifications.v1beta.NotificationSubscription>;
Calls CreateNotificationSubscription.
Parameter | |
---|---|
Name | Description |
request |
ICreateNotificationSubscriptionRequest
CreateNotificationSubscriptionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.notifications.v1beta.NotificationSubscription> |
Promise |
deleteNotificationSubscription(request, callback)
public deleteNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.IDeleteNotificationSubscriptionRequest, callback: google.shopping.merchant.notifications.v1beta.NotificationsApiService.DeleteNotificationSubscriptionCallback): void;
Calls DeleteNotificationSubscription.
Parameters | |
---|---|
Name | Description |
request |
IDeleteNotificationSubscriptionRequest
DeleteNotificationSubscriptionRequest message or plain object |
callback |
DeleteNotificationSubscriptionCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteNotificationSubscription(request)
public deleteNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.IDeleteNotificationSubscriptionRequest): Promise<google.protobuf.Empty>;
Calls DeleteNotificationSubscription.
Parameter | |
---|---|
Name | Description |
request |
IDeleteNotificationSubscriptionRequest
DeleteNotificationSubscriptionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getNotificationSubscription(request, callback)
public getNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.IGetNotificationSubscriptionRequest, callback: google.shopping.merchant.notifications.v1beta.NotificationsApiService.GetNotificationSubscriptionCallback): void;
Calls GetNotificationSubscription.
Parameters | |
---|---|
Name | Description |
request |
IGetNotificationSubscriptionRequest
GetNotificationSubscriptionRequest message or plain object |
callback |
GetNotificationSubscriptionCallback
Node-style callback called with the error, if any, and NotificationSubscription |
Returns | |
---|---|
Type | Description |
void |
getNotificationSubscription(request)
public getNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.IGetNotificationSubscriptionRequest): Promise<google.shopping.merchant.notifications.v1beta.NotificationSubscription>;
Calls GetNotificationSubscription.
Parameter | |
---|---|
Name | Description |
request |
IGetNotificationSubscriptionRequest
GetNotificationSubscriptionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.notifications.v1beta.NotificationSubscription> |
Promise |
listNotificationSubscriptions(request, callback)
public listNotificationSubscriptions(request: google.shopping.merchant.notifications.v1beta.IListNotificationSubscriptionsRequest, callback: google.shopping.merchant.notifications.v1beta.NotificationsApiService.ListNotificationSubscriptionsCallback): void;
Calls ListNotificationSubscriptions.
Parameters | |
---|---|
Name | Description |
request |
IListNotificationSubscriptionsRequest
ListNotificationSubscriptionsRequest message or plain object |
callback |
ListNotificationSubscriptionsCallback
Node-style callback called with the error, if any, and ListNotificationSubscriptionsResponse |
Returns | |
---|---|
Type | Description |
void |
listNotificationSubscriptions(request)
public listNotificationSubscriptions(request: google.shopping.merchant.notifications.v1beta.IListNotificationSubscriptionsRequest): Promise<google.shopping.merchant.notifications.v1beta.ListNotificationSubscriptionsResponse>;
Calls ListNotificationSubscriptions.
Parameter | |
---|---|
Name | Description |
request |
IListNotificationSubscriptionsRequest
ListNotificationSubscriptionsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.notifications.v1beta.ListNotificationSubscriptionsResponse> |
Promise |
updateNotificationSubscription(request, callback)
public updateNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.IUpdateNotificationSubscriptionRequest, callback: google.shopping.merchant.notifications.v1beta.NotificationsApiService.UpdateNotificationSubscriptionCallback): void;
Calls UpdateNotificationSubscription.
Parameters | |
---|---|
Name | Description |
request |
IUpdateNotificationSubscriptionRequest
UpdateNotificationSubscriptionRequest message or plain object |
callback |
UpdateNotificationSubscriptionCallback
Node-style callback called with the error, if any, and NotificationSubscription |
Returns | |
---|---|
Type | Description |
void |
updateNotificationSubscription(request)
public updateNotificationSubscription(request: google.shopping.merchant.notifications.v1beta.IUpdateNotificationSubscriptionRequest): Promise<google.shopping.merchant.notifications.v1beta.NotificationSubscription>;
Calls UpdateNotificationSubscription.
Parameter | |
---|---|
Name | Description |
request |
IUpdateNotificationSubscriptionRequest
UpdateNotificationSubscriptionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.shopping.merchant.notifications.v1beta.NotificationSubscription> |
Promise |