Class NotificationChannelServiceConnection (2.17.0)

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

To create a concrete instance, see MakeNotificationChannelServiceConnection().

For mocking, see monitoring_v3_mocks::MockNotificationChannelServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListNotificationChannelDescriptors(google::monitoring::v3::ListNotificationChannelDescriptorsRequest)

Parameter
Name Description
request google::monitoring::v3::ListNotificationChannelDescriptorsRequest
Returns
Type Description
StreamRange< google::monitoring::v3::NotificationChannelDescriptor >

virtual GetNotificationChannelDescriptor(google::monitoring::v3::GetNotificationChannelDescriptorRequest const &)

Parameter
Name Description
request google::monitoring::v3::GetNotificationChannelDescriptorRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::NotificationChannelDescriptor >

virtual ListNotificationChannels(google::monitoring::v3::ListNotificationChannelsRequest)

Parameter
Name Description
request google::monitoring::v3::ListNotificationChannelsRequest
Returns
Type Description
StreamRange< google::monitoring::v3::NotificationChannel >

virtual GetNotificationChannel(google::monitoring::v3::GetNotificationChannelRequest const &)

Parameter
Name Description
request google::monitoring::v3::GetNotificationChannelRequest const &
Returns
Type Description
StatusOr< google::monitoring::v3::NotificationChannel >