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

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

Parameter
NameDescription
request google::cloud::speech::v1::CreatePhraseSetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v1::PhraseSet >

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

Parameter
NameDescription
request google::cloud::speech::v1::GetPhraseSetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v1::PhraseSet >

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

Parameter
NameDescription
request google::cloud::speech::v1::ListPhraseSetRequest
Returns
TypeDescription
StreamRange< google::cloud::speech::v1::PhraseSet >

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

Parameter
NameDescription
request google::cloud::speech::v1::UpdatePhraseSetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v1::PhraseSet >

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

Parameter
NameDescription
request google::cloud::speech::v1::DeletePhraseSetRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::speech::v1::CreateCustomClassRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v1::CustomClass >

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

Parameter
NameDescription
request google::cloud::speech::v1::GetCustomClassRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v1::CustomClass >

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

Parameter
NameDescription
request google::cloud::speech::v1::ListCustomClassesRequest
Returns
TypeDescription
StreamRange< google::cloud::speech::v1::CustomClass >

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

Parameter
NameDescription
request google::cloud::speech::v1::UpdateCustomClassRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v1::CustomClass >

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

Parameter
NameDescription
request google::cloud::speech::v1::DeleteCustomClassRequest const &
Returns
TypeDescription
Status