index.d.ts 3.1 KB

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