Class CaseServiceConnection (2.19.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::support::v2::GetCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::support::v2::Case >

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

Parameter
NameDescription
request google::cloud::support::v2::ListCasesRequest
Returns
TypeDescription
StreamRange< google::cloud::support::v2::Case >

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

Parameter
NameDescription
request google::cloud::support::v2::SearchCasesRequest
Returns
TypeDescription
StreamRange< google::cloud::support::v2::Case >

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

Parameter
NameDescription
request google::cloud::support::v2::CreateCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::support::v2::Case >

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

Parameter
NameDescription
request google::cloud::support::v2::UpdateCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::support::v2::Case >

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

Parameter
NameDescription
request google::cloud::support::v2::EscalateCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::support::v2::Case >

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

Parameter
NameDescription
request google::cloud::support::v2::CloseCaseRequest const &
Returns
TypeDescription
StatusOr< google::cloud::support::v2::Case >

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

Parameter
NameDescription
request google::cloud::support::v2::SearchCaseClassificationsRequest
Returns
TypeDescription
StreamRange< google::cloud::support::v2::CaseClassification >