@milaboratories/pl-drivers 1.6.3 → 1.6.5
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2026 -2480
- package/dist/index.mjs.map +1 -1
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +48 -0
- package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
- 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 +13 -5
- 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 +2 -2
- 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 +11 -11
- 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 +4 -4
- 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 +10 -10
- 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 +10 -10
- 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 +25 -25
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +8 -8
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +24 -16
- package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +277 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +5344 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +530 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +82 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +91 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +251 -0
- package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
- package/dist/proto/google/api/http.d.ts +46 -42
- package/dist/proto/google/api/http.d.ts.map +1 -1
- package/dist/proto/google/protobuf/any.d.ts +172 -0
- package/dist/proto/google/protobuf/any.d.ts.map +1 -0
- package/dist/proto/google/protobuf/descriptor.d.ts +1003 -170
- package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.d.ts +2 -3
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts +27 -0
- package/dist/proto/google/protobuf/empty.d.ts.map +1 -0
- package/dist/proto/google/protobuf/struct.d.ts +179 -0
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -0
- package/dist/proto/google/protobuf/timestamp.d.ts +3 -6
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/wrappers.d.ts +327 -0
- package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -0
- package/package.json +5 -5
- package/src/clients/download.ts +1 -1
- package/src/clients/upload.ts +1 -1
- package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +125 -0
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +25 -40
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +252 -396
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +25 -37
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +341 -453
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +39 -65
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +398 -630
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +126 -194
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +626 -964
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +102 -153
- package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +741 -1082
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +406 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +14986 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1474 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +181 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +251 -0
- package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +693 -0
- package/src/proto/google/api/http.ts +336 -492
- package/src/proto/google/protobuf/any.ts +326 -0
- package/src/proto/google/protobuf/descriptor.ts +4383 -4772
- package/src/proto/google/protobuf/duration.ts +122 -169
- package/src/proto/google/protobuf/empty.ts +94 -0
- package/src/proto/google/protobuf/struct.ts +484 -0
- package/src/proto/google/protobuf/timestamp.ts +150 -225
- package/src/proto/google/protobuf/wrappers.ts +785 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
2
|
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
//
|
|
@@ -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
|
|
@@ -107,169 +107,122 @@ import { MessageType } from '@protobuf-ts/runtime';
|
|
|
107
107
|
* microsecond should be expressed in JSON format as "3.000001s".
|
|
108
108
|
*
|
|
109
109
|
*
|
|
110
|
-
*
|
|
111
110
|
* @generated from protobuf message google.protobuf.Duration
|
|
112
111
|
*/
|
|
113
112
|
export interface Duration {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
115
|
+
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
116
|
+
* 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
|
117
|
+
*
|
|
118
|
+
* @generated from protobuf field: int64 seconds = 1
|
|
119
|
+
*/
|
|
120
|
+
seconds: bigint;
|
|
121
|
+
/**
|
|
122
|
+
* Signed fractions of a second at nanosecond resolution of the span
|
|
123
|
+
* of time. Durations less than one second are represented with a 0
|
|
124
|
+
* `seconds` field and a positive or negative `nanos` field. For durations
|
|
125
|
+
* of one second or more, a non-zero value for the `nanos` field must be
|
|
126
|
+
* of the same sign as the `seconds` field. Must be from -999,999,999
|
|
127
|
+
* to +999,999,999 inclusive.
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: int32 nanos = 2
|
|
130
|
+
*/
|
|
131
|
+
nanos: number;
|
|
133
132
|
}
|
|
134
133
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
135
134
|
class Duration$Type extends MessageType<Duration> {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
+
* Encode `Duration` to JSON string like "3.000001s".
|
|
143
|
+
*/
|
|
144
|
+
internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue {
|
|
145
|
+
let s = PbLong.from(message.seconds).toNumber();
|
|
146
|
+
if (s > 315576000000 || s < -315576000000)
|
|
147
|
+
throw new Error("Duration value out of range.");
|
|
148
|
+
let text = message.seconds.toString();
|
|
149
|
+
if (s === 0 && message.nanos < 0)
|
|
150
|
+
text = "-" + text;
|
|
151
|
+
if (message.nanos !== 0) {
|
|
152
|
+
let nanosStr = Math.abs(message.nanos).toString();
|
|
153
|
+
nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr;
|
|
154
|
+
if (nanosStr.substring(3) === "000000")
|
|
155
|
+
nanosStr = nanosStr.substring(0, 3);
|
|
156
|
+
else if (nanosStr.substring(6) === "000")
|
|
157
|
+
nanosStr = nanosStr.substring(0, 6);
|
|
158
|
+
text += "." + nanosStr;
|
|
159
|
+
}
|
|
160
|
+
return text + "s";
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Decode `Duration` from JSON string like "3.000001s"
|
|
164
|
+
*/
|
|
165
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration {
|
|
166
|
+
if (typeof json !== "string")
|
|
167
|
+
throw new Error("Unable to parse Duration from JSON " + typeofJsonValue(json) + ". Expected string.");
|
|
168
|
+
let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);
|
|
169
|
+
if (match === null)
|
|
170
|
+
throw new Error("Unable to parse Duration from JSON string. Invalid format.");
|
|
171
|
+
if (!target)
|
|
172
|
+
target = this.create();
|
|
173
|
+
let [, sign, secs, nanos] = match;
|
|
174
|
+
let longSeconds = PbLong.from(sign + secs);
|
|
175
|
+
if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)
|
|
176
|
+
throw new Error("Unable to parse Duration from JSON string. Value out of range.");
|
|
177
|
+
target.seconds = longSeconds.toBigInt();
|
|
178
|
+
if (typeof nanos == "string") {
|
|
179
|
+
let nanosStr = sign + nanos + "0".repeat(9 - nanos.length);
|
|
180
|
+
target.nanos = parseInt(nanosStr);
|
|
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;
|
|
166
191
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
);
|
|
189
|
-
if (!target) target = this.create();
|
|
190
|
-
const [, sign, secs, nanos] = match;
|
|
191
|
-
const longSeconds = PbLong.from(sign + secs);
|
|
192
|
-
if (
|
|
193
|
-
longSeconds.toNumber() > 315576000000
|
|
194
|
-
|| longSeconds.toNumber() < -315576000000
|
|
195
|
-
)
|
|
196
|
-
throw new Error(
|
|
197
|
-
'Unable to parse Duration from JSON string. Value out of range.',
|
|
198
|
-
);
|
|
199
|
-
target.seconds = longSeconds.toBigInt();
|
|
200
|
-
if (typeof nanos == 'string') {
|
|
201
|
-
const nanosStr = sign + nanos + '0'.repeat(9 - nanos.length);
|
|
202
|
-
target.nanos = parseInt(nanosStr);
|
|
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;
|
|
203
213
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
internalBinaryRead(
|
|
217
|
-
reader: IBinaryReader,
|
|
218
|
-
length: number,
|
|
219
|
-
options: BinaryReadOptions,
|
|
220
|
-
target?: Duration,
|
|
221
|
-
): Duration {
|
|
222
|
-
const message = target ?? this.create(),
|
|
223
|
-
end = reader.pos + length;
|
|
224
|
-
while (reader.pos < end) {
|
|
225
|
-
const [fieldNo, wireType] = reader.tag();
|
|
226
|
-
switch (fieldNo) {
|
|
227
|
-
case /* int64 seconds */ 1:
|
|
228
|
-
message.seconds = reader.int64().toBigInt();
|
|
229
|
-
break;
|
|
230
|
-
case /* int32 nanos */ 2:
|
|
231
|
-
message.nanos = reader.int32();
|
|
232
|
-
break;
|
|
233
|
-
default:
|
|
234
|
-
const u = options.readUnknownField;
|
|
235
|
-
if (u === 'throw')
|
|
236
|
-
throw new globalThis.Error(
|
|
237
|
-
`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
|
|
238
|
-
);
|
|
239
|
-
const d = reader.skip(wireType);
|
|
240
|
-
if (u !== false)
|
|
241
|
-
(u === true ? UnknownFieldHandler.onRead : u)(
|
|
242
|
-
this.typeName,
|
|
243
|
-
message,
|
|
244
|
-
fieldNo,
|
|
245
|
-
wireType,
|
|
246
|
-
d,
|
|
247
|
-
);
|
|
248
|
-
}
|
|
214
|
+
internalBinaryWrite(message: Duration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
215
|
+
/* int64 seconds = 1; */
|
|
216
|
+
if (message.seconds !== 0n)
|
|
217
|
+
writer.tag(1, WireType.Varint).int64(message.seconds);
|
|
218
|
+
/* int32 nanos = 2; */
|
|
219
|
+
if (message.nanos !== 0)
|
|
220
|
+
writer.tag(2, WireType.Varint).int32(message.nanos);
|
|
221
|
+
let u = options.writeUnknownFields;
|
|
222
|
+
if (u !== false)
|
|
223
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
224
|
+
return writer;
|
|
249
225
|
}
|
|
250
|
-
return message;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
internalBinaryWrite(
|
|
254
|
-
message: Duration,
|
|
255
|
-
writer: IBinaryWriter,
|
|
256
|
-
options: BinaryWriteOptions,
|
|
257
|
-
): IBinaryWriter {
|
|
258
|
-
/* int64 seconds = 1; */
|
|
259
|
-
if (message.seconds !== 0n)
|
|
260
|
-
writer.tag(1, WireType.Varint).int64(message.seconds);
|
|
261
|
-
/* int32 nanos = 2; */
|
|
262
|
-
if (message.nanos !== 0)
|
|
263
|
-
writer.tag(2, WireType.Varint).int32(message.nanos);
|
|
264
|
-
const u = options.writeUnknownFields;
|
|
265
|
-
if (u !== false)
|
|
266
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(
|
|
267
|
-
this.typeName,
|
|
268
|
-
message,
|
|
269
|
-
writer,
|
|
270
|
-
);
|
|
271
|
-
return writer;
|
|
272
|
-
}
|
|
273
226
|
}
|
|
274
227
|
/**
|
|
275
228
|
* @generated MessageType for protobuf message google.protobuf.Duration
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.0 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
|
|
2
|
+
// @generated from protobuf file "google/protobuf/empty.proto" (package "google.protobuf", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Protocol Buffers - Google's data interchange format
|
|
6
|
+
// Copyright 2008 Google Inc. All rights reserved.
|
|
7
|
+
// https://developers.google.com/protocol-buffers/
|
|
8
|
+
//
|
|
9
|
+
// Redistribution and use in source and binary forms, with or without
|
|
10
|
+
// modification, are permitted provided that the following conditions are
|
|
11
|
+
// met:
|
|
12
|
+
//
|
|
13
|
+
// * Redistributions of source code must retain the above copyright
|
|
14
|
+
// notice, this list of conditions and the following disclaimer.
|
|
15
|
+
// * Redistributions in binary form must reproduce the above
|
|
16
|
+
// copyright notice, this list of conditions and the following disclaimer
|
|
17
|
+
// in the documentation and/or other materials provided with the
|
|
18
|
+
// distribution.
|
|
19
|
+
// * Neither the name of Google Inc. nor the names of its
|
|
20
|
+
// contributors may be used to endorse or promote products derived from
|
|
21
|
+
// this software without specific prior written permission.
|
|
22
|
+
//
|
|
23
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
24
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
25
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
26
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
27
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
28
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
29
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
30
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
31
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
32
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
33
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
|
+
//
|
|
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
|
+
/**
|
|
44
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
45
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
46
|
+
* or the response type of an API method. For instance:
|
|
47
|
+
*
|
|
48
|
+
* service Foo {
|
|
49
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
50
|
+
* }
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf message google.protobuf.Empty
|
|
54
|
+
*/
|
|
55
|
+
export interface Empty {
|
|
56
|
+
}
|
|
57
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
58
|
+
class Empty$Type extends MessageType<Empty> {
|
|
59
|
+
constructor() {
|
|
60
|
+
super("google.protobuf.Empty", []);
|
|
61
|
+
}
|
|
62
|
+
create(value?: PartialMessage<Empty>): Empty {
|
|
63
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
64
|
+
if (value !== undefined)
|
|
65
|
+
reflectionMergePartial<Empty>(this, message, value);
|
|
66
|
+
return message;
|
|
67
|
+
}
|
|
68
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty {
|
|
69
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
70
|
+
while (reader.pos < end) {
|
|
71
|
+
let [fieldNo, wireType] = reader.tag();
|
|
72
|
+
switch (fieldNo) {
|
|
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: 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;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated MessageType for protobuf message google.protobuf.Empty
|
|
93
|
+
*/
|
|
94
|
+
export const Empty = new Empty$Type();
|