Class AdaptationConnection (2.24.0)

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

To create a concrete instance, see MakeAdaptationConnection().

For mocking, see speech_v1_mocks::MockAdaptationConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreatePhraseSet(google::cloud::speech::v1::CreatePhraseSetRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::CreatePhraseSetRequest const &
Returns
Type Description
StatusOr< google::cloud::speech::v1::PhraseSet >

virtual GetPhraseSet(google::cloud::speech::v1::GetPhraseSetRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::GetPhraseSetRequest const &
Returns
Type Description
StatusOr< google::cloud::speech::v1::PhraseSet >

virtual ListPhraseSet(google::cloud::speech::v1::ListPhraseSetRequest)

Parameter
Name Description
request google::cloud::speech::v1::ListPhraseSetRequest
Returns
Type Description
StreamRange< google::cloud::speech::v1::PhraseSet >

virtual UpdatePhraseSet(google::cloud::speech::v1::UpdatePhraseSetRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::UpdatePhraseSetRequest const &
Returns
Type Description
StatusOr< google::cloud::speech::v1::PhraseSet >

virtual DeletePhraseSet(google::cloud::speech::v1::DeletePhraseSetRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::DeletePhraseSetRequest const &
Returns
Type Description
Status

virtual CreateCustomClass(google::cloud::speech::v1::CreateCustomClassRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::CreateCustomClassRequest const &
Returns
Type Description
StatusOr< google::cloud::speech::v1::CustomClass >

virtual GetCustomClass(google::cloud::speech::v1::GetCustomClassRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::GetCustomClassRequest const &
Returns
Type Description
StatusOr< google::cloud::speech::v1::CustomClass >

virtual ListCustomClasses(google::cloud::speech::v1::ListCustomClassesRequest)

Parameter
Name Description
request google::cloud::speech::v1::ListCustomClassesRequest
Returns
Type Description
StreamRange< google::cloud::speech::v1::CustomClass >

virtual UpdateCustomClass(google::cloud::speech::v1::UpdateCustomClassRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::UpdateCustomClassRequest const &
Returns
Type Description
StatusOr< google::cloud::speech::v1::CustomClass >

virtual DeleteCustomClass(google::cloud::speech::v1::DeleteCustomClassRequest const &)

Parameter
Name Description
request google::cloud::speech::v1::DeleteCustomClassRequest const &
Returns
Type Description
Status