Class LanguageServiceConnection (2.33.0-rc)

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
Type Description
Options

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

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

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

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

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

Parameter
Name Description
request google::cloud::language::v1::AnalyzeEntitySentimentRequest const &
Returns
Type Description
StatusOr< google::cloud::language::v1::AnalyzeEntitySentimentResponse >

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

Parameter
Name Description
request google::cloud::language::v1::AnalyzeSyntaxRequest const &
Returns
Type Description
StatusOr< google::cloud::language::v1::AnalyzeSyntaxResponse >

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

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

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

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

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

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