SpeechToTextClientBuilder class
Builds a pipeline of speech-to-text client middleware.
The pipeline is composed by calling use one or more times, then calling build to produce the final SpeechToTextClient. Middleware factories are applied in reverse order so that the first call to use produces the outermost wrapper.
This is an experimental feature.
Constructors
- SpeechToTextClientBuilder(SpeechToTextClient innerClient)
-
Creates a new SpeechToTextClientBuilder wrapping
innerClient. - SpeechToTextClientBuilder.fromFactory(InnerSpeechToTextClientFactory innerFactory)
-
Creates a new SpeechToTextClientBuilder from a factory function.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
[ServiceProvider? services]) → SpeechToTextClient - Builds the pipeline and returns the outermost SpeechToTextClient.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
use(
SpeechToTextClient factory(SpeechToTextClient)) → SpeechToTextClientBuilder - Adds a middleware factory to the pipeline.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited