EndlessStreamingServiceV2.viaToken constructor
EndlessStreamingServiceV2.viaToken(})
Creates a EndlessStreamingServiceV2 interface using a token. You are responsible for updating the token when it expires.
Implementation
factory EndlessStreamingServiceV2.viaToken(String typeToken, String token,
{required String projectId,
String? cloudSpeechEndpoint,
String? location}) =>
EndlessStreamingServiceV2._(
CallOptions(metadata: {'authorization': '$typeToken $token'}),
projectId: projectId,
cloudSpeechEndpoint: cloudSpeechEndpoint,
location: location);