Class LanguageServiceConnection (2.21.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::language::v2::AnalyzeSentimentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::language::v2::AnalyzeSentimentResponse >

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

Parameter
NameDescription
request google::cloud::language::v2::AnalyzeEntitiesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::language::v2::AnalyzeEntitiesResponse >

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

Parameter
NameDescription
request google::cloud::language::v2::ClassifyTextRequest const &
Returns
TypeDescription
StatusOr< google::cloud::language::v2::ClassifyTextResponse >

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

Parameter
NameDescription
request google::cloud::language::v2::ModerateTextRequest const &
Returns
TypeDescription
StatusOr< google::cloud::language::v2::ModerateTextResponse >

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

Parameter
NameDescription
request google::cloud::language::v2::AnnotateTextRequest const &
Returns
TypeDescription
StatusOr< google::cloud::language::v2::AnnotateTextResponse >