|
1 | 1 | /* eslint-disable */
|
2 |
| -import Long from 'long' |
3 |
| -import * as _m0 from 'protobufjs/minimal' |
| 2 | +import Long from "long"; |
| 3 | +import _m0 from "protobufjs/minimal.js"; |
4 | 4 |
|
5 |
| -export const protobufPackage = 'entitygraph.controller' |
| 5 | +export const protobufPackage = "entitygraph.controller"; |
6 | 6 |
|
7 | 7 | /** Config is the entity graph aggregation controller config. */
|
8 |
| -export interface Config {} |
| 8 | +export interface Config { |
| 9 | +} |
9 | 10 |
|
10 | 11 | function createBaseConfig(): Config {
|
11 |
| - return {} |
| 12 | + return {}; |
12 | 13 | }
|
13 | 14 |
|
14 | 15 | export const Config = {
|
15 | 16 | encode(_: Config, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
16 |
| - return writer |
| 17 | + return writer; |
17 | 18 | },
|
18 | 19 |
|
19 | 20 | decode(input: _m0.Reader | Uint8Array, length?: number): Config {
|
20 |
| - const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input) |
21 |
| - let end = length === undefined ? reader.len : reader.pos + length |
22 |
| - const message = createBaseConfig() |
| 21 | + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); |
| 22 | + let end = length === undefined ? reader.len : reader.pos + length; |
| 23 | + const message = createBaseConfig(); |
23 | 24 | while (reader.pos < end) {
|
24 |
| - const tag = reader.uint32() |
| 25 | + const tag = reader.uint32(); |
25 | 26 | switch (tag >>> 3) {
|
26 | 27 | default:
|
27 |
| - reader.skipType(tag & 7) |
28 |
| - break |
| 28 | + reader.skipType(tag & 7); |
| 29 | + break; |
29 | 30 | }
|
30 | 31 | }
|
31 |
| - return message |
| 32 | + return message; |
32 | 33 | },
|
33 | 34 |
|
34 | 35 | // encodeTransform encodes a source of message objects.
|
35 | 36 | // Transform<Config, Uint8Array>
|
36 | 37 | async *encodeTransform(
|
37 |
| - source: AsyncIterable<Config | Config[]> | Iterable<Config | Config[]> |
| 38 | + source: AsyncIterable<Config | Config[]> | Iterable<Config | Config[]>, |
38 | 39 | ): AsyncIterable<Uint8Array> {
|
39 | 40 | for await (const pkt of source) {
|
40 | 41 | if (Array.isArray(pkt)) {
|
41 | 42 | for (const p of pkt) {
|
42 |
| - yield* [Config.encode(p).finish()] |
| 43 | + yield* [Config.encode(p).finish()]; |
43 | 44 | }
|
44 | 45 | } else {
|
45 |
| - yield* [Config.encode(pkt).finish()] |
| 46 | + yield* [Config.encode(pkt).finish()]; |
46 | 47 | }
|
47 | 48 | }
|
48 | 49 | },
|
49 | 50 |
|
50 | 51 | // decodeTransform decodes a source of encoded messages.
|
51 | 52 | // Transform<Uint8Array, Config>
|
52 | 53 | async *decodeTransform(
|
53 |
| - source: |
54 |
| - | AsyncIterable<Uint8Array | Uint8Array[]> |
55 |
| - | Iterable<Uint8Array | Uint8Array[]> |
| 54 | + source: AsyncIterable<Uint8Array | Uint8Array[]> | Iterable<Uint8Array | Uint8Array[]>, |
56 | 55 | ): AsyncIterable<Config> {
|
57 | 56 | for await (const pkt of source) {
|
58 | 57 | if (Array.isArray(pkt)) {
|
59 | 58 | for (const p of pkt) {
|
60 |
| - yield* [Config.decode(p)] |
| 59 | + yield* [Config.decode(p)]; |
61 | 60 | }
|
62 | 61 | } else {
|
63 |
| - yield* [Config.decode(pkt)] |
| 62 | + yield* [Config.decode(pkt)]; |
64 | 63 | }
|
65 | 64 | }
|
66 | 65 | },
|
67 | 66 |
|
68 | 67 | fromJSON(_: any): Config {
|
69 |
| - return {} |
| 68 | + return {}; |
70 | 69 | },
|
71 | 70 |
|
72 | 71 | toJSON(_: Config): unknown {
|
73 |
| - const obj: any = {} |
74 |
| - return obj |
| 72 | + const obj: any = {}; |
| 73 | + return obj; |
75 | 74 | },
|
76 | 75 |
|
77 | 76 | fromPartial<I extends Exact<DeepPartial<Config>, I>>(_: I): Config {
|
78 |
| - const message = createBaseConfig() |
79 |
| - return message |
| 77 | + const message = createBaseConfig(); |
| 78 | + return message; |
80 | 79 | },
|
81 |
| -} |
| 80 | +}; |
82 | 81 |
|
83 |
| -type Builtin = |
84 |
| - | Date |
85 |
| - | Function |
86 |
| - | Uint8Array |
87 |
| - | string |
88 |
| - | number |
89 |
| - | boolean |
90 |
| - | undefined |
| 82 | +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; |
91 | 83 |
|
92 |
| -export type DeepPartial<T> = T extends Builtin |
93 |
| - ? T |
94 |
| - : T extends Long |
95 |
| - ? string | number | Long |
96 |
| - : T extends Array<infer U> |
97 |
| - ? Array<DeepPartial<U>> |
98 |
| - : T extends ReadonlyArray<infer U> |
99 |
| - ? ReadonlyArray<DeepPartial<U>> |
100 |
| - : T extends { $case: string } |
101 |
| - ? { [K in keyof Omit<T, '$case'>]?: DeepPartial<T[K]> } & { |
102 |
| - $case: T['$case'] |
103 |
| - } |
104 |
| - : T extends {} |
105 |
| - ? { [K in keyof T]?: DeepPartial<T[K]> } |
106 |
| - : Partial<T> |
| 84 | +export type DeepPartial<T> = T extends Builtin ? T |
| 85 | + : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> |
| 86 | + : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> |
| 87 | + : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] } |
| 88 | + : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> } |
| 89 | + : Partial<T>; |
107 | 90 |
|
108 |
| -type KeysOfUnion<T> = T extends T ? keyof T : never |
109 |
| -export type Exact<P, I extends P> = P extends Builtin |
110 |
| - ? P |
111 |
| - : P & { [K in keyof P]: Exact<P[K], I[K]> } & Record< |
112 |
| - Exclude<keyof I, KeysOfUnion<P>>, |
113 |
| - never |
114 |
| - > |
| 91 | +type KeysOfUnion<T> = T extends T ? keyof T : never; |
| 92 | +export type Exact<P, I extends P> = P extends Builtin ? P |
| 93 | + : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never }; |
115 | 94 |
|
116 | 95 | if (_m0.util.Long !== Long) {
|
117 |
| - _m0.util.Long = Long as any |
118 |
| - _m0.configure() |
| 96 | + _m0.util.Long = Long as any; |
| 97 | + _m0.configure(); |
119 | 98 | }
|
0 commit comments