Class ModelServiceConnection (2.30.0-rc)

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

To create a concrete instance, see MakeModelServiceConnection().

For mocking, see generativelanguage_v1_mocks::MockModelServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetModel(google::ai::generativelanguage::v1::GetModelRequest const &)

Parameter
Name Description
request google::ai::generativelanguage::v1::GetModelRequest const &
Returns
Type Description
StatusOr< google::ai::generativelanguage::v1::Model >

virtual ListModels(google::ai::generativelanguage::v1::ListModelsRequest)

Parameter
Name Description
request google::ai::generativelanguage::v1::ListModelsRequest
Returns
Type Description
StreamRange< google::ai::generativelanguage::v1::Model >