EndlessStreamingServiceV2.viaApiKey constructor

EndlessStreamingServiceV2.viaApiKey(
  1. String apiKey,
  2. String projectId, {
  3. String? cloudSpeechEndpoint,
  4. String? location,
})

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);