@milaboratories/pl-client 2.11.8 → 2.11.10
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.cjs +24 -0
- package/dist/core/auth.cjs.map +1 -0
- package/dist/core/auth.d.ts +1 -1
- package/dist/core/auth.js +21 -0
- package/dist/core/auth.js.map +1 -0
- package/dist/core/cache.d.ts +1 -1
- package/dist/core/client.cjs +288 -0
- package/dist/core/client.cjs.map +1 -0
- package/dist/core/client.d.ts +10 -10
- package/dist/core/client.js +267 -0
- package/dist/core/client.js.map +1 -0
- package/dist/core/config.cjs +111 -0
- package/dist/core/config.cjs.map +1 -0
- package/dist/core/config.d.ts +1 -1
- package/dist/core/config.js +95 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/default_client.cjs +143 -0
- package/dist/core/default_client.cjs.map +1 -0
- package/dist/core/default_client.d.ts +1 -1
- package/dist/core/default_client.js +120 -0
- package/dist/core/default_client.js.map +1 -0
- package/dist/core/driver.cjs +14 -0
- package/dist/core/driver.cjs.map +1 -0
- package/dist/core/driver.d.ts +5 -5
- package/dist/core/driver.js +12 -0
- package/dist/core/driver.js.map +1 -0
- package/dist/core/error_resource.cjs +9 -0
- package/dist/core/error_resource.cjs.map +1 -0
- package/dist/core/error_resource.d.ts +1 -1
- package/dist/core/error_resource.js +7 -0
- package/dist/core/error_resource.js.map +1 -0
- package/dist/core/errors.cjs +106 -0
- package/dist/core/errors.cjs.map +1 -0
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/errors.js +93 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/final.cjs +98 -0
- package/dist/core/final.cjs.map +1 -0
- package/dist/core/final.d.ts +2 -2
- package/dist/core/final.js +96 -0
- package/dist/core/final.js.map +1 -0
- package/dist/core/grpc.d.ts +1 -1
- package/dist/core/http.d.ts +1 -0
- package/dist/core/ll_client.cjs +266 -0
- package/dist/core/ll_client.cjs.map +1 -0
- package/dist/core/ll_client.d.ts +3 -3
- package/dist/core/ll_client.js +264 -0
- package/dist/core/ll_client.js.map +1 -0
- package/dist/core/ll_transaction.cjs +236 -0
- package/dist/core/ll_transaction.cjs.map +1 -0
- package/dist/core/ll_transaction.d.ts +2 -2
- package/dist/core/ll_transaction.js +233 -0
- package/dist/core/ll_transaction.js.map +1 -0
- package/dist/core/stat.cjs +74 -0
- package/dist/core/stat.cjs.map +1 -0
- package/dist/core/stat.js +70 -0
- package/dist/core/stat.js.map +1 -0
- package/dist/core/transaction.cjs +626 -0
- package/dist/core/transaction.cjs.map +1 -0
- package/dist/core/transaction.d.ts +6 -6
- package/dist/core/transaction.js +613 -0
- package/dist/core/transaction.js.map +1 -0
- package/dist/core/type_conversion.cjs +106 -0
- package/dist/core/type_conversion.cjs.map +1 -0
- package/dist/core/type_conversion.d.ts +2 -2
- package/dist/core/type_conversion.js +102 -0
- package/dist/core/type_conversion.js.map +1 -0
- package/dist/core/types.cjs +159 -0
- package/dist/core/types.cjs.map +1 -0
- package/dist/core/types.js +134 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/unauth_client.cjs +43 -0
- package/dist/core/unauth_client.cjs.map +1 -0
- package/dist/core/unauth_client.d.ts +2 -2
- package/dist/core/unauth_client.js +41 -0
- package/dist/core/unauth_client.js.map +1 -0
- package/dist/helpers/pl.cjs +124 -0
- package/dist/helpers/pl.cjs.map +1 -0
- package/dist/helpers/pl.d.ts +10 -2
- package/dist/helpers/pl.js +94 -0
- package/dist/helpers/pl.js.map +1 -0
- package/dist/helpers/poll.cjs +148 -0
- package/dist/helpers/poll.cjs.map +1 -0
- package/dist/helpers/poll.d.ts +4 -4
- package/dist/helpers/poll.js +123 -0
- package/dist/helpers/poll.js.map +1 -0
- package/dist/helpers/rich_resource_types.d.ts +1 -0
- package/dist/helpers/smart_accessors.d.ts +1 -0
- package/dist/helpers/state_helpers.d.ts +1 -1
- package/dist/helpers/tx_helpers.cjs +25 -0
- package/dist/helpers/tx_helpers.cjs.map +1 -0
- package/dist/helpers/tx_helpers.d.ts +2 -2
- package/dist/helpers/tx_helpers.js +23 -0
- package/dist/helpers/tx_helpers.js.map +1 -0
- package/dist/index.cjs +99 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.cjs +71 -0
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -0
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +7 -2
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.js +69 -0
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +8 -5
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +7 -2
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +8 -5
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +8 -3
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +11 -5
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +8 -3
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +13 -5
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +7 -2
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +12238 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +223 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +57 -5
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +221 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +21 -7
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.js +12086 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +1127 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +11 -4
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +1113 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +152 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +6 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +149 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +22 -7
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +500 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +7 -2
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +496 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -0
- package/dist/proto/google/api/http.d.ts +6 -1
- package/dist/proto/google/protobuf/any.cjs +151 -0
- package/dist/proto/google/protobuf/any.cjs.map +1 -0
- package/dist/proto/google/protobuf/any.d.ts +10 -1
- package/dist/proto/google/protobuf/any.js +149 -0
- package/dist/proto/google/protobuf/any.js.map +1 -0
- package/dist/proto/google/protobuf/descriptor.d.ts +6 -1
- package/dist/proto/google/protobuf/duration.cjs +105 -0
- package/dist/proto/google/protobuf/duration.cjs.map +1 -0
- package/dist/proto/google/protobuf/duration.d.ts +9 -1
- package/dist/proto/google/protobuf/duration.js +103 -0
- package/dist/proto/google/protobuf/duration.js.map +1 -0
- package/dist/proto/google/protobuf/empty.d.ts +6 -1
- package/dist/proto/google/protobuf/struct.d.ts +9 -1
- package/dist/proto/google/protobuf/timestamp.cjs +133 -0
- package/dist/proto/google/protobuf/timestamp.cjs.map +1 -0
- package/dist/proto/google/protobuf/timestamp.d.ts +9 -1
- package/dist/proto/google/protobuf/timestamp.js +131 -0
- package/dist/proto/google/protobuf/timestamp.js.map +1 -0
- package/dist/proto/google/protobuf/wrappers.d.ts +9 -1
- package/dist/test/test_config.cjs +149 -0
- package/dist/test/test_config.cjs.map +1 -0
- package/dist/test/test_config.d.ts +1 -1
- package/dist/test/test_config.js +123 -0
- package/dist/test/test_config.js.map +1 -0
- package/dist/util/pl.cjs +8 -0
- package/dist/util/pl.cjs.map +1 -0
- package/dist/util/pl.js +6 -0
- package/dist/util/pl.js.map +1 -0
- package/dist/util/util.cjs +17 -0
- package/dist/util/util.cjs.map +1 -0
- package/dist/util/util.js +15 -0
- package/dist/util/util.js.map +1 -0
- package/package.json +14 -11
- package/src/core/client.test.ts +1 -0
- package/src/core/config.test.ts +1 -0
- package/src/core/error.test.ts +1 -0
- package/src/core/ll_client.test.ts +1 -0
- package/src/core/ll_transaction.test.ts +1 -0
- package/src/core/transaction.test.ts +1 -0
- package/src/core/types.test.ts +1 -0
- package/src/core/unauth_client.test.ts +1 -0
- package/src/helpers/rich_resource_types.test.ts +2 -0
- package/src/test/test_config.test.ts +1 -0
- package/src/util/util.test.ts +1 -0
- package/dist/index.mjs +0 -14537
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,1113 @@
|
|
|
1
|
+
import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } from '@protobuf-ts/runtime';
|
|
2
|
+
import { NotificationFilter_Payload } from './resource_types.js';
|
|
3
|
+
import { ResourceType, FieldRef, FieldType } from './base_types.js';
|
|
4
|
+
import { Timestamp } from '../../../../../google/protobuf/timestamp.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @generated from protobuf enum MiLaboratories.PL.API.Resource.Kind
|
|
8
|
+
*/
|
|
9
|
+
var Resource_Kind;
|
|
10
|
+
(function (Resource_Kind) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf enum value: KIND_INVALID = 0;
|
|
13
|
+
*/
|
|
14
|
+
Resource_Kind[Resource_Kind["INVALID"] = 0] = "INVALID";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf enum value: KIND_STRUCTURAL = 1;
|
|
17
|
+
*/
|
|
18
|
+
Resource_Kind[Resource_Kind["STRUCTURAL"] = 1] = "STRUCTURAL";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf enum value: KIND_VALUE = 2;
|
|
21
|
+
*/
|
|
22
|
+
Resource_Kind[Resource_Kind["VALUE"] = 2] = "VALUE";
|
|
23
|
+
})(Resource_Kind || (Resource_Kind = {}));
|
|
24
|
+
/**
|
|
25
|
+
* @generated from protobuf enum MiLaboratories.PL.API.Field.ValueStatus
|
|
26
|
+
*/
|
|
27
|
+
var Field_ValueStatus;
|
|
28
|
+
(function (Field_ValueStatus) {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf enum value: INVALID = 0;
|
|
31
|
+
*/
|
|
32
|
+
Field_ValueStatus[Field_ValueStatus["INVALID"] = 0] = "INVALID";
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf enum value: EMPTY = 1;
|
|
35
|
+
*/
|
|
36
|
+
Field_ValueStatus[Field_ValueStatus["EMPTY"] = 1] = "EMPTY";
|
|
37
|
+
/**
|
|
38
|
+
* @generated from protobuf enum value: ASSIGNED = 2;
|
|
39
|
+
*/
|
|
40
|
+
Field_ValueStatus[Field_ValueStatus["ASSIGNED"] = 2] = "ASSIGNED";
|
|
41
|
+
/**
|
|
42
|
+
* @generated from protobuf enum value: RESOLVED = 3;
|
|
43
|
+
*/
|
|
44
|
+
Field_ValueStatus[Field_ValueStatus["RESOLVED"] = 3] = "RESOLVED";
|
|
45
|
+
})(Field_ValueStatus || (Field_ValueStatus = {}));
|
|
46
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
47
|
+
class Tx$Type extends MessageType {
|
|
48
|
+
constructor() {
|
|
49
|
+
super("MiLaboratories.PL.API.Tx", [
|
|
50
|
+
{ no: 1, name: "is_valid", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
51
|
+
{ no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
create(value) {
|
|
55
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
56
|
+
message.isValid = false;
|
|
57
|
+
message.id = 0n;
|
|
58
|
+
if (value !== undefined)
|
|
59
|
+
reflectionMergePartial(this, message, value);
|
|
60
|
+
return message;
|
|
61
|
+
}
|
|
62
|
+
internalBinaryRead(reader, length, options, target) {
|
|
63
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
64
|
+
while (reader.pos < end) {
|
|
65
|
+
let [fieldNo, wireType] = reader.tag();
|
|
66
|
+
switch (fieldNo) {
|
|
67
|
+
case /* bool is_valid */ 1:
|
|
68
|
+
message.isValid = reader.bool();
|
|
69
|
+
break;
|
|
70
|
+
case /* uint64 id */ 2:
|
|
71
|
+
message.id = reader.uint64().toBigInt();
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
let u = options.readUnknownField;
|
|
75
|
+
if (u === "throw")
|
|
76
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
77
|
+
let d = reader.skip(wireType);
|
|
78
|
+
if (u !== false)
|
|
79
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
}
|
|
84
|
+
internalBinaryWrite(message, writer, options) {
|
|
85
|
+
/* bool is_valid = 1; */
|
|
86
|
+
if (message.isValid !== false)
|
|
87
|
+
writer.tag(1, WireType.Varint).bool(message.isValid);
|
|
88
|
+
/* uint64 id = 2; */
|
|
89
|
+
if (message.id !== 0n)
|
|
90
|
+
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
91
|
+
let u = options.writeUnknownFields;
|
|
92
|
+
if (u !== false)
|
|
93
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
94
|
+
return writer;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Tx
|
|
99
|
+
*/
|
|
100
|
+
const Tx = new Tx$Type();
|
|
101
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
102
|
+
class Resource$Type extends MessageType {
|
|
103
|
+
constructor() {
|
|
104
|
+
super("MiLaboratories.PL.API.Resource", [
|
|
105
|
+
{ no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
106
|
+
{ no: 17, name: "canonical_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
107
|
+
{ no: 3, name: "kind", kind: "enum", T: () => ["MiLaboratories.PL.API.Resource.Kind", Resource_Kind, "KIND_"] },
|
|
108
|
+
{ no: 4, name: "type", kind: "message", T: () => ResourceType },
|
|
109
|
+
{ no: 5, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
110
|
+
{ no: 16, name: "features", kind: "message", T: () => Resource_Features },
|
|
111
|
+
{ no: 6, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Field },
|
|
112
|
+
{ no: 7, name: "has_errors", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
113
|
+
{ no: 8, name: "inputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
114
|
+
{ no: 9, name: "outputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
115
|
+
{ no: 14, name: "resource_ready", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
116
|
+
{ no: 15, name: "is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
117
|
+
{ no: 10, name: "original_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
118
|
+
{ no: 11, name: "parent_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
119
|
+
{ no: 12, name: "created_time", kind: "message", T: () => Timestamp },
|
|
120
|
+
{ no: 13, name: "deleted_time", kind: "message", T: () => Timestamp }
|
|
121
|
+
]);
|
|
122
|
+
}
|
|
123
|
+
create(value) {
|
|
124
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
125
|
+
message.id = 0n;
|
|
126
|
+
message.canonicalId = new Uint8Array(0);
|
|
127
|
+
message.kind = 0;
|
|
128
|
+
message.data = new Uint8Array(0);
|
|
129
|
+
message.fields = [];
|
|
130
|
+
message.hasErrors = false;
|
|
131
|
+
message.inputsLocked = false;
|
|
132
|
+
message.outputsLocked = false;
|
|
133
|
+
message.resourceReady = false;
|
|
134
|
+
message.isFinal = false;
|
|
135
|
+
message.originalResourceId = 0n;
|
|
136
|
+
message.parentResourceId = 0n;
|
|
137
|
+
if (value !== undefined)
|
|
138
|
+
reflectionMergePartial(this, message, value);
|
|
139
|
+
return message;
|
|
140
|
+
}
|
|
141
|
+
internalBinaryRead(reader, length, options, target) {
|
|
142
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
143
|
+
while (reader.pos < end) {
|
|
144
|
+
let [fieldNo, wireType] = reader.tag();
|
|
145
|
+
switch (fieldNo) {
|
|
146
|
+
case /* uint64 id */ 2:
|
|
147
|
+
message.id = reader.uint64().toBigInt();
|
|
148
|
+
break;
|
|
149
|
+
case /* bytes canonical_id */ 17:
|
|
150
|
+
message.canonicalId = reader.bytes();
|
|
151
|
+
break;
|
|
152
|
+
case /* MiLaboratories.PL.API.Resource.Kind kind */ 3:
|
|
153
|
+
message.kind = reader.int32();
|
|
154
|
+
break;
|
|
155
|
+
case /* MiLaboratories.PL.Base.ResourceType type */ 4:
|
|
156
|
+
message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
|
|
157
|
+
break;
|
|
158
|
+
case /* bytes data */ 5:
|
|
159
|
+
message.data = reader.bytes();
|
|
160
|
+
break;
|
|
161
|
+
case /* MiLaboratories.PL.API.Resource.Features features */ 16:
|
|
162
|
+
message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
163
|
+
break;
|
|
164
|
+
case /* repeated MiLaboratories.PL.API.Field fields */ 6:
|
|
165
|
+
message.fields.push(Field.internalBinaryRead(reader, reader.uint32(), options));
|
|
166
|
+
break;
|
|
167
|
+
case /* bool has_errors */ 7:
|
|
168
|
+
message.hasErrors = reader.bool();
|
|
169
|
+
break;
|
|
170
|
+
case /* bool inputs_locked */ 8:
|
|
171
|
+
message.inputsLocked = reader.bool();
|
|
172
|
+
break;
|
|
173
|
+
case /* bool outputs_locked */ 9:
|
|
174
|
+
message.outputsLocked = reader.bool();
|
|
175
|
+
break;
|
|
176
|
+
case /* bool resource_ready */ 14:
|
|
177
|
+
message.resourceReady = reader.bool();
|
|
178
|
+
break;
|
|
179
|
+
case /* bool is_final */ 15:
|
|
180
|
+
message.isFinal = reader.bool();
|
|
181
|
+
break;
|
|
182
|
+
case /* uint64 original_resource_id */ 10:
|
|
183
|
+
message.originalResourceId = reader.uint64().toBigInt();
|
|
184
|
+
break;
|
|
185
|
+
case /* uint64 parent_resource_id */ 11:
|
|
186
|
+
message.parentResourceId = reader.uint64().toBigInt();
|
|
187
|
+
break;
|
|
188
|
+
case /* google.protobuf.Timestamp created_time */ 12:
|
|
189
|
+
message.createdTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdTime);
|
|
190
|
+
break;
|
|
191
|
+
case /* google.protobuf.Timestamp deleted_time */ 13:
|
|
192
|
+
message.deletedTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deletedTime);
|
|
193
|
+
break;
|
|
194
|
+
default:
|
|
195
|
+
let u = options.readUnknownField;
|
|
196
|
+
if (u === "throw")
|
|
197
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
198
|
+
let d = reader.skip(wireType);
|
|
199
|
+
if (u !== false)
|
|
200
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return message;
|
|
204
|
+
}
|
|
205
|
+
internalBinaryWrite(message, writer, options) {
|
|
206
|
+
/* uint64 id = 2; */
|
|
207
|
+
if (message.id !== 0n)
|
|
208
|
+
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
209
|
+
/* MiLaboratories.PL.API.Resource.Kind kind = 3; */
|
|
210
|
+
if (message.kind !== 0)
|
|
211
|
+
writer.tag(3, WireType.Varint).int32(message.kind);
|
|
212
|
+
/* MiLaboratories.PL.Base.ResourceType type = 4; */
|
|
213
|
+
if (message.type)
|
|
214
|
+
ResourceType.internalBinaryWrite(message.type, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
215
|
+
/* bytes data = 5; */
|
|
216
|
+
if (message.data.length)
|
|
217
|
+
writer.tag(5, WireType.LengthDelimited).bytes(message.data);
|
|
218
|
+
/* repeated MiLaboratories.PL.API.Field fields = 6; */
|
|
219
|
+
for (let i = 0; i < message.fields.length; i++)
|
|
220
|
+
Field.internalBinaryWrite(message.fields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
221
|
+
/* bool has_errors = 7; */
|
|
222
|
+
if (message.hasErrors !== false)
|
|
223
|
+
writer.tag(7, WireType.Varint).bool(message.hasErrors);
|
|
224
|
+
/* bool inputs_locked = 8; */
|
|
225
|
+
if (message.inputsLocked !== false)
|
|
226
|
+
writer.tag(8, WireType.Varint).bool(message.inputsLocked);
|
|
227
|
+
/* bool outputs_locked = 9; */
|
|
228
|
+
if (message.outputsLocked !== false)
|
|
229
|
+
writer.tag(9, WireType.Varint).bool(message.outputsLocked);
|
|
230
|
+
/* uint64 original_resource_id = 10; */
|
|
231
|
+
if (message.originalResourceId !== 0n)
|
|
232
|
+
writer.tag(10, WireType.Varint).uint64(message.originalResourceId);
|
|
233
|
+
/* uint64 parent_resource_id = 11; */
|
|
234
|
+
if (message.parentResourceId !== 0n)
|
|
235
|
+
writer.tag(11, WireType.Varint).uint64(message.parentResourceId);
|
|
236
|
+
/* google.protobuf.Timestamp created_time = 12; */
|
|
237
|
+
if (message.createdTime)
|
|
238
|
+
Timestamp.internalBinaryWrite(message.createdTime, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
239
|
+
/* google.protobuf.Timestamp deleted_time = 13; */
|
|
240
|
+
if (message.deletedTime)
|
|
241
|
+
Timestamp.internalBinaryWrite(message.deletedTime, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
242
|
+
/* bool resource_ready = 14; */
|
|
243
|
+
if (message.resourceReady !== false)
|
|
244
|
+
writer.tag(14, WireType.Varint).bool(message.resourceReady);
|
|
245
|
+
/* bool is_final = 15; */
|
|
246
|
+
if (message.isFinal !== false)
|
|
247
|
+
writer.tag(15, WireType.Varint).bool(message.isFinal);
|
|
248
|
+
/* MiLaboratories.PL.API.Resource.Features features = 16; */
|
|
249
|
+
if (message.features)
|
|
250
|
+
Resource_Features.internalBinaryWrite(message.features, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
251
|
+
/* bytes canonical_id = 17; */
|
|
252
|
+
if (message.canonicalId.length)
|
|
253
|
+
writer.tag(17, WireType.LengthDelimited).bytes(message.canonicalId);
|
|
254
|
+
let u = options.writeUnknownFields;
|
|
255
|
+
if (u !== false)
|
|
256
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
257
|
+
return writer;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Resource
|
|
262
|
+
*/
|
|
263
|
+
const Resource = new Resource$Type();
|
|
264
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
265
|
+
class Resource_Features$Type extends MessageType {
|
|
266
|
+
constructor() {
|
|
267
|
+
super("MiLaboratories.PL.API.Resource.Features", [
|
|
268
|
+
{ no: 1, name: "ephemeral", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
269
|
+
]);
|
|
270
|
+
}
|
|
271
|
+
create(value) {
|
|
272
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
273
|
+
message.ephemeral = false;
|
|
274
|
+
if (value !== undefined)
|
|
275
|
+
reflectionMergePartial(this, message, value);
|
|
276
|
+
return message;
|
|
277
|
+
}
|
|
278
|
+
internalBinaryRead(reader, length, options, target) {
|
|
279
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
280
|
+
while (reader.pos < end) {
|
|
281
|
+
let [fieldNo, wireType] = reader.tag();
|
|
282
|
+
switch (fieldNo) {
|
|
283
|
+
case /* bool ephemeral */ 1:
|
|
284
|
+
message.ephemeral = reader.bool();
|
|
285
|
+
break;
|
|
286
|
+
default:
|
|
287
|
+
let u = options.readUnknownField;
|
|
288
|
+
if (u === "throw")
|
|
289
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
290
|
+
let d = reader.skip(wireType);
|
|
291
|
+
if (u !== false)
|
|
292
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return message;
|
|
296
|
+
}
|
|
297
|
+
internalBinaryWrite(message, writer, options) {
|
|
298
|
+
/* bool ephemeral = 1; */
|
|
299
|
+
if (message.ephemeral !== false)
|
|
300
|
+
writer.tag(1, WireType.Varint).bool(message.ephemeral);
|
|
301
|
+
let u = options.writeUnknownFields;
|
|
302
|
+
if (u !== false)
|
|
303
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
304
|
+
return writer;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Resource.Features
|
|
309
|
+
*/
|
|
310
|
+
const Resource_Features = new Resource_Features$Type();
|
|
311
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
312
|
+
class Field$Type extends MessageType {
|
|
313
|
+
constructor() {
|
|
314
|
+
super("MiLaboratories.PL.API.Field", [
|
|
315
|
+
{ no: 1, name: "id", kind: "message", T: () => FieldRef },
|
|
316
|
+
{ no: 2, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", FieldType] },
|
|
317
|
+
{ no: 3, name: "features", kind: "message", T: () => Resource_Features },
|
|
318
|
+
{ no: 5, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
319
|
+
{ no: 7, name: "value_status", kind: "enum", T: () => ["MiLaboratories.PL.API.Field.ValueStatus", Field_ValueStatus] },
|
|
320
|
+
{ no: 8, name: "value_is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
321
|
+
{ no: 6, name: "error", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
322
|
+
]);
|
|
323
|
+
}
|
|
324
|
+
create(value) {
|
|
325
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
326
|
+
message.type = 0;
|
|
327
|
+
message.value = 0n;
|
|
328
|
+
message.valueStatus = 0;
|
|
329
|
+
message.valueIsFinal = false;
|
|
330
|
+
message.error = 0n;
|
|
331
|
+
if (value !== undefined)
|
|
332
|
+
reflectionMergePartial(this, message, value);
|
|
333
|
+
return message;
|
|
334
|
+
}
|
|
335
|
+
internalBinaryRead(reader, length, options, target) {
|
|
336
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
337
|
+
while (reader.pos < end) {
|
|
338
|
+
let [fieldNo, wireType] = reader.tag();
|
|
339
|
+
switch (fieldNo) {
|
|
340
|
+
case /* MiLaboratories.PL.Base.FieldRef id */ 1:
|
|
341
|
+
message.id = FieldRef.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
342
|
+
break;
|
|
343
|
+
case /* MiLaboratories.PL.Base.FieldType type */ 2:
|
|
344
|
+
message.type = reader.int32();
|
|
345
|
+
break;
|
|
346
|
+
case /* MiLaboratories.PL.API.Resource.Features features */ 3:
|
|
347
|
+
message.features = Resource_Features.internalBinaryRead(reader, reader.uint32(), options, message.features);
|
|
348
|
+
break;
|
|
349
|
+
case /* uint64 value */ 5:
|
|
350
|
+
message.value = reader.uint64().toBigInt();
|
|
351
|
+
break;
|
|
352
|
+
case /* MiLaboratories.PL.API.Field.ValueStatus value_status */ 7:
|
|
353
|
+
message.valueStatus = reader.int32();
|
|
354
|
+
break;
|
|
355
|
+
case /* bool value_is_final */ 8:
|
|
356
|
+
message.valueIsFinal = reader.bool();
|
|
357
|
+
break;
|
|
358
|
+
case /* uint64 error */ 6:
|
|
359
|
+
message.error = reader.uint64().toBigInt();
|
|
360
|
+
break;
|
|
361
|
+
default:
|
|
362
|
+
let u = options.readUnknownField;
|
|
363
|
+
if (u === "throw")
|
|
364
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
365
|
+
let d = reader.skip(wireType);
|
|
366
|
+
if (u !== false)
|
|
367
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return message;
|
|
371
|
+
}
|
|
372
|
+
internalBinaryWrite(message, writer, options) {
|
|
373
|
+
/* MiLaboratories.PL.Base.FieldRef id = 1; */
|
|
374
|
+
if (message.id)
|
|
375
|
+
FieldRef.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
376
|
+
/* MiLaboratories.PL.Base.FieldType type = 2; */
|
|
377
|
+
if (message.type !== 0)
|
|
378
|
+
writer.tag(2, WireType.Varint).int32(message.type);
|
|
379
|
+
/* MiLaboratories.PL.API.Resource.Features features = 3; */
|
|
380
|
+
if (message.features)
|
|
381
|
+
Resource_Features.internalBinaryWrite(message.features, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
382
|
+
/* uint64 value = 5; */
|
|
383
|
+
if (message.value !== 0n)
|
|
384
|
+
writer.tag(5, WireType.Varint).uint64(message.value);
|
|
385
|
+
/* uint64 error = 6; */
|
|
386
|
+
if (message.error !== 0n)
|
|
387
|
+
writer.tag(6, WireType.Varint).uint64(message.error);
|
|
388
|
+
/* MiLaboratories.PL.API.Field.ValueStatus value_status = 7; */
|
|
389
|
+
if (message.valueStatus !== 0)
|
|
390
|
+
writer.tag(7, WireType.Varint).int32(message.valueStatus);
|
|
391
|
+
/* bool value_is_final = 8; */
|
|
392
|
+
if (message.valueIsFinal !== false)
|
|
393
|
+
writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
|
|
394
|
+
let u = options.writeUnknownFields;
|
|
395
|
+
if (u !== false)
|
|
396
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
397
|
+
return writer;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Field
|
|
402
|
+
*/
|
|
403
|
+
const Field = new Field$Type();
|
|
404
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
405
|
+
class Notification$Type extends MessageType {
|
|
406
|
+
constructor() {
|
|
407
|
+
super("MiLaboratories.PL.API.Notification", [
|
|
408
|
+
{ no: 1, name: "subscription_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
409
|
+
{ no: 2, name: "event_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
410
|
+
{ no: 3, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
411
|
+
{ no: 4, name: "resource_type", kind: "message", T: () => ResourceType },
|
|
412
|
+
{ no: 5, name: "events", kind: "message", T: () => Notification_Events },
|
|
413
|
+
{ no: 6, name: "field_changes", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Notification_FieldChange } },
|
|
414
|
+
{ no: 7, name: "payload", kind: "message", T: () => NotificationFilter_Payload },
|
|
415
|
+
{ no: 8, name: "filter_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
416
|
+
{ no: 9, name: "tx_span", kind: "message", T: () => SpanInfo }
|
|
417
|
+
]);
|
|
418
|
+
}
|
|
419
|
+
create(value) {
|
|
420
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
421
|
+
message.subscriptionId = 0n;
|
|
422
|
+
message.eventId = 0n;
|
|
423
|
+
message.resourceId = 0n;
|
|
424
|
+
message.fieldChanges = {};
|
|
425
|
+
message.filterName = "";
|
|
426
|
+
if (value !== undefined)
|
|
427
|
+
reflectionMergePartial(this, message, value);
|
|
428
|
+
return message;
|
|
429
|
+
}
|
|
430
|
+
internalBinaryRead(reader, length, options, target) {
|
|
431
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
432
|
+
while (reader.pos < end) {
|
|
433
|
+
let [fieldNo, wireType] = reader.tag();
|
|
434
|
+
switch (fieldNo) {
|
|
435
|
+
case /* uint64 subscription_id */ 1:
|
|
436
|
+
message.subscriptionId = reader.uint64().toBigInt();
|
|
437
|
+
break;
|
|
438
|
+
case /* uint64 event_id */ 2:
|
|
439
|
+
message.eventId = reader.uint64().toBigInt();
|
|
440
|
+
break;
|
|
441
|
+
case /* uint64 resource_id */ 3:
|
|
442
|
+
message.resourceId = reader.uint64().toBigInt();
|
|
443
|
+
break;
|
|
444
|
+
case /* MiLaboratories.PL.Base.ResourceType resource_type */ 4:
|
|
445
|
+
message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
|
|
446
|
+
break;
|
|
447
|
+
case /* MiLaboratories.PL.API.Notification.Events events */ 5:
|
|
448
|
+
message.events = Notification_Events.internalBinaryRead(reader, reader.uint32(), options, message.events);
|
|
449
|
+
break;
|
|
450
|
+
case /* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes */ 6:
|
|
451
|
+
this.binaryReadMap6(message.fieldChanges, reader, options);
|
|
452
|
+
break;
|
|
453
|
+
case /* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload */ 7:
|
|
454
|
+
message.payload = NotificationFilter_Payload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
|
|
455
|
+
break;
|
|
456
|
+
case /* string filter_name */ 8:
|
|
457
|
+
message.filterName = reader.string();
|
|
458
|
+
break;
|
|
459
|
+
case /* MiLaboratories.PL.API.SpanInfo tx_span */ 9:
|
|
460
|
+
message.txSpan = SpanInfo.internalBinaryRead(reader, reader.uint32(), options, message.txSpan);
|
|
461
|
+
break;
|
|
462
|
+
default:
|
|
463
|
+
let u = options.readUnknownField;
|
|
464
|
+
if (u === "throw")
|
|
465
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
466
|
+
let d = reader.skip(wireType);
|
|
467
|
+
if (u !== false)
|
|
468
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return message;
|
|
472
|
+
}
|
|
473
|
+
binaryReadMap6(map, reader, options) {
|
|
474
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
475
|
+
while (reader.pos < end) {
|
|
476
|
+
let [fieldNo, wireType] = reader.tag();
|
|
477
|
+
switch (fieldNo) {
|
|
478
|
+
case 1:
|
|
479
|
+
key = reader.string();
|
|
480
|
+
break;
|
|
481
|
+
case 2:
|
|
482
|
+
val = Notification_FieldChange.internalBinaryRead(reader, reader.uint32(), options);
|
|
483
|
+
break;
|
|
484
|
+
default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.Notification.field_changes");
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
map[key ?? ""] = val ?? Notification_FieldChange.create();
|
|
488
|
+
}
|
|
489
|
+
internalBinaryWrite(message, writer, options) {
|
|
490
|
+
/* uint64 subscription_id = 1; */
|
|
491
|
+
if (message.subscriptionId !== 0n)
|
|
492
|
+
writer.tag(1, WireType.Varint).uint64(message.subscriptionId);
|
|
493
|
+
/* uint64 event_id = 2; */
|
|
494
|
+
if (message.eventId !== 0n)
|
|
495
|
+
writer.tag(2, WireType.Varint).uint64(message.eventId);
|
|
496
|
+
/* uint64 resource_id = 3; */
|
|
497
|
+
if (message.resourceId !== 0n)
|
|
498
|
+
writer.tag(3, WireType.Varint).uint64(message.resourceId);
|
|
499
|
+
/* MiLaboratories.PL.Base.ResourceType resource_type = 4; */
|
|
500
|
+
if (message.resourceType)
|
|
501
|
+
ResourceType.internalBinaryWrite(message.resourceType, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
502
|
+
/* MiLaboratories.PL.API.Notification.Events events = 5; */
|
|
503
|
+
if (message.events)
|
|
504
|
+
Notification_Events.internalBinaryWrite(message.events, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
505
|
+
/* map<string, MiLaboratories.PL.API.Notification.FieldChange> field_changes = 6; */
|
|
506
|
+
for (let k of globalThis.Object.keys(message.fieldChanges)) {
|
|
507
|
+
writer.tag(6, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
|
508
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
|
509
|
+
Notification_FieldChange.internalBinaryWrite(message.fieldChanges[k], writer, options);
|
|
510
|
+
writer.join().join();
|
|
511
|
+
}
|
|
512
|
+
/* MiLaboratories.PL.RTypes.NotificationFilter.Payload payload = 7; */
|
|
513
|
+
if (message.payload)
|
|
514
|
+
NotificationFilter_Payload.internalBinaryWrite(message.payload, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
515
|
+
/* string filter_name = 8; */
|
|
516
|
+
if (message.filterName !== "")
|
|
517
|
+
writer.tag(8, WireType.LengthDelimited).string(message.filterName);
|
|
518
|
+
/* MiLaboratories.PL.API.SpanInfo tx_span = 9; */
|
|
519
|
+
if (message.txSpan)
|
|
520
|
+
SpanInfo.internalBinaryWrite(message.txSpan, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
521
|
+
let u = options.writeUnknownFields;
|
|
522
|
+
if (u !== false)
|
|
523
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
524
|
+
return writer;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Notification
|
|
529
|
+
*/
|
|
530
|
+
const Notification = new Notification$Type();
|
|
531
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
532
|
+
class Notification_Events$Type extends MessageType {
|
|
533
|
+
constructor() {
|
|
534
|
+
super("MiLaboratories.PL.API.Notification.Events", [
|
|
535
|
+
{ no: 1, name: "resource_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
536
|
+
{ no: 2, name: "resource_deleted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
537
|
+
{ no: 4, name: "resource_ready", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
538
|
+
{ no: 5, name: "resource_duplicate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
539
|
+
{ no: 15, name: "resource_error", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
540
|
+
{ no: 12, name: "inputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
541
|
+
{ no: 13, name: "outputs_locked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
542
|
+
{ no: 11, name: "field_created", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
543
|
+
{ no: 16, name: "field_got_error", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
544
|
+
{ no: 6, name: "input_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
545
|
+
{ no: 7, name: "all_inputs_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
546
|
+
{ no: 8, name: "output_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
547
|
+
{ no: 9, name: "all_outputs_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
548
|
+
{ no: 14, name: "generic_otw_set", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
549
|
+
{ no: 10, name: "dynamic_changed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
550
|
+
]);
|
|
551
|
+
}
|
|
552
|
+
create(value) {
|
|
553
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
554
|
+
message.resourceCreated = false;
|
|
555
|
+
message.resourceDeleted = false;
|
|
556
|
+
message.resourceReady = false;
|
|
557
|
+
message.resourceDuplicate = false;
|
|
558
|
+
message.resourceError = false;
|
|
559
|
+
message.inputsLocked = false;
|
|
560
|
+
message.outputsLocked = false;
|
|
561
|
+
message.fieldCreated = false;
|
|
562
|
+
message.fieldGotError = false;
|
|
563
|
+
message.inputSet = false;
|
|
564
|
+
message.allInputsSet = false;
|
|
565
|
+
message.outputSet = false;
|
|
566
|
+
message.allOutputsSet = false;
|
|
567
|
+
message.genericOtwSet = false;
|
|
568
|
+
message.dynamicChanged = false;
|
|
569
|
+
if (value !== undefined)
|
|
570
|
+
reflectionMergePartial(this, message, value);
|
|
571
|
+
return message;
|
|
572
|
+
}
|
|
573
|
+
internalBinaryRead(reader, length, options, target) {
|
|
574
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
575
|
+
while (reader.pos < end) {
|
|
576
|
+
let [fieldNo, wireType] = reader.tag();
|
|
577
|
+
switch (fieldNo) {
|
|
578
|
+
case /* bool resource_created */ 1:
|
|
579
|
+
message.resourceCreated = reader.bool();
|
|
580
|
+
break;
|
|
581
|
+
case /* bool resource_deleted */ 2:
|
|
582
|
+
message.resourceDeleted = reader.bool();
|
|
583
|
+
break;
|
|
584
|
+
case /* bool resource_ready */ 4:
|
|
585
|
+
message.resourceReady = reader.bool();
|
|
586
|
+
break;
|
|
587
|
+
case /* bool resource_duplicate */ 5:
|
|
588
|
+
message.resourceDuplicate = reader.bool();
|
|
589
|
+
break;
|
|
590
|
+
case /* bool resource_error */ 15:
|
|
591
|
+
message.resourceError = reader.bool();
|
|
592
|
+
break;
|
|
593
|
+
case /* bool inputs_locked */ 12:
|
|
594
|
+
message.inputsLocked = reader.bool();
|
|
595
|
+
break;
|
|
596
|
+
case /* bool outputs_locked */ 13:
|
|
597
|
+
message.outputsLocked = reader.bool();
|
|
598
|
+
break;
|
|
599
|
+
case /* bool field_created */ 11:
|
|
600
|
+
message.fieldCreated = reader.bool();
|
|
601
|
+
break;
|
|
602
|
+
case /* bool field_got_error */ 16:
|
|
603
|
+
message.fieldGotError = reader.bool();
|
|
604
|
+
break;
|
|
605
|
+
case /* bool input_set */ 6:
|
|
606
|
+
message.inputSet = reader.bool();
|
|
607
|
+
break;
|
|
608
|
+
case /* bool all_inputs_set */ 7:
|
|
609
|
+
message.allInputsSet = reader.bool();
|
|
610
|
+
break;
|
|
611
|
+
case /* bool output_set */ 8:
|
|
612
|
+
message.outputSet = reader.bool();
|
|
613
|
+
break;
|
|
614
|
+
case /* bool all_outputs_set */ 9:
|
|
615
|
+
message.allOutputsSet = reader.bool();
|
|
616
|
+
break;
|
|
617
|
+
case /* bool generic_otw_set */ 14:
|
|
618
|
+
message.genericOtwSet = reader.bool();
|
|
619
|
+
break;
|
|
620
|
+
case /* bool dynamic_changed */ 10:
|
|
621
|
+
message.dynamicChanged = reader.bool();
|
|
622
|
+
break;
|
|
623
|
+
default:
|
|
624
|
+
let u = options.readUnknownField;
|
|
625
|
+
if (u === "throw")
|
|
626
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
627
|
+
let d = reader.skip(wireType);
|
|
628
|
+
if (u !== false)
|
|
629
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
return message;
|
|
633
|
+
}
|
|
634
|
+
internalBinaryWrite(message, writer, options) {
|
|
635
|
+
/* bool resource_created = 1; */
|
|
636
|
+
if (message.resourceCreated !== false)
|
|
637
|
+
writer.tag(1, WireType.Varint).bool(message.resourceCreated);
|
|
638
|
+
/* bool resource_deleted = 2; */
|
|
639
|
+
if (message.resourceDeleted !== false)
|
|
640
|
+
writer.tag(2, WireType.Varint).bool(message.resourceDeleted);
|
|
641
|
+
/* bool resource_ready = 4; */
|
|
642
|
+
if (message.resourceReady !== false)
|
|
643
|
+
writer.tag(4, WireType.Varint).bool(message.resourceReady);
|
|
644
|
+
/* bool resource_duplicate = 5; */
|
|
645
|
+
if (message.resourceDuplicate !== false)
|
|
646
|
+
writer.tag(5, WireType.Varint).bool(message.resourceDuplicate);
|
|
647
|
+
/* bool input_set = 6; */
|
|
648
|
+
if (message.inputSet !== false)
|
|
649
|
+
writer.tag(6, WireType.Varint).bool(message.inputSet);
|
|
650
|
+
/* bool all_inputs_set = 7; */
|
|
651
|
+
if (message.allInputsSet !== false)
|
|
652
|
+
writer.tag(7, WireType.Varint).bool(message.allInputsSet);
|
|
653
|
+
/* bool output_set = 8; */
|
|
654
|
+
if (message.outputSet !== false)
|
|
655
|
+
writer.tag(8, WireType.Varint).bool(message.outputSet);
|
|
656
|
+
/* bool all_outputs_set = 9; */
|
|
657
|
+
if (message.allOutputsSet !== false)
|
|
658
|
+
writer.tag(9, WireType.Varint).bool(message.allOutputsSet);
|
|
659
|
+
/* bool dynamic_changed = 10; */
|
|
660
|
+
if (message.dynamicChanged !== false)
|
|
661
|
+
writer.tag(10, WireType.Varint).bool(message.dynamicChanged);
|
|
662
|
+
/* bool field_created = 11; */
|
|
663
|
+
if (message.fieldCreated !== false)
|
|
664
|
+
writer.tag(11, WireType.Varint).bool(message.fieldCreated);
|
|
665
|
+
/* bool inputs_locked = 12; */
|
|
666
|
+
if (message.inputsLocked !== false)
|
|
667
|
+
writer.tag(12, WireType.Varint).bool(message.inputsLocked);
|
|
668
|
+
/* bool outputs_locked = 13; */
|
|
669
|
+
if (message.outputsLocked !== false)
|
|
670
|
+
writer.tag(13, WireType.Varint).bool(message.outputsLocked);
|
|
671
|
+
/* bool generic_otw_set = 14; */
|
|
672
|
+
if (message.genericOtwSet !== false)
|
|
673
|
+
writer.tag(14, WireType.Varint).bool(message.genericOtwSet);
|
|
674
|
+
/* bool resource_error = 15; */
|
|
675
|
+
if (message.resourceError !== false)
|
|
676
|
+
writer.tag(15, WireType.Varint).bool(message.resourceError);
|
|
677
|
+
/* bool field_got_error = 16; */
|
|
678
|
+
if (message.fieldGotError !== false)
|
|
679
|
+
writer.tag(16, WireType.Varint).bool(message.fieldGotError);
|
|
680
|
+
let u = options.writeUnknownFields;
|
|
681
|
+
if (u !== false)
|
|
682
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
683
|
+
return writer;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.Events
|
|
688
|
+
*/
|
|
689
|
+
const Notification_Events = new Notification_Events$Type();
|
|
690
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
691
|
+
class Notification_FieldChange$Type extends MessageType {
|
|
692
|
+
constructor() {
|
|
693
|
+
super("MiLaboratories.PL.API.Notification.FieldChange", [
|
|
694
|
+
{ no: 1, name: "old", kind: "message", T: () => Field },
|
|
695
|
+
{ no: 2, name: "new", kind: "message", T: () => Field }
|
|
696
|
+
]);
|
|
697
|
+
}
|
|
698
|
+
create(value) {
|
|
699
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
700
|
+
if (value !== undefined)
|
|
701
|
+
reflectionMergePartial(this, message, value);
|
|
702
|
+
return message;
|
|
703
|
+
}
|
|
704
|
+
internalBinaryRead(reader, length, options, target) {
|
|
705
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
706
|
+
while (reader.pos < end) {
|
|
707
|
+
let [fieldNo, wireType] = reader.tag();
|
|
708
|
+
switch (fieldNo) {
|
|
709
|
+
case /* MiLaboratories.PL.API.Field old */ 1:
|
|
710
|
+
message.old = Field.internalBinaryRead(reader, reader.uint32(), options, message.old);
|
|
711
|
+
break;
|
|
712
|
+
case /* MiLaboratories.PL.API.Field new */ 2:
|
|
713
|
+
message.new = Field.internalBinaryRead(reader, reader.uint32(), options, message.new);
|
|
714
|
+
break;
|
|
715
|
+
default:
|
|
716
|
+
let u = options.readUnknownField;
|
|
717
|
+
if (u === "throw")
|
|
718
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
719
|
+
let d = reader.skip(wireType);
|
|
720
|
+
if (u !== false)
|
|
721
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
return message;
|
|
725
|
+
}
|
|
726
|
+
internalBinaryWrite(message, writer, options) {
|
|
727
|
+
/* MiLaboratories.PL.API.Field old = 1; */
|
|
728
|
+
if (message.old)
|
|
729
|
+
Field.internalBinaryWrite(message.old, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
730
|
+
/* MiLaboratories.PL.API.Field new = 2; */
|
|
731
|
+
if (message.new)
|
|
732
|
+
Field.internalBinaryWrite(message.new, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
733
|
+
let u = options.writeUnknownFields;
|
|
734
|
+
if (u !== false)
|
|
735
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
736
|
+
return writer;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Notification.FieldChange
|
|
741
|
+
*/
|
|
742
|
+
const Notification_FieldChange = new Notification_FieldChange$Type();
|
|
743
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
744
|
+
class SpanInfo$Type extends MessageType {
|
|
745
|
+
constructor() {
|
|
746
|
+
super("MiLaboratories.PL.API.SpanInfo", [
|
|
747
|
+
{ no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
748
|
+
{ no: 2, name: "carrier", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
749
|
+
]);
|
|
750
|
+
}
|
|
751
|
+
create(value) {
|
|
752
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
753
|
+
message.path = "";
|
|
754
|
+
message.carrier = {};
|
|
755
|
+
if (value !== undefined)
|
|
756
|
+
reflectionMergePartial(this, message, value);
|
|
757
|
+
return message;
|
|
758
|
+
}
|
|
759
|
+
internalBinaryRead(reader, length, options, target) {
|
|
760
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
761
|
+
while (reader.pos < end) {
|
|
762
|
+
let [fieldNo, wireType] = reader.tag();
|
|
763
|
+
switch (fieldNo) {
|
|
764
|
+
case /* string path */ 1:
|
|
765
|
+
message.path = reader.string();
|
|
766
|
+
break;
|
|
767
|
+
case /* map<string, string> carrier */ 2:
|
|
768
|
+
this.binaryReadMap2(message.carrier, reader, options);
|
|
769
|
+
break;
|
|
770
|
+
default:
|
|
771
|
+
let u = options.readUnknownField;
|
|
772
|
+
if (u === "throw")
|
|
773
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
774
|
+
let d = reader.skip(wireType);
|
|
775
|
+
if (u !== false)
|
|
776
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
return message;
|
|
780
|
+
}
|
|
781
|
+
binaryReadMap2(map, reader, options) {
|
|
782
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
783
|
+
while (reader.pos < end) {
|
|
784
|
+
let [fieldNo, wireType] = reader.tag();
|
|
785
|
+
switch (fieldNo) {
|
|
786
|
+
case 1:
|
|
787
|
+
key = reader.string();
|
|
788
|
+
break;
|
|
789
|
+
case 2:
|
|
790
|
+
val = reader.string();
|
|
791
|
+
break;
|
|
792
|
+
default: throw new globalThis.Error("unknown map entry field for MiLaboratories.PL.API.SpanInfo.carrier");
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
map[key ?? ""] = val ?? "";
|
|
796
|
+
}
|
|
797
|
+
internalBinaryWrite(message, writer, options) {
|
|
798
|
+
/* string path = 1; */
|
|
799
|
+
if (message.path !== "")
|
|
800
|
+
writer.tag(1, WireType.LengthDelimited).string(message.path);
|
|
801
|
+
/* map<string, string> carrier = 2; */
|
|
802
|
+
for (let k of globalThis.Object.keys(message.carrier))
|
|
803
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.carrier[k]).join();
|
|
804
|
+
let u = options.writeUnknownFields;
|
|
805
|
+
if (u !== false)
|
|
806
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
807
|
+
return writer;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.SpanInfo
|
|
812
|
+
*/
|
|
813
|
+
const SpanInfo = new SpanInfo$Type();
|
|
814
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
815
|
+
class Subscription$Type extends MessageType {
|
|
816
|
+
constructor() {
|
|
817
|
+
super("MiLaboratories.PL.API.Subscription", [
|
|
818
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
819
|
+
{ no: 3, name: "blocking", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
820
|
+
]);
|
|
821
|
+
}
|
|
822
|
+
create(value) {
|
|
823
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
824
|
+
message.id = 0n;
|
|
825
|
+
message.blocking = false;
|
|
826
|
+
if (value !== undefined)
|
|
827
|
+
reflectionMergePartial(this, message, value);
|
|
828
|
+
return message;
|
|
829
|
+
}
|
|
830
|
+
internalBinaryRead(reader, length, options, target) {
|
|
831
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
832
|
+
while (reader.pos < end) {
|
|
833
|
+
let [fieldNo, wireType] = reader.tag();
|
|
834
|
+
switch (fieldNo) {
|
|
835
|
+
case /* uint64 id */ 1:
|
|
836
|
+
message.id = reader.uint64().toBigInt();
|
|
837
|
+
break;
|
|
838
|
+
case /* bool blocking */ 3:
|
|
839
|
+
message.blocking = reader.bool();
|
|
840
|
+
break;
|
|
841
|
+
default:
|
|
842
|
+
let u = options.readUnknownField;
|
|
843
|
+
if (u === "throw")
|
|
844
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
845
|
+
let d = reader.skip(wireType);
|
|
846
|
+
if (u !== false)
|
|
847
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
return message;
|
|
851
|
+
}
|
|
852
|
+
internalBinaryWrite(message, writer, options) {
|
|
853
|
+
/* uint64 id = 1; */
|
|
854
|
+
if (message.id !== 0n)
|
|
855
|
+
writer.tag(1, WireType.Varint).uint64(message.id);
|
|
856
|
+
/* bool blocking = 3; */
|
|
857
|
+
if (message.blocking !== false)
|
|
858
|
+
writer.tag(3, WireType.Varint).bool(message.blocking);
|
|
859
|
+
let u = options.writeUnknownFields;
|
|
860
|
+
if (u !== false)
|
|
861
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
862
|
+
return writer;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Subscription
|
|
867
|
+
*/
|
|
868
|
+
const Subscription = new Subscription$Type();
|
|
869
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
870
|
+
class Controller$Type extends MessageType {
|
|
871
|
+
constructor() {
|
|
872
|
+
super("MiLaboratories.PL.API.Controller", [
|
|
873
|
+
{ no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
874
|
+
{ no: 2, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
875
|
+
{ no: 3, name: "subscriptionID", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
876
|
+
]);
|
|
877
|
+
}
|
|
878
|
+
create(value) {
|
|
879
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
880
|
+
message.type = "";
|
|
881
|
+
message.id = 0n;
|
|
882
|
+
message.subscriptionID = 0n;
|
|
883
|
+
if (value !== undefined)
|
|
884
|
+
reflectionMergePartial(this, message, value);
|
|
885
|
+
return message;
|
|
886
|
+
}
|
|
887
|
+
internalBinaryRead(reader, length, options, target) {
|
|
888
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
889
|
+
while (reader.pos < end) {
|
|
890
|
+
let [fieldNo, wireType] = reader.tag();
|
|
891
|
+
switch (fieldNo) {
|
|
892
|
+
case /* string type */ 1:
|
|
893
|
+
message.type = reader.string();
|
|
894
|
+
break;
|
|
895
|
+
case /* uint64 id */ 2:
|
|
896
|
+
message.id = reader.uint64().toBigInt();
|
|
897
|
+
break;
|
|
898
|
+
case /* uint64 subscriptionID */ 3:
|
|
899
|
+
message.subscriptionID = reader.uint64().toBigInt();
|
|
900
|
+
break;
|
|
901
|
+
default:
|
|
902
|
+
let u = options.readUnknownField;
|
|
903
|
+
if (u === "throw")
|
|
904
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
905
|
+
let d = reader.skip(wireType);
|
|
906
|
+
if (u !== false)
|
|
907
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
return message;
|
|
911
|
+
}
|
|
912
|
+
internalBinaryWrite(message, writer, options) {
|
|
913
|
+
/* string type = 1; */
|
|
914
|
+
if (message.type !== "")
|
|
915
|
+
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
916
|
+
/* uint64 id = 2; */
|
|
917
|
+
if (message.id !== 0n)
|
|
918
|
+
writer.tag(2, WireType.Varint).uint64(message.id);
|
|
919
|
+
/* uint64 subscriptionID = 3; */
|
|
920
|
+
if (message.subscriptionID !== 0n)
|
|
921
|
+
writer.tag(3, WireType.Varint).uint64(message.subscriptionID);
|
|
922
|
+
let u = options.writeUnknownFields;
|
|
923
|
+
if (u !== false)
|
|
924
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
925
|
+
return writer;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.Controller
|
|
930
|
+
*/
|
|
931
|
+
const Controller = new Controller$Type();
|
|
932
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
933
|
+
class ResourceSchema$Type extends MessageType {
|
|
934
|
+
constructor() {
|
|
935
|
+
super("MiLaboratories.PL.API.ResourceSchema", [
|
|
936
|
+
{ no: 1, name: "type", kind: "message", T: () => ResourceType },
|
|
937
|
+
{ no: 2, name: "fields", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldSchema }
|
|
938
|
+
]);
|
|
939
|
+
}
|
|
940
|
+
create(value) {
|
|
941
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
942
|
+
message.fields = [];
|
|
943
|
+
if (value !== undefined)
|
|
944
|
+
reflectionMergePartial(this, message, value);
|
|
945
|
+
return message;
|
|
946
|
+
}
|
|
947
|
+
internalBinaryRead(reader, length, options, target) {
|
|
948
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
949
|
+
while (reader.pos < end) {
|
|
950
|
+
let [fieldNo, wireType] = reader.tag();
|
|
951
|
+
switch (fieldNo) {
|
|
952
|
+
case /* MiLaboratories.PL.Base.ResourceType type */ 1:
|
|
953
|
+
message.type = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.type);
|
|
954
|
+
break;
|
|
955
|
+
case /* repeated MiLaboratories.PL.API.FieldSchema fields */ 2:
|
|
956
|
+
message.fields.push(FieldSchema.internalBinaryRead(reader, reader.uint32(), options));
|
|
957
|
+
break;
|
|
958
|
+
default:
|
|
959
|
+
let u = options.readUnknownField;
|
|
960
|
+
if (u === "throw")
|
|
961
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
962
|
+
let d = reader.skip(wireType);
|
|
963
|
+
if (u !== false)
|
|
964
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
return message;
|
|
968
|
+
}
|
|
969
|
+
internalBinaryWrite(message, writer, options) {
|
|
970
|
+
/* MiLaboratories.PL.Base.ResourceType type = 1; */
|
|
971
|
+
if (message.type)
|
|
972
|
+
ResourceType.internalBinaryWrite(message.type, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
973
|
+
/* repeated MiLaboratories.PL.API.FieldSchema fields = 2; */
|
|
974
|
+
for (let i = 0; i < message.fields.length; i++)
|
|
975
|
+
FieldSchema.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
976
|
+
let u = options.writeUnknownFields;
|
|
977
|
+
if (u !== false)
|
|
978
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
979
|
+
return writer;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceSchema
|
|
984
|
+
*/
|
|
985
|
+
const ResourceSchema = new ResourceSchema$Type();
|
|
986
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
987
|
+
class FieldSchema$Type extends MessageType {
|
|
988
|
+
constructor() {
|
|
989
|
+
super("MiLaboratories.PL.API.FieldSchema", [
|
|
990
|
+
{ no: 1, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", FieldType] },
|
|
991
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
992
|
+
]);
|
|
993
|
+
}
|
|
994
|
+
create(value) {
|
|
995
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
996
|
+
message.type = 0;
|
|
997
|
+
message.name = "";
|
|
998
|
+
if (value !== undefined)
|
|
999
|
+
reflectionMergePartial(this, message, value);
|
|
1000
|
+
return message;
|
|
1001
|
+
}
|
|
1002
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1003
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1004
|
+
while (reader.pos < end) {
|
|
1005
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1006
|
+
switch (fieldNo) {
|
|
1007
|
+
case /* MiLaboratories.PL.Base.FieldType type */ 1:
|
|
1008
|
+
message.type = reader.int32();
|
|
1009
|
+
break;
|
|
1010
|
+
case /* string name */ 2:
|
|
1011
|
+
message.name = reader.string();
|
|
1012
|
+
break;
|
|
1013
|
+
default:
|
|
1014
|
+
let u = options.readUnknownField;
|
|
1015
|
+
if (u === "throw")
|
|
1016
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1017
|
+
let d = reader.skip(wireType);
|
|
1018
|
+
if (u !== false)
|
|
1019
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
return message;
|
|
1023
|
+
}
|
|
1024
|
+
internalBinaryWrite(message, writer, options) {
|
|
1025
|
+
/* MiLaboratories.PL.Base.FieldType type = 1; */
|
|
1026
|
+
if (message.type !== 0)
|
|
1027
|
+
writer.tag(1, WireType.Varint).int32(message.type);
|
|
1028
|
+
/* string name = 2; */
|
|
1029
|
+
if (message.name !== "")
|
|
1030
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1031
|
+
let u = options.writeUnknownFields;
|
|
1032
|
+
if (u !== false)
|
|
1033
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1034
|
+
return writer;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.FieldSchema
|
|
1039
|
+
*/
|
|
1040
|
+
const FieldSchema = new FieldSchema$Type();
|
|
1041
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1042
|
+
class ResourceAPIFeature$Type extends MessageType {
|
|
1043
|
+
constructor() {
|
|
1044
|
+
super("MiLaboratories.PL.API.ResourceAPIFeature", [
|
|
1045
|
+
{ no: 1, name: "controller_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1046
|
+
{ no: 2, name: "feature_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1047
|
+
{ no: 3, name: "resource_type", kind: "message", T: () => ResourceType },
|
|
1048
|
+
{ no: 4, name: "endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1049
|
+
]);
|
|
1050
|
+
}
|
|
1051
|
+
create(value) {
|
|
1052
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1053
|
+
message.controllerType = "";
|
|
1054
|
+
message.featureName = "";
|
|
1055
|
+
message.endpoint = "";
|
|
1056
|
+
if (value !== undefined)
|
|
1057
|
+
reflectionMergePartial(this, message, value);
|
|
1058
|
+
return message;
|
|
1059
|
+
}
|
|
1060
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1061
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1062
|
+
while (reader.pos < end) {
|
|
1063
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1064
|
+
switch (fieldNo) {
|
|
1065
|
+
case /* string controller_type */ 1:
|
|
1066
|
+
message.controllerType = reader.string();
|
|
1067
|
+
break;
|
|
1068
|
+
case /* string feature_name */ 2:
|
|
1069
|
+
message.featureName = reader.string();
|
|
1070
|
+
break;
|
|
1071
|
+
case /* MiLaboratories.PL.Base.ResourceType resource_type */ 3:
|
|
1072
|
+
message.resourceType = ResourceType.internalBinaryRead(reader, reader.uint32(), options, message.resourceType);
|
|
1073
|
+
break;
|
|
1074
|
+
case /* string endpoint */ 4:
|
|
1075
|
+
message.endpoint = reader.string();
|
|
1076
|
+
break;
|
|
1077
|
+
default:
|
|
1078
|
+
let u = options.readUnknownField;
|
|
1079
|
+
if (u === "throw")
|
|
1080
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1081
|
+
let d = reader.skip(wireType);
|
|
1082
|
+
if (u !== false)
|
|
1083
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
return message;
|
|
1087
|
+
}
|
|
1088
|
+
internalBinaryWrite(message, writer, options) {
|
|
1089
|
+
/* string controller_type = 1; */
|
|
1090
|
+
if (message.controllerType !== "")
|
|
1091
|
+
writer.tag(1, WireType.LengthDelimited).string(message.controllerType);
|
|
1092
|
+
/* string feature_name = 2; */
|
|
1093
|
+
if (message.featureName !== "")
|
|
1094
|
+
writer.tag(2, WireType.LengthDelimited).string(message.featureName);
|
|
1095
|
+
/* MiLaboratories.PL.Base.ResourceType resource_type = 3; */
|
|
1096
|
+
if (message.resourceType)
|
|
1097
|
+
ResourceType.internalBinaryWrite(message.resourceType, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1098
|
+
/* string endpoint = 4; */
|
|
1099
|
+
if (message.endpoint !== "")
|
|
1100
|
+
writer.tag(4, WireType.LengthDelimited).string(message.endpoint);
|
|
1101
|
+
let u = options.writeUnknownFields;
|
|
1102
|
+
if (u !== false)
|
|
1103
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1104
|
+
return writer;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.API.ResourceAPIFeature
|
|
1109
|
+
*/
|
|
1110
|
+
const ResourceAPIFeature = new ResourceAPIFeature$Type();
|
|
1111
|
+
|
|
1112
|
+
export { Controller, Field, FieldSchema, Field_ValueStatus, Notification, Notification_Events, Notification_FieldChange, Resource, ResourceAPIFeature, ResourceSchema, Resource_Features, Resource_Kind, SpanInfo, Subscription, Tx };
|
|
1113
|
+
//# sourceMappingURL=api_types.js.map
|