Class LanguageServiceConnection (2.30.0)

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

To create a concrete instance, see MakeLanguageServiceConnection().

For mocking, see language_v2_mocks::MockLanguageServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AnalyzeSentiment(google::cloud::language::v2::AnalyzeSentimentRequest const &)

Parameter
Name Description
request google::cloud::language::v2::AnalyzeSentimentRequest const &
Returns
Type Description
StatusOr< google::cloud::language::v2::AnalyzeSentimentResponse >

virtual AnalyzeEntities(google::cloud::language::v2::AnalyzeEntitiesRequest const &)

Parameter
Name Description
request google::cloud::language::v2::AnalyzeEntitiesRequest const &
Returns
Type Description
StatusOr< google::cloud::language::v2::AnalyzeEntitiesResponse >

virtual ClassifyText(google::cloud::language::v2::ClassifyTextRequest const &)

Parameter
Name Description
request google::cloud::language::v2::ClassifyTextRequest const &
Returns
Type Description
StatusOr< google::cloud::language::v2::ClassifyTextResponse >

virtual ModerateText(google::cloud::language::v2::ModerateTextRequest const &)

Parameter
Name Description
request google::cloud::language::v2::ModerateTextRequest const &
Returns
Type Description
StatusOr< google::cloud::language::v2::ModerateTextResponse >

virtual AnnotateText(google::cloud::language::v2::AnnotateTextRequest const &)

Parameter
Name Description
request google::cloud::language::v2::AnnotateTextRequest const &
Returns
Type Description
StatusOr< google::cloud::language::v2::AnnotateTextResponse >