Class CaseServiceConnection (2.14.0)

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

To create a concrete instance, see MakeCaseServiceConnection().

For mocking, see support_v2_mocks::MockCaseServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetCase(google::cloud::support::v2::GetCaseRequest const &)

Parameter
Name Description
request google::cloud::support::v2::GetCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::support::v2::Case >

virtual ListCases(google::cloud::support::v2::ListCasesRequest)

Parameter
Name Description
request google::cloud::support::v2::ListCasesRequest
Returns
Type Description
StreamRange< google::cloud::support::v2::Case >

virtual SearchCases(google::cloud::support::v2::SearchCasesRequest)

Parameter
Name Description
request google::cloud::support::v2::SearchCasesRequest
Returns
Type Description
StreamRange< google::cloud::support::v2::Case >

virtual CreateCase(google::cloud::support::v2::CreateCaseRequest const &)

Parameter
Name Description
request google::cloud::support::v2::CreateCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::support::v2::Case >

virtual UpdateCase(google::cloud::support::v2::UpdateCaseRequest const &)

Parameter
Name Description
request google::cloud::support::v2::UpdateCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::support::v2::Case >

virtual EscalateCase(google::cloud::support::v2::EscalateCaseRequest const &)

Parameter
Name Description
request google::cloud::support::v2::EscalateCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::support::v2::Case >

virtual CloseCase(google::cloud::support::v2::CloseCaseRequest const &)

Parameter
Name Description
request google::cloud::support::v2::CloseCaseRequest const &
Returns
Type Description
StatusOr< google::cloud::support::v2::Case >

virtual SearchCaseClassifications(google::cloud::support::v2::SearchCaseClassificationsRequest)

Parameter
Name Description
request google::cloud::support::v2::SearchCaseClassificationsRequest
Returns
Type Description
StreamRange< google::cloud::support::v2::CaseClassification >