EndlessStreamingServiceV2.viaServiceAccount constructor

EndlessStreamingServiceV2.viaServiceAccount(
  1. ServiceAccount account, {
  2. required String projectId,
  3. String? cloudSpeechEndpoint,
  4. String? location,
})

Creates a EndlessStreamingServiceV2 interface using a service account.

Implementation

factory EndlessStreamingServiceV2.viaServiceAccount(
  ServiceAccount account, {
  required String projectId,
  String? cloudSpeechEndpoint,
  String? location,
}) => EndlessStreamingServiceV2._(
  account.callOptions,
  projectId: projectId,
  cloudSpeechEndpoint: cloudSpeechEndpoint,
  location: location,
);