Class ProfilerServiceConnection (2.34.0-rc)

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

To create a concrete instance, see MakeProfilerServiceConnection().

For mocking, see profiler_v2_mocks::MockProfilerServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateProfile(google::devtools::cloudprofiler::v2::CreateProfileRequest const &)

Parameter
Name Description
request google::devtools::cloudprofiler::v2::CreateProfileRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudprofiler::v2::Profile >

virtual CreateOfflineProfile(google::devtools::cloudprofiler::v2::CreateOfflineProfileRequest const &)

Parameter
Name Description
request google::devtools::cloudprofiler::v2::CreateOfflineProfileRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudprofiler::v2::Profile >

virtual UpdateProfile(google::devtools::cloudprofiler::v2::UpdateProfileRequest const &)

Parameter
Name Description
request google::devtools::cloudprofiler::v2::UpdateProfileRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudprofiler::v2::Profile >