Class ProfilerServiceConnection (2.23.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
TypeDescription
Options

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

Parameter
NameDescription
request google::devtools::cloudprofiler::v2::CreateProfileRequest const &
Returns
TypeDescription
StatusOr< google::devtools::cloudprofiler::v2::Profile >

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

Parameter
NameDescription
request google::devtools::cloudprofiler::v2::CreateOfflineProfileRequest const &
Returns
TypeDescription
StatusOr< google::devtools::cloudprofiler::v2::Profile >

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

Parameter
NameDescription
request google::devtools::cloudprofiler::v2::UpdateProfileRequest const &
Returns
TypeDescription
StatusOr< google::devtools::cloudprofiler::v2::Profile >