|
1 | 1 | import * as capnp from "capnp-es";
|
2 | 2 | export declare const _capnpFileId: bigint;
|
3 |
| -export declare enum Person_PhoneNumber_Type { |
4 |
| - MOBILE = 0, |
5 |
| - HOME = 1, |
6 |
| - WORK = 2 |
7 |
| -} |
| 3 | +export declare const Person_PhoneNumber_Type: { |
| 4 | + readonly MOBILE: 0; |
| 5 | + readonly HOME: 1; |
| 6 | + readonly WORK: 2; |
| 7 | +}; |
| 8 | +export type Person_PhoneNumber_Type = (typeof Person_PhoneNumber_Type)[keyof typeof Person_PhoneNumber_Type]; |
8 | 9 | export declare class Person_PhoneNumber extends capnp.Struct {
|
9 |
| - static readonly Type: typeof Person_PhoneNumber_Type; |
10 |
| - static readonly _capnp: { |
11 |
| - displayName: string; |
12 |
| - id: string; |
13 |
| - size: capnp.ObjectSize; |
14 |
| - }; |
15 |
| - getNumber(): string; |
16 |
| - setNumber(value: string): void; |
17 |
| - getType(): Person_PhoneNumber_Type; |
18 |
| - setType(value: Person_PhoneNumber_Type): void; |
19 |
| - toString(): string; |
20 |
| -} |
21 |
| -export declare enum Person_Employment_Which { |
22 |
| - UNEMPLOYED = 0, |
23 |
| - EMPLOYER = 1, |
24 |
| - SCHOOL = 2, |
25 |
| - SELF_EMPLOYED = 3 |
| 10 | + static readonly Type: { |
| 11 | + readonly MOBILE: 0; |
| 12 | + readonly HOME: 1; |
| 13 | + readonly WORK: 2; |
| 14 | + }; |
| 15 | + static readonly _capnp: { |
| 16 | + displayName: string; |
| 17 | + id: string; |
| 18 | + size: capnp.ObjectSize; |
| 19 | + }; |
| 20 | + getNumber(): string; |
| 21 | + setNumber(value: string): void; |
| 22 | + getType(): Person_PhoneNumber_Type; |
| 23 | + setType(value: Person_PhoneNumber_Type): void; |
| 24 | + toString(): string; |
26 | 25 | }
|
| 26 | +export declare const Person_Employment_Which: { |
| 27 | + readonly UNEMPLOYED: 0; |
| 28 | + readonly EMPLOYER: 1; |
| 29 | + readonly SCHOOL: 2; |
| 30 | + readonly SELF_EMPLOYED: 3; |
| 31 | +}; |
| 32 | +export type Person_Employment_Which = (typeof Person_Employment_Which)[keyof typeof Person_Employment_Which]; |
27 | 33 | export declare class Person_Employment extends capnp.Struct {
|
28 |
| - static readonly UNEMPLOYED = Person_Employment_Which.UNEMPLOYED; |
29 |
| - static readonly EMPLOYER = Person_Employment_Which.EMPLOYER; |
30 |
| - static readonly SCHOOL = Person_Employment_Which.SCHOOL; |
31 |
| - static readonly SELF_EMPLOYED = Person_Employment_Which.SELF_EMPLOYED; |
32 |
| - static readonly _capnp: { |
33 |
| - displayName: string; |
34 |
| - id: string; |
35 |
| - size: capnp.ObjectSize; |
36 |
| - }; |
37 |
| - isUnemployed(): boolean; |
38 |
| - setUnemployed(): void; |
39 |
| - getEmployer(): string; |
40 |
| - isEmployer(): boolean; |
41 |
| - setEmployer(value: string): void; |
42 |
| - getSchool(): string; |
43 |
| - isSchool(): boolean; |
44 |
| - setSchool(value: string): void; |
45 |
| - isSelfEmployed(): boolean; |
46 |
| - setSelfEmployed(): void; |
47 |
| - toString(): string; |
48 |
| - which(): Person_Employment_Which; |
| 34 | + static readonly UNEMPLOYED: 0; |
| 35 | + static readonly EMPLOYER: 1; |
| 36 | + static readonly SCHOOL: 2; |
| 37 | + static readonly SELF_EMPLOYED: 3; |
| 38 | + static readonly _capnp: { |
| 39 | + displayName: string; |
| 40 | + id: string; |
| 41 | + size: capnp.ObjectSize; |
| 42 | + }; |
| 43 | + isUnemployed(): boolean; |
| 44 | + setUnemployed(): void; |
| 45 | + getEmployer(): string; |
| 46 | + isEmployer(): boolean; |
| 47 | + setEmployer(value: string): void; |
| 48 | + getSchool(): string; |
| 49 | + isSchool(): boolean; |
| 50 | + setSchool(value: string): void; |
| 51 | + isSelfEmployed(): boolean; |
| 52 | + setSelfEmployed(): void; |
| 53 | + toString(): string; |
| 54 | + which(): Person_Employment_Which; |
49 | 55 | }
|
50 | 56 | export declare class Person extends capnp.Struct {
|
51 |
| - static readonly PhoneNumber: typeof Person_PhoneNumber; |
52 |
| - static readonly _capnp: { |
53 |
| - displayName: string; |
54 |
| - id: string; |
55 |
| - size: capnp.ObjectSize; |
56 |
| - }; |
57 |
| - static _Phones: capnp.ListCtor<Person_PhoneNumber>; |
58 |
| - getId(): number; |
59 |
| - setId(value: number): void; |
60 |
| - getName(): string; |
61 |
| - setName(value: string): void; |
62 |
| - getEmail(): string; |
63 |
| - setEmail(value: string): void; |
64 |
| - adoptPhones(value: capnp.Orphan<capnp.List<Person_PhoneNumber>>): void; |
65 |
| - disownPhones(): capnp.Orphan<capnp.List<Person_PhoneNumber>>; |
66 |
| - getPhones(): capnp.List<Person_PhoneNumber>; |
67 |
| - hasPhones(): boolean; |
68 |
| - initPhones(length: number): capnp.List<Person_PhoneNumber>; |
69 |
| - setPhones(value: capnp.List<Person_PhoneNumber>): void; |
70 |
| - getEmployment(): Person_Employment; |
71 |
| - initEmployment(): Person_Employment; |
72 |
| - toString(): string; |
| 57 | + static readonly PhoneNumber: typeof Person_PhoneNumber; |
| 58 | + static readonly _capnp: { |
| 59 | + displayName: string; |
| 60 | + id: string; |
| 61 | + size: capnp.ObjectSize; |
| 62 | + }; |
| 63 | + static _Phones: capnp.ListCtor<Person_PhoneNumber>; |
| 64 | + getId(): number; |
| 65 | + setId(value: number): void; |
| 66 | + getName(): string; |
| 67 | + setName(value: string): void; |
| 68 | + getEmail(): string; |
| 69 | + setEmail(value: string): void; |
| 70 | + adoptPhones(value: capnp.Orphan<capnp.List<Person_PhoneNumber>>): void; |
| 71 | + disownPhones(): capnp.Orphan<capnp.List<Person_PhoneNumber>>; |
| 72 | + getPhones(): capnp.List<Person_PhoneNumber>; |
| 73 | + hasPhones(): boolean; |
| 74 | + initPhones(length: number): capnp.List<Person_PhoneNumber>; |
| 75 | + setPhones(value: capnp.List<Person_PhoneNumber>): void; |
| 76 | + getEmployment(): Person_Employment; |
| 77 | + initEmployment(): Person_Employment; |
| 78 | + toString(): string; |
73 | 79 | }
|
74 | 80 | export declare class AddressBook extends capnp.Struct {
|
75 |
| - static readonly _capnp: { |
76 |
| - displayName: string; |
77 |
| - id: string; |
78 |
| - size: capnp.ObjectSize; |
79 |
| - }; |
80 |
| - static _People: capnp.ListCtor<Person>; |
81 |
| - adoptPeople(value: capnp.Orphan<capnp.List<Person>>): void; |
82 |
| - disownPeople(): capnp.Orphan<capnp.List<Person>>; |
83 |
| - getPeople(): capnp.List<Person>; |
84 |
| - hasPeople(): boolean; |
85 |
| - initPeople(length: number): capnp.List<Person>; |
86 |
| - setPeople(value: capnp.List<Person>): void; |
87 |
| - toString(): string; |
| 81 | + static readonly _capnp: { |
| 82 | + displayName: string; |
| 83 | + id: string; |
| 84 | + size: capnp.ObjectSize; |
| 85 | + }; |
| 86 | + static _People: capnp.ListCtor<Person>; |
| 87 | + adoptPeople(value: capnp.Orphan<capnp.List<Person>>): void; |
| 88 | + disownPeople(): capnp.Orphan<capnp.List<Person>>; |
| 89 | + getPeople(): capnp.List<Person>; |
| 90 | + hasPeople(): boolean; |
| 91 | + initPeople(length: number): capnp.List<Person>; |
| 92 | + setPeople(value: capnp.List<Person>): void; |
| 93 | + toString(): string; |
88 | 94 | }
|
0 commit comments