Class SpeechConnection (2.22.0)

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

To create a concrete instance, see MakeSpeechConnection().

For mocking, see speech_v2_mocks::MockSpeechConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateRecognizer(google::cloud::speech::v2::CreateRecognizerRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::CreateRecognizerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::Recognizer > >

virtual ListRecognizers(google::cloud::speech::v2::ListRecognizersRequest)

Parameter
NameDescription
request google::cloud::speech::v2::ListRecognizersRequest
Returns
TypeDescription
StreamRange< google::cloud::speech::v2::Recognizer >

virtual GetRecognizer(google::cloud::speech::v2::GetRecognizerRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::GetRecognizerRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v2::Recognizer >

virtual UpdateRecognizer(google::cloud::speech::v2::UpdateRecognizerRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::UpdateRecognizerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::Recognizer > >

virtual DeleteRecognizer(google::cloud::speech::v2::DeleteRecognizerRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::DeleteRecognizerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::Recognizer > >

virtual UndeleteRecognizer(google::cloud::speech::v2::UndeleteRecognizerRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::UndeleteRecognizerRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::Recognizer > >

virtual Recognize(google::cloud::speech::v2::RecognizeRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::RecognizeRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v2::RecognizeResponse >

virtual AsyncStreamingRecognize()

Returns
TypeDescription
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::cloud::speech::v2::StreamingRecognizeRequest, google::cloud::speech::v2::StreamingRecognizeResponse > >

virtual BatchRecognize(google::cloud::speech::v2::BatchRecognizeRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::BatchRecognizeRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::BatchRecognizeResponse > >

virtual GetConfig(google::cloud::speech::v2::GetConfigRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::GetConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v2::Config >

virtual UpdateConfig(google::cloud::speech::v2::UpdateConfigRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::UpdateConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::speech::v2::Config >

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

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

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

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

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

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

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

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

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

Parameter
NameDescription
request google::cloud::speech::v2::DeleteCustomClassRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::CustomClass > >

virtual UndeleteCustomClass(google::cloud::speech::v2::UndeleteCustomClassRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::UndeleteCustomClassRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::CustomClass > >

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

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

virtual ListPhraseSets(google::cloud::speech::v2::ListPhraseSetsRequest)

Parameter
NameDescription
request google::cloud::speech::v2::ListPhraseSetsRequest
Returns
TypeDescription
StreamRange< google::cloud::speech::v2::PhraseSet >

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

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

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

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

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

Parameter
NameDescription
request google::cloud::speech::v2::DeletePhraseSetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::PhraseSet > >

virtual UndeletePhraseSet(google::cloud::speech::v2::UndeletePhraseSetRequest const &)

Parameter
NameDescription
request google::cloud::speech::v2::UndeletePhraseSetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::speech::v2::PhraseSet > >