Class AdvisoryNotificationsServiceConnection (2.15.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::advisorynotifications::v1::ListNotificationsRequest
Returns
TypeDescription
StreamRange< google::cloud::advisorynotifications::v1::Notification >

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

Parameter
NameDescription
request google::cloud::advisorynotifications::v1::GetNotificationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::advisorynotifications::v1::Notification >