UNPKG

930 BTypeScriptView Raw
1export declare enum Status {
2 OK = 0,
3 CANCELLED = 1,
4 UNKNOWN = 2,
5 INVALID_ARGUMENT = 3,
6 DEADLINE_EXCEEDED = 4,
7 NOT_FOUND = 5,
8 ALREADY_EXISTS = 6,
9 PERMISSION_DENIED = 7,
10 RESOURCE_EXHAUSTED = 8,
11 FAILED_PRECONDITION = 9,
12 ABORTED = 10,
13 OUT_OF_RANGE = 11,
14 UNIMPLEMENTED = 12,
15 INTERNAL = 13,
16 UNAVAILABLE = 14,
17 DATA_LOSS = 15,
18 UNAUTHENTICATED = 16
19}
20export declare enum LogVerbosity {
21 DEBUG = 0,
22 INFO = 1,
23 ERROR = 2
24}
25/**
26 * NOTE: This enum is not currently used in any implemented API in this
27 * library. It is included only for type parity with the other implementation.
28 */
29export declare enum Propagate {
30 DEADLINE = 1,
31 CENSUS_STATS_CONTEXT = 2,
32 CENSUS_TRACING_CONTEXT = 4,
33 CANCELLATION = 8,
34 DEFAULTS = 65535
35}
36export declare const DEFAULT_MAX_SEND_MESSAGE_LENGTH = -1;
37export declare const DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH: number;