Class TraceServiceConnection (2.22.0)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::devtools::cloudtrace::v1::ListTracesRequest
Returns
TypeDescription
StreamRange< google::devtools::cloudtrace::v1::Trace >

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

Parameter
NameDescription
request google::devtools::cloudtrace::v1::GetTraceRequest const &
Returns
TypeDescription
StatusOr< google::devtools::cloudtrace::v1::Trace >

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

Parameter
NameDescription
request google::devtools::cloudtrace::v1::PatchTracesRequest const &
Returns
TypeDescription
Status