Represents an AdvisoryNotificationsService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.advisorynotifications.v1.AdvisoryNotificationsServicePackage
@google-cloud/advisorynotificationsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AdvisoryNotificationsService 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): AdvisoryNotificationsService;
Creates new AdvisoryNotificationsService 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 |
AdvisoryNotificationsService | RPC service. Useful where requests and/or responses are streamed. |
getNotification(request, callback)
public getNotification(request: google.cloud.advisorynotifications.v1.IGetNotificationRequest, callback: google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotificationCallback): void;
Calls GetNotification.
Parameters | |
---|---|
Name | Description |
request |
IGetNotificationRequest
GetNotificationRequest message or plain object |
callback |
google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotificationCallback
Node-style callback called with the error, if any, and Notification |
Returns | |
---|---|
Type | Description |
void |
getNotification(request)
public getNotification(request: google.cloud.advisorynotifications.v1.IGetNotificationRequest): Promise<google.cloud.advisorynotifications.v1.Notification>;
Calls GetNotification.
Parameter | |
---|---|
Name | Description |
request |
IGetNotificationRequest
GetNotificationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.advisorynotifications.v1.Notification> | Promise |
listNotifications(request, callback)
public listNotifications(request: google.cloud.advisorynotifications.v1.IListNotificationsRequest, callback: google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotificationsCallback): void;
Calls ListNotifications.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.advisorynotifications.v1.IListNotificationsRequest
ListNotificationsRequest message or plain object |
callback |
google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotificationsCallback
Node-style callback called with the error, if any, and ListNotificationsResponse |
Returns | |
---|---|
Type | Description |
void |
listNotifications(request)
public listNotifications(request: google.cloud.advisorynotifications.v1.IListNotificationsRequest): Promise<google.cloud.advisorynotifications.v1.ListNotificationsResponse>;
Calls ListNotifications.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.advisorynotifications.v1.IListNotificationsRequest
ListNotificationsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.advisorynotifications.v1.ListNotificationsResponse> | Promise |