UNPKG

2.22 kBTypeScriptView Raw
1import * as v2 from './v2';
2/**
3 * The `@google-cloud/translate` package has the following named exports:
4 *
5 * - `{@link TranslationServiceClient}` class - constructor for v3 of the Translation API.
6 * See {@link v3.TranslationServiceClient} for client methods.
7 * - `v3` - client for the v3 backend service version. It exports:
8 * - `TranslationServiceClient` - Reference to {@link v3.TranslationServiceClient}
9 * - `v3beta1` - client for the v3beta1 backend service version. It exports:
10 * - `TranslationServiceClient` - Reference to {@link v3beta1.TranslationServiceClient}
11 * - `v2` - client for the v2 backend service version. It exports:
12 * - `Translate` - Reference to {@link v2.Translate}
13 *
14 * @module {constructor} @google-cloud/translate
15 * @alias nodejs-translate
16 *
17 * @example <caption>Install the v3 client library with <a
18 * href="https://www.npmjs.com/">npm</a>:</caption>
19 * npm install --save @google-cloud/translate
20 *
21 * @example <caption>Import the v3 client library:</caption>
22 * const {TranslationServiceClient} = require('@google-cloud/translate');
23 *
24 * @example <caption>Create a v3 client that uses <a
25 * href="https://goo.gl/64dyYX">Application Default Credentials
26 * (ADC)</a>:</caption>
27 * const client = new TranslationServiceClient();
28 *
29 * @example <caption>include:samples/quickstart.js</caption>
30 * region_tag:translate_quickstart
31 * Full quickstart example:
32 *
33 * @example <caption>Install the v3beta1 client library:</caption>
34 * npm install --save @google-cloud/translate
35 *
36 * @example <caption>Import the v3beta1 client library:</caption>
37 * const {TranslationServiceClient} =
38 * require('@google-cloud/translate').v3beta1;
39 */
40import * as v3beta1 from './v3beta1';
41import * as v3 from './v3';
42export * from './v3';
43declare const TranslationServiceClient: typeof v3.TranslationServiceClient;
44declare type TranslationServiceClient = v3.TranslationServiceClient;
45export { TranslationServiceClient, v2, v3beta1, v3 };
46declare const _default: {
47 v2: typeof v2;
48 v3beta1: typeof v3beta1;
49 v3: typeof v3;
50 TranslationServiceClient: typeof v3.TranslationServiceClient;
51};
52export default _default;
53import * as protos from '../protos/protos';
54export { protos };