@milaboratories/pl-client 2.7.13 → 2.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/cache.d.ts.map +1 -1
- package/dist/core/client.d.ts +1 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/default_client.d.ts.map +1 -1
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/transaction.d.ts +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/type_conversion.d.ts.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/helpers/pl.d.ts.map +1 -1
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/state_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4069 -4075
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
- package/dist/proto/google/api/http.d.ts +89 -89
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +52 -52
- package/dist/proto/google/protobuf/any.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +19 -19
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
- package/dist/proto/google/protobuf/struct.d.ts +56 -56
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/util/util.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/core/auth.ts +3 -3
- package/src/core/cache.ts +1 -1
- package/src/core/client.ts +39 -31
- package/src/core/config.ts +21 -21
- package/src/core/default_client.ts +15 -14
- package/src/core/driver.ts +4 -4
- package/src/core/errors.ts +3 -3
- package/src/core/final.ts +7 -4
- package/src/core/ll_client.ts +31 -27
- package/src/core/ll_transaction.ts +17 -17
- package/src/core/stat.ts +2 -2
- package/src/core/transaction.ts +93 -95
- package/src/core/type_conversion.ts +11 -8
- package/src/core/types.ts +25 -26
- package/src/core/unauth_client.ts +6 -6
- package/src/helpers/pl.ts +8 -7
- package/src/helpers/poll.ts +25 -21
- package/src/helpers/state_helpers.ts +2 -1
- package/src/helpers/tx_helpers.ts +4 -3
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
- package/src/proto/google/api/http.ts +280 -271
- package/src/proto/google/protobuf/any.ts +149 -139
- package/src/proto/google/protobuf/descriptor.ts +2952 -2853
- package/src/proto/google/protobuf/duration.ts +107 -102
- package/src/proto/google/protobuf/empty.ts +41 -38
- package/src/proto/google/protobuf/struct.ts +336 -322
- package/src/proto/google/protobuf/timestamp.ts +131 -123
- package/src/proto/google/protobuf/wrappers.ts +536 -491
- package/src/test/test_config.ts +21 -19
- package/src/util/util.ts +1 -0
|
@@ -1,145 +1,145 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "github.com/milaboratory/pl/plapi/plapiproto/api_types.proto" (package "MiLaboratories.PL.API", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from
|
|
5
|
-
import type { IBinaryWriter } from
|
|
6
|
-
import { WireType } from
|
|
7
|
-
import type { BinaryReadOptions } from
|
|
8
|
-
import type { IBinaryReader } from
|
|
9
|
-
import { UnknownFieldHandler } from
|
|
10
|
-
import type { PartialMessage } from
|
|
11
|
-
import { reflectionMergePartial } from
|
|
12
|
-
import { MessageType } from
|
|
13
|
-
import { NotificationFilter_Payload } from
|
|
14
|
-
import { FieldType } from
|
|
15
|
-
import { FieldRef } from
|
|
16
|
-
import { Timestamp } from
|
|
17
|
-
import { ResourceType } from
|
|
4
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
5
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
6
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
7
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
8
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
9
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
10
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
11
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
12
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
13
|
+
import { NotificationFilter_Payload } from './resource_types';
|
|
14
|
+
import { FieldType } from './base_types';
|
|
15
|
+
import { FieldRef } from './base_types';
|
|
16
|
+
import { Timestamp } from '../../../../../google/protobuf/timestamp';
|
|
17
|
+
import { ResourceType } from './base_types';
|
|
18
18
|
/**
|
|
19
19
|
* @generated from protobuf message MiLaboratories.PL.API.Tx
|
|
20
20
|
*/
|
|
21
21
|
export interface Tx {
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
23
|
* @generated from protobuf field: bool is_valid = 1;
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
isValid: boolean;
|
|
26
|
+
/**
|
|
27
27
|
* @generated from protobuf field: uint64 id = 2;
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
id: bigint;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @generated from protobuf message MiLaboratories.PL.API.Resource
|
|
33
33
|
*/
|
|
34
34
|
export interface Resource {
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
36
|
* @generated from protobuf field: uint64 id = 2;
|
|
37
37
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
id: bigint;
|
|
39
|
+
/**
|
|
40
40
|
* @generated from protobuf field: MiLaboratories.PL.API.Resource.Kind kind = 3;
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
kind: Resource_Kind;
|
|
43
|
+
/**
|
|
44
44
|
* @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 4;
|
|
45
45
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
type?: ResourceType;
|
|
47
|
+
/**
|
|
48
48
|
* @generated from protobuf field: bytes data = 5;
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
data: Uint8Array;
|
|
51
|
+
/**
|
|
52
52
|
* @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 16;
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
features?: Resource_Features;
|
|
55
|
+
/**
|
|
56
56
|
* @generated from protobuf field: repeated MiLaboratories.PL.API.Field fields = 6;
|
|
57
57
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
fields: Field[];
|
|
59
|
+
/**
|
|
60
60
|
* Resource has at least one field with error
|
|
61
61
|
*
|
|
62
62
|
* @generated from protobuf field: bool has_errors = 7;
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
hasErrors: boolean;
|
|
65
|
+
/**
|
|
66
66
|
* @generated from protobuf field: bool inputs_locked = 8;
|
|
67
67
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
inputsLocked: boolean;
|
|
69
|
+
/**
|
|
70
70
|
* @generated from protobuf field: bool outputs_locked = 9;
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
outputsLocked: boolean;
|
|
73
|
+
/**
|
|
74
74
|
* @generated from protobuf field: bool resource_ready = 14;
|
|
75
75
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
resourceReady: boolean;
|
|
77
|
+
/**
|
|
78
78
|
* @generated from protobuf field: bool is_final = 15;
|
|
79
79
|
*/
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
isFinal: boolean;
|
|
81
|
+
/**
|
|
82
82
|
* @generated from protobuf field: uint64 original_resource_id = 10;
|
|
83
83
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
originalResourceId: bigint;
|
|
85
|
+
/**
|
|
86
86
|
* @generated from protobuf field: uint64 parent_resource_id = 11;
|
|
87
87
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
parentResourceId: bigint;
|
|
89
|
+
/**
|
|
90
90
|
* @generated from protobuf field: google.protobuf.Timestamp created_time = 12;
|
|
91
91
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
createdTime?: Timestamp;
|
|
93
|
+
/**
|
|
94
94
|
* @generated from protobuf field: google.protobuf.Timestamp deleted_time = 13;
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
deletedTime?: Timestamp;
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* @generated from protobuf message MiLaboratories.PL.API.Resource.Features
|
|
100
100
|
*/
|
|
101
101
|
export interface Resource_Features {
|
|
102
|
-
|
|
102
|
+
/**
|
|
103
103
|
* @generated from protobuf field: bool ephemeral = 1;
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
ephemeral: boolean; // false = 'supports deduplication'
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* @generated from protobuf enum MiLaboratories.PL.API.Resource.Kind
|
|
109
109
|
*/
|
|
110
110
|
export enum Resource_Kind {
|
|
111
|
-
|
|
111
|
+
/**
|
|
112
112
|
* @generated from protobuf enum value: KIND_INVALID = 0;
|
|
113
113
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
INVALID = 0,
|
|
115
|
+
/**
|
|
116
116
|
* @generated from protobuf enum value: KIND_STRUCTURAL = 1;
|
|
117
117
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
STRUCTURAL = 1,
|
|
119
|
+
/**
|
|
120
120
|
* @generated from protobuf enum value: KIND_VALUE = 2;
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
VALUE = 2,
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* @generated from protobuf message MiLaboratories.PL.API.Field
|
|
126
126
|
*/
|
|
127
127
|
export interface Field {
|
|
128
|
-
|
|
128
|
+
/**
|
|
129
129
|
* field ID is always combination of parent resource ID and field name
|
|
130
130
|
*
|
|
131
131
|
* @generated from protobuf field: MiLaboratories.PL.Base.FieldRef id = 1;
|
|
132
132
|
*/
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
id?: FieldRef;
|
|
134
|
+
/**
|
|
135
135
|
* @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 2;
|
|
136
136
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
type: FieldType;
|
|
138
|
+
/**
|
|
139
139
|
* @generated from protobuf field: MiLaboratories.PL.API.Resource.Features features = 3;
|
|
140
140
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
features?: Resource_Features;
|
|
142
|
+
/**
|
|
143
143
|
* _resolved_ value of field or _assigned_ if the field was assigned to a resource.
|
|
144
144
|
* If field refers to another field, it will get
|
|
145
145
|
* value only when this chain of references ends up with direct resource
|
|
@@ -148,311 +148,314 @@ export interface Field {
|
|
|
148
148
|
*
|
|
149
149
|
* @generated from protobuf field: uint64 value = 5;
|
|
150
150
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
value: bigint;
|
|
152
|
+
/**
|
|
153
153
|
* If the value was empty, assigned or finally resolved.
|
|
154
154
|
*
|
|
155
155
|
* @generated from protobuf field: MiLaboratories.PL.API.Field.ValueStatus value_status = 7;
|
|
156
156
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
valueStatus: Field_ValueStatus;
|
|
158
|
+
/**
|
|
159
159
|
* If the value is in its final state (ready, duplicate or error)
|
|
160
160
|
*
|
|
161
161
|
* @generated from protobuf field: bool value_is_final = 8;
|
|
162
162
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
valueIsFinal: boolean;
|
|
164
|
+
/**
|
|
165
165
|
* Resource error resource id if any.
|
|
166
166
|
* Is intended to report problems _from_ platform to client.
|
|
167
167
|
*
|
|
168
168
|
* @generated from protobuf field: uint64 error = 6;
|
|
169
169
|
*/
|
|
170
|
-
|
|
170
|
+
error: bigint;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* @generated from protobuf enum MiLaboratories.PL.API.Field.ValueStatus
|
|
174
174
|
*/
|
|
175
175
|
export enum Field_ValueStatus {
|
|
176
|
-
|
|
176
|
+
/**
|
|
177
177
|
* @generated from protobuf enum value: INVALID = 0;
|
|
178
178
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
INVALID = 0,
|
|
180
|
+
/**
|
|
181
181
|
* @generated from protobuf enum value: EMPTY = 1;
|
|
182
182
|
*/
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
EMPTY = 1,
|
|
184
|
+
/**
|
|
185
185
|
* @generated from protobuf enum value: ASSIGNED = 2;
|
|
186
186
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
ASSIGNED = 2,
|
|
188
|
+
/**
|
|
189
189
|
* @generated from protobuf enum value: RESOLVED = 3;
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
RESOLVED = 3,
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
194
|
* @generated from protobuf message MiLaboratories.PL.API.Notification
|
|
195
195
|
*/
|
|
196
196
|
export interface Notification {
|
|
197
|
-
|
|
197
|
+
/**
|
|
198
198
|
* @generated from protobuf field: uint64 subscription_id = 1;
|
|
199
199
|
*/
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
subscriptionId: bigint;
|
|
201
|
+
/**
|
|
202
202
|
* @generated from protobuf field: uint64 event_id = 2;
|
|
203
203
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
eventId: bigint;
|
|
205
|
+
/**
|
|
206
206
|
* @generated from protobuf field: uint64 resource_id = 3;
|
|
207
207
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
resourceId: bigint;
|
|
209
|
+
/**
|
|
210
210
|
* @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 4;
|
|
211
211
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
resourceType?: ResourceType;
|
|
213
|
+
/**
|
|
214
214
|
* @generated from protobuf field: MiLaboratories.PL.API.Notification.Events events = 5;
|
|
215
215
|
*/
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
events?: Notification_Events;
|
|
217
|
+
/**
|
|
218
218
|
* @generated from protobuf field: map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6;
|
|
219
219
|
*/
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
fieldChanges: {
|
|
221
|
+
[key: string]: Notification_FieldChange;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
224
|
* @generated from protobuf field: MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7;
|
|
225
225
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
payload?: NotificationFilter_Payload;
|
|
227
|
+
/**
|
|
228
228
|
* @generated from protobuf field: string filter_name = 8;
|
|
229
229
|
*/
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
filterName: string;
|
|
231
|
+
/**
|
|
232
232
|
* @generated from protobuf field: MiLaboratories.PL.API.SpanInfo tx_span = 9;
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
txSpan?: SpanInfo;
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* @generated from protobuf message MiLaboratories.PL.API.Notification.Events
|
|
238
238
|
*/
|
|
239
239
|
export interface Notification_Events {
|
|
240
|
-
|
|
240
|
+
/**
|
|
241
241
|
* @generated from protobuf field: bool resource_created = 1;
|
|
242
242
|
*/
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
resourceCreated: boolean;
|
|
244
|
+
/**
|
|
245
245
|
* @generated from protobuf field: bool resource_deleted = 2;
|
|
246
246
|
*/
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
resourceDeleted: boolean;
|
|
248
|
+
/**
|
|
249
249
|
* @generated from protobuf field: bool resource_ready = 4;
|
|
250
250
|
*/
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
resourceReady: boolean;
|
|
252
|
+
/**
|
|
253
253
|
* @generated from protobuf field: bool resource_duplicate = 5;
|
|
254
254
|
*/
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
resourceDuplicate: boolean;
|
|
256
|
+
/**
|
|
257
257
|
* @generated from protobuf field: bool resource_error = 15;
|
|
258
258
|
*/
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
resourceError: boolean;
|
|
260
|
+
/**
|
|
261
261
|
* @generated from protobuf field: bool inputs_locked = 12;
|
|
262
262
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
inputsLocked: boolean;
|
|
264
|
+
/**
|
|
265
265
|
* @generated from protobuf field: bool outputs_locked = 13;
|
|
266
266
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
outputsLocked: boolean;
|
|
268
|
+
/**
|
|
269
269
|
* @generated from protobuf field: bool field_created = 11;
|
|
270
270
|
*/
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
fieldCreated: boolean;
|
|
272
|
+
/**
|
|
273
273
|
* @generated from protobuf field: bool field_got_error = 16;
|
|
274
274
|
*/
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
fieldGotError: boolean;
|
|
276
|
+
/**
|
|
277
277
|
* @generated from protobuf field: bool input_set = 6;
|
|
278
278
|
*/
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
inputSet: boolean;
|
|
280
|
+
/**
|
|
281
281
|
* @generated from protobuf field: bool all_inputs_set = 7;
|
|
282
282
|
*/
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
allInputsSet: boolean;
|
|
284
|
+
/**
|
|
285
285
|
* @generated from protobuf field: bool output_set = 8;
|
|
286
286
|
*/
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
outputSet: boolean;
|
|
288
|
+
/**
|
|
289
289
|
* @generated from protobuf field: bool all_outputs_set = 9;
|
|
290
290
|
*/
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
allOutputsSet: boolean;
|
|
292
|
+
/**
|
|
293
293
|
* @generated from protobuf field: bool generic_otw_set = 14;
|
|
294
294
|
*/
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
genericOtwSet: boolean;
|
|
296
|
+
/**
|
|
297
297
|
* @generated from protobuf field: bool dynamic_changed = 10;
|
|
298
298
|
*/
|
|
299
|
-
|
|
299
|
+
dynamicChanged: boolean;
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
302
|
* @generated from protobuf message MiLaboratories.PL.API.Notification.FieldChange
|
|
303
303
|
*/
|
|
304
304
|
export interface Notification_FieldChange {
|
|
305
|
-
|
|
305
|
+
/**
|
|
306
306
|
* @generated from protobuf field: MiLaboratories.PL.API.Field old = 1;
|
|
307
307
|
*/
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
old?: Field;
|
|
309
|
+
/**
|
|
310
310
|
* @generated from protobuf field: MiLaboratories.PL.API.Field new = 2;
|
|
311
311
|
*/
|
|
312
|
-
|
|
312
|
+
new?: Field;
|
|
313
313
|
}
|
|
314
314
|
/**
|
|
315
315
|
* @generated from protobuf message MiLaboratories.PL.API.SpanInfo
|
|
316
316
|
*/
|
|
317
317
|
export interface SpanInfo {
|
|
318
|
-
|
|
318
|
+
/**
|
|
319
319
|
* @generated from protobuf field: string path = 1;
|
|
320
320
|
*/
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
path: string;
|
|
322
|
+
/**
|
|
323
323
|
* @generated from protobuf field: map<string, string> carrier = 2;
|
|
324
324
|
*/
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
carrier: {
|
|
326
|
+
[key: string]: string;
|
|
327
|
+
};
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
330
|
* @generated from protobuf message MiLaboratories.PL.API.Subscription
|
|
331
331
|
*/
|
|
332
332
|
export interface Subscription {
|
|
333
|
-
|
|
333
|
+
/**
|
|
334
334
|
* @generated from protobuf field: uint64 id = 1;
|
|
335
335
|
*/
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
id: bigint;
|
|
337
|
+
/**
|
|
338
338
|
* @generated from protobuf field: bool blocking = 3;
|
|
339
339
|
*/
|
|
340
|
-
|
|
340
|
+
blocking: boolean;
|
|
341
341
|
}
|
|
342
342
|
/**
|
|
343
343
|
* @generated from protobuf message MiLaboratories.PL.API.Controller
|
|
344
344
|
*/
|
|
345
345
|
export interface Controller {
|
|
346
|
-
|
|
346
|
+
/**
|
|
347
347
|
* @generated from protobuf field: string type = 1;
|
|
348
348
|
*/
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
type: string;
|
|
350
|
+
/**
|
|
351
351
|
* @generated from protobuf field: uint64 id = 2;
|
|
352
352
|
*/
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
id: bigint;
|
|
354
|
+
/**
|
|
355
355
|
* @generated from protobuf field: uint64 subscriptionID = 3;
|
|
356
356
|
*/
|
|
357
|
-
|
|
357
|
+
subscriptionID: bigint;
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
360
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceSchema
|
|
361
361
|
*/
|
|
362
362
|
export interface ResourceSchema {
|
|
363
|
-
|
|
363
|
+
/**
|
|
364
364
|
* @generated from protobuf field: MiLaboratories.PL.Base.ResourceType type = 1;
|
|
365
365
|
*/
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
type?: ResourceType;
|
|
367
|
+
/**
|
|
368
368
|
* @generated from protobuf field: repeated MiLaboratories.PL.API.FieldSchema fields = 2;
|
|
369
369
|
*/
|
|
370
|
-
|
|
370
|
+
fields: FieldSchema[];
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
373
|
* @generated from protobuf message MiLaboratories.PL.API.FieldSchema
|
|
374
374
|
*/
|
|
375
375
|
export interface FieldSchema {
|
|
376
|
-
|
|
376
|
+
/**
|
|
377
377
|
* @generated from protobuf field: MiLaboratories.PL.Base.FieldType type = 1;
|
|
378
378
|
*/
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
type: FieldType;
|
|
380
|
+
/**
|
|
381
381
|
* @generated from protobuf field: string name = 2;
|
|
382
382
|
*/
|
|
383
|
-
|
|
383
|
+
name: string;
|
|
384
384
|
}
|
|
385
385
|
/**
|
|
386
386
|
* @generated from protobuf message MiLaboratories.PL.API.ResourceAPIFeature
|
|
387
387
|
*/
|
|
388
388
|
export interface ResourceAPIFeature {
|
|
389
|
-
|
|
389
|
+
/**
|
|
390
390
|
* @generated from protobuf field: string controller_type = 1;
|
|
391
391
|
*/
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
controllerType: string;
|
|
393
|
+
/**
|
|
394
394
|
* @generated from protobuf field: string feature_name = 2;
|
|
395
395
|
*/
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
featureName: string;
|
|
397
|
+
/**
|
|
398
398
|
* @generated from protobuf field: MiLaboratories.PL.Base.ResourceType resource_type = 3;
|
|
399
399
|
*/
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
resourceType?: ResourceType;
|
|
401
|
+
/**
|
|
402
402
|
* @generated from protobuf field: string endpoint = 4;
|
|
403
403
|
*/
|
|
404
|
-
|
|
404
|
+
endpoint: string;
|
|
405
405
|
}
|
|
406
406
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
407
407
|
class Tx$Type extends MessageType<Tx> {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
444
|
-
internalBinaryWrite(message: Tx, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
445
|
-
/* bool is_valid = 1; */
|
|
446
|
-
if (message.isValid !== false)
|
|
447
|
-
writer.tag(1, WireType.Varint).bool(message.isValid);
|
|
448
|
-
/* uint64 id = 2; */
|
|
449
|
-
if (message.id !== 0n)
|
|
450
|
-
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
451
|
-
let u = options.writeUnknownFields;
|
|
452
|
-
if (u !== false)
|
|
453
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
454
|
-
return writer;
|
|
408
|
+
constructor() {
|
|
409
|
+
super('MiLaboratories.PL.API.Tx', [
|
|
410
|
+
{ no: 1, name: 'is_valid', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
411
|
+
{ no: 2, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
412
|
+
]);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
create(value?: PartialMessage<Tx>): Tx {
|
|
416
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
417
|
+
message.isValid = false;
|
|
418
|
+
message.id = 0n;
|
|
419
|
+
if (value !== undefined)
|
|
420
|
+
reflectionMergePartial<Tx>(this, message, value);
|
|
421
|
+
return message;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Tx): Tx {
|
|
425
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
426
|
+
while (reader.pos < end) {
|
|
427
|
+
const [fieldNo, wireType] = reader.tag();
|
|
428
|
+
switch (fieldNo) {
|
|
429
|
+
case /* bool is_valid */ 1:
|
|
430
|
+
message.isValid = reader.bool();
|
|
431
|
+
break;
|
|
432
|
+
case /* uint64 id */ 2:
|
|
433
|
+
message.id = reader.uint64().toBigInt();
|
|
434
|
+
break;
|
|
435
|
+
default:
|
|
436
|
+
const u = options.readUnknownField;
|
|
437
|
+
if (u === 'throw')
|
|
438
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
439
|
+
const d = reader.skip(wireType);
|
|
440
|
+
if (u !== false)
|
|
441
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
442
|
+
}
|
|
455
443
|
}
|
|
444
|
+
return message;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
internalBinaryWrite(message: Tx, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
448
|
+
/* bool is_valid = 1; */
|
|
449
|
+
if (message.isValid !== false)
|
|
450
|
+
writer.tag(1, WireType.Varint).bool(message.isValid);
|
|
451
|
+
/* uint64 id = 2; */
|
|
452
|
+
if (message.id !== 0n)
|
|
453
|
+
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
454
|
+
const u = options.writeUnknownFields;
|
|
455
|
+
if (u !== false)
|
|
456
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
457
|
+
return writer;
|
|
458
|
+
}
|
|
456
459
|
}
|
|
457
460
|
/**
|
|
458
461
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Tx
|
|
@@ -460,154 +463,157 @@ class Tx$Type extends MessageType<Tx> {
|
|
|
460
463
|
export const Tx = new Tx$Type();
|
|
461
464
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
462
465
|
class Resource$Type extends MessageType<Resource> {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
560
|
-
internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
561
|
-
/* uint64 id = 2; */
|
|
562
|
-
if (message.id !== 0n)
|
|
563
|
-
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
564
|
-
/* MiLaboratories.PL.API.Resource.Kind kind = 3; */
|
|
565
|
-
if (message.kind !== 0)
|
|
566
|
-
writer.tag(3, WireType.Varint).int32(message.kind);
|
|
567
|
-
/* MiLaboratories.PL.Base.ResourceType type = 4; */
|
|
568
|
-
if (message.type)
|
|
569
|
-
ResourceType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
570
|
-
/* bytes data = 5; */
|
|
571
|
-
if (message.data.length)
|
|
572
|
-
writer.tag(5, WireType.LengthDelimited).bytes(message.data);
|
|
573
|
-
/* MiLaboratories.PL.API.Resource.Features features = 16; */
|
|
574
|
-
if (message.features)
|
|
575
|
-
Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
576
|
-
/* repeated MiLaboratories.PL.API.Field fields = 6; */
|
|
577
|
-
for (let i = 0; i < message.fields.length; i++)
|
|
578
|
-
Field.internalBinaryWrite(message.fields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
579
|
-
/* bool has_errors = 7; */
|
|
580
|
-
if (message.hasErrors !== false)
|
|
581
|
-
writer.tag(7, WireType.Varint).bool(message.hasErrors);
|
|
582
|
-
/* bool inputs_locked = 8; */
|
|
583
|
-
if (message.inputsLocked !== false)
|
|
584
|
-
writer.tag(8, WireType.Varint).bool(message.inputsLocked);
|
|
585
|
-
/* bool outputs_locked = 9; */
|
|
586
|
-
if (message.outputsLocked !== false)
|
|
587
|
-
writer.tag(9, WireType.Varint).bool(message.outputsLocked);
|
|
588
|
-
/* bool resource_ready = 14; */
|
|
589
|
-
if (message.resourceReady !== false)
|
|
590
|
-
writer.tag(14, WireType.Varint).bool(message.resourceReady);
|
|
591
|
-
/* bool is_final = 15; */
|
|
592
|
-
if (message.isFinal !== false)
|
|
593
|
-
writer.tag(15, WireType.Varint).bool(message.isFinal);
|
|
594
|
-
/* uint64 original_resource_id = 10; */
|
|
595
|
-
if (message.originalResourceId !== 0n)
|
|
596
|
-
writer.tag(10, WireType.Varint).uint64(message.originalResourceId);
|
|
597
|
-
/* uint64 parent_resource_id = 11; */
|
|
598
|
-
if (message.parentResourceId !== 0n)
|
|
599
|
-
writer.tag(11, WireType.Varint).uint64(message.parentResourceId);
|
|
600
|
-
/* google.protobuf.Timestamp created_time = 12; */
|
|
601
|
-
if (message.createdTime)
|
|
602
|
-
Timestamp.internalBinaryWrite(message.createdTime, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
603
|
-
/* google.protobuf.Timestamp deleted_time = 13; */
|
|
604
|
-
if (message.deletedTime)
|
|
605
|
-
Timestamp.internalBinaryWrite(message.deletedTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
606
|
-
let u = options.writeUnknownFields;
|
|
607
|
-
if (u !== false)
|
|
608
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
609
|
-
return writer;
|
|
466
|
+
constructor() {
|
|
467
|
+
super('MiLaboratories.PL.API.Resource', [
|
|
468
|
+
{ no: 2, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
469
|
+
{ no: 3, name: 'kind', kind: 'enum', T: () => ['MiLaboratories.PL.API.Resource.Kind', Resource_Kind, 'KIND_'] },
|
|
470
|
+
{ no: 4, name: 'type', kind: 'message', T: () => ResourceType },
|
|
471
|
+
{ no: 5, name: 'data', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
472
|
+
{ no: 16, name: 'features', kind: 'message', T: () => Resource_Features },
|
|
473
|
+
{ no: 6, name: 'fields', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => Field },
|
|
474
|
+
{ no: 7, name: 'has_errors', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
475
|
+
{ no: 8, name: 'inputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
476
|
+
{ no: 9, name: 'outputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
477
|
+
{ no: 14, name: 'resource_ready', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
478
|
+
{ no: 15, name: 'is_final', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
479
|
+
{ no: 10, name: 'original_resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
480
|
+
{ no: 11, name: 'parent_resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
481
|
+
{ no: 12, name: 'created_time', kind: 'message', T: () => Timestamp },
|
|
482
|
+
{ no: 13, name: 'deleted_time', kind: 'message', T: () => Timestamp },
|
|
483
|
+
]);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
create(value?: PartialMessage<Resource>): Resource {
|
|
487
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
488
|
+
message.id = 0n;
|
|
489
|
+
message.kind = 0;
|
|
490
|
+
message.data = new Uint8Array(0);
|
|
491
|
+
message.fields = [];
|
|
492
|
+
message.hasErrors = false;
|
|
493
|
+
message.inputsLocked = false;
|
|
494
|
+
message.outputsLocked = false;
|
|
495
|
+
message.resourceReady = false;
|
|
496
|
+
message.isFinal = false;
|
|
497
|
+
message.originalResourceId = 0n;
|
|
498
|
+
message.parentResourceId = 0n;
|
|
499
|
+
if (value !== undefined)
|
|
500
|
+
reflectionMergePartial<Resource>(this, message, value);
|
|
501
|
+
return message;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
|
|
505
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
506
|
+
while (reader.pos < end) {
|
|
507
|
+
const [fieldNo, wireType] = reader.tag();
|
|
508
|
+
switch (fieldNo) {
|
|
509
|
+
case /* uint64 id */ 2:
|
|
510
|
+
message.id = reader.uint64().toBigInt();
|
|
511
|
+
break;
|
|
512
|
+
case /* MiLaboratories.PL.API.Resource.Kind kind */ 3:
|
|
513
|
+
message.kind = reader.int32();
|
|
514
|
+
break;
|
|
515
|
+
case /* MiLaboratories.PL.Base.ResourceType type */ 4:
|
|
516
|
+
message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
|
|
517
|
+
break;
|
|
518
|
+
case /* bytes data */ 5:
|
|
519
|
+
message.data = reader.bytes();
|
|
520
|
+
break;
|
|
521
|
+
case /* MiLaboratories.PL.API.Resource.Features features */ 16:
|
|
522
|
+
message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
523
|
+
break;
|
|
524
|
+
case /* repeated MiLaboratories.PL.API.Field fields */ 6:
|
|
525
|
+
message.fields.push(Field.internalBinaryRead(reader, reader.uint32(), options));
|
|
526
|
+
break;
|
|
527
|
+
case /* bool has_errors */ 7:
|
|
528
|
+
message.hasErrors = reader.bool();
|
|
529
|
+
break;
|
|
530
|
+
case /* bool inputs_locked */ 8:
|
|
531
|
+
message.inputsLocked = reader.bool();
|
|
532
|
+
break;
|
|
533
|
+
case /* bool outputs_locked */ 9:
|
|
534
|
+
message.outputsLocked = reader.bool();
|
|
535
|
+
break;
|
|
536
|
+
case /* bool resource_ready */ 14:
|
|
537
|
+
message.resourceReady = reader.bool();
|
|
538
|
+
break;
|
|
539
|
+
case /* bool is_final */ 15:
|
|
540
|
+
message.isFinal = reader.bool();
|
|
541
|
+
break;
|
|
542
|
+
case /* uint64 original_resource_id */ 10:
|
|
543
|
+
message.originalResourceId = reader.uint64().toBigInt();
|
|
544
|
+
break;
|
|
545
|
+
case /* uint64 parent_resource_id */ 11:
|
|
546
|
+
message.parentResourceId = reader.uint64().toBigInt();
|
|
547
|
+
break;
|
|
548
|
+
case /* google.protobuf.Timestamp created_time */ 12:
|
|
549
|
+
message.createdTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdTime);
|
|
550
|
+
break;
|
|
551
|
+
case /* google.protobuf.Timestamp deleted_time */ 13:
|
|
552
|
+
message.deletedTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedTime);
|
|
553
|
+
break;
|
|
554
|
+
default:
|
|
555
|
+
const u = options.readUnknownField;
|
|
556
|
+
if (u === 'throw')
|
|
557
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
558
|
+
const d = reader.skip(wireType);
|
|
559
|
+
if (u !== false)
|
|
560
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
561
|
+
}
|
|
610
562
|
}
|
|
563
|
+
return message;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
567
|
+
/* uint64 id = 2; */
|
|
568
|
+
if (message.id !== 0n)
|
|
569
|
+
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
570
|
+
/* MiLaboratories.PL.API.Resource.Kind kind = 3; */
|
|
571
|
+
if (message.kind !== 0)
|
|
572
|
+
writer.tag(3, WireType.Varint).int32(message.kind);
|
|
573
|
+
/* MiLaboratories.PL.Base.ResourceType type = 4; */
|
|
574
|
+
if (message.type)
|
|
575
|
+
ResourceType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
576
|
+
/* bytes data = 5; */
|
|
577
|
+
if (message.data.length)
|
|
578
|
+
writer.tag(5, WireType.LengthDelimited).bytes(message.data);
|
|
579
|
+
/* MiLaboratories.PL.API.Resource.Features features = 16; */
|
|
580
|
+
if (message.features)
|
|
581
|
+
Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
582
|
+
/* repeated MiLaboratories.PL.API.Field fields = 6; */
|
|
583
|
+
for (let i = 0; i < message.fields.length; i++)
|
|
584
|
+
Field.internalBinaryWrite(message.fields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
585
|
+
/* bool has_errors = 7; */
|
|
586
|
+
if (message.hasErrors !== false)
|
|
587
|
+
writer.tag(7, WireType.Varint).bool(message.hasErrors);
|
|
588
|
+
/* bool inputs_locked = 8; */
|
|
589
|
+
if (message.inputsLocked !== false)
|
|
590
|
+
writer.tag(8, WireType.Varint).bool(message.inputsLocked);
|
|
591
|
+
/* bool outputs_locked = 9; */
|
|
592
|
+
if (message.outputsLocked !== false)
|
|
593
|
+
writer.tag(9, WireType.Varint).bool(message.outputsLocked);
|
|
594
|
+
/* bool resource_ready = 14; */
|
|
595
|
+
if (message.resourceReady !== false)
|
|
596
|
+
writer.tag(14, WireType.Varint).bool(message.resourceReady);
|
|
597
|
+
/* bool is_final = 15; */
|
|
598
|
+
if (message.isFinal !== false)
|
|
599
|
+
writer.tag(15, WireType.Varint).bool(message.isFinal);
|
|
600
|
+
/* uint64 original_resource_id = 10; */
|
|
601
|
+
if (message.originalResourceId !== 0n)
|
|
602
|
+
writer.tag(10, WireType.Varint).uint64(message.originalResourceId);
|
|
603
|
+
/* uint64 parent_resource_id = 11; */
|
|
604
|
+
if (message.parentResourceId !== 0n)
|
|
605
|
+
writer.tag(11, WireType.Varint).uint64(message.parentResourceId);
|
|
606
|
+
/* google.protobuf.Timestamp created_time = 12; */
|
|
607
|
+
if (message.createdTime)
|
|
608
|
+
Timestamp.internalBinaryWrite(message.createdTime, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
609
|
+
/* google.protobuf.Timestamp deleted_time = 13; */
|
|
610
|
+
if (message.deletedTime)
|
|
611
|
+
Timestamp.internalBinaryWrite(message.deletedTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
612
|
+
const u = options.writeUnknownFields;
|
|
613
|
+
if (u !== false)
|
|
614
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
615
|
+
return writer;
|
|
616
|
+
}
|
|
611
617
|
}
|
|
612
618
|
/**
|
|
613
619
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Resource
|
|
@@ -615,46 +621,49 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
615
621
|
export const Resource = new Resource$Type();
|
|
616
622
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
617
623
|
class Resource_Features$Type extends MessageType<Resource_Features> {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
internalBinaryWrite(message: Resource_Features, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
650
|
-
/* bool ephemeral = 1; */
|
|
651
|
-
if (message.ephemeral !== false)
|
|
652
|
-
writer.tag(1, WireType.Varint).bool(message.ephemeral);
|
|
653
|
-
let u = options.writeUnknownFields;
|
|
654
|
-
if (u !== false)
|
|
655
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
656
|
-
return writer;
|
|
624
|
+
constructor() {
|
|
625
|
+
super('MiLaboratories.PL.API.Resource.Features', [
|
|
626
|
+
{ no: 1, name: 'ephemeral', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
627
|
+
]);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
create(value?: PartialMessage<Resource_Features>): Resource_Features {
|
|
631
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
632
|
+
message.ephemeral = false;
|
|
633
|
+
if (value !== undefined)
|
|
634
|
+
reflectionMergePartial<Resource_Features>(this, message, value);
|
|
635
|
+
return message;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource_Features): Resource_Features {
|
|
639
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
640
|
+
while (reader.pos < end) {
|
|
641
|
+
const [fieldNo, wireType] = reader.tag();
|
|
642
|
+
switch (fieldNo) {
|
|
643
|
+
case /* bool ephemeral */ 1:
|
|
644
|
+
message.ephemeral = reader.bool();
|
|
645
|
+
break;
|
|
646
|
+
default:
|
|
647
|
+
const u = options.readUnknownField;
|
|
648
|
+
if (u === 'throw')
|
|
649
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
650
|
+
const d = reader.skip(wireType);
|
|
651
|
+
if (u !== false)
|
|
652
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
653
|
+
}
|
|
657
654
|
}
|
|
655
|
+
return message;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
internalBinaryWrite(message: Resource_Features, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
659
|
+
/* bool ephemeral = 1; */
|
|
660
|
+
if (message.ephemeral !== false)
|
|
661
|
+
writer.tag(1, WireType.Varint).bool(message.ephemeral);
|
|
662
|
+
const u = options.writeUnknownFields;
|
|
663
|
+
if (u !== false)
|
|
664
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
665
|
+
return writer;
|
|
666
|
+
}
|
|
658
667
|
}
|
|
659
668
|
/**
|
|
660
669
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Resource.Features
|
|
@@ -662,92 +671,95 @@ class Resource_Features$Type extends MessageType<Resource_Features> {
|
|
|
662
671
|
export const Resource_Features = new Resource_Features$Type();
|
|
663
672
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
664
673
|
class Field$Type extends MessageType<Field> {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}
|
|
724
|
-
internalBinaryWrite(message: Field, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
725
|
-
/* MiLaboratories.PL.Base.FieldRef id = 1; */
|
|
726
|
-
if (message.id)
|
|
727
|
-
FieldRef.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
728
|
-
/* MiLaboratories.PL.Base.FieldType type = 2; */
|
|
729
|
-
if (message.type !== 0)
|
|
730
|
-
writer.tag(2, WireType.Varint).int32(message.type);
|
|
731
|
-
/* MiLaboratories.PL.API.Resource.Features features = 3; */
|
|
732
|
-
if (message.features)
|
|
733
|
-
Resource_Features.internalBinaryWrite(message.features, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
734
|
-
/* uint64 value = 5; */
|
|
735
|
-
if (message.value !== 0n)
|
|
736
|
-
writer.tag(5, WireType.Varint).uint64(message.value);
|
|
737
|
-
/* MiLaboratories.PL.API.Field.ValueStatus value_status = 7; */
|
|
738
|
-
if (message.valueStatus !== 0)
|
|
739
|
-
writer.tag(7, WireType.Varint).int32(message.valueStatus);
|
|
740
|
-
/* bool value_is_final = 8; */
|
|
741
|
-
if (message.valueIsFinal !== false)
|
|
742
|
-
writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
|
|
743
|
-
/* uint64 error = 6; */
|
|
744
|
-
if (message.error !== 0n)
|
|
745
|
-
writer.tag(6, WireType.Varint).uint64(message.error);
|
|
746
|
-
let u = options.writeUnknownFields;
|
|
747
|
-
if (u !== false)
|
|
748
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
749
|
-
return writer;
|
|
674
|
+
constructor() {
|
|
675
|
+
super('MiLaboratories.PL.API.Field', [
|
|
676
|
+
{ no: 1, name: 'id', kind: 'message', T: () => FieldRef },
|
|
677
|
+
{ no: 2, name: 'type', kind: 'enum', T: () => ['MiLaboratories.PL.Base.FieldType', FieldType] },
|
|
678
|
+
{ no: 3, name: 'features', kind: 'message', T: () => Resource_Features },
|
|
679
|
+
{ no: 5, name: 'value', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
680
|
+
{ no: 7, name: 'value_status', kind: 'enum', T: () => ['MiLaboratories.PL.API.Field.ValueStatus', Field_ValueStatus] },
|
|
681
|
+
{ no: 8, name: 'value_is_final', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
682
|
+
{ no: 6, name: 'error', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
683
|
+
]);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
create(value?: PartialMessage<Field>): Field {
|
|
687
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
688
|
+
message.type = 0;
|
|
689
|
+
message.value = 0n;
|
|
690
|
+
message.valueStatus = 0;
|
|
691
|
+
message.valueIsFinal = false;
|
|
692
|
+
message.error = 0n;
|
|
693
|
+
if (value !== undefined)
|
|
694
|
+
reflectionMergePartial<Field>(this, message, value);
|
|
695
|
+
return message;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Field): Field {
|
|
699
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
700
|
+
while (reader.pos < end) {
|
|
701
|
+
const [fieldNo, wireType] = reader.tag();
|
|
702
|
+
switch (fieldNo) {
|
|
703
|
+
case /* MiLaboratories.PL.Base.FieldRef id */ 1:
|
|
704
|
+
message.id = FieldRef.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
705
|
+
break;
|
|
706
|
+
case /* MiLaboratories.PL.Base.FieldType type */ 2:
|
|
707
|
+
message.type = reader.int32();
|
|
708
|
+
break;
|
|
709
|
+
case /* MiLaboratories.PL.API.Resource.Features features */ 3:
|
|
710
|
+
message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
711
|
+
break;
|
|
712
|
+
case /* uint64 value */ 5:
|
|
713
|
+
message.value = reader.uint64().toBigInt();
|
|
714
|
+
break;
|
|
715
|
+
case /* MiLaboratories.PL.API.Field.ValueStatus value_status */ 7:
|
|
716
|
+
message.valueStatus = reader.int32();
|
|
717
|
+
break;
|
|
718
|
+
case /* bool value_is_final */ 8:
|
|
719
|
+
message.valueIsFinal = reader.bool();
|
|
720
|
+
break;
|
|
721
|
+
case /* uint64 error */ 6:
|
|
722
|
+
message.error = reader.uint64().toBigInt();
|
|
723
|
+
break;
|
|
724
|
+
default:
|
|
725
|
+
const u = options.readUnknownField;
|
|
726
|
+
if (u === 'throw')
|
|
727
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
728
|
+
const d = reader.skip(wireType);
|
|
729
|
+
if (u !== false)
|
|
730
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
731
|
+
}
|
|
750
732
|
}
|
|
733
|
+
return message;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
internalBinaryWrite(message: Field, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
737
|
+
/* MiLaboratories.PL.Base.FieldRef id = 1; */
|
|
738
|
+
if (message.id)
|
|
739
|
+
FieldRef.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
740
|
+
/* MiLaboratories.PL.Base.FieldType type = 2; */
|
|
741
|
+
if (message.type !== 0)
|
|
742
|
+
writer.tag(2, WireType.Varint).int32(message.type);
|
|
743
|
+
/* MiLaboratories.PL.API.Resource.Features features = 3; */
|
|
744
|
+
if (message.features)
|
|
745
|
+
Resource_Features.internalBinaryWrite(message.features, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
746
|
+
/* uint64 value = 5; */
|
|
747
|
+
if (message.value !== 0n)
|
|
748
|
+
writer.tag(5, WireType.Varint).uint64(message.value);
|
|
749
|
+
/* MiLaboratories.PL.API.Field.ValueStatus value_status = 7; */
|
|
750
|
+
if (message.valueStatus !== 0)
|
|
751
|
+
writer.tag(7, WireType.Varint).int32(message.valueStatus);
|
|
752
|
+
/* bool value_is_final = 8; */
|
|
753
|
+
if (message.valueIsFinal !== false)
|
|
754
|
+
writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
|
|
755
|
+
/* uint64 error = 6; */
|
|
756
|
+
if (message.error !== 0n)
|
|
757
|
+
writer.tag(6, WireType.Varint).uint64(message.error);
|
|
758
|
+
const u = options.writeUnknownFields;
|
|
759
|
+
if (u !== false)
|
|
760
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
761
|
+
return writer;
|
|
762
|
+
}
|
|
751
763
|
}
|
|
752
764
|
/**
|
|
753
765
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Field
|
|
@@ -755,126 +767,130 @@ class Field$Type extends MessageType<Field> {
|
|
|
755
767
|
export const Field = new Field$Type();
|
|
756
768
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
757
769
|
class Notification$Type extends MessageType<Notification> {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
770
|
+
constructor() {
|
|
771
|
+
super('MiLaboratories.PL.API.Notification', [
|
|
772
|
+
{ no: 1, name: 'subscription_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
773
|
+
{ no: 2, name: 'event_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
774
|
+
{ no: 3, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
775
|
+
{ no: 4, name: 'resource_type', kind: 'message', T: () => ResourceType },
|
|
776
|
+
{ no: 5, name: 'events', kind: 'message', T: () => Notification_Events },
|
|
777
|
+
{ no: 6, name: 'field_changes', kind: 'map', K: 9 /* ScalarType.STRING */, V: { kind: 'message', T: () => Notification_FieldChange } },
|
|
778
|
+
{ no: 7, name: 'payload', kind: 'message', T: () => NotificationFilter_Payload },
|
|
779
|
+
{ no: 8, name: 'filter_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
780
|
+
{ no: 9, name: 'tx_span', kind: 'message', T: () => SpanInfo },
|
|
781
|
+
]);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
create(value?: PartialMessage<Notification>): Notification {
|
|
785
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
786
|
+
message.subscriptionId = 0n;
|
|
787
|
+
message.eventId = 0n;
|
|
788
|
+
message.resourceId = 0n;
|
|
789
|
+
message.fieldChanges = {};
|
|
790
|
+
message.filterName = '';
|
|
791
|
+
if (value !== undefined)
|
|
792
|
+
reflectionMergePartial<Notification>(this, message, value);
|
|
793
|
+
return message;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification): Notification {
|
|
797
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
798
|
+
while (reader.pos < end) {
|
|
799
|
+
const [fieldNo, wireType] = reader.tag();
|
|
800
|
+
switch (fieldNo) {
|
|
801
|
+
case /* uint64 subscription_id */ 1:
|
|
802
|
+
message.subscriptionId = reader.uint64().toBigInt();
|
|
803
|
+
break;
|
|
804
|
+
case /* uint64 event_id */ 2:
|
|
805
|
+
message.eventId = reader.uint64().toBigInt();
|
|
806
|
+
break;
|
|
807
|
+
case /* uint64 resource_id */ 3:
|
|
808
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
809
|
+
break;
|
|
810
|
+
case /* MiLaboratories.PL.Base.ResourceType resource_type */ 4:
|
|
811
|
+
message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
|
|
812
|
+
break;
|
|
813
|
+
case /* MiLaboratories.PL.API.Notification.Events events */ 5:
|
|
814
|
+
message.events = Notification_Events.internalBinaryRead(reader, reader.uint32(), options, message.events);
|
|
815
|
+
break;
|
|
816
|
+
case /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes */ 6:
|
|
817
|
+
this.binaryReadMap6(message.fieldChanges, reader, options);
|
|
818
|
+
break;
|
|
819
|
+
case /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload */ 7:
|
|
820
|
+
message.payload = NotificationFilter_Payload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
|
|
821
|
+
break;
|
|
822
|
+
case /* string filter_name */ 8:
|
|
823
|
+
message.filterName = reader.string();
|
|
824
|
+
break;
|
|
825
|
+
case /* MiLaboratories.PL.API.SpanInfo tx_span */ 9:
|
|
826
|
+
message.txSpan = SpanInfo.internalBinaryRead(reader, reader.uint32(), options, message.txSpan);
|
|
827
|
+
break;
|
|
828
|
+
default:
|
|
829
|
+
const u = options.readUnknownField;
|
|
830
|
+
if (u === 'throw')
|
|
831
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
832
|
+
const d = reader.skip(wireType);
|
|
833
|
+
if (u !== false)
|
|
834
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
835
|
+
}
|
|
781
836
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
break;
|
|
799
|
-
case /* MiLaboratories.PL.API.Notification.Events events */ 5:
|
|
800
|
-
message.events = Notification_Events.internalBinaryRead(reader, reader.uint32(), options, message.events);
|
|
801
|
-
break;
|
|
802
|
-
case /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes */ 6:
|
|
803
|
-
this.binaryReadMap6(message.fieldChanges, reader, options);
|
|
804
|
-
break;
|
|
805
|
-
case /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload */ 7:
|
|
806
|
-
message.payload = NotificationFilter_Payload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
|
|
807
|
-
break;
|
|
808
|
-
case /* string filter_name */ 8:
|
|
809
|
-
message.filterName = reader.string();
|
|
810
|
-
break;
|
|
811
|
-
case /* MiLaboratories.PL.API.SpanInfo tx_span */ 9:
|
|
812
|
-
message.txSpan = SpanInfo.internalBinaryRead(reader, reader.uint32(), options, message.txSpan);
|
|
813
|
-
break;
|
|
814
|
-
default:
|
|
815
|
-
let u = options.readUnknownField;
|
|
816
|
-
if (u === "throw")
|
|
817
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
818
|
-
let d = reader.skip(wireType);
|
|
819
|
-
if (u !== false)
|
|
820
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
return message;
|
|
837
|
+
return message;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
private binaryReadMap6(map: Notification['fieldChanges'], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
841
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof Notification['fieldChanges'] | undefined, val: Notification['fieldChanges'][any] | undefined;
|
|
842
|
+
while (reader.pos < end) {
|
|
843
|
+
const [fieldNo, wireType] = reader.tag();
|
|
844
|
+
switch (fieldNo) {
|
|
845
|
+
case 1:
|
|
846
|
+
key = reader.string();
|
|
847
|
+
break;
|
|
848
|
+
case 2:
|
|
849
|
+
val = Notification_FieldChange.internalBinaryRead(reader, reader.uint32(), options);
|
|
850
|
+
break;
|
|
851
|
+
default: throw new globalThis.Error('unknown map entry field for field MiLaboratories.PL.API.Notification.field_changes');
|
|
852
|
+
}
|
|
824
853
|
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
writer.tag(3, WireType.Varint).uint64(message.resourceId);
|
|
851
|
-
/* MiLaboratories.PL.Base.ResourceType resource_type = 4; */
|
|
852
|
-
if (message.resourceType)
|
|
853
|
-
ResourceType.internalBinaryWrite(message.resourceType, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
854
|
-
/* MiLaboratories.PL.API.Notification.Events events = 5; */
|
|
855
|
-
if (message.events)
|
|
856
|
-
Notification_Events.internalBinaryWrite(message.events, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
857
|
-
/* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6; */
|
|
858
|
-
for (let k of globalThis.Object.keys(message.fieldChanges)) {
|
|
859
|
-
writer.tag(6, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
860
|
-
writer.tag(2, WireType.LengthDelimited).fork();
|
|
861
|
-
Notification_FieldChange.internalBinaryWrite(message.fieldChanges[k], writer, options);
|
|
862
|
-
writer.join().join();
|
|
863
|
-
}
|
|
864
|
-
/* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7; */
|
|
865
|
-
if (message.payload)
|
|
866
|
-
NotificationFilter_Payload.internalBinaryWrite(message.payload, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
867
|
-
/* string filter_name = 8; */
|
|
868
|
-
if (message.filterName !== "")
|
|
869
|
-
writer.tag(8, WireType.LengthDelimited).string(message.filterName);
|
|
870
|
-
/* MiLaboratories.PL.API.SpanInfo tx_span = 9; */
|
|
871
|
-
if (message.txSpan)
|
|
872
|
-
SpanInfo.internalBinaryWrite(message.txSpan, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
873
|
-
let u = options.writeUnknownFields;
|
|
874
|
-
if (u !== false)
|
|
875
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
876
|
-
return writer;
|
|
854
|
+
map[key ?? ''] = val ?? Notification_FieldChange.create();
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
internalBinaryWrite(message: Notification, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
858
|
+
/* uint64 subscription_id = 1; */
|
|
859
|
+
if (message.subscriptionId !== 0n)
|
|
860
|
+
writer.tag(1, WireType.Varint).uint64(message.subscriptionId);
|
|
861
|
+
/* uint64 event_id = 2; */
|
|
862
|
+
if (message.eventId !== 0n)
|
|
863
|
+
writer.tag(2, WireType.Varint).uint64(message.eventId);
|
|
864
|
+
/* uint64 resource_id = 3; */
|
|
865
|
+
if (message.resourceId !== 0n)
|
|
866
|
+
writer.tag(3, WireType.Varint).uint64(message.resourceId);
|
|
867
|
+
/* MiLaboratories.PL.Base.ResourceType resource_type = 4; */
|
|
868
|
+
if (message.resourceType)
|
|
869
|
+
ResourceType.internalBinaryWrite(message.resourceType, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
870
|
+
/* MiLaboratories.PL.API.Notification.Events events = 5; */
|
|
871
|
+
if (message.events)
|
|
872
|
+
Notification_Events.internalBinaryWrite(message.events, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
873
|
+
/* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6; */
|
|
874
|
+
for (const k of globalThis.Object.keys(message.fieldChanges)) {
|
|
875
|
+
writer.tag(6, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
876
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
877
|
+
Notification_FieldChange.internalBinaryWrite(message.fieldChanges[k], writer, options);
|
|
878
|
+
writer.join().join();
|
|
877
879
|
}
|
|
880
|
+
/* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7; */
|
|
881
|
+
if (message.payload)
|
|
882
|
+
NotificationFilter_Payload.internalBinaryWrite(message.payload, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
883
|
+
/* string filter_name = 8; */
|
|
884
|
+
if (message.filterName !== '')
|
|
885
|
+
writer.tag(8, WireType.LengthDelimited).string(message.filterName);
|
|
886
|
+
/* MiLaboratories.PL.API.SpanInfo tx_span = 9; */
|
|
887
|
+
if (message.txSpan)
|
|
888
|
+
SpanInfo.internalBinaryWrite(message.txSpan, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
889
|
+
const u = options.writeUnknownFields;
|
|
890
|
+
if (u !== false)
|
|
891
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
892
|
+
return writer;
|
|
893
|
+
}
|
|
878
894
|
}
|
|
879
895
|
/**
|
|
880
896
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Notification
|
|
@@ -882,158 +898,161 @@ class Notification$Type extends MessageType<Notification> {
|
|
|
882
898
|
export const Notification = new Notification$Type();
|
|
883
899
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
884
900
|
class Notification_Events$Type extends MessageType<Notification_Events> {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}
|
|
986
|
-
internalBinaryWrite(message: Notification_Events, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
987
|
-
/* bool resource_created = 1; */
|
|
988
|
-
if (message.resourceCreated !== false)
|
|
989
|
-
writer.tag(1, WireType.Varint).bool(message.resourceCreated);
|
|
990
|
-
/* bool resource_deleted = 2; */
|
|
991
|
-
if (message.resourceDeleted !== false)
|
|
992
|
-
writer.tag(2, WireType.Varint).bool(message.resourceDeleted);
|
|
993
|
-
/* bool resource_ready = 4; */
|
|
994
|
-
if (message.resourceReady !== false)
|
|
995
|
-
writer.tag(4, WireType.Varint).bool(message.resourceReady);
|
|
996
|
-
/* bool resource_duplicate = 5; */
|
|
997
|
-
if (message.resourceDuplicate !== false)
|
|
998
|
-
writer.tag(5, WireType.Varint).bool(message.resourceDuplicate);
|
|
999
|
-
/* bool resource_error = 15; */
|
|
1000
|
-
if (message.resourceError !== false)
|
|
1001
|
-
writer.tag(15, WireType.Varint).bool(message.resourceError);
|
|
1002
|
-
/* bool inputs_locked = 12; */
|
|
1003
|
-
if (message.inputsLocked !== false)
|
|
1004
|
-
writer.tag(12, WireType.Varint).bool(message.inputsLocked);
|
|
1005
|
-
/* bool outputs_locked = 13; */
|
|
1006
|
-
if (message.outputsLocked !== false)
|
|
1007
|
-
writer.tag(13, WireType.Varint).bool(message.outputsLocked);
|
|
1008
|
-
/* bool field_created = 11; */
|
|
1009
|
-
if (message.fieldCreated !== false)
|
|
1010
|
-
writer.tag(11, WireType.Varint).bool(message.fieldCreated);
|
|
1011
|
-
/* bool field_got_error = 16; */
|
|
1012
|
-
if (message.fieldGotError !== false)
|
|
1013
|
-
writer.tag(16, WireType.Varint).bool(message.fieldGotError);
|
|
1014
|
-
/* bool input_set = 6; */
|
|
1015
|
-
if (message.inputSet !== false)
|
|
1016
|
-
writer.tag(6, WireType.Varint).bool(message.inputSet);
|
|
1017
|
-
/* bool all_inputs_set = 7; */
|
|
1018
|
-
if (message.allInputsSet !== false)
|
|
1019
|
-
writer.tag(7, WireType.Varint).bool(message.allInputsSet);
|
|
1020
|
-
/* bool output_set = 8; */
|
|
1021
|
-
if (message.outputSet !== false)
|
|
1022
|
-
writer.tag(8, WireType.Varint).bool(message.outputSet);
|
|
1023
|
-
/* bool all_outputs_set = 9; */
|
|
1024
|
-
if (message.allOutputsSet !== false)
|
|
1025
|
-
writer.tag(9, WireType.Varint).bool(message.allOutputsSet);
|
|
1026
|
-
/* bool generic_otw_set = 14; */
|
|
1027
|
-
if (message.genericOtwSet !== false)
|
|
1028
|
-
writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
|
|
1029
|
-
/* bool dynamic_changed = 10; */
|
|
1030
|
-
if (message.dynamicChanged !== false)
|
|
1031
|
-
writer.tag(10, WireType.Varint).bool(message.dynamicChanged);
|
|
1032
|
-
let u = options.writeUnknownFields;
|
|
1033
|
-
if (u !== false)
|
|
1034
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1035
|
-
return writer;
|
|
901
|
+
constructor() {
|
|
902
|
+
super('MiLaboratories.PL.API.Notification.Events', [
|
|
903
|
+
{ no: 1, name: 'resource_created', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
904
|
+
{ no: 2, name: 'resource_deleted', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
905
|
+
{ no: 4, name: 'resource_ready', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
906
|
+
{ no: 5, name: 'resource_duplicate', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
907
|
+
{ no: 15, name: 'resource_error', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
908
|
+
{ no: 12, name: 'inputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
909
|
+
{ no: 13, name: 'outputs_locked', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
910
|
+
{ no: 11, name: 'field_created', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
911
|
+
{ no: 16, name: 'field_got_error', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
912
|
+
{ no: 6, name: 'input_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
913
|
+
{ no: 7, name: 'all_inputs_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
914
|
+
{ no: 8, name: 'output_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
915
|
+
{ no: 9, name: 'all_outputs_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
916
|
+
{ no: 14, name: 'generic_otw_set', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
917
|
+
{ no: 10, name: 'dynamic_changed', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
918
|
+
]);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
create(value?: PartialMessage<Notification_Events>): Notification_Events {
|
|
922
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
923
|
+
message.resourceCreated = false;
|
|
924
|
+
message.resourceDeleted = false;
|
|
925
|
+
message.resourceReady = false;
|
|
926
|
+
message.resourceDuplicate = false;
|
|
927
|
+
message.resourceError = false;
|
|
928
|
+
message.inputsLocked = false;
|
|
929
|
+
message.outputsLocked = false;
|
|
930
|
+
message.fieldCreated = false;
|
|
931
|
+
message.fieldGotError = false;
|
|
932
|
+
message.inputSet = false;
|
|
933
|
+
message.allInputsSet = false;
|
|
934
|
+
message.outputSet = false;
|
|
935
|
+
message.allOutputsSet = false;
|
|
936
|
+
message.genericOtwSet = false;
|
|
937
|
+
message.dynamicChanged = false;
|
|
938
|
+
if (value !== undefined)
|
|
939
|
+
reflectionMergePartial<Notification_Events>(this, message, value);
|
|
940
|
+
return message;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_Events): Notification_Events {
|
|
944
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
945
|
+
while (reader.pos < end) {
|
|
946
|
+
const [fieldNo, wireType] = reader.tag();
|
|
947
|
+
switch (fieldNo) {
|
|
948
|
+
case /* bool resource_created */ 1:
|
|
949
|
+
message.resourceCreated = reader.bool();
|
|
950
|
+
break;
|
|
951
|
+
case /* bool resource_deleted */ 2:
|
|
952
|
+
message.resourceDeleted = reader.bool();
|
|
953
|
+
break;
|
|
954
|
+
case /* bool resource_ready */ 4:
|
|
955
|
+
message.resourceReady = reader.bool();
|
|
956
|
+
break;
|
|
957
|
+
case /* bool resource_duplicate */ 5:
|
|
958
|
+
message.resourceDuplicate = reader.bool();
|
|
959
|
+
break;
|
|
960
|
+
case /* bool resource_error */ 15:
|
|
961
|
+
message.resourceError = reader.bool();
|
|
962
|
+
break;
|
|
963
|
+
case /* bool inputs_locked */ 12:
|
|
964
|
+
message.inputsLocked = reader.bool();
|
|
965
|
+
break;
|
|
966
|
+
case /* bool outputs_locked */ 13:
|
|
967
|
+
message.outputsLocked = reader.bool();
|
|
968
|
+
break;
|
|
969
|
+
case /* bool field_created */ 11:
|
|
970
|
+
message.fieldCreated = reader.bool();
|
|
971
|
+
break;
|
|
972
|
+
case /* bool field_got_error */ 16:
|
|
973
|
+
message.fieldGotError = reader.bool();
|
|
974
|
+
break;
|
|
975
|
+
case /* bool input_set */ 6:
|
|
976
|
+
message.inputSet = reader.bool();
|
|
977
|
+
break;
|
|
978
|
+
case /* bool all_inputs_set */ 7:
|
|
979
|
+
message.allInputsSet = reader.bool();
|
|
980
|
+
break;
|
|
981
|
+
case /* bool output_set */ 8:
|
|
982
|
+
message.outputSet = reader.bool();
|
|
983
|
+
break;
|
|
984
|
+
case /* bool all_outputs_set */ 9:
|
|
985
|
+
message.allOutputsSet = reader.bool();
|
|
986
|
+
break;
|
|
987
|
+
case /* bool generic_otw_set */ 14:
|
|
988
|
+
message.genericOtwSet = reader.bool();
|
|
989
|
+
break;
|
|
990
|
+
case /* bool dynamic_changed */ 10:
|
|
991
|
+
message.dynamicChanged = reader.bool();
|
|
992
|
+
break;
|
|
993
|
+
default:
|
|
994
|
+
const u = options.readUnknownField;
|
|
995
|
+
if (u === 'throw')
|
|
996
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
997
|
+
const d = reader.skip(wireType);
|
|
998
|
+
if (u !== false)
|
|
999
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1000
|
+
}
|
|
1036
1001
|
}
|
|
1002
|
+
return message;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
internalBinaryWrite(message: Notification_Events, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1006
|
+
/* bool resource_created = 1; */
|
|
1007
|
+
if (message.resourceCreated !== false)
|
|
1008
|
+
writer.tag(1, WireType.Varint).bool(message.resourceCreated);
|
|
1009
|
+
/* bool resource_deleted = 2; */
|
|
1010
|
+
if (message.resourceDeleted !== false)
|
|
1011
|
+
writer.tag(2, WireType.Varint).bool(message.resourceDeleted);
|
|
1012
|
+
/* bool resource_ready = 4; */
|
|
1013
|
+
if (message.resourceReady !== false)
|
|
1014
|
+
writer.tag(4, WireType.Varint).bool(message.resourceReady);
|
|
1015
|
+
/* bool resource_duplicate = 5; */
|
|
1016
|
+
if (message.resourceDuplicate !== false)
|
|
1017
|
+
writer.tag(5, WireType.Varint).bool(message.resourceDuplicate);
|
|
1018
|
+
/* bool resource_error = 15; */
|
|
1019
|
+
if (message.resourceError !== false)
|
|
1020
|
+
writer.tag(15, WireType.Varint).bool(message.resourceError);
|
|
1021
|
+
/* bool inputs_locked = 12; */
|
|
1022
|
+
if (message.inputsLocked !== false)
|
|
1023
|
+
writer.tag(12, WireType.Varint).bool(message.inputsLocked);
|
|
1024
|
+
/* bool outputs_locked = 13; */
|
|
1025
|
+
if (message.outputsLocked !== false)
|
|
1026
|
+
writer.tag(13, WireType.Varint).bool(message.outputsLocked);
|
|
1027
|
+
/* bool field_created = 11; */
|
|
1028
|
+
if (message.fieldCreated !== false)
|
|
1029
|
+
writer.tag(11, WireType.Varint).bool(message.fieldCreated);
|
|
1030
|
+
/* bool field_got_error = 16; */
|
|
1031
|
+
if (message.fieldGotError !== false)
|
|
1032
|
+
writer.tag(16, WireType.Varint).bool(message.fieldGotError);
|
|
1033
|
+
/* bool input_set = 6; */
|
|
1034
|
+
if (message.inputSet !== false)
|
|
1035
|
+
writer.tag(6, WireType.Varint).bool(message.inputSet);
|
|
1036
|
+
/* bool all_inputs_set = 7; */
|
|
1037
|
+
if (message.allInputsSet !== false)
|
|
1038
|
+
writer.tag(7, WireType.Varint).bool(message.allInputsSet);
|
|
1039
|
+
/* bool output_set = 8; */
|
|
1040
|
+
if (message.outputSet !== false)
|
|
1041
|
+
writer.tag(8, WireType.Varint).bool(message.outputSet);
|
|
1042
|
+
/* bool all_outputs_set = 9; */
|
|
1043
|
+
if (message.allOutputsSet !== false)
|
|
1044
|
+
writer.tag(9, WireType.Varint).bool(message.allOutputsSet);
|
|
1045
|
+
/* bool generic_otw_set = 14; */
|
|
1046
|
+
if (message.genericOtwSet !== false)
|
|
1047
|
+
writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
|
|
1048
|
+
/* bool dynamic_changed = 10; */
|
|
1049
|
+
if (message.dynamicChanged !== false)
|
|
1050
|
+
writer.tag(10, WireType.Varint).bool(message.dynamicChanged);
|
|
1051
|
+
const u = options.writeUnknownFields;
|
|
1052
|
+
if (u !== false)
|
|
1053
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1054
|
+
return writer;
|
|
1055
|
+
}
|
|
1037
1056
|
}
|
|
1038
1057
|
/**
|
|
1039
1058
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.Events
|
|
@@ -1041,52 +1060,55 @@ class Notification_Events$Type extends MessageType<Notification_Events> {
|
|
|
1041
1060
|
export const Notification_Events = new Notification_Events$Type();
|
|
1042
1061
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1043
1062
|
class Notification_FieldChange$Type extends MessageType<Notification_FieldChange> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
}
|
|
1078
|
-
internalBinaryWrite(message: Notification_FieldChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1079
|
-
/* MiLaboratories.PL.API.Field old = 1; */
|
|
1080
|
-
if (message.old)
|
|
1081
|
-
Field.internalBinaryWrite(message.old, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1082
|
-
/* MiLaboratories.PL.API.Field new = 2; */
|
|
1083
|
-
if (message.new)
|
|
1084
|
-
Field.internalBinaryWrite(message.new, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1085
|
-
let u = options.writeUnknownFields;
|
|
1086
|
-
if (u !== false)
|
|
1087
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1088
|
-
return writer;
|
|
1063
|
+
constructor() {
|
|
1064
|
+
super('MiLaboratories.PL.API.Notification.FieldChange', [
|
|
1065
|
+
{ no: 1, name: 'old', kind: 'message', T: () => Field },
|
|
1066
|
+
{ no: 2, name: 'new', kind: 'message', T: () => Field },
|
|
1067
|
+
]);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
create(value?: PartialMessage<Notification_FieldChange>): Notification_FieldChange {
|
|
1071
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1072
|
+
if (value !== undefined)
|
|
1073
|
+
reflectionMergePartial<Notification_FieldChange>(this, message, value);
|
|
1074
|
+
return message;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notification_FieldChange): Notification_FieldChange {
|
|
1078
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
1079
|
+
while (reader.pos < end) {
|
|
1080
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1081
|
+
switch (fieldNo) {
|
|
1082
|
+
case /* MiLaboratories.PL.API.Field old */ 1:
|
|
1083
|
+
message.old = Field.internalBinaryRead(reader, reader.uint32(), options, message.old);
|
|
1084
|
+
break;
|
|
1085
|
+
case /* MiLaboratories.PL.API.Field new */ 2:
|
|
1086
|
+
message.new = Field.internalBinaryRead(reader, reader.uint32(), options, message.new);
|
|
1087
|
+
break;
|
|
1088
|
+
default:
|
|
1089
|
+
const u = options.readUnknownField;
|
|
1090
|
+
if (u === 'throw')
|
|
1091
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1092
|
+
const d = reader.skip(wireType);
|
|
1093
|
+
if (u !== false)
|
|
1094
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1095
|
+
}
|
|
1089
1096
|
}
|
|
1097
|
+
return message;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
internalBinaryWrite(message: Notification_FieldChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1101
|
+
/* MiLaboratories.PL.API.Field old = 1; */
|
|
1102
|
+
if (message.old)
|
|
1103
|
+
Field.internalBinaryWrite(message.old, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1104
|
+
/* MiLaboratories.PL.API.Field new = 2; */
|
|
1105
|
+
if (message.new)
|
|
1106
|
+
Field.internalBinaryWrite(message.new, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1107
|
+
const u = options.writeUnknownFields;
|
|
1108
|
+
if (u !== false)
|
|
1109
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1110
|
+
return writer;
|
|
1111
|
+
}
|
|
1090
1112
|
}
|
|
1091
1113
|
/**
|
|
1092
1114
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.FieldChange
|
|
@@ -1094,70 +1116,74 @@ class Notification_FieldChange$Type extends MessageType<Notification_FieldChange
|
|
|
1094
1116
|
export const Notification_FieldChange = new Notification_FieldChange$Type();
|
|
1095
1117
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1096
1118
|
class SpanInfo$Type extends MessageType<SpanInfo> {
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1119
|
+
constructor() {
|
|
1120
|
+
super('MiLaboratories.PL.API.SpanInfo', [
|
|
1121
|
+
{ no: 1, name: 'path', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1122
|
+
{ no: 2, name: 'carrier', kind: 'map', K: 9 /* ScalarType.STRING */, V: { kind: 'scalar', T: 9 /* ScalarType.STRING */ } },
|
|
1123
|
+
]);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
create(value?: PartialMessage<SpanInfo>): SpanInfo {
|
|
1127
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1128
|
+
message.path = '';
|
|
1129
|
+
message.carrier = {};
|
|
1130
|
+
if (value !== undefined)
|
|
1131
|
+
reflectionMergePartial<SpanInfo>(this, message, value);
|
|
1132
|
+
return message;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SpanInfo): SpanInfo {
|
|
1136
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
1137
|
+
while (reader.pos < end) {
|
|
1138
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1139
|
+
switch (fieldNo) {
|
|
1140
|
+
case /* string path */ 1:
|
|
1141
|
+
message.path = reader.string();
|
|
1142
|
+
break;
|
|
1143
|
+
case /* map<string, string> carrier */ 2:
|
|
1144
|
+
this.binaryReadMap2(message.carrier, reader, options);
|
|
1145
|
+
break;
|
|
1146
|
+
default:
|
|
1147
|
+
const u = options.readUnknownField;
|
|
1148
|
+
if (u === 'throw')
|
|
1149
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1150
|
+
const d = reader.skip(wireType);
|
|
1151
|
+
if (u !== false)
|
|
1152
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1153
|
+
}
|
|
1132
1154
|
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
map
|
|
1148
|
-
|
|
1149
|
-
internalBinaryWrite(message: SpanInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1150
|
-
/* string path = 1; */
|
|
1151
|
-
if (message.path !== "")
|
|
1152
|
-
writer.tag(1, WireType.LengthDelimited).string(message.path);
|
|
1153
|
-
/* map<string, string> carrier = 2; */
|
|
1154
|
-
for (let k of globalThis.Object.keys(message.carrier))
|
|
1155
|
-
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.carrier[k]).join();
|
|
1156
|
-
let u = options.writeUnknownFields;
|
|
1157
|
-
if (u !== false)
|
|
1158
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1159
|
-
return writer;
|
|
1155
|
+
return message;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
private binaryReadMap2(map: SpanInfo['carrier'], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
1159
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof SpanInfo['carrier'] | undefined, val: SpanInfo['carrier'][any] | undefined;
|
|
1160
|
+
while (reader.pos < end) {
|
|
1161
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1162
|
+
switch (fieldNo) {
|
|
1163
|
+
case 1:
|
|
1164
|
+
key = reader.string();
|
|
1165
|
+
break;
|
|
1166
|
+
case 2:
|
|
1167
|
+
val = reader.string();
|
|
1168
|
+
break;
|
|
1169
|
+
default: throw new globalThis.Error('unknown map entry field for field MiLaboratories.PL.API.SpanInfo.carrier');
|
|
1170
|
+
}
|
|
1160
1171
|
}
|
|
1172
|
+
map[key ?? ''] = val ?? '';
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
internalBinaryWrite(message: SpanInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1176
|
+
/* string path = 1; */
|
|
1177
|
+
if (message.path !== '')
|
|
1178
|
+
writer.tag(1, WireType.LengthDelimited).string(message.path);
|
|
1179
|
+
/* map<string, string> carrier = 2; */
|
|
1180
|
+
for (const k of globalThis.Object.keys(message.carrier))
|
|
1181
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.carrier[k]).join();
|
|
1182
|
+
const u = options.writeUnknownFields;
|
|
1183
|
+
if (u !== false)
|
|
1184
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1185
|
+
return writer;
|
|
1186
|
+
}
|
|
1161
1187
|
}
|
|
1162
1188
|
/**
|
|
1163
1189
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.SpanInfo
|
|
@@ -1165,54 +1191,57 @@ class SpanInfo$Type extends MessageType<SpanInfo> {
|
|
|
1165
1191
|
export const SpanInfo = new SpanInfo$Type();
|
|
1166
1192
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1167
1193
|
class Subscription$Type extends MessageType<Subscription> {
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}
|
|
1204
|
-
internalBinaryWrite(message: Subscription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1205
|
-
/* uint64 id = 1; */
|
|
1206
|
-
if (message.id !== 0n)
|
|
1207
|
-
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
1208
|
-
/* bool blocking = 3; */
|
|
1209
|
-
if (message.blocking !== false)
|
|
1210
|
-
writer.tag(3, WireType.Varint).bool(message.blocking);
|
|
1211
|
-
let u = options.writeUnknownFields;
|
|
1212
|
-
if (u !== false)
|
|
1213
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1214
|
-
return writer;
|
|
1194
|
+
constructor() {
|
|
1195
|
+
super('MiLaboratories.PL.API.Subscription', [
|
|
1196
|
+
{ no: 1, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
1197
|
+
{ no: 3, name: 'blocking', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
1198
|
+
]);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
create(value?: PartialMessage<Subscription>): Subscription {
|
|
1202
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1203
|
+
message.id = 0n;
|
|
1204
|
+
message.blocking = false;
|
|
1205
|
+
if (value !== undefined)
|
|
1206
|
+
reflectionMergePartial<Subscription>(this, message, value);
|
|
1207
|
+
return message;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Subscription): Subscription {
|
|
1211
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
1212
|
+
while (reader.pos < end) {
|
|
1213
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1214
|
+
switch (fieldNo) {
|
|
1215
|
+
case /* uint64 id */ 1:
|
|
1216
|
+
message.id = reader.uint64().toBigInt();
|
|
1217
|
+
break;
|
|
1218
|
+
case /* bool blocking */ 3:
|
|
1219
|
+
message.blocking = reader.bool();
|
|
1220
|
+
break;
|
|
1221
|
+
default:
|
|
1222
|
+
const u = options.readUnknownField;
|
|
1223
|
+
if (u === 'throw')
|
|
1224
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1225
|
+
const d = reader.skip(wireType);
|
|
1226
|
+
if (u !== false)
|
|
1227
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1228
|
+
}
|
|
1215
1229
|
}
|
|
1230
|
+
return message;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
internalBinaryWrite(message: Subscription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1234
|
+
/* uint64 id = 1; */
|
|
1235
|
+
if (message.id !== 0n)
|
|
1236
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
1237
|
+
/* bool blocking = 3; */
|
|
1238
|
+
if (message.blocking !== false)
|
|
1239
|
+
writer.tag(3, WireType.Varint).bool(message.blocking);
|
|
1240
|
+
const u = options.writeUnknownFields;
|
|
1241
|
+
if (u !== false)
|
|
1242
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1243
|
+
return writer;
|
|
1244
|
+
}
|
|
1216
1245
|
}
|
|
1217
1246
|
/**
|
|
1218
1247
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Subscription
|
|
@@ -1220,62 +1249,65 @@ class Subscription$Type extends MessageType<Subscription> {
|
|
|
1220
1249
|
export const Subscription = new Subscription$Type();
|
|
1221
1250
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1222
1251
|
class Controller$Type extends MessageType<Controller> {
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
}
|
|
1264
|
-
internalBinaryWrite(message: Controller, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1265
|
-
/* string type = 1; */
|
|
1266
|
-
if (message.type !== "")
|
|
1267
|
-
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
1268
|
-
/* uint64 id = 2; */
|
|
1269
|
-
if (message.id !== 0n)
|
|
1270
|
-
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
1271
|
-
/* uint64 subscriptionID = 3; */
|
|
1272
|
-
if (message.subscriptionID !== 0n)
|
|
1273
|
-
writer.tag(3, WireType.Varint).uint64(message.subscriptionID);
|
|
1274
|
-
let u = options.writeUnknownFields;
|
|
1275
|
-
if (u !== false)
|
|
1276
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1277
|
-
return writer;
|
|
1252
|
+
constructor() {
|
|
1253
|
+
super('MiLaboratories.PL.API.Controller', [
|
|
1254
|
+
{ no: 1, name: 'type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1255
|
+
{ no: 2, name: 'id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
1256
|
+
{ no: 3, name: 'subscriptionID', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
|
|
1257
|
+
]);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
create(value?: PartialMessage<Controller>): Controller {
|
|
1261
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1262
|
+
message.type = '';
|
|
1263
|
+
message.id = 0n;
|
|
1264
|
+
message.subscriptionID = 0n;
|
|
1265
|
+
if (value !== undefined)
|
|
1266
|
+
reflectionMergePartial<Controller>(this, message, value);
|
|
1267
|
+
return message;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Controller): Controller {
|
|
1271
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
1272
|
+
while (reader.pos < end) {
|
|
1273
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1274
|
+
switch (fieldNo) {
|
|
1275
|
+
case /* string type */ 1:
|
|
1276
|
+
message.type = reader.string();
|
|
1277
|
+
break;
|
|
1278
|
+
case /* uint64 id */ 2:
|
|
1279
|
+
message.id = reader.uint64().toBigInt();
|
|
1280
|
+
break;
|
|
1281
|
+
case /* uint64 subscriptionID */ 3:
|
|
1282
|
+
message.subscriptionID = reader.uint64().toBigInt();
|
|
1283
|
+
break;
|
|
1284
|
+
default:
|
|
1285
|
+
const u = options.readUnknownField;
|
|
1286
|
+
if (u === 'throw')
|
|
1287
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1288
|
+
const d = reader.skip(wireType);
|
|
1289
|
+
if (u !== false)
|
|
1290
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1291
|
+
}
|
|
1278
1292
|
}
|
|
1293
|
+
return message;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
internalBinaryWrite(message: Controller, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1297
|
+
/* string type = 1; */
|
|
1298
|
+
if (message.type !== '')
|
|
1299
|
+
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
1300
|
+
/* uint64 id = 2; */
|
|
1301
|
+
if (message.id !== 0n)
|
|
1302
|
+
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
1303
|
+
/* uint64 subscriptionID = 3; */
|
|
1304
|
+
if (message.subscriptionID !== 0n)
|
|
1305
|
+
writer.tag(3, WireType.Varint).uint64(message.subscriptionID);
|
|
1306
|
+
const u = options.writeUnknownFields;
|
|
1307
|
+
if (u !== false)
|
|
1308
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1309
|
+
return writer;
|
|
1310
|
+
}
|
|
1279
1311
|
}
|
|
1280
1312
|
/**
|
|
1281
1313
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.Controller
|
|
@@ -1283,53 +1315,56 @@ class Controller$Type extends MessageType<Controller> {
|
|
|
1283
1315
|
export const Controller = new Controller$Type();
|
|
1284
1316
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1285
1317
|
class ResourceSchema$Type extends MessageType<ResourceSchema> {
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}
|
|
1321
|
-
internalBinaryWrite(message: ResourceSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1322
|
-
/* MiLaboratories.PL.Base.ResourceType type = 1; */
|
|
1323
|
-
if (message.type)
|
|
1324
|
-
ResourceType.internalBinaryWrite(message.type, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1325
|
-
/* repeated MiLaboratories.PL.API.FieldSchema fields = 2; */
|
|
1326
|
-
for (let i = 0; i < message.fields.length; i++)
|
|
1327
|
-
FieldSchema.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1328
|
-
let u = options.writeUnknownFields;
|
|
1329
|
-
if (u !== false)
|
|
1330
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1331
|
-
return writer;
|
|
1318
|
+
constructor() {
|
|
1319
|
+
super('MiLaboratories.PL.API.ResourceSchema', [
|
|
1320
|
+
{ no: 1, name: 'type', kind: 'message', T: () => ResourceType },
|
|
1321
|
+
{ no: 2, name: 'fields', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => FieldSchema },
|
|
1322
|
+
]);
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
create(value?: PartialMessage<ResourceSchema>): ResourceSchema {
|
|
1326
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1327
|
+
message.fields = [];
|
|
1328
|
+
if (value !== undefined)
|
|
1329
|
+
reflectionMergePartial<ResourceSchema>(this, message, value);
|
|
1330
|
+
return message;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceSchema): ResourceSchema {
|
|
1334
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
1335
|
+
while (reader.pos < end) {
|
|
1336
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1337
|
+
switch (fieldNo) {
|
|
1338
|
+
case /* MiLaboratories.PL.Base.ResourceType type */ 1:
|
|
1339
|
+
message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
|
|
1340
|
+
break;
|
|
1341
|
+
case /* repeated MiLaboratories.PL.API.FieldSchema fields */ 2:
|
|
1342
|
+
message.fields.push(FieldSchema.internalBinaryRead(reader, reader.uint32(), options));
|
|
1343
|
+
break;
|
|
1344
|
+
default:
|
|
1345
|
+
const u = options.readUnknownField;
|
|
1346
|
+
if (u === 'throw')
|
|
1347
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1348
|
+
const d = reader.skip(wireType);
|
|
1349
|
+
if (u !== false)
|
|
1350
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1351
|
+
}
|
|
1332
1352
|
}
|
|
1353
|
+
return message;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
internalBinaryWrite(message: ResourceSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1357
|
+
/* MiLaboratories.PL.Base.ResourceType type = 1; */
|
|
1358
|
+
if (message.type)
|
|
1359
|
+
ResourceType.internalBinaryWrite(message.type, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1360
|
+
/* repeated MiLaboratories.PL.API.FieldSchema fields = 2; */
|
|
1361
|
+
for (let i = 0; i < message.fields.length; i++)
|
|
1362
|
+
FieldSchema.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1363
|
+
const u = options.writeUnknownFields;
|
|
1364
|
+
if (u !== false)
|
|
1365
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1366
|
+
return writer;
|
|
1367
|
+
}
|
|
1333
1368
|
}
|
|
1334
1369
|
/**
|
|
1335
1370
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema
|
|
@@ -1337,54 +1372,57 @@ class ResourceSchema$Type extends MessageType<ResourceSchema> {
|
|
|
1337
1372
|
export const ResourceSchema = new ResourceSchema$Type();
|
|
1338
1373
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1339
1374
|
class FieldSchema$Type extends MessageType<FieldSchema> {
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
}
|
|
1376
|
-
internalBinaryWrite(message: FieldSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1377
|
-
/* MiLaboratories.PL.Base.FieldType type = 1; */
|
|
1378
|
-
if (message.type !== 0)
|
|
1379
|
-
writer.tag(1, WireType.Varint).int32(message.type);
|
|
1380
|
-
/* string name = 2; */
|
|
1381
|
-
if (message.name !== "")
|
|
1382
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1383
|
-
let u = options.writeUnknownFields;
|
|
1384
|
-
if (u !== false)
|
|
1385
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1386
|
-
return writer;
|
|
1375
|
+
constructor() {
|
|
1376
|
+
super('MiLaboratories.PL.API.FieldSchema', [
|
|
1377
|
+
{ no: 1, name: 'type', kind: 'enum', T: () => ['MiLaboratories.PL.Base.FieldType', FieldType] },
|
|
1378
|
+
{ no: 2, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1379
|
+
]);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
create(value?: PartialMessage<FieldSchema>): FieldSchema {
|
|
1383
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1384
|
+
message.type = 0;
|
|
1385
|
+
message.name = '';
|
|
1386
|
+
if (value !== undefined)
|
|
1387
|
+
reflectionMergePartial<FieldSchema>(this, message, value);
|
|
1388
|
+
return message;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldSchema): FieldSchema {
|
|
1392
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
1393
|
+
while (reader.pos < end) {
|
|
1394
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1395
|
+
switch (fieldNo) {
|
|
1396
|
+
case /* MiLaboratories.PL.Base.FieldType type */ 1:
|
|
1397
|
+
message.type = reader.int32();
|
|
1398
|
+
break;
|
|
1399
|
+
case /* string name */ 2:
|
|
1400
|
+
message.name = reader.string();
|
|
1401
|
+
break;
|
|
1402
|
+
default:
|
|
1403
|
+
const u = options.readUnknownField;
|
|
1404
|
+
if (u === 'throw')
|
|
1405
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1406
|
+
const d = reader.skip(wireType);
|
|
1407
|
+
if (u !== false)
|
|
1408
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1409
|
+
}
|
|
1387
1410
|
}
|
|
1411
|
+
return message;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
internalBinaryWrite(message: FieldSchema, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1415
|
+
/* MiLaboratories.PL.Base.FieldType type = 1; */
|
|
1416
|
+
if (message.type !== 0)
|
|
1417
|
+
writer.tag(1, WireType.Varint).int32(message.type);
|
|
1418
|
+
/* string name = 2; */
|
|
1419
|
+
if (message.name !== '')
|
|
1420
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1421
|
+
const u = options.writeUnknownFields;
|
|
1422
|
+
if (u !== false)
|
|
1423
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1424
|
+
return writer;
|
|
1425
|
+
}
|
|
1388
1426
|
}
|
|
1389
1427
|
/**
|
|
1390
1428
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.FieldSchema
|
|
@@ -1392,69 +1430,72 @@ class FieldSchema$Type extends MessageType<FieldSchema> {
|
|
|
1392
1430
|
export const FieldSchema = new FieldSchema$Type();
|
|
1393
1431
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1394
1432
|
class ResourceAPIFeature$Type extends MessageType<ResourceAPIFeature> {
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
}
|
|
1440
|
-
internalBinaryWrite(message: ResourceAPIFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1441
|
-
/* string controller_type = 1; */
|
|
1442
|
-
if (message.controllerType !== "")
|
|
1443
|
-
writer.tag(1, WireType.LengthDelimited).string(message.controllerType);
|
|
1444
|
-
/* string feature_name = 2; */
|
|
1445
|
-
if (message.featureName !== "")
|
|
1446
|
-
writer.tag(2, WireType.LengthDelimited).string(message.featureName);
|
|
1447
|
-
/* MiLaboratories.PL.Base.ResourceType resource_type = 3; */
|
|
1448
|
-
if (message.resourceType)
|
|
1449
|
-
ResourceType.internalBinaryWrite(message.resourceType, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1450
|
-
/* string endpoint = 4; */
|
|
1451
|
-
if (message.endpoint !== "")
|
|
1452
|
-
writer.tag(4, WireType.LengthDelimited).string(message.endpoint);
|
|
1453
|
-
let u = options.writeUnknownFields;
|
|
1454
|
-
if (u !== false)
|
|
1455
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1456
|
-
return writer;
|
|
1433
|
+
constructor() {
|
|
1434
|
+
super('MiLaboratories.PL.API.ResourceAPIFeature', [
|
|
1435
|
+
{ no: 1, name: 'controller_type', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1436
|
+
{ no: 2, name: 'feature_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1437
|
+
{ no: 3, name: 'resource_type', kind: 'message', T: () => ResourceType },
|
|
1438
|
+
{ no: 4, name: 'endpoint', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
1439
|
+
]);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
create(value?: PartialMessage<ResourceAPIFeature>): ResourceAPIFeature {
|
|
1443
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1444
|
+
message.controllerType = '';
|
|
1445
|
+
message.featureName = '';
|
|
1446
|
+
message.endpoint = '';
|
|
1447
|
+
if (value !== undefined)
|
|
1448
|
+
reflectionMergePartial<ResourceAPIFeature>(this, message, value);
|
|
1449
|
+
return message;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceAPIFeature): ResourceAPIFeature {
|
|
1453
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
1454
|
+
while (reader.pos < end) {
|
|
1455
|
+
const [fieldNo, wireType] = reader.tag();
|
|
1456
|
+
switch (fieldNo) {
|
|
1457
|
+
case /* string controller_type */ 1:
|
|
1458
|
+
message.controllerType = reader.string();
|
|
1459
|
+
break;
|
|
1460
|
+
case /* string feature_name */ 2:
|
|
1461
|
+
message.featureName = reader.string();
|
|
1462
|
+
break;
|
|
1463
|
+
case /* MiLaboratories.PL.Base.ResourceType resource_type */ 3:
|
|
1464
|
+
message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
|
|
1465
|
+
break;
|
|
1466
|
+
case /* string endpoint */ 4:
|
|
1467
|
+
message.endpoint = reader.string();
|
|
1468
|
+
break;
|
|
1469
|
+
default:
|
|
1470
|
+
const u = options.readUnknownField;
|
|
1471
|
+
if (u === 'throw')
|
|
1472
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1473
|
+
const d = reader.skip(wireType);
|
|
1474
|
+
if (u !== false)
|
|
1475
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1476
|
+
}
|
|
1457
1477
|
}
|
|
1478
|
+
return message;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
internalBinaryWrite(message: ResourceAPIFeature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1482
|
+
/* string controller_type = 1; */
|
|
1483
|
+
if (message.controllerType !== '')
|
|
1484
|
+
writer.tag(1, WireType.LengthDelimited).string(message.controllerType);
|
|
1485
|
+
/* string feature_name = 2; */
|
|
1486
|
+
if (message.featureName !== '')
|
|
1487
|
+
writer.tag(2, WireType.LengthDelimited).string(message.featureName);
|
|
1488
|
+
/* MiLaboratories.PL.Base.ResourceType resource_type = 3; */
|
|
1489
|
+
if (message.resourceType)
|
|
1490
|
+
ResourceType.internalBinaryWrite(message.resourceType, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1491
|
+
/* string endpoint = 4; */
|
|
1492
|
+
if (message.endpoint !== '')
|
|
1493
|
+
writer.tag(4, WireType.LengthDelimited).string(message.endpoint);
|
|
1494
|
+
const u = options.writeUnknownFields;
|
|
1495
|
+
if (u !== false)
|
|
1496
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1497
|
+
return writer;
|
|
1498
|
+
}
|
|
1458
1499
|
}
|
|
1459
1500
|
/**
|
|
1460
1501
|
* @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceAPIFeature
|