UNPKG

3.1 kBTypeScriptView Raw
1/**
2 * Copyright 2020 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 * http://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.
15 */
16import * as grpc from '@grpc/grpc-js';
17import { GrpcClient, GrpcClientOptions } from './grpc';
18import * as IamProtos from '../protos/iam_service';
19import * as LocationProtos from '../protos/locations';
20import * as operationsProtos from '../protos/operations';
21import * as operationsClient from './operationsClient';
22import * as routingHeader from './routingHeader';
23export { GoogleAuth, GoogleAuthOptions } from 'google-auth-library';
24export { grpc };
25export { CancellablePromise, OngoingCall } from './call';
26export { createApiCall } from './createApiCall';
27export { BundleDescriptor, LongrunningDescriptor, PageDescriptor, StreamDescriptor, } from './descriptor';
28export { CallOptions, CallSettings, ClientConfig, constructSettings, RetryOptions, ServiceConfig, createRetryOptions, createBundleOptions, createBackoffSettings, createDefaultBackoffSettings, createMaxRetriesBackoffSettings, } from './gax';
29export { GoogleError } from './googleError';
30export { ClientStub, ClientStubOptions, GoogleProtoFilesRoot, GrpcClient, GrpcClientOptions, GrpcModule, Metadata, MetadataValue, } from './grpc';
31export { Operation, operation } from './longRunningCalls/longrunning';
32export { PathTemplate } from './pathTemplate';
33export { Status } from './status';
34export { StreamType } from './streamingCalls/streaming';
35export { routingHeader };
36declare function lro(options: GrpcClientOptions): operationsClient.OperationsClientBuilder;
37declare namespace lro {
38 var SERVICE_ADDRESS: string;
39 var ALL_SCOPES: string[];
40}
41export { lro, operationsProtos, IamProtos, LocationProtos };
42export { OperationsClient } from './operationsClient';
43export { IamClient } from './iamService';
44export { LocationsClient } from './locationService';
45export declare const createByteLengthFunction: typeof GrpcClient.createByteLengthFunction;
46export declare const version: any;
47import * as protobuf from 'protobufjs';
48export { protobuf };
49export * as protobufMinimal from 'protobufjs/minimal';
50import * as fallback from './fallback';
51export { fallback };
52export { APICallback, GRPCCallResult, ServerStreamingCall, ClientStreamingCall, BiDiStreamingCall, UnaryCall, GRPCCall, GaxCall, CancellableStream, } from './apitypes';
53export { ClientOptions, Descriptors, Callback, LROperation, PaginationCallback, PaginationResponse, } from './clientInterface';
54export { ServiceError, ChannelCredentials } from '@grpc/grpc-js';
55export { warn } from './warnings';
56import * as serializer from 'proto3-json-serializer';
57export { serializer };