UNPKG

@cloudquery/plugin-pb-javascript

Version:

This is a low-level auto-generated gRPC client and server for CloudQuery plugins

80 lines (79 loc) 3.66 kB
/** * Generated by the protoc-gen-ts. DO NOT EDIT! * compiler version: 3.19.1 * source: protos/discovery/v1/discovery.proto * git: https://github.com/thesayyn/protoc-gen-ts */ import * as pb_1 from "google-protobuf"; import * as grpc_1 from "@grpc/grpc-js"; export declare namespace cloudquery.discovery.v1 { export class GetVersions extends pb_1.Message { #private; constructor(data?: any[] | {}); static fromObject(data: {}): GetVersions; toObject(): {}; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetVersions; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): GetVersions; } export namespace GetVersions { class Request extends pb_1.Message { #private; constructor(data?: any[] | {}); static fromObject(data: {}): Request; toObject(): {}; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Request; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): Request; } class Response extends pb_1.Message { #private; constructor(data?: any[] | { versions?: number[]; }); get versions(): number[]; set versions(value: number[]); static fromObject(data: { versions?: number[]; }): Response; toObject(): { versions?: number[]; }; serialize(): Uint8Array; serialize(w: pb_1.BinaryWriter): void; static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Response; serializeBinary(): Uint8Array; static deserializeBinary(bytes: Uint8Array): Response; } } interface GrpcUnaryServiceInterface<P, R> { (message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; (message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; (message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; (message: P, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall; } export abstract class UnimplementedDiscoveryService { static definition: { GetVersions: { path: string; requestStream: boolean; responseStream: boolean; requestSerialize: (message: GetVersions.Request) => Buffer<ArrayBuffer>; requestDeserialize: (bytes: Buffer) => GetVersions.Request; responseSerialize: (message: GetVersions.Response) => Buffer<ArrayBuffer>; responseDeserialize: (bytes: Buffer) => GetVersions.Response; }; }; [method: string]: grpc_1.UntypedHandleCall; abstract GetVersions(call: grpc_1.ServerUnaryCall<GetVersions.Request, GetVersions.Response>, callback: grpc_1.sendUnaryData<GetVersions.Response>): void; } const DiscoveryClient_base: grpc_1.ServiceClientConstructor; export class DiscoveryClient extends DiscoveryClient_base { constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>); GetVersions: GrpcUnaryServiceInterface<GetVersions.Request, GetVersions.Response>; } export {}; }