Class AdvisoryNotificationsServiceConnection (2.12.0)

This interface defines virtual methods for each of the user-facing overload sets in AdvisoryNotificationsServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AdvisoryNotificationsServiceClient.

To create a concrete instance, see MakeAdvisoryNotificationsServiceConnection().

For mocking, see advisorynotifications_v1_mocks::MockAdvisoryNotificationsServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListNotifications(google::cloud::advisorynotifications::v1::ListNotificationsRequest)

Parameter
Name Description
request google::cloud::advisorynotifications::v1::ListNotificationsRequest
Returns
Type Description
StreamRange< google::cloud::advisorynotifications::v1::Notification >

virtual GetNotification(google::cloud::advisorynotifications::v1::GetNotificationRequest const &)

Parameter
Name Description
request google::cloud::advisorynotifications::v1::GetNotificationRequest const &
Returns
Type Description
StatusOr< google::cloud::advisorynotifications::v1::Notification >