Class TraceServiceConnection (2.29.0-rc)

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

To create a concrete instance, see MakeTraceServiceConnection().

For mocking, see trace_v1_mocks::MockTraceServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListTraces(google::devtools::cloudtrace::v1::ListTracesRequest)

Parameter
Name Description
request google::devtools::cloudtrace::v1::ListTracesRequest
Returns
Type Description
StreamRange< google::devtools::cloudtrace::v1::Trace >

virtual GetTrace(google::devtools::cloudtrace::v1::GetTraceRequest const &)

Parameter
Name Description
request google::devtools::cloudtrace::v1::GetTraceRequest const &
Returns
Type Description
StatusOr< google::devtools::cloudtrace::v1::Trace >

virtual PatchTraces(google::devtools::cloudtrace::v1::PatchTracesRequest const &)

Parameter
Name Description
request google::devtools::cloudtrace::v1::PatchTracesRequest const &
Returns
Type Description
Status