Class protos.google.cloud.advisorynotifications.v1.AdvisoryNotificationsService (1.1.0)

Represents an AdvisoryNotificationsService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.advisorynotifications.v1.AdvisoryNotificationsService

Package

@google-cloud/advisorynotifications

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new AdvisoryNotificationsService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request IGetNotificationRequest

GetNotificationRequest message or plain object

callback GetNotificationCallback

Node-style callback called with the error, if any, and Notification

Returns
TypeDescription
void

getNotification(request)

public getNotification(request: google.cloud.advisorynotifications.v1.IGetNotificationRequest): Promise<google.cloud.advisorynotifications.v1.Notification>;

Calls GetNotification.

Parameter
NameDescription
request IGetNotificationRequest

GetNotificationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.advisorynotifications.v1.Notification>

Promise

getSettings(request, callback)

public getSettings(request: google.cloud.advisorynotifications.v1.IGetSettingsRequest, callback: google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetSettingsCallback): void;

Calls GetSettings.

Parameters
NameDescription
request IGetSettingsRequest

GetSettingsRequest message or plain object

callback GetSettingsCallback

Node-style callback called with the error, if any, and Settings

Returns
TypeDescription
void

getSettings(request)

public getSettings(request: google.cloud.advisorynotifications.v1.IGetSettingsRequest): Promise<google.cloud.advisorynotifications.v1.Settings>;

Calls GetSettings.

Parameter
NameDescription
request IGetSettingsRequest

GetSettingsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.advisorynotifications.v1.Settings>

Promise

listNotifications(request, callback)

public listNotifications(request: google.cloud.advisorynotifications.v1.IListNotificationsRequest, callback: google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotificationsCallback): void;

Calls ListNotifications.

Parameters
NameDescription
request IListNotificationsRequest

ListNotificationsRequest message or plain object

callback ListNotificationsCallback

Node-style callback called with the error, if any, and ListNotificationsResponse

Returns
TypeDescription
void

listNotifications(request)

public listNotifications(request: google.cloud.advisorynotifications.v1.IListNotificationsRequest): Promise<google.cloud.advisorynotifications.v1.ListNotificationsResponse>;

Calls ListNotifications.

Parameter
NameDescription
request IListNotificationsRequest

ListNotificationsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.advisorynotifications.v1.ListNotificationsResponse>

Promise

updateSettings(request, callback)

public updateSettings(request: google.cloud.advisorynotifications.v1.IUpdateSettingsRequest, callback: google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.UpdateSettingsCallback): void;

Calls UpdateSettings.

Parameters
NameDescription
request IUpdateSettingsRequest

UpdateSettingsRequest message or plain object

callback UpdateSettingsCallback

Node-style callback called with the error, if any, and Settings

Returns
TypeDescription
void

updateSettings(request)

public updateSettings(request: google.cloud.advisorynotifications.v1.IUpdateSettingsRequest): Promise<google.cloud.advisorynotifications.v1.Settings>;

Calls UpdateSettings.

Parameter
NameDescription
request IUpdateSettingsRequest

UpdateSettingsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.advisorynotifications.v1.Settings>

Promise