Class AgentEndpointServiceConnection (2.16.0)

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

To create a concrete instance, see MakeAgentEndpointServiceConnection().

For mocking, see osconfig_agentendpoint_v1_mocks::MockAgentEndpointServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ReceiveTaskNotification(google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationRequest const &)

Parameter
Name Description
request google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationRequest const &
Returns
Type Description
StreamRange< google::cloud::osconfig::agentendpoint::v1::ReceiveTaskNotificationResponse >

virtual StartNextTask(google::cloud::osconfig::agentendpoint::v1::StartNextTaskRequest const &)

Parameter
Name Description
request google::cloud::osconfig::agentendpoint::v1::StartNextTaskRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::agentendpoint::v1::StartNextTaskResponse >

virtual ReportTaskProgress(google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressRequest const &)

Parameter
Name Description
request google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskProgressResponse >

virtual ReportTaskComplete(google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteRequest const &)

Parameter
Name Description
request google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportTaskCompleteResponse >

virtual RegisterAgent(google::cloud::osconfig::agentendpoint::v1::RegisterAgentRequest const &)

Parameter
Name Description
request google::cloud::osconfig::agentendpoint::v1::RegisterAgentRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::agentendpoint::v1::RegisterAgentResponse >

virtual ReportInventory(google::cloud::osconfig::agentendpoint::v1::ReportInventoryRequest const &)

Parameter
Name Description
request google::cloud::osconfig::agentendpoint::v1::ReportInventoryRequest const &
Returns
Type Description
StatusOr< google::cloud::osconfig::agentendpoint::v1::ReportInventoryResponse >