@milaboratories/pl-client 2.7.13 → 2.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/cache.d.ts.map +1 -1
- package/dist/core/client.d.ts +1 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/default_client.d.ts.map +1 -1
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/transaction.d.ts +1 -1
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/type_conversion.d.ts.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/helpers/pl.d.ts.map +1 -1
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/state_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4069 -4075
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
- package/dist/proto/google/api/http.d.ts +89 -89
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +52 -52
- package/dist/proto/google/protobuf/any.d.ts.map +1 -1
- package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +19 -19
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
- package/dist/proto/google/protobuf/struct.d.ts +56 -56
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/util/util.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/core/auth.ts +3 -3
- package/src/core/cache.ts +1 -1
- package/src/core/client.ts +39 -31
- package/src/core/config.ts +21 -21
- package/src/core/default_client.ts +15 -14
- package/src/core/driver.ts +4 -4
- package/src/core/errors.ts +3 -3
- package/src/core/final.ts +7 -4
- package/src/core/ll_client.ts +31 -27
- package/src/core/ll_transaction.ts +17 -17
- package/src/core/stat.ts +2 -2
- package/src/core/transaction.ts +93 -95
- package/src/core/type_conversion.ts +11 -8
- package/src/core/types.ts +25 -26
- package/src/core/unauth_client.ts +6 -6
- package/src/helpers/pl.ts +8 -7
- package/src/helpers/poll.ts +25 -21
- package/src/helpers/state_helpers.ts +2 -1
- package/src/helpers/tx_helpers.ts +4 -3
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
- package/src/proto/google/api/http.ts +280 -271
- package/src/proto/google/protobuf/any.ts +149 -139
- package/src/proto/google/protobuf/descriptor.ts +2952 -2853
- package/src/proto/google/protobuf/duration.ts +107 -102
- package/src/proto/google/protobuf/empty.ts +41 -38
- package/src/proto/google/protobuf/struct.ts +336 -322
- package/src/proto/google/protobuf/timestamp.ts +131 -123
- package/src/proto/google/protobuf/wrappers.ts +536 -491
- package/src/test/test_config.ts +21 -19
- package/src/util/util.ts +1 -0
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
33
33
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
34
|
//
|
|
35
|
-
import type { BinaryWriteOptions } from
|
|
36
|
-
import type { IBinaryWriter } from
|
|
37
|
-
import { WireType } from
|
|
38
|
-
import type { BinaryReadOptions } from
|
|
39
|
-
import type { IBinaryReader } from
|
|
40
|
-
import { UnknownFieldHandler } from
|
|
41
|
-
import type { PartialMessage } from
|
|
42
|
-
import { reflectionMergePartial } from
|
|
43
|
-
import { typeofJsonValue } from
|
|
44
|
-
import type { JsonValue } from
|
|
45
|
-
import type { JsonReadOptions } from
|
|
46
|
-
import type { JsonWriteOptions } from
|
|
47
|
-
import { PbLong } from
|
|
48
|
-
import { MessageType } from
|
|
35
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
36
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
37
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
38
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
39
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
40
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
41
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
42
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
43
|
+
import { typeofJsonValue } from '@protobuf-ts/runtime';
|
|
44
|
+
import type { JsonValue } from '@protobuf-ts/runtime';
|
|
45
|
+
import type { JsonReadOptions } from '@protobuf-ts/runtime';
|
|
46
|
+
import type { JsonWriteOptions } from '@protobuf-ts/runtime';
|
|
47
|
+
import { PbLong } from '@protobuf-ts/runtime';
|
|
48
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
49
49
|
/**
|
|
50
50
|
* A Duration represents a signed, fixed-length span of time represented
|
|
51
51
|
* as a count of seconds and fractions of seconds at nanosecond
|
|
@@ -110,15 +110,15 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
110
110
|
* @generated from protobuf message google.protobuf.Duration
|
|
111
111
|
*/
|
|
112
112
|
export interface Duration {
|
|
113
|
-
|
|
113
|
+
/**
|
|
114
114
|
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
115
115
|
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
116
116
|
* 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
|
117
117
|
*
|
|
118
118
|
* @generated from protobuf field: int64 seconds = 1;
|
|
119
119
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
seconds: bigint;
|
|
121
|
+
/**
|
|
122
122
|
* Signed fractions of a second at nanosecond resolution of the span
|
|
123
123
|
* of time. Durations less than one second are represented with a 0
|
|
124
124
|
* `seconds` field and a positive or negative `nanos` field. For durations
|
|
@@ -128,101 +128,106 @@ export interface Duration {
|
|
|
128
128
|
*
|
|
129
129
|
* @generated from protobuf field: int32 nanos = 2;
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
nanos: number;
|
|
132
132
|
}
|
|
133
133
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
134
134
|
class Duration$Type extends MessageType<Duration> {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
135
|
+
constructor() {
|
|
136
|
+
super('google.protobuf.Duration', [
|
|
137
|
+
{ no: 1, name: 'seconds', kind: 'scalar', T: 3 /* ScalarType.INT64 */, L: 0 /* LongType.BIGINT */ },
|
|
138
|
+
{ no: 2, name: 'nanos', kind: 'scalar', T: 5 /* ScalarType.INT32 */ },
|
|
139
|
+
]);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
142
143
|
* Encode `Duration` to JSON string like "3.000001s".
|
|
143
144
|
*/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
return text + "s";
|
|
145
|
+
internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue {
|
|
146
|
+
const s = PbLong.from(message.seconds).toNumber();
|
|
147
|
+
if (s > 315576000000 || s < -315576000000)
|
|
148
|
+
throw new Error('Duration value out of range.');
|
|
149
|
+
let text = message.seconds.toString();
|
|
150
|
+
if (s === 0 && message.nanos < 0)
|
|
151
|
+
text = '-' + text;
|
|
152
|
+
if (message.nanos !== 0) {
|
|
153
|
+
let nanosStr = Math.abs(message.nanos).toString();
|
|
154
|
+
nanosStr = '0'.repeat(9 - nanosStr.length) + nanosStr;
|
|
155
|
+
if (nanosStr.substring(3) === '000000')
|
|
156
|
+
nanosStr = nanosStr.substring(0, 3);
|
|
157
|
+
else if (nanosStr.substring(6) === '000')
|
|
158
|
+
nanosStr = nanosStr.substring(0, 6);
|
|
159
|
+
text += '.' + nanosStr;
|
|
161
160
|
}
|
|
162
|
-
|
|
161
|
+
return text + 's';
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
163
165
|
* Decode `Duration` from JSON string like "3.000001s"
|
|
164
166
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
return target;
|
|
183
|
-
}
|
|
184
|
-
create(value?: PartialMessage<Duration>): Duration {
|
|
185
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
186
|
-
message.seconds = 0n;
|
|
187
|
-
message.nanos = 0;
|
|
188
|
-
if (value !== undefined)
|
|
189
|
-
reflectionMergePartial<Duration>(this, message, value);
|
|
190
|
-
return message;
|
|
191
|
-
}
|
|
192
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Duration): Duration {
|
|
193
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
194
|
-
while (reader.pos < end) {
|
|
195
|
-
let [fieldNo, wireType] = reader.tag();
|
|
196
|
-
switch (fieldNo) {
|
|
197
|
-
case /* int64 seconds */ 1:
|
|
198
|
-
message.seconds = reader.int64().toBigInt();
|
|
199
|
-
break;
|
|
200
|
-
case /* int32 nanos */ 2:
|
|
201
|
-
message.nanos = reader.int32();
|
|
202
|
-
break;
|
|
203
|
-
default:
|
|
204
|
-
let u = options.readUnknownField;
|
|
205
|
-
if (u === "throw")
|
|
206
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
207
|
-
let d = reader.skip(wireType);
|
|
208
|
-
if (u !== false)
|
|
209
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
return message;
|
|
167
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration {
|
|
168
|
+
if (typeof json !== 'string')
|
|
169
|
+
throw new Error('Unable to parse Duration from JSON ' + typeofJsonValue(json) + '. Expected string.');
|
|
170
|
+
const match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);
|
|
171
|
+
if (match === null)
|
|
172
|
+
throw new Error('Unable to parse Duration from JSON string. Invalid format.');
|
|
173
|
+
if (!target)
|
|
174
|
+
target = this.create();
|
|
175
|
+
const [, sign, secs, nanos] = match;
|
|
176
|
+
const longSeconds = PbLong.from(sign + secs);
|
|
177
|
+
if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)
|
|
178
|
+
throw new Error('Unable to parse Duration from JSON string. Value out of range.');
|
|
179
|
+
target.seconds = longSeconds.toBigInt();
|
|
180
|
+
if (typeof nanos == 'string') {
|
|
181
|
+
const nanosStr = sign + nanos + '0'.repeat(9 - nanos.length);
|
|
182
|
+
target.nanos = parseInt(nanosStr);
|
|
213
183
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
184
|
+
return target;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
create(value?: PartialMessage<Duration>): Duration {
|
|
188
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
189
|
+
message.seconds = 0n;
|
|
190
|
+
message.nanos = 0;
|
|
191
|
+
if (value !== undefined)
|
|
192
|
+
reflectionMergePartial<Duration>(this, message, value);
|
|
193
|
+
return message;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Duration): Duration {
|
|
197
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
198
|
+
while (reader.pos < end) {
|
|
199
|
+
const [fieldNo, wireType] = reader.tag();
|
|
200
|
+
switch (fieldNo) {
|
|
201
|
+
case /* int64 seconds */ 1:
|
|
202
|
+
message.seconds = reader.int64().toBigInt();
|
|
203
|
+
break;
|
|
204
|
+
case /* int32 nanos */ 2:
|
|
205
|
+
message.nanos = reader.int32();
|
|
206
|
+
break;
|
|
207
|
+
default:
|
|
208
|
+
const u = options.readUnknownField;
|
|
209
|
+
if (u === 'throw')
|
|
210
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
211
|
+
const d = reader.skip(wireType);
|
|
212
|
+
if (u !== false)
|
|
213
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
214
|
+
}
|
|
225
215
|
}
|
|
216
|
+
return message;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
internalBinaryWrite(message: Duration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
220
|
+
/* int64 seconds = 1; */
|
|
221
|
+
if (message.seconds !== 0n)
|
|
222
|
+
writer.tag(1, WireType.Varint).int64(message.seconds);
|
|
223
|
+
/* int32 nanos = 2; */
|
|
224
|
+
if (message.nanos !== 0)
|
|
225
|
+
writer.tag(2, WireType.Varint).int32(message.nanos);
|
|
226
|
+
const u = options.writeUnknownFields;
|
|
227
|
+
if (u !== false)
|
|
228
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
229
|
+
return writer;
|
|
230
|
+
}
|
|
226
231
|
}
|
|
227
232
|
/**
|
|
228
233
|
* @generated MessageType for protobuf message google.protobuf.Duration
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
33
33
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
34
|
//
|
|
35
|
-
import type { BinaryWriteOptions } from
|
|
36
|
-
import type { IBinaryWriter } from
|
|
37
|
-
import type { BinaryReadOptions } from
|
|
38
|
-
import type { IBinaryReader } from
|
|
39
|
-
import { UnknownFieldHandler } from
|
|
40
|
-
import type { PartialMessage } from
|
|
41
|
-
import { reflectionMergePartial } from
|
|
42
|
-
import { MessageType } from
|
|
35
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
36
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
37
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
38
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
39
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
40
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
41
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
42
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
43
43
|
/**
|
|
44
44
|
* A generic empty message that you can re-use to avoid defining duplicated
|
|
45
45
|
* empty messages in your APIs. A typical example is to use it as the request
|
|
@@ -56,37 +56,40 @@ export interface Empty {
|
|
|
56
56
|
}
|
|
57
57
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
58
58
|
class Empty$Type extends MessageType<Empty> {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
85
|
-
let u = options.writeUnknownFields;
|
|
86
|
-
if (u !== false)
|
|
87
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
88
|
-
return writer;
|
|
59
|
+
constructor() {
|
|
60
|
+
super('google.protobuf.Empty', []);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
create(value?: PartialMessage<Empty>): Empty {
|
|
64
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
65
|
+
if (value !== undefined)
|
|
66
|
+
reflectionMergePartial<Empty>(this, message, value);
|
|
67
|
+
return message;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty {
|
|
71
|
+
const message = target ?? this.create(), end = reader.pos + length;
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const [fieldNo, wireType] = reader.tag();
|
|
74
|
+
switch (fieldNo) {
|
|
75
|
+
default:
|
|
76
|
+
const u = options.readUnknownField;
|
|
77
|
+
if (u === 'throw')
|
|
78
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
79
|
+
const d = reader.skip(wireType);
|
|
80
|
+
if (u !== false)
|
|
81
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
82
|
+
}
|
|
89
83
|
}
|
|
84
|
+
return message;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
88
|
+
const u = options.writeUnknownFields;
|
|
89
|
+
if (u !== false)
|
|
90
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
91
|
+
return writer;
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
94
|
/**
|
|
92
95
|
* @generated MessageType for protobuf message google.protobuf.Empty
|