@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.
Files changed (116) hide show
  1. package/dist/core/auth.d.ts.map +1 -1
  2. package/dist/core/cache.d.ts.map +1 -1
  3. package/dist/core/client.d.ts +1 -1
  4. package/dist/core/client.d.ts.map +1 -1
  5. package/dist/core/default_client.d.ts.map +1 -1
  6. package/dist/core/driver.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts.map +1 -1
  8. package/dist/core/final.d.ts.map +1 -1
  9. package/dist/core/ll_client.d.ts.map +1 -1
  10. package/dist/core/ll_transaction.d.ts.map +1 -1
  11. package/dist/core/transaction.d.ts +1 -1
  12. package/dist/core/transaction.d.ts.map +1 -1
  13. package/dist/core/type_conversion.d.ts.map +1 -1
  14. package/dist/core/types.d.ts +1 -1
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/core/unauth_client.d.ts.map +1 -1
  17. package/dist/helpers/pl.d.ts.map +1 -1
  18. package/dist/helpers/poll.d.ts.map +1 -1
  19. package/dist/helpers/state_helpers.d.ts.map +1 -1
  20. package/dist/helpers/tx_helpers.d.ts.map +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +4069 -4075
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
  26. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  28. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  29. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  30. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  31. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
  32. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  33. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
  34. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  35. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  36. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  37. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  38. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  39. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
  40. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  41. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
  42. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  43. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
  44. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
  45. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
  46. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  47. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
  48. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  49. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
  50. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
  51. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
  52. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
  53. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
  54. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
  55. package/dist/proto/google/api/http.d.ts +89 -89
  56. package/dist/proto/google/api/http.d.ts.map +1 -1
  57. package/dist/proto/google/protobuf/any.d.ts +52 -52
  58. package/dist/proto/google/protobuf/any.d.ts.map +1 -1
  59. package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
  60. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  61. package/dist/proto/google/protobuf/duration.d.ts +19 -19
  62. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  63. package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
  64. package/dist/proto/google/protobuf/struct.d.ts +56 -56
  65. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  66. package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
  67. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  68. package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
  69. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  70. package/dist/test/test_config.d.ts.map +1 -1
  71. package/dist/util/util.d.ts.map +1 -1
  72. package/package.json +7 -3
  73. package/src/core/auth.ts +3 -3
  74. package/src/core/cache.ts +1 -1
  75. package/src/core/client.ts +39 -31
  76. package/src/core/config.ts +21 -21
  77. package/src/core/default_client.ts +15 -14
  78. package/src/core/driver.ts +4 -4
  79. package/src/core/errors.ts +3 -3
  80. package/src/core/final.ts +7 -4
  81. package/src/core/ll_client.ts +31 -27
  82. package/src/core/ll_transaction.ts +17 -17
  83. package/src/core/stat.ts +2 -2
  84. package/src/core/transaction.ts +93 -95
  85. package/src/core/type_conversion.ts +11 -8
  86. package/src/core/types.ts +25 -26
  87. package/src/core/unauth_client.ts +6 -6
  88. package/src/helpers/pl.ts +8 -7
  89. package/src/helpers/poll.ts +25 -21
  90. package/src/helpers/state_helpers.ts +2 -1
  91. package/src/helpers/tx_helpers.ts +4 -3
  92. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
  93. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
  94. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
  95. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
  96. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
  97. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
  98. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
  99. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
  100. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
  101. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
  102. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
  103. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
  104. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
  105. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
  106. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
  107. package/src/proto/google/api/http.ts +280 -271
  108. package/src/proto/google/protobuf/any.ts +149 -139
  109. package/src/proto/google/protobuf/descriptor.ts +2952 -2853
  110. package/src/proto/google/protobuf/duration.ts +107 -102
  111. package/src/proto/google/protobuf/empty.ts +41 -38
  112. package/src/proto/google/protobuf/struct.ts +336 -322
  113. package/src/proto/google/protobuf/timestamp.ts +131 -123
  114. package/src/proto/google/protobuf/wrappers.ts +536 -491
  115. package/src/test/test_config.ts +21 -19
  116. package/src/util/util.ts +1 -0
@@ -1,31 +1,31 @@
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/import.proto" (package "MiLaboratories.PL._Stub", syntax proto3)
3
3
  // tslint:disable
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 { Struct } from "../../../../../google/protobuf/struct";
14
- import { ListValue } from "../../../../../google/protobuf/struct";
15
- import { Value } from "../../../../../google/protobuf/struct";
16
- import { Timestamp } from "../../../../../google/protobuf/timestamp";
17
- import { Duration } from "../../../../../google/protobuf/duration";
18
- import { DoubleValue } from "../../../../../google/protobuf/wrappers";
19
- import { FloatValue } from "../../../../../google/protobuf/wrappers";
20
- import { UInt64Value } from "../../../../../google/protobuf/wrappers";
21
- import { Int64Value } from "../../../../../google/protobuf/wrappers";
22
- import { UInt32Value } from "../../../../../google/protobuf/wrappers";
23
- import { Int32Value } from "../../../../../google/protobuf/wrappers";
24
- import { StringValue } from "../../../../../google/protobuf/wrappers";
25
- import { BoolValue } from "../../../../../google/protobuf/wrappers";
26
- import { BytesValue } from "../../../../../google/protobuf/wrappers";
27
- import { Any } from "../../../../../google/protobuf/any";
28
- import { Empty } from "../../../../../google/protobuf/empty";
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 { Struct } from '../../../../../google/protobuf/struct';
14
+ import { ListValue } from '../../../../../google/protobuf/struct';
15
+ import { Value } from '../../../../../google/protobuf/struct';
16
+ import { Timestamp } from '../../../../../google/protobuf/timestamp';
17
+ import { Duration } from '../../../../../google/protobuf/duration';
18
+ import { DoubleValue } from '../../../../../google/protobuf/wrappers';
19
+ import { FloatValue } from '../../../../../google/protobuf/wrappers';
20
+ import { UInt64Value } from '../../../../../google/protobuf/wrappers';
21
+ import { Int64Value } from '../../../../../google/protobuf/wrappers';
22
+ import { UInt32Value } from '../../../../../google/protobuf/wrappers';
23
+ import { Int32Value } from '../../../../../google/protobuf/wrappers';
24
+ import { StringValue } from '../../../../../google/protobuf/wrappers';
25
+ import { BoolValue } from '../../../../../google/protobuf/wrappers';
26
+ import { BytesValue } from '../../../../../google/protobuf/wrappers';
27
+ import { Any } from '../../../../../google/protobuf/any';
28
+ import { Empty } from '../../../../../google/protobuf/empty';
29
29
  /**
30
30
  * Makes protobuf to forcefully compile all well-known types into code (for TS)
31
31
  * or just add dependencies on them (for go)
@@ -33,217 +33,220 @@ import { Empty } from "../../../../../google/protobuf/empty";
33
33
  * @generated from protobuf message MiLaboratories.PL._Stub._ImportWellKnown
34
34
  */
35
35
  export interface _ImportWellKnown {
36
- /**
36
+ /**
37
37
  * @generated from protobuf field: google.protobuf.Empty empty = 1;
38
38
  */
39
- empty?: Empty;
40
- /**
39
+ empty?: Empty;
40
+ /**
41
41
  * @generated from protobuf field: google.protobuf.Any any = 2;
42
42
  */
43
- any?: Any;
44
- /**
43
+ any?: Any;
44
+ /**
45
45
  * @generated from protobuf field: google.protobuf.BytesValue bytes = 3;
46
46
  */
47
- bytes?: BytesValue;
48
- /**
47
+ bytes?: BytesValue;
48
+ /**
49
49
  * @generated from protobuf field: google.protobuf.BoolValue bool = 4;
50
50
  */
51
- bool?: BoolValue;
52
- /**
51
+ bool?: BoolValue;
52
+ /**
53
53
  * @generated from protobuf field: google.protobuf.StringValue string = 5;
54
54
  */
55
- string?: StringValue;
56
- /**
55
+ string?: StringValue;
56
+ /**
57
57
  * @generated from protobuf field: google.protobuf.Int32Value int32 = 6;
58
58
  */
59
- int32?: Int32Value;
60
- /**
59
+ int32?: Int32Value;
60
+ /**
61
61
  * @generated from protobuf field: google.protobuf.UInt32Value uint32 = 7;
62
62
  */
63
- uint32?: UInt32Value;
64
- /**
63
+ uint32?: UInt32Value;
64
+ /**
65
65
  * @generated from protobuf field: google.protobuf.Int64Value int64 = 8;
66
66
  */
67
- int64?: Int64Value;
68
- /**
67
+ int64?: Int64Value;
68
+ /**
69
69
  * @generated from protobuf field: google.protobuf.UInt64Value uint64 = 9;
70
70
  */
71
- uint64?: UInt64Value;
72
- /**
71
+ uint64?: UInt64Value;
72
+ /**
73
73
  * @generated from protobuf field: google.protobuf.FloatValue float = 10;
74
74
  */
75
- float?: FloatValue;
76
- /**
75
+ float?: FloatValue;
76
+ /**
77
77
  * @generated from protobuf field: google.protobuf.DoubleValue double = 11;
78
78
  */
79
- double?: DoubleValue;
80
- /**
79
+ double?: DoubleValue;
80
+ /**
81
81
  * @generated from protobuf field: google.protobuf.Duration duration = 12;
82
82
  */
83
- duration?: Duration;
84
- /**
83
+ duration?: Duration;
84
+ /**
85
85
  * @generated from protobuf field: google.protobuf.Timestamp timestamp = 13;
86
86
  */
87
- timestamp?: Timestamp;
88
- /**
87
+ timestamp?: Timestamp;
88
+ /**
89
89
  * @generated from protobuf field: google.protobuf.Value value = 14;
90
90
  */
91
- value?: Value;
92
- /**
91
+ value?: Value;
92
+ /**
93
93
  * @generated from protobuf field: google.protobuf.ListValue list = 15;
94
94
  */
95
- list?: ListValue;
96
- /**
95
+ list?: ListValue;
96
+ /**
97
97
  * @generated from protobuf field: google.protobuf.Struct struct = 16;
98
98
  */
99
- struct?: Struct;
99
+ struct?: Struct;
100
100
  }
101
101
  // @generated message type with reflection information, may provide speed optimized methods
102
102
  class _ImportWellKnown$Type extends MessageType<_ImportWellKnown> {
103
- constructor() {
104
- super("MiLaboratories.PL._Stub._ImportWellKnown", [
105
- { no: 1, name: "empty", kind: "message", T: () => Empty },
106
- { no: 2, name: "any", kind: "message", T: () => Any },
107
- { no: 3, name: "bytes", kind: "message", T: () => BytesValue },
108
- { no: 4, name: "bool", kind: "message", T: () => BoolValue },
109
- { no: 5, name: "string", kind: "message", T: () => StringValue },
110
- { no: 6, name: "int32", kind: "message", T: () => Int32Value },
111
- { no: 7, name: "uint32", kind: "message", T: () => UInt32Value },
112
- { no: 8, name: "int64", kind: "message", T: () => Int64Value },
113
- { no: 9, name: "uint64", kind: "message", T: () => UInt64Value },
114
- { no: 10, name: "float", kind: "message", T: () => FloatValue },
115
- { no: 11, name: "double", kind: "message", T: () => DoubleValue },
116
- { no: 12, name: "duration", kind: "message", T: () => Duration },
117
- { no: 13, name: "timestamp", kind: "message", T: () => Timestamp },
118
- { no: 14, name: "value", kind: "message", T: () => Value },
119
- { no: 15, name: "list", kind: "message", T: () => ListValue },
120
- { no: 16, name: "struct", kind: "message", T: () => Struct }
121
- ]);
122
- }
123
- create(value?: PartialMessage<_ImportWellKnown>): _ImportWellKnown {
124
- const message = globalThis.Object.create((this.messagePrototype!));
125
- if (value !== undefined)
126
- reflectionMergePartial<_ImportWellKnown>(this, message, value);
127
- return message;
128
- }
129
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: _ImportWellKnown): _ImportWellKnown {
130
- let message = target ?? this.create(), end = reader.pos + length;
131
- while (reader.pos < end) {
132
- let [fieldNo, wireType] = reader.tag();
133
- switch (fieldNo) {
134
- case /* google.protobuf.Empty empty */ 1:
135
- message.empty = Empty.internalBinaryRead(reader, reader.uint32(), options, message.empty);
136
- break;
137
- case /* google.protobuf.Any any */ 2:
138
- message.any = Any.internalBinaryRead(reader, reader.uint32(), options, message.any);
139
- break;
140
- case /* google.protobuf.BytesValue bytes */ 3:
141
- message.bytes = BytesValue.internalBinaryRead(reader, reader.uint32(), options, message.bytes);
142
- break;
143
- case /* google.protobuf.BoolValue bool */ 4:
144
- message.bool = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.bool);
145
- break;
146
- case /* google.protobuf.StringValue string */ 5:
147
- message.string = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.string);
148
- break;
149
- case /* google.protobuf.Int32Value int32 */ 6:
150
- message.int32 = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.int32);
151
- break;
152
- case /* google.protobuf.UInt32Value uint32 */ 7:
153
- message.uint32 = UInt32Value.internalBinaryRead(reader, reader.uint32(), options, message.uint32);
154
- break;
155
- case /* google.protobuf.Int64Value int64 */ 8:
156
- message.int64 = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.int64);
157
- break;
158
- case /* google.protobuf.UInt64Value uint64 */ 9:
159
- message.uint64 = UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.uint64);
160
- break;
161
- case /* google.protobuf.FloatValue float */ 10:
162
- message.float = FloatValue.internalBinaryRead(reader, reader.uint32(), options, message.float);
163
- break;
164
- case /* google.protobuf.DoubleValue double */ 11:
165
- message.double = DoubleValue.internalBinaryRead(reader, reader.uint32(), options, message.double);
166
- break;
167
- case /* google.protobuf.Duration duration */ 12:
168
- message.duration = Duration.internalBinaryRead(reader, reader.uint32(), options, message.duration);
169
- break;
170
- case /* google.protobuf.Timestamp timestamp */ 13:
171
- message.timestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamp);
172
- break;
173
- case /* google.protobuf.Value value */ 14:
174
- message.value = Value.internalBinaryRead(reader, reader.uint32(), options, message.value);
175
- break;
176
- case /* google.protobuf.ListValue list */ 15:
177
- message.list = ListValue.internalBinaryRead(reader, reader.uint32(), options, message.list);
178
- break;
179
- case /* google.protobuf.Struct struct */ 16:
180
- message.struct = Struct.internalBinaryRead(reader, reader.uint32(), options, message.struct);
181
- break;
182
- default:
183
- let u = options.readUnknownField;
184
- if (u === "throw")
185
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
186
- let d = reader.skip(wireType);
187
- if (u !== false)
188
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
189
- }
190
- }
191
- return message;
192
- }
193
- internalBinaryWrite(message: _ImportWellKnown, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
194
- /* google.protobuf.Empty empty = 1; */
195
- if (message.empty)
196
- Empty.internalBinaryWrite(message.empty, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
197
- /* google.protobuf.Any any = 2; */
198
- if (message.any)
199
- Any.internalBinaryWrite(message.any, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
200
- /* google.protobuf.BytesValue bytes = 3; */
201
- if (message.bytes)
202
- BytesValue.internalBinaryWrite(message.bytes, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
203
- /* google.protobuf.BoolValue bool = 4; */
204
- if (message.bool)
205
- BoolValue.internalBinaryWrite(message.bool, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
206
- /* google.protobuf.StringValue string = 5; */
207
- if (message.string)
208
- StringValue.internalBinaryWrite(message.string, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
209
- /* google.protobuf.Int32Value int32 = 6; */
210
- if (message.int32)
211
- Int32Value.internalBinaryWrite(message.int32, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
212
- /* google.protobuf.UInt32Value uint32 = 7; */
213
- if (message.uint32)
214
- UInt32Value.internalBinaryWrite(message.uint32, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
215
- /* google.protobuf.Int64Value int64 = 8; */
216
- if (message.int64)
217
- Int64Value.internalBinaryWrite(message.int64, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
218
- /* google.protobuf.UInt64Value uint64 = 9; */
219
- if (message.uint64)
220
- UInt64Value.internalBinaryWrite(message.uint64, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
221
- /* google.protobuf.FloatValue float = 10; */
222
- if (message.float)
223
- FloatValue.internalBinaryWrite(message.float, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
224
- /* google.protobuf.DoubleValue double = 11; */
225
- if (message.double)
226
- DoubleValue.internalBinaryWrite(message.double, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
227
- /* google.protobuf.Duration duration = 12; */
228
- if (message.duration)
229
- Duration.internalBinaryWrite(message.duration, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
230
- /* google.protobuf.Timestamp timestamp = 13; */
231
- if (message.timestamp)
232
- Timestamp.internalBinaryWrite(message.timestamp, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
233
- /* google.protobuf.Value value = 14; */
234
- if (message.value)
235
- Value.internalBinaryWrite(message.value, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
236
- /* google.protobuf.ListValue list = 15; */
237
- if (message.list)
238
- ListValue.internalBinaryWrite(message.list, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
239
- /* google.protobuf.Struct struct = 16; */
240
- if (message.struct)
241
- Struct.internalBinaryWrite(message.struct, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
242
- let u = options.writeUnknownFields;
243
- if (u !== false)
244
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
245
- return writer;
103
+ constructor() {
104
+ super('MiLaboratories.PL._Stub._ImportWellKnown', [
105
+ { no: 1, name: 'empty', kind: 'message', T: () => Empty },
106
+ { no: 2, name: 'any', kind: 'message', T: () => Any },
107
+ { no: 3, name: 'bytes', kind: 'message', T: () => BytesValue },
108
+ { no: 4, name: 'bool', kind: 'message', T: () => BoolValue },
109
+ { no: 5, name: 'string', kind: 'message', T: () => StringValue },
110
+ { no: 6, name: 'int32', kind: 'message', T: () => Int32Value },
111
+ { no: 7, name: 'uint32', kind: 'message', T: () => UInt32Value },
112
+ { no: 8, name: 'int64', kind: 'message', T: () => Int64Value },
113
+ { no: 9, name: 'uint64', kind: 'message', T: () => UInt64Value },
114
+ { no: 10, name: 'float', kind: 'message', T: () => FloatValue },
115
+ { no: 11, name: 'double', kind: 'message', T: () => DoubleValue },
116
+ { no: 12, name: 'duration', kind: 'message', T: () => Duration },
117
+ { no: 13, name: 'timestamp', kind: 'message', T: () => Timestamp },
118
+ { no: 14, name: 'value', kind: 'message', T: () => Value },
119
+ { no: 15, name: 'list', kind: 'message', T: () => ListValue },
120
+ { no: 16, name: 'struct', kind: 'message', T: () => Struct },
121
+ ]);
122
+ }
123
+
124
+ create(value?: PartialMessage<_ImportWellKnown>): _ImportWellKnown {
125
+ const message = globalThis.Object.create((this.messagePrototype!));
126
+ if (value !== undefined)
127
+ reflectionMergePartial<_ImportWellKnown>(this, message, value);
128
+ return message;
129
+ }
130
+
131
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: _ImportWellKnown): _ImportWellKnown {
132
+ const message = target ?? this.create(), end = reader.pos + length;
133
+ while (reader.pos < end) {
134
+ const [fieldNo, wireType] = reader.tag();
135
+ switch (fieldNo) {
136
+ case /* google.protobuf.Empty empty */ 1:
137
+ message.empty = Empty.internalBinaryRead(reader, reader.uint32(), options, message.empty);
138
+ break;
139
+ case /* google.protobuf.Any any */ 2:
140
+ message.any = Any.internalBinaryRead(reader, reader.uint32(), options, message.any);
141
+ break;
142
+ case /* google.protobuf.BytesValue bytes */ 3:
143
+ message.bytes = BytesValue.internalBinaryRead(reader, reader.uint32(), options, message.bytes);
144
+ break;
145
+ case /* google.protobuf.BoolValue bool */ 4:
146
+ message.bool = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.bool);
147
+ break;
148
+ case /* google.protobuf.StringValue string */ 5:
149
+ message.string = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.string);
150
+ break;
151
+ case /* google.protobuf.Int32Value int32 */ 6:
152
+ message.int32 = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.int32);
153
+ break;
154
+ case /* google.protobuf.UInt32Value uint32 */ 7:
155
+ message.uint32 = UInt32Value.internalBinaryRead(reader, reader.uint32(), options, message.uint32);
156
+ break;
157
+ case /* google.protobuf.Int64Value int64 */ 8:
158
+ message.int64 = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.int64);
159
+ break;
160
+ case /* google.protobuf.UInt64Value uint64 */ 9:
161
+ message.uint64 = UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.uint64);
162
+ break;
163
+ case /* google.protobuf.FloatValue float */ 10:
164
+ message.float = FloatValue.internalBinaryRead(reader, reader.uint32(), options, message.float);
165
+ break;
166
+ case /* google.protobuf.DoubleValue double */ 11:
167
+ message.double = DoubleValue.internalBinaryRead(reader, reader.uint32(), options, message.double);
168
+ break;
169
+ case /* google.protobuf.Duration duration */ 12:
170
+ message.duration = Duration.internalBinaryRead(reader, reader.uint32(), options, message.duration);
171
+ break;
172
+ case /* google.protobuf.Timestamp timestamp */ 13:
173
+ message.timestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamp);
174
+ break;
175
+ case /* google.protobuf.Value value */ 14:
176
+ message.value = Value.internalBinaryRead(reader, reader.uint32(), options, message.value);
177
+ break;
178
+ case /* google.protobuf.ListValue list */ 15:
179
+ message.list = ListValue.internalBinaryRead(reader, reader.uint32(), options, message.list);
180
+ break;
181
+ case /* google.protobuf.Struct struct */ 16:
182
+ message.struct = Struct.internalBinaryRead(reader, reader.uint32(), options, message.struct);
183
+ break;
184
+ default:
185
+ const u = options.readUnknownField;
186
+ if (u === 'throw')
187
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
188
+ const d = reader.skip(wireType);
189
+ if (u !== false)
190
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
191
+ }
246
192
  }
193
+ return message;
194
+ }
195
+
196
+ internalBinaryWrite(message: _ImportWellKnown, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
197
+ /* google.protobuf.Empty empty = 1; */
198
+ if (message.empty)
199
+ Empty.internalBinaryWrite(message.empty, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
200
+ /* google.protobuf.Any any = 2; */
201
+ if (message.any)
202
+ Any.internalBinaryWrite(message.any, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
203
+ /* google.protobuf.BytesValue bytes = 3; */
204
+ if (message.bytes)
205
+ BytesValue.internalBinaryWrite(message.bytes, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
206
+ /* google.protobuf.BoolValue bool = 4; */
207
+ if (message.bool)
208
+ BoolValue.internalBinaryWrite(message.bool, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
209
+ /* google.protobuf.StringValue string = 5; */
210
+ if (message.string)
211
+ StringValue.internalBinaryWrite(message.string, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
212
+ /* google.protobuf.Int32Value int32 = 6; */
213
+ if (message.int32)
214
+ Int32Value.internalBinaryWrite(message.int32, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
215
+ /* google.protobuf.UInt32Value uint32 = 7; */
216
+ if (message.uint32)
217
+ UInt32Value.internalBinaryWrite(message.uint32, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
218
+ /* google.protobuf.Int64Value int64 = 8; */
219
+ if (message.int64)
220
+ Int64Value.internalBinaryWrite(message.int64, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
221
+ /* google.protobuf.UInt64Value uint64 = 9; */
222
+ if (message.uint64)
223
+ UInt64Value.internalBinaryWrite(message.uint64, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
224
+ /* google.protobuf.FloatValue float = 10; */
225
+ if (message.float)
226
+ FloatValue.internalBinaryWrite(message.float, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
227
+ /* google.protobuf.DoubleValue double = 11; */
228
+ if (message.double)
229
+ DoubleValue.internalBinaryWrite(message.double, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
230
+ /* google.protobuf.Duration duration = 12; */
231
+ if (message.duration)
232
+ Duration.internalBinaryWrite(message.duration, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
233
+ /* google.protobuf.Timestamp timestamp = 13; */
234
+ if (message.timestamp)
235
+ Timestamp.internalBinaryWrite(message.timestamp, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
236
+ /* google.protobuf.Value value = 14; */
237
+ if (message.value)
238
+ Value.internalBinaryWrite(message.value, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
239
+ /* google.protobuf.ListValue list = 15; */
240
+ if (message.list)
241
+ ListValue.internalBinaryWrite(message.list, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
242
+ /* google.protobuf.Struct struct = 16; */
243
+ if (message.struct)
244
+ Struct.internalBinaryWrite(message.struct, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
245
+ const u = options.writeUnknownFields;
246
+ if (u !== false)
247
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
248
+ return writer;
249
+ }
247
250
  }
248
251
  /**
249
252
  * @generated MessageType for protobuf message MiLaboratories.PL._Stub._ImportWellKnown