|
1 | 1 | // package: api
|
2 | 2 | // file: api.proto
|
3 | 3 |
|
4 |
| -import * as grpc from "@grpc/grpc-js"; |
| 4 | +/* tslint:disable */ |
| 5 | +/* eslint-disable */ |
| 6 | + |
| 7 | +import * as grpc from "grpc"; |
5 | 8 | import * as api_pb from "./api_pb";
|
6 | 9 |
|
7 |
| -export class DgraphClient extends grpc.Client { |
8 |
| - public login( |
9 |
| - request: api_pb.LoginRequest, |
10 |
| - metadata: grpc.Metadata | null, |
11 |
| - options: grpc.CallOptions | null, |
12 |
| - callback: (err?: Error | null, res?: api_pb.Response) => void |
13 |
| - ): void; |
14 |
| - |
15 |
| - public alter( |
16 |
| - operation: api_pb.Operation, |
17 |
| - metadata: grpc.Metadata | null, |
18 |
| - options: grpc.CallOptions | null, |
19 |
| - callback: (err?: Error | null, res?: api_pb.Payload) => void |
20 |
| - ): void; |
21 |
| - |
22 |
| - public query( |
23 |
| - request: api_pb.Request, |
24 |
| - metadata: grpc.Metadata | null, |
25 |
| - options: grpc.CallOptions | null, |
26 |
| - callback: (err?: Error | null, res?: api_pb.Response) => void |
27 |
| - ): void; |
28 |
| - |
29 |
| - public mutate( |
30 |
| - request: api_pb.Mutation, |
31 |
| - metadata: grpc.Metadata | null, |
32 |
| - options: grpc.CallOptions | null, |
33 |
| - callback: (err?: Error | null, res?: api_pb.Response) => void |
34 |
| - ): void; |
35 |
| - |
36 |
| - public commitOrAbort( |
37 |
| - request: api_pb.TxnContext, |
38 |
| - metadata: grpc.Metadata | null, |
39 |
| - options: grpc.CallOptions | null, |
40 |
| - callback: (err?: Error | null, res?: api_pb.TxnContext) => void |
41 |
| - ): void; |
42 |
| - |
43 |
| - public checkVersion( |
44 |
| - request: api_pb.Check, |
45 |
| - metadata: grpc.Metadata | null, |
46 |
| - options: grpc.CallOptions | null, |
47 |
| - callback: (err?: Error | null, res?: api_pb.Version) => void |
48 |
| - ): void; |
| 10 | +interface IDgraphService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> { |
| 11 | + login: IDgraphService_ILogin; |
| 12 | + query: IDgraphService_IQuery; |
| 13 | + alter: IDgraphService_IAlter; |
| 14 | + commitOrAbort: IDgraphService_ICommitOrAbort; |
| 15 | + checkVersion: IDgraphService_ICheckVersion; |
| 16 | +} |
| 17 | + |
| 18 | +interface IDgraphService_ILogin extends grpc.MethodDefinition<api_pb.LoginRequest, api_pb.Response> { |
| 19 | + path: "/api.Dgraph/Login"; |
| 20 | + requestStream: false; |
| 21 | + responseStream: false; |
| 22 | + requestSerialize: grpc.serialize<api_pb.LoginRequest>; |
| 23 | + requestDeserialize: grpc.deserialize<api_pb.LoginRequest>; |
| 24 | + responseSerialize: grpc.serialize<api_pb.Response>; |
| 25 | + responseDeserialize: grpc.deserialize<api_pb.Response>; |
| 26 | +} |
| 27 | +interface IDgraphService_IQuery extends grpc.MethodDefinition<api_pb.Request, api_pb.Response> { |
| 28 | + path: "/api.Dgraph/Query"; |
| 29 | + requestStream: false; |
| 30 | + responseStream: false; |
| 31 | + requestSerialize: grpc.serialize<api_pb.Request>; |
| 32 | + requestDeserialize: grpc.deserialize<api_pb.Request>; |
| 33 | + responseSerialize: grpc.serialize<api_pb.Response>; |
| 34 | + responseDeserialize: grpc.deserialize<api_pb.Response>; |
| 35 | +} |
| 36 | +interface IDgraphService_IAlter extends grpc.MethodDefinition<api_pb.Operation, api_pb.Payload> { |
| 37 | + path: "/api.Dgraph/Alter"; |
| 38 | + requestStream: false; |
| 39 | + responseStream: false; |
| 40 | + requestSerialize: grpc.serialize<api_pb.Operation>; |
| 41 | + requestDeserialize: grpc.deserialize<api_pb.Operation>; |
| 42 | + responseSerialize: grpc.serialize<api_pb.Payload>; |
| 43 | + responseDeserialize: grpc.deserialize<api_pb.Payload>; |
| 44 | +} |
| 45 | +interface IDgraphService_ICommitOrAbort extends grpc.MethodDefinition<api_pb.TxnContext, api_pb.TxnContext> { |
| 46 | + path: "/api.Dgraph/CommitOrAbort"; |
| 47 | + requestStream: false; |
| 48 | + responseStream: false; |
| 49 | + requestSerialize: grpc.serialize<api_pb.TxnContext>; |
| 50 | + requestDeserialize: grpc.deserialize<api_pb.TxnContext>; |
| 51 | + responseSerialize: grpc.serialize<api_pb.TxnContext>; |
| 52 | + responseDeserialize: grpc.deserialize<api_pb.TxnContext>; |
| 53 | +} |
| 54 | +interface IDgraphService_ICheckVersion extends grpc.MethodDefinition<api_pb.Check, api_pb.Version> { |
| 55 | + path: "/api.Dgraph/CheckVersion"; |
| 56 | + requestStream: false; |
| 57 | + responseStream: false; |
| 58 | + requestSerialize: grpc.serialize<api_pb.Check>; |
| 59 | + requestDeserialize: grpc.deserialize<api_pb.Check>; |
| 60 | + responseSerialize: grpc.serialize<api_pb.Version>; |
| 61 | + responseDeserialize: grpc.deserialize<api_pb.Version>; |
| 62 | +} |
| 63 | + |
| 64 | +export const DgraphService: IDgraphService; |
| 65 | + |
| 66 | +export interface IDgraphServer { |
| 67 | + login: grpc.handleUnaryCall<api_pb.LoginRequest, api_pb.Response>; |
| 68 | + query: grpc.handleUnaryCall<api_pb.Request, api_pb.Response>; |
| 69 | + alter: grpc.handleUnaryCall<api_pb.Operation, api_pb.Payload>; |
| 70 | + commitOrAbort: grpc.handleUnaryCall<api_pb.TxnContext, api_pb.TxnContext>; |
| 71 | + checkVersion: grpc.handleUnaryCall<api_pb.Check, api_pb.Version>; |
| 72 | +} |
| 73 | + |
| 74 | +export interface IDgraphClient { |
| 75 | + login(request: api_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 76 | + login(request: api_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 77 | + login(request: api_pb.LoginRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 78 | + query(request: api_pb.Request, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 79 | + query(request: api_pb.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 80 | + query(request: api_pb.Request, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 81 | + alter(request: api_pb.Operation, callback: (error: grpc.ServiceError | null, response: api_pb.Payload) => void): grpc.ClientUnaryCall; |
| 82 | + alter(request: api_pb.Operation, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Payload) => void): grpc.ClientUnaryCall; |
| 83 | + alter(request: api_pb.Operation, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Payload) => void): grpc.ClientUnaryCall; |
| 84 | + commitOrAbort(request: api_pb.TxnContext, callback: (error: grpc.ServiceError | null, response: api_pb.TxnContext) => void): grpc.ClientUnaryCall; |
| 85 | + commitOrAbort(request: api_pb.TxnContext, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.TxnContext) => void): grpc.ClientUnaryCall; |
| 86 | + commitOrAbort(request: api_pb.TxnContext, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.TxnContext) => void): grpc.ClientUnaryCall; |
| 87 | + checkVersion(request: api_pb.Check, callback: (error: grpc.ServiceError | null, response: api_pb.Version) => void): grpc.ClientUnaryCall; |
| 88 | + checkVersion(request: api_pb.Check, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Version) => void): grpc.ClientUnaryCall; |
| 89 | + checkVersion(request: api_pb.Check, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Version) => void): grpc.ClientUnaryCall; |
| 90 | +} |
| 91 | + |
| 92 | +export class DgraphClient extends grpc.Client implements IDgraphClient { |
| 93 | + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); |
| 94 | + public login(request: api_pb.LoginRequest, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 95 | + public login(request: api_pb.LoginRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 96 | + public login(request: api_pb.LoginRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 97 | + public query(request: api_pb.Request, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 98 | + public query(request: api_pb.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 99 | + public query(request: api_pb.Request, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Response) => void): grpc.ClientUnaryCall; |
| 100 | + public alter(request: api_pb.Operation, callback: (error: grpc.ServiceError | null, response: api_pb.Payload) => void): grpc.ClientUnaryCall; |
| 101 | + public alter(request: api_pb.Operation, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Payload) => void): grpc.ClientUnaryCall; |
| 102 | + public alter(request: api_pb.Operation, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Payload) => void): grpc.ClientUnaryCall; |
| 103 | + public commitOrAbort(request: api_pb.TxnContext, callback: (error: grpc.ServiceError | null, response: api_pb.TxnContext) => void): grpc.ClientUnaryCall; |
| 104 | + public commitOrAbort(request: api_pb.TxnContext, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.TxnContext) => void): grpc.ClientUnaryCall; |
| 105 | + public commitOrAbort(request: api_pb.TxnContext, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.TxnContext) => void): grpc.ClientUnaryCall; |
| 106 | + public checkVersion(request: api_pb.Check, callback: (error: grpc.ServiceError | null, response: api_pb.Version) => void): grpc.ClientUnaryCall; |
| 107 | + public checkVersion(request: api_pb.Check, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: api_pb.Version) => void): grpc.ClientUnaryCall; |
| 108 | + public checkVersion(request: api_pb.Check, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: api_pb.Version) => void): grpc.ClientUnaryCall; |
49 | 109 | }
|
0 commit comments