Class CommentServiceConnection (2.23.0-rc)

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

To create a concrete instance, see MakeCommentServiceConnection().

For mocking, see support_v2_mocks::MockCommentServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListComments(google::cloud::support::v2::ListCommentsRequest)

Parameter
NameDescription
request google::cloud::support::v2::ListCommentsRequest
Returns
TypeDescription
StreamRange< google::cloud::support::v2::Comment >

virtual CreateComment(google::cloud::support::v2::CreateCommentRequest const &)

Parameter
NameDescription
request google::cloud::support::v2::CreateCommentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::support::v2::Comment >