UNPKG

1.75 kBJavaScriptView Raw
1"use strict";
2// Copyright 2018 Google LLC
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// https://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15Object.defineProperty(exports, "__esModule", { value: true });
16exports.protos = exports.SpeechClient = exports.v1p1beta1 = exports.v1 = void 0;
17const helpers_1 = require("./helpers");
18const v1p1beta1 = require("./v1p1beta1");
19exports.v1p1beta1 = v1p1beta1;
20const v1 = require("./v1");
21exports.v1 = v1;
22// The following code is adapted from http://www.typescriptlang.org/docs/handbook/mixins.html
23// tslint:disable-next-line no-any
24Object.defineProperty(v1.SpeechClient.prototype, 'streamingRecognize', Object.getOwnPropertyDescriptor(helpers_1.ImprovedStreamingClient.prototype, 'streamingRecognize'));
25Object.defineProperty(v1p1beta1.SpeechClient.prototype, 'streamingRecognize', Object.getOwnPropertyDescriptor(helpers_1.ImprovedStreamingClient.prototype, 'streamingRecognize'));
26const SpeechClient = v1.SpeechClient;
27exports.SpeechClient = SpeechClient;
28// For compatibility with JavaScript libraries we need to provide this default export:
29// tslint:disable-next-line no-default-export
30exports.default = { v1, v1p1beta1, SpeechClient };
31const protos = require("../protos/protos");
32exports.protos = protos;
33//# sourceMappingURL=index.js.map
\No newline at end of file