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_v1_mocks::MockLanguageServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

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

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

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

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

virtual AnalyzeEntitySentiment(google::cloud::language::v1::AnalyzeEntitySentimentRequest const &)

Parameter
NameDescription
request google::cloud::language::v1::AnalyzeEntitySentimentRequest const &
Returns
TypeDescription
StatusOr< google::cloud::language::v1::AnalyzeEntitySentimentResponse >

virtual AnalyzeSyntax(google::cloud::language::v1::AnalyzeSyntaxRequest const &)

Parameter
NameDescription
request google::cloud::language::v1::AnalyzeSyntaxRequest const &
Returns
TypeDescription
StatusOr< google::cloud::language::v1::AnalyzeSyntaxResponse >

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

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

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

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

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

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