UNPKG

auto-traffic-control

Version:

A video game for programmers about air traffic control

60 lines (51 loc) 4.5 kB
// package: atc.v1 // file: atc/v1/map.proto /* tslint:disable */ /* eslint-disable */ import * as grpc from "@grpc/grpc-js"; import * as atc_v1_map_pb from "../../atc/v1/map_pb"; import * as atc_v1_tag_pb from "../../atc/v1/tag_pb"; interface IMapServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> { getMap: IMapServiceService_IGetMap; nodeToPoint: IMapServiceService_INodeToPoint; } interface IMapServiceService_IGetMap extends grpc.MethodDefinition<atc_v1_map_pb.GetMapRequest, atc_v1_map_pb.GetMapResponse> { path: "/atc.v1.MapService/GetMap"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<atc_v1_map_pb.GetMapRequest>; requestDeserialize: grpc.deserialize<atc_v1_map_pb.GetMapRequest>; responseSerialize: grpc.serialize<atc_v1_map_pb.GetMapResponse>; responseDeserialize: grpc.deserialize<atc_v1_map_pb.GetMapResponse>; } interface IMapServiceService_INodeToPoint extends grpc.MethodDefinition<atc_v1_map_pb.NodeToPointRequest, atc_v1_map_pb.NodeToPointResponse> { path: "/atc.v1.MapService/NodeToPoint"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<atc_v1_map_pb.NodeToPointRequest>; requestDeserialize: grpc.deserialize<atc_v1_map_pb.NodeToPointRequest>; responseSerialize: grpc.serialize<atc_v1_map_pb.NodeToPointResponse>; responseDeserialize: grpc.deserialize<atc_v1_map_pb.NodeToPointResponse>; } export const MapServiceService: IMapServiceService; export interface IMapServiceServer extends grpc.UntypedServiceImplementation { getMap: grpc.handleUnaryCall<atc_v1_map_pb.GetMapRequest, atc_v1_map_pb.GetMapResponse>; nodeToPoint: grpc.handleUnaryCall<atc_v1_map_pb.NodeToPointRequest, atc_v1_map_pb.NodeToPointResponse>; } export interface IMapServiceClient { getMap(request: atc_v1_map_pb.GetMapRequest, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.GetMapResponse) => void): grpc.ClientUnaryCall; getMap(request: atc_v1_map_pb.GetMapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.GetMapResponse) => void): grpc.ClientUnaryCall; getMap(request: atc_v1_map_pb.GetMapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.GetMapResponse) => void): grpc.ClientUnaryCall; nodeToPoint(request: atc_v1_map_pb.NodeToPointRequest, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.NodeToPointResponse) => void): grpc.ClientUnaryCall; nodeToPoint(request: atc_v1_map_pb.NodeToPointRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.NodeToPointResponse) => void): grpc.ClientUnaryCall; nodeToPoint(request: atc_v1_map_pb.NodeToPointRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.NodeToPointResponse) => void): grpc.ClientUnaryCall; } export class MapServiceClient extends grpc.Client implements IMapServiceClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); public getMap(request: atc_v1_map_pb.GetMapRequest, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.GetMapResponse) => void): grpc.ClientUnaryCall; public getMap(request: atc_v1_map_pb.GetMapRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.GetMapResponse) => void): grpc.ClientUnaryCall; public getMap(request: atc_v1_map_pb.GetMapRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.GetMapResponse) => void): grpc.ClientUnaryCall; public nodeToPoint(request: atc_v1_map_pb.NodeToPointRequest, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.NodeToPointResponse) => void): grpc.ClientUnaryCall; public nodeToPoint(request: atc_v1_map_pb.NodeToPointRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.NodeToPointResponse) => void): grpc.ClientUnaryCall; public nodeToPoint(request: atc_v1_map_pb.NodeToPointRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: atc_v1_map_pb.NodeToPointResponse) => void): grpc.ClientUnaryCall; }