@milaboratories/pl-client 3.2.5 → 3.3.0
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/client.cjs +24 -56
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +12 -8
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +26 -58
- package/dist/core/client.js.map +1 -1
- package/dist/core/errors.cjs +20 -0
- package/dist/core/errors.cjs.map +1 -1
- package/dist/core/errors.d.ts +6 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +19 -1
- package/dist/core/errors.js.map +1 -1
- package/dist/core/final.cjs +6 -5
- package/dist/core/final.cjs.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/final.js +7 -6
- package/dist/core/final.js.map +1 -1
- package/dist/core/ll_client.cjs +18 -1
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +6 -2
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +19 -2
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/transaction.cjs +109 -75
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.d.ts +30 -22
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +111 -76
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/type_conversion.cjs +14 -6
- package/dist/core/type_conversion.cjs.map +1 -1
- package/dist/core/type_conversion.js +14 -6
- package/dist/core/type_conversion.js.map +1 -1
- package/dist/core/types.cjs +77 -17
- package/dist/core/types.cjs.map +1 -1
- package/dist/core/types.d.ts +49 -26
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +66 -14
- package/dist/core/types.js.map +1 -1
- package/dist/core/user_resources.cjs +181 -0
- package/dist/core/user_resources.cjs.map +1 -0
- package/dist/core/user_resources.d.ts +75 -0
- package/dist/core/user_resources.d.ts.map +1 -0
- package/dist/core/user_resources.js +180 -0
- package/dist/core/user_resources.js.map +1 -0
- package/dist/helpers/poll.cjs +4 -4
- package/dist/helpers/poll.cjs.map +1 -1
- package/dist/helpers/poll.d.ts +3 -3
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/poll.js +5 -5
- package/dist/helpers/poll.js.map +1 -1
- package/dist/helpers/tx_helpers.cjs +1 -1
- package/dist/helpers/tx_helpers.cjs.map +1 -1
- package/dist/helpers/tx_helpers.d.ts +3 -3
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.js +2 -2
- package/dist/helpers/tx_helpers.js.map +1 -1
- package/dist/index.cjs +16 -5
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +724 -188
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +34 -9
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +37 -5
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +34 -9
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +326 -136
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js +724 -188
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +18 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +11 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +18 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +57 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +26 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +57 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -1
- package/dist/proto-rest/plapi.d.ts +421 -207
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/dist/test/test_config.cjs +6 -3
- package/dist/test/test_config.cjs.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/test/test_config.js +7 -4
- package/dist/test/test_config.js.map +1 -1
- package/package.json +5 -5
- package/src/core/client.ts +58 -103
- package/src/core/errors.ts +23 -0
- package/src/core/final.ts +16 -6
- package/src/core/ll_client.ts +39 -3
- package/src/core/ll_transaction.test.ts +41 -6
- package/src/core/transaction.ts +176 -86
- package/src/core/type_conversion.ts +24 -9
- package/src/core/types.ts +147 -41
- package/src/core/user_resources.ts +332 -0
- package/src/helpers/poll.ts +15 -8
- package/src/helpers/state_helpers.ts +2 -2
- package/src/helpers/tx_helpers.ts +5 -5
- package/src/index.ts +1 -0
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +61 -14
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +1045 -379
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +33 -18
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +75 -6
- package/src/proto-grpc/google/protobuf/descriptor.ts +5 -2
- package/src/proto-rest/plapi.ts +447 -225
- package/src/test/test_config.ts +8 -5
|
@@ -37,9 +37,9 @@ export interface Resource {
|
|
|
37
37
|
*/
|
|
38
38
|
resourceId: bigint;
|
|
39
39
|
/**
|
|
40
|
-
* @generated from protobuf field:
|
|
40
|
+
* @generated from protobuf field: bytes resource_signature = 18
|
|
41
41
|
*/
|
|
42
|
-
resourceSignature
|
|
42
|
+
resourceSignature: Uint8Array;
|
|
43
43
|
/**
|
|
44
44
|
* @generated from protobuf field: bytes canonical_id = 17
|
|
45
45
|
*/
|
|
@@ -90,6 +90,10 @@ export interface Resource {
|
|
|
90
90
|
* @generated from protobuf field: uint64 original_resource_id = 10
|
|
91
91
|
*/
|
|
92
92
|
originalResourceId: bigint;
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: bytes original_resource_signature = 19
|
|
95
|
+
*/
|
|
96
|
+
originalResourceSignature: Uint8Array;
|
|
93
97
|
/**
|
|
94
98
|
* @generated from protobuf field: uint64 parent_resource_id = 11
|
|
95
99
|
*/
|
|
@@ -161,9 +165,9 @@ export interface Field {
|
|
|
161
165
|
* Signature for value resource ID, inheriting the parent resource's color.
|
|
162
166
|
* Populated server-side when the parent resource has a known color in the current TX.
|
|
163
167
|
*
|
|
164
|
-
* @generated from protobuf field:
|
|
168
|
+
* @generated from protobuf field: bytes value_signature = 10
|
|
165
169
|
*/
|
|
166
|
-
valueSignature
|
|
170
|
+
valueSignature: Uint8Array;
|
|
167
171
|
/**
|
|
168
172
|
* Whether the value is empty, assigned, or finally resolved.
|
|
169
173
|
*
|
|
@@ -186,9 +190,9 @@ export interface Field {
|
|
|
186
190
|
/**
|
|
187
191
|
* Signature for error resource ID, inheriting the parent resource's color.
|
|
188
192
|
*
|
|
189
|
-
* @generated from protobuf field:
|
|
193
|
+
* @generated from protobuf field: bytes error_signature = 11
|
|
190
194
|
*/
|
|
191
|
-
errorSignature
|
|
195
|
+
errorSignature: Uint8Array;
|
|
192
196
|
}
|
|
193
197
|
/**
|
|
194
198
|
* @generated from protobuf enum MiLaboratories.PL.API.Field.ValueStatus
|
|
@@ -549,7 +553,7 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
549
553
|
constructor() {
|
|
550
554
|
super("MiLaboratories.PL.API.Resource", [
|
|
551
555
|
{ no: 2, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
552
|
-
{ no: 18, name: "resource_signature", kind: "scalar",
|
|
556
|
+
{ no: 18, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
553
557
|
{ no: 17, name: "canonical_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
554
558
|
{ no: 3, name: "kind", kind: "enum", T: () => ["MiLaboratories.PL.API.Resource.Kind", Resource_Kind, "KIND_"] },
|
|
555
559
|
{ no: 4, name: "type", kind: "message", T: () => ResourceType },
|
|
@@ -562,6 +566,7 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
562
566
|
{ no: 14, name: "resource_ready", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
563
567
|
{ no: 15, name: "is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
564
568
|
{ no: 10, name: "original_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
569
|
+
{ no: 19, name: "original_resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
565
570
|
{ no: 11, name: "parent_resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
566
571
|
{ no: 12, name: "created_time", kind: "message", T: () => Timestamp },
|
|
567
572
|
{ no: 13, name: "deleted_time", kind: "message", T: () => Timestamp }
|
|
@@ -570,6 +575,7 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
570
575
|
create(value?: PartialMessage<Resource>): Resource {
|
|
571
576
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
572
577
|
message.resourceId = 0n;
|
|
578
|
+
message.resourceSignature = new Uint8Array(0);
|
|
573
579
|
message.canonicalId = new Uint8Array(0);
|
|
574
580
|
message.kind = 0;
|
|
575
581
|
message.data = new Uint8Array(0);
|
|
@@ -580,6 +586,7 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
580
586
|
message.resourceReady = false;
|
|
581
587
|
message.isFinal = false;
|
|
582
588
|
message.originalResourceId = 0n;
|
|
589
|
+
message.originalResourceSignature = new Uint8Array(0);
|
|
583
590
|
message.parentResourceId = 0n;
|
|
584
591
|
if (value !== undefined)
|
|
585
592
|
reflectionMergePartial<Resource>(this, message, value);
|
|
@@ -593,7 +600,7 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
593
600
|
case /* uint64 resource_id */ 2:
|
|
594
601
|
message.resourceId = reader.uint64().toBigInt();
|
|
595
602
|
break;
|
|
596
|
-
case /*
|
|
603
|
+
case /* bytes resource_signature */ 18:
|
|
597
604
|
message.resourceSignature = reader.bytes();
|
|
598
605
|
break;
|
|
599
606
|
case /* bytes canonical_id */ 17:
|
|
@@ -632,6 +639,9 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
632
639
|
case /* uint64 original_resource_id */ 10:
|
|
633
640
|
message.originalResourceId = reader.uint64().toBigInt();
|
|
634
641
|
break;
|
|
642
|
+
case /* bytes original_resource_signature */ 19:
|
|
643
|
+
message.originalResourceSignature = reader.bytes();
|
|
644
|
+
break;
|
|
635
645
|
case /* uint64 parent_resource_id */ 11:
|
|
636
646
|
message.parentResourceId = reader.uint64().toBigInt();
|
|
637
647
|
break;
|
|
@@ -701,9 +711,12 @@ class Resource$Type extends MessageType<Resource> {
|
|
|
701
711
|
/* bytes canonical_id = 17; */
|
|
702
712
|
if (message.canonicalId.length)
|
|
703
713
|
writer.tag(17, WireType.LengthDelimited).bytes(message.canonicalId);
|
|
704
|
-
/*
|
|
705
|
-
if (message.resourceSignature
|
|
714
|
+
/* bytes resource_signature = 18; */
|
|
715
|
+
if (message.resourceSignature.length)
|
|
706
716
|
writer.tag(18, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
717
|
+
/* bytes original_resource_signature = 19; */
|
|
718
|
+
if (message.originalResourceSignature.length)
|
|
719
|
+
writer.tag(19, WireType.LengthDelimited).bytes(message.originalResourceSignature);
|
|
707
720
|
let u = options.writeUnknownFields;
|
|
708
721
|
if (u !== false)
|
|
709
722
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -769,20 +782,22 @@ class Field$Type extends MessageType<Field> {
|
|
|
769
782
|
{ no: 2, name: "type", kind: "enum", T: () => ["MiLaboratories.PL.Base.FieldType", FieldType] },
|
|
770
783
|
{ no: 3, name: "features", kind: "message", T: () => Resource_Features },
|
|
771
784
|
{ no: 5, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
772
|
-
{ no: 10, name: "value_signature", kind: "scalar",
|
|
785
|
+
{ no: 10, name: "value_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
773
786
|
{ no: 7, name: "value_status", kind: "enum", T: () => ["MiLaboratories.PL.API.Field.ValueStatus", Field_ValueStatus] },
|
|
774
787
|
{ no: 8, name: "value_is_final", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
775
788
|
{ no: 6, name: "error", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
776
|
-
{ no: 11, name: "error_signature", kind: "scalar",
|
|
789
|
+
{ no: 11, name: "error_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
777
790
|
]);
|
|
778
791
|
}
|
|
779
792
|
create(value?: PartialMessage<Field>): Field {
|
|
780
793
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
781
794
|
message.type = 0;
|
|
782
795
|
message.value = 0n;
|
|
796
|
+
message.valueSignature = new Uint8Array(0);
|
|
783
797
|
message.valueStatus = 0;
|
|
784
798
|
message.valueIsFinal = false;
|
|
785
799
|
message.error = 0n;
|
|
800
|
+
message.errorSignature = new Uint8Array(0);
|
|
786
801
|
if (value !== undefined)
|
|
787
802
|
reflectionMergePartial<Field>(this, message, value);
|
|
788
803
|
return message;
|
|
@@ -804,7 +819,7 @@ class Field$Type extends MessageType<Field> {
|
|
|
804
819
|
case /* uint64 value */ 5:
|
|
805
820
|
message.value = reader.uint64().toBigInt();
|
|
806
821
|
break;
|
|
807
|
-
case /*
|
|
822
|
+
case /* bytes value_signature */ 10:
|
|
808
823
|
message.valueSignature = reader.bytes();
|
|
809
824
|
break;
|
|
810
825
|
case /* MiLaboratories.PL.API.Field.ValueStatus value_status */ 7:
|
|
@@ -816,7 +831,7 @@ class Field$Type extends MessageType<Field> {
|
|
|
816
831
|
case /* uint64 error */ 6:
|
|
817
832
|
message.error = reader.uint64().toBigInt();
|
|
818
833
|
break;
|
|
819
|
-
case /*
|
|
834
|
+
case /* bytes error_signature */ 11:
|
|
820
835
|
message.errorSignature = reader.bytes();
|
|
821
836
|
break;
|
|
822
837
|
default:
|
|
@@ -852,11 +867,11 @@ class Field$Type extends MessageType<Field> {
|
|
|
852
867
|
/* bool value_is_final = 8; */
|
|
853
868
|
if (message.valueIsFinal !== false)
|
|
854
869
|
writer.tag(8, WireType.Varint).bool(message.valueIsFinal);
|
|
855
|
-
/*
|
|
856
|
-
if (message.valueSignature
|
|
870
|
+
/* bytes value_signature = 10; */
|
|
871
|
+
if (message.valueSignature.length)
|
|
857
872
|
writer.tag(10, WireType.LengthDelimited).bytes(message.valueSignature);
|
|
858
|
-
/*
|
|
859
|
-
if (message.errorSignature
|
|
873
|
+
/* bytes error_signature = 11; */
|
|
874
|
+
if (message.errorSignature.length)
|
|
860
875
|
writer.tag(11, WireType.LengthDelimited).bytes(message.errorSignature);
|
|
861
876
|
let u = options.writeUnknownFields;
|
|
862
877
|
if (u !== false)
|
|
@@ -32,14 +32,27 @@ export interface FieldRef {
|
|
|
32
32
|
*/
|
|
33
33
|
resourceId: bigint;
|
|
34
34
|
/**
|
|
35
|
-
* @generated from protobuf field:
|
|
35
|
+
* @generated from protobuf field: bytes resource_signature = 4
|
|
36
36
|
*/
|
|
37
|
-
resourceSignature
|
|
37
|
+
resourceSignature: Uint8Array;
|
|
38
38
|
/**
|
|
39
39
|
* @generated from protobuf field: string field_name = 3
|
|
40
40
|
*/
|
|
41
41
|
fieldName: string;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf message MiLaboratories.PL.Base.Color
|
|
45
|
+
*/
|
|
46
|
+
export interface Color {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: uint64 root = 1
|
|
49
|
+
*/
|
|
50
|
+
root: bigint;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf field: uint32 permissions = 2
|
|
53
|
+
*/
|
|
54
|
+
permissions: number;
|
|
55
|
+
}
|
|
43
56
|
/**
|
|
44
57
|
* @generated from protobuf enum MiLaboratories.PL.Base.FieldType
|
|
45
58
|
*/
|
|
@@ -133,13 +146,14 @@ class FieldRef$Type extends MessageType<FieldRef> {
|
|
|
133
146
|
constructor() {
|
|
134
147
|
super("MiLaboratories.PL.Base.FieldRef", [
|
|
135
148
|
{ no: 2, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
136
|
-
{ no: 4, name: "resource_signature", kind: "scalar",
|
|
149
|
+
{ no: 4, name: "resource_signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
137
150
|
{ no: 3, name: "field_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
138
151
|
]);
|
|
139
152
|
}
|
|
140
153
|
create(value?: PartialMessage<FieldRef>): FieldRef {
|
|
141
154
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
142
155
|
message.resourceId = 0n;
|
|
156
|
+
message.resourceSignature = new Uint8Array(0);
|
|
143
157
|
message.fieldName = "";
|
|
144
158
|
if (value !== undefined)
|
|
145
159
|
reflectionMergePartial<FieldRef>(this, message, value);
|
|
@@ -153,7 +167,7 @@ class FieldRef$Type extends MessageType<FieldRef> {
|
|
|
153
167
|
case /* uint64 resource_id */ 2:
|
|
154
168
|
message.resourceId = reader.uint64().toBigInt();
|
|
155
169
|
break;
|
|
156
|
-
case /*
|
|
170
|
+
case /* bytes resource_signature */ 4:
|
|
157
171
|
message.resourceSignature = reader.bytes();
|
|
158
172
|
break;
|
|
159
173
|
case /* string field_name */ 3:
|
|
@@ -177,8 +191,8 @@ class FieldRef$Type extends MessageType<FieldRef> {
|
|
|
177
191
|
/* string field_name = 3; */
|
|
178
192
|
if (message.fieldName !== "")
|
|
179
193
|
writer.tag(3, WireType.LengthDelimited).string(message.fieldName);
|
|
180
|
-
/*
|
|
181
|
-
if (message.resourceSignature
|
|
194
|
+
/* bytes resource_signature = 4; */
|
|
195
|
+
if (message.resourceSignature.length)
|
|
182
196
|
writer.tag(4, WireType.LengthDelimited).bytes(message.resourceSignature);
|
|
183
197
|
let u = options.writeUnknownFields;
|
|
184
198
|
if (u !== false)
|
|
@@ -190,3 +204,58 @@ class FieldRef$Type extends MessageType<FieldRef> {
|
|
|
190
204
|
* @generated MessageType for protobuf message MiLaboratories.PL.Base.FieldRef
|
|
191
205
|
*/
|
|
192
206
|
export const FieldRef = new FieldRef$Type();
|
|
207
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
208
|
+
class Color$Type extends MessageType<Color> {
|
|
209
|
+
constructor() {
|
|
210
|
+
super("MiLaboratories.PL.Base.Color", [
|
|
211
|
+
{ no: 1, name: "root", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
212
|
+
{ no: 2, name: "permissions", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
213
|
+
]);
|
|
214
|
+
}
|
|
215
|
+
create(value?: PartialMessage<Color>): Color {
|
|
216
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
217
|
+
message.root = 0n;
|
|
218
|
+
message.permissions = 0;
|
|
219
|
+
if (value !== undefined)
|
|
220
|
+
reflectionMergePartial<Color>(this, message, value);
|
|
221
|
+
return message;
|
|
222
|
+
}
|
|
223
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Color): Color {
|
|
224
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
225
|
+
while (reader.pos < end) {
|
|
226
|
+
let [fieldNo, wireType] = reader.tag();
|
|
227
|
+
switch (fieldNo) {
|
|
228
|
+
case /* uint64 root */ 1:
|
|
229
|
+
message.root = reader.uint64().toBigInt();
|
|
230
|
+
break;
|
|
231
|
+
case /* uint32 permissions */ 2:
|
|
232
|
+
message.permissions = reader.uint32();
|
|
233
|
+
break;
|
|
234
|
+
default:
|
|
235
|
+
let u = options.readUnknownField;
|
|
236
|
+
if (u === "throw")
|
|
237
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
238
|
+
let d = reader.skip(wireType);
|
|
239
|
+
if (u !== false)
|
|
240
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return message;
|
|
244
|
+
}
|
|
245
|
+
internalBinaryWrite(message: Color, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
246
|
+
/* uint64 root = 1; */
|
|
247
|
+
if (message.root !== 0n)
|
|
248
|
+
writer.tag(1, WireType.Varint).uint64(message.root);
|
|
249
|
+
/* uint32 permissions = 2; */
|
|
250
|
+
if (message.permissions !== 0)
|
|
251
|
+
writer.tag(2, WireType.Varint).uint32(message.permissions);
|
|
252
|
+
let u = options.writeUnknownFields;
|
|
253
|
+
if (u !== false)
|
|
254
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
255
|
+
return writer;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @generated MessageType for protobuf message MiLaboratories.PL.Base.Color
|
|
260
|
+
*/
|
|
261
|
+
export const Color = new Color$Type();
|
|
@@ -1260,6 +1260,8 @@ export enum FieldOptions_JSType {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
/**
|
|
1262
1262
|
* If set to RETENTION_SOURCE, the option will be omitted from the binary.
|
|
1263
|
+
* Note: as of January 2023, support for this is in progress and does not yet
|
|
1264
|
+
* have an effect (b/264593489).
|
|
1263
1265
|
*
|
|
1264
1266
|
* @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention
|
|
1265
1267
|
*/
|
|
@@ -1280,7 +1282,8 @@ export enum FieldOptions_OptionRetention {
|
|
|
1280
1282
|
/**
|
|
1281
1283
|
* This indicates the types of entities that the field may apply to when used
|
|
1282
1284
|
* as an option. If it is unset, then the field may be freely used as an
|
|
1283
|
-
* option on any kind of entity.
|
|
1285
|
+
* option on any kind of entity. Note: as of January 2023, support for this is
|
|
1286
|
+
* in progress and does not yet have an effect (b/264593489).
|
|
1284
1287
|
*
|
|
1285
1288
|
* @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType
|
|
1286
1289
|
*/
|
|
@@ -2067,7 +2070,7 @@ export enum Edition {
|
|
|
2067
2070
|
EDITION_2024 = 1001,
|
|
2068
2071
|
/**
|
|
2069
2072
|
* Placeholder editions for testing feature resolution. These should not be
|
|
2070
|
-
* used or
|
|
2073
|
+
* used or relyed on outside of tests.
|
|
2071
2074
|
*
|
|
2072
2075
|
* @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1;
|
|
2073
2076
|
*/
|