EndlessStreamingServiceV2.viaApiKey constructor
EndlessStreamingServiceV2.viaApiKey(})
Creates a EndlessStreamingServiceV2 interface using a API keys.
Implementation
factory EndlessStreamingServiceV2.viaApiKey(String apiKey, String projectId,
{String? cloudSpeechEndpoint, String? location}) =>
EndlessStreamingServiceV2._(
CallOptions(metadata: {'X-goog-api-key': '$apiKey'}),
projectId: projectId,
cloudSpeechEndpoint: cloudSpeechEndpoint,
location: location);