@gadgetinc/dateilager 0.2.9 → 0.3.1
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/cjs/binary-client.d.ts +12 -12
- package/dist/cjs/binary-client.js +12 -12
- package/dist/cjs/binary-client.js.map +1 -1
- package/dist/cjs/grpc-client.d.ts +40 -28
- package/dist/cjs/grpc-client.js +51 -27
- package/dist/cjs/grpc-client.js.map +1 -1
- package/dist/cjs/pb/fs_pb.client.d.ts +40 -0
- package/dist/cjs/pb/fs_pb.client.js +28 -0
- package/dist/cjs/pb/fs_pb.client.js.map +1 -1
- package/dist/cjs/pb/fs_pb.d.ts +188 -0
- package/dist/cjs/pb/fs_pb.js +454 -3
- package/dist/cjs/pb/fs_pb.js.map +1 -1
- package/dist/esm/binary-client.d.ts +12 -12
- package/dist/esm/binary-client.js +12 -12
- package/dist/esm/binary-client.js.map +1 -1
- package/dist/esm/grpc-client.d.ts +40 -28
- package/dist/esm/grpc-client.js +51 -27
- package/dist/esm/grpc-client.js.map +1 -1
- package/dist/esm/pb/fs_pb.client.d.ts +40 -0
- package/dist/esm/pb/fs_pb.client.js +28 -0
- package/dist/esm/pb/fs_pb.client.js.map +1 -1
- package/dist/esm/pb/fs_pb.d.ts +188 -0
- package/dist/esm/pb/fs_pb.js +453 -2
- package/dist/esm/pb/fs_pb.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/pb/fs_pb.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Fs = exports.ResetResponse = exports.ResetRequest = exports.SnapshotResponse = exports.SnapshotRequest = exports.InspectResponse = exports.InspectRequest = exports.UpdateResponse = exports.UpdateRequest = exports.GetCompressResponse = exports.GetCompressRequest = exports.GetResponse = exports.GetRequest = exports.ObjectQuery = exports.Objekt = exports.ListProjectsResponse = exports.ListProjectsRequest = exports.Project = exports.DeleteProjectResponse = exports.DeleteProjectRequest = exports.NewProjectResponse = exports.NewProjectRequest = exports.GetCompressResponse_Format = void 0;
|
|
3
|
+
exports.Fs = exports.CloneToProjectResponse = exports.CloneToProjectRequest = exports.GcContentsResponse = exports.GcContentsRequest = exports.GcRandomProjectsResponse = exports.GcRandomProjectsRequest = exports.GcProjectResponse = exports.GcProjectRequest = exports.ResetResponse = exports.ResetRequest = exports.SnapshotResponse = exports.SnapshotRequest = exports.InspectResponse = exports.InspectRequest = exports.UpdateResponse = exports.UpdateRequest = exports.GetCompressResponse = exports.GetCompressRequest = exports.GetResponse = exports.GetRequest = exports.ObjectQuery = exports.Objekt = exports.ListProjectsResponse = exports.ListProjectsRequest = exports.Project = exports.DeleteProjectResponse = exports.DeleteProjectRequest = exports.NewProjectResponse = exports.NewProjectRequest = exports.GetCompressResponse_Format = void 0;
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
// @generated by protobuf-ts 2.
|
|
5
|
+
// @generated by protobuf-ts 2.8.1 with parameter long_type_bigint,ts_nocheck,eslint_disable,add_pb_suffix
|
|
6
6
|
// @generated from protobuf file "fs.proto" (package "pb", syntax proto3)
|
|
7
7
|
// tslint:disable
|
|
8
8
|
// @ts-nocheck
|
|
@@ -1072,6 +1072,453 @@ class ResetResponse$Type extends runtime_5.MessageType {
|
|
|
1072
1072
|
* @generated MessageType for protobuf message pb.ResetResponse
|
|
1073
1073
|
*/
|
|
1074
1074
|
exports.ResetResponse = new ResetResponse$Type();
|
|
1075
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1076
|
+
class GcProjectRequest$Type extends runtime_5.MessageType {
|
|
1077
|
+
constructor() {
|
|
1078
|
+
super("pb.GcProjectRequest", [
|
|
1079
|
+
{ no: 1, name: "project", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1080
|
+
{ no: 2, name: "keep_versions", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1081
|
+
{ no: 3, name: "from_version", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1082
|
+
]);
|
|
1083
|
+
}
|
|
1084
|
+
create(value) {
|
|
1085
|
+
const message = { project: 0n, keepVersions: 0n };
|
|
1086
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1087
|
+
if (value !== undefined)
|
|
1088
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1089
|
+
return message;
|
|
1090
|
+
}
|
|
1091
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1092
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1093
|
+
while (reader.pos < end) {
|
|
1094
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1095
|
+
switch (fieldNo) {
|
|
1096
|
+
case /* int64 project */ 1:
|
|
1097
|
+
message.project = reader.int64().toBigInt();
|
|
1098
|
+
break;
|
|
1099
|
+
case /* int64 keep_versions */ 2:
|
|
1100
|
+
message.keepVersions = reader.int64().toBigInt();
|
|
1101
|
+
break;
|
|
1102
|
+
case /* optional int64 from_version */ 3:
|
|
1103
|
+
message.fromVersion = reader.int64().toBigInt();
|
|
1104
|
+
break;
|
|
1105
|
+
default:
|
|
1106
|
+
let u = options.readUnknownField;
|
|
1107
|
+
if (u === "throw")
|
|
1108
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1109
|
+
let d = reader.skip(wireType);
|
|
1110
|
+
if (u !== false)
|
|
1111
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
return message;
|
|
1115
|
+
}
|
|
1116
|
+
internalBinaryWrite(message, writer, options) {
|
|
1117
|
+
/* int64 project = 1; */
|
|
1118
|
+
if (message.project !== 0n)
|
|
1119
|
+
writer.tag(1, runtime_1.WireType.Varint).int64(message.project);
|
|
1120
|
+
/* int64 keep_versions = 2; */
|
|
1121
|
+
if (message.keepVersions !== 0n)
|
|
1122
|
+
writer.tag(2, runtime_1.WireType.Varint).int64(message.keepVersions);
|
|
1123
|
+
/* optional int64 from_version = 3; */
|
|
1124
|
+
if (message.fromVersion !== undefined)
|
|
1125
|
+
writer.tag(3, runtime_1.WireType.Varint).int64(message.fromVersion);
|
|
1126
|
+
let u = options.writeUnknownFields;
|
|
1127
|
+
if (u !== false)
|
|
1128
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1129
|
+
return writer;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* @generated MessageType for protobuf message pb.GcProjectRequest
|
|
1134
|
+
*/
|
|
1135
|
+
exports.GcProjectRequest = new GcProjectRequest$Type();
|
|
1136
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1137
|
+
class GcProjectResponse$Type extends runtime_5.MessageType {
|
|
1138
|
+
constructor() {
|
|
1139
|
+
super("pb.GcProjectResponse", [
|
|
1140
|
+
{ no: 1, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1141
|
+
{ no: 2, name: "project", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1142
|
+
]);
|
|
1143
|
+
}
|
|
1144
|
+
create(value) {
|
|
1145
|
+
const message = { count: 0n, project: 0n };
|
|
1146
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1147
|
+
if (value !== undefined)
|
|
1148
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1149
|
+
return message;
|
|
1150
|
+
}
|
|
1151
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1152
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1153
|
+
while (reader.pos < end) {
|
|
1154
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1155
|
+
switch (fieldNo) {
|
|
1156
|
+
case /* int64 count */ 1:
|
|
1157
|
+
message.count = reader.int64().toBigInt();
|
|
1158
|
+
break;
|
|
1159
|
+
case /* int64 project */ 2:
|
|
1160
|
+
message.project = reader.int64().toBigInt();
|
|
1161
|
+
break;
|
|
1162
|
+
default:
|
|
1163
|
+
let u = options.readUnknownField;
|
|
1164
|
+
if (u === "throw")
|
|
1165
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1166
|
+
let d = reader.skip(wireType);
|
|
1167
|
+
if (u !== false)
|
|
1168
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
return message;
|
|
1172
|
+
}
|
|
1173
|
+
internalBinaryWrite(message, writer, options) {
|
|
1174
|
+
/* int64 count = 1; */
|
|
1175
|
+
if (message.count !== 0n)
|
|
1176
|
+
writer.tag(1, runtime_1.WireType.Varint).int64(message.count);
|
|
1177
|
+
/* int64 project = 2; */
|
|
1178
|
+
if (message.project !== 0n)
|
|
1179
|
+
writer.tag(2, runtime_1.WireType.Varint).int64(message.project);
|
|
1180
|
+
let u = options.writeUnknownFields;
|
|
1181
|
+
if (u !== false)
|
|
1182
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1183
|
+
return writer;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* @generated MessageType for protobuf message pb.GcProjectResponse
|
|
1188
|
+
*/
|
|
1189
|
+
exports.GcProjectResponse = new GcProjectResponse$Type();
|
|
1190
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1191
|
+
class GcRandomProjectsRequest$Type extends runtime_5.MessageType {
|
|
1192
|
+
constructor() {
|
|
1193
|
+
super("pb.GcRandomProjectsRequest", [
|
|
1194
|
+
{ no: 1, name: "sample", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
|
|
1195
|
+
{ no: 2, name: "keep_versions", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1196
|
+
{ no: 3, name: "from_version", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1197
|
+
]);
|
|
1198
|
+
}
|
|
1199
|
+
create(value) {
|
|
1200
|
+
const message = { sample: 0, keepVersions: 0n };
|
|
1201
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1202
|
+
if (value !== undefined)
|
|
1203
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1204
|
+
return message;
|
|
1205
|
+
}
|
|
1206
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1207
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1208
|
+
while (reader.pos < end) {
|
|
1209
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1210
|
+
switch (fieldNo) {
|
|
1211
|
+
case /* float sample */ 1:
|
|
1212
|
+
message.sample = reader.float();
|
|
1213
|
+
break;
|
|
1214
|
+
case /* int64 keep_versions */ 2:
|
|
1215
|
+
message.keepVersions = reader.int64().toBigInt();
|
|
1216
|
+
break;
|
|
1217
|
+
case /* optional int64 from_version */ 3:
|
|
1218
|
+
message.fromVersion = reader.int64().toBigInt();
|
|
1219
|
+
break;
|
|
1220
|
+
default:
|
|
1221
|
+
let u = options.readUnknownField;
|
|
1222
|
+
if (u === "throw")
|
|
1223
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1224
|
+
let d = reader.skip(wireType);
|
|
1225
|
+
if (u !== false)
|
|
1226
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
return message;
|
|
1230
|
+
}
|
|
1231
|
+
internalBinaryWrite(message, writer, options) {
|
|
1232
|
+
/* float sample = 1; */
|
|
1233
|
+
if (message.sample !== 0)
|
|
1234
|
+
writer.tag(1, runtime_1.WireType.Bit32).float(message.sample);
|
|
1235
|
+
/* int64 keep_versions = 2; */
|
|
1236
|
+
if (message.keepVersions !== 0n)
|
|
1237
|
+
writer.tag(2, runtime_1.WireType.Varint).int64(message.keepVersions);
|
|
1238
|
+
/* optional int64 from_version = 3; */
|
|
1239
|
+
if (message.fromVersion !== undefined)
|
|
1240
|
+
writer.tag(3, runtime_1.WireType.Varint).int64(message.fromVersion);
|
|
1241
|
+
let u = options.writeUnknownFields;
|
|
1242
|
+
if (u !== false)
|
|
1243
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1244
|
+
return writer;
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* @generated MessageType for protobuf message pb.GcRandomProjectsRequest
|
|
1249
|
+
*/
|
|
1250
|
+
exports.GcRandomProjectsRequest = new GcRandomProjectsRequest$Type();
|
|
1251
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1252
|
+
class GcRandomProjectsResponse$Type extends runtime_5.MessageType {
|
|
1253
|
+
constructor() {
|
|
1254
|
+
super("pb.GcRandomProjectsResponse", [
|
|
1255
|
+
{ no: 1, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1256
|
+
{ no: 2, name: "projects", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1257
|
+
]);
|
|
1258
|
+
}
|
|
1259
|
+
create(value) {
|
|
1260
|
+
const message = { count: 0n, projects: [] };
|
|
1261
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1262
|
+
if (value !== undefined)
|
|
1263
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1264
|
+
return message;
|
|
1265
|
+
}
|
|
1266
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1267
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1268
|
+
while (reader.pos < end) {
|
|
1269
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1270
|
+
switch (fieldNo) {
|
|
1271
|
+
case /* int64 count */ 1:
|
|
1272
|
+
message.count = reader.int64().toBigInt();
|
|
1273
|
+
break;
|
|
1274
|
+
case /* repeated int64 projects */ 2:
|
|
1275
|
+
if (wireType === runtime_1.WireType.LengthDelimited)
|
|
1276
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1277
|
+
message.projects.push(reader.int64().toBigInt());
|
|
1278
|
+
else
|
|
1279
|
+
message.projects.push(reader.int64().toBigInt());
|
|
1280
|
+
break;
|
|
1281
|
+
default:
|
|
1282
|
+
let u = options.readUnknownField;
|
|
1283
|
+
if (u === "throw")
|
|
1284
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1285
|
+
let d = reader.skip(wireType);
|
|
1286
|
+
if (u !== false)
|
|
1287
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
return message;
|
|
1291
|
+
}
|
|
1292
|
+
internalBinaryWrite(message, writer, options) {
|
|
1293
|
+
/* int64 count = 1; */
|
|
1294
|
+
if (message.count !== 0n)
|
|
1295
|
+
writer.tag(1, runtime_1.WireType.Varint).int64(message.count);
|
|
1296
|
+
/* repeated int64 projects = 2; */
|
|
1297
|
+
if (message.projects.length) {
|
|
1298
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork();
|
|
1299
|
+
for (let i = 0; i < message.projects.length; i++)
|
|
1300
|
+
writer.int64(message.projects[i]);
|
|
1301
|
+
writer.join();
|
|
1302
|
+
}
|
|
1303
|
+
let u = options.writeUnknownFields;
|
|
1304
|
+
if (u !== false)
|
|
1305
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1306
|
+
return writer;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* @generated MessageType for protobuf message pb.GcRandomProjectsResponse
|
|
1311
|
+
*/
|
|
1312
|
+
exports.GcRandomProjectsResponse = new GcRandomProjectsResponse$Type();
|
|
1313
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1314
|
+
class GcContentsRequest$Type extends runtime_5.MessageType {
|
|
1315
|
+
constructor() {
|
|
1316
|
+
super("pb.GcContentsRequest", [
|
|
1317
|
+
{ no: 1, name: "sample", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
|
|
1318
|
+
]);
|
|
1319
|
+
}
|
|
1320
|
+
create(value) {
|
|
1321
|
+
const message = { sample: 0 };
|
|
1322
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1323
|
+
if (value !== undefined)
|
|
1324
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1325
|
+
return message;
|
|
1326
|
+
}
|
|
1327
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1328
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1329
|
+
while (reader.pos < end) {
|
|
1330
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1331
|
+
switch (fieldNo) {
|
|
1332
|
+
case /* float sample */ 1:
|
|
1333
|
+
message.sample = reader.float();
|
|
1334
|
+
break;
|
|
1335
|
+
default:
|
|
1336
|
+
let u = options.readUnknownField;
|
|
1337
|
+
if (u === "throw")
|
|
1338
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1339
|
+
let d = reader.skip(wireType);
|
|
1340
|
+
if (u !== false)
|
|
1341
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
return message;
|
|
1345
|
+
}
|
|
1346
|
+
internalBinaryWrite(message, writer, options) {
|
|
1347
|
+
/* float sample = 1; */
|
|
1348
|
+
if (message.sample !== 0)
|
|
1349
|
+
writer.tag(1, runtime_1.WireType.Bit32).float(message.sample);
|
|
1350
|
+
let u = options.writeUnknownFields;
|
|
1351
|
+
if (u !== false)
|
|
1352
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1353
|
+
return writer;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* @generated MessageType for protobuf message pb.GcContentsRequest
|
|
1358
|
+
*/
|
|
1359
|
+
exports.GcContentsRequest = new GcContentsRequest$Type();
|
|
1360
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1361
|
+
class GcContentsResponse$Type extends runtime_5.MessageType {
|
|
1362
|
+
constructor() {
|
|
1363
|
+
super("pb.GcContentsResponse", [
|
|
1364
|
+
{ no: 1, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1365
|
+
]);
|
|
1366
|
+
}
|
|
1367
|
+
create(value) {
|
|
1368
|
+
const message = { count: 0n };
|
|
1369
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1370
|
+
if (value !== undefined)
|
|
1371
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1372
|
+
return message;
|
|
1373
|
+
}
|
|
1374
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1375
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1376
|
+
while (reader.pos < end) {
|
|
1377
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1378
|
+
switch (fieldNo) {
|
|
1379
|
+
case /* int64 count */ 1:
|
|
1380
|
+
message.count = reader.int64().toBigInt();
|
|
1381
|
+
break;
|
|
1382
|
+
default:
|
|
1383
|
+
let u = options.readUnknownField;
|
|
1384
|
+
if (u === "throw")
|
|
1385
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1386
|
+
let d = reader.skip(wireType);
|
|
1387
|
+
if (u !== false)
|
|
1388
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
return message;
|
|
1392
|
+
}
|
|
1393
|
+
internalBinaryWrite(message, writer, options) {
|
|
1394
|
+
/* int64 count = 1; */
|
|
1395
|
+
if (message.count !== 0n)
|
|
1396
|
+
writer.tag(1, runtime_1.WireType.Varint).int64(message.count);
|
|
1397
|
+
let u = options.writeUnknownFields;
|
|
1398
|
+
if (u !== false)
|
|
1399
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1400
|
+
return writer;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* @generated MessageType for protobuf message pb.GcContentsResponse
|
|
1405
|
+
*/
|
|
1406
|
+
exports.GcContentsResponse = new GcContentsResponse$Type();
|
|
1407
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1408
|
+
class CloneToProjectRequest$Type extends runtime_5.MessageType {
|
|
1409
|
+
constructor() {
|
|
1410
|
+
super("pb.CloneToProjectRequest", [
|
|
1411
|
+
{ no: 1, name: "source", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1412
|
+
{ no: 2, name: "from_version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1413
|
+
{ no: 3, name: "to_version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1414
|
+
{ no: 4, name: "target", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1415
|
+
]);
|
|
1416
|
+
}
|
|
1417
|
+
create(value) {
|
|
1418
|
+
const message = { source: 0n, fromVersion: 0n, toVersion: 0n, target: 0n };
|
|
1419
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1420
|
+
if (value !== undefined)
|
|
1421
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1422
|
+
return message;
|
|
1423
|
+
}
|
|
1424
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1425
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1426
|
+
while (reader.pos < end) {
|
|
1427
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1428
|
+
switch (fieldNo) {
|
|
1429
|
+
case /* int64 source */ 1:
|
|
1430
|
+
message.source = reader.int64().toBigInt();
|
|
1431
|
+
break;
|
|
1432
|
+
case /* int64 from_version */ 2:
|
|
1433
|
+
message.fromVersion = reader.int64().toBigInt();
|
|
1434
|
+
break;
|
|
1435
|
+
case /* int64 to_version */ 3:
|
|
1436
|
+
message.toVersion = reader.int64().toBigInt();
|
|
1437
|
+
break;
|
|
1438
|
+
case /* int64 target */ 4:
|
|
1439
|
+
message.target = reader.int64().toBigInt();
|
|
1440
|
+
break;
|
|
1441
|
+
default:
|
|
1442
|
+
let u = options.readUnknownField;
|
|
1443
|
+
if (u === "throw")
|
|
1444
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1445
|
+
let d = reader.skip(wireType);
|
|
1446
|
+
if (u !== false)
|
|
1447
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
return message;
|
|
1451
|
+
}
|
|
1452
|
+
internalBinaryWrite(message, writer, options) {
|
|
1453
|
+
/* int64 source = 1; */
|
|
1454
|
+
if (message.source !== 0n)
|
|
1455
|
+
writer.tag(1, runtime_1.WireType.Varint).int64(message.source);
|
|
1456
|
+
/* int64 from_version = 2; */
|
|
1457
|
+
if (message.fromVersion !== 0n)
|
|
1458
|
+
writer.tag(2, runtime_1.WireType.Varint).int64(message.fromVersion);
|
|
1459
|
+
/* int64 to_version = 3; */
|
|
1460
|
+
if (message.toVersion !== 0n)
|
|
1461
|
+
writer.tag(3, runtime_1.WireType.Varint).int64(message.toVersion);
|
|
1462
|
+
/* int64 target = 4; */
|
|
1463
|
+
if (message.target !== 0n)
|
|
1464
|
+
writer.tag(4, runtime_1.WireType.Varint).int64(message.target);
|
|
1465
|
+
let u = options.writeUnknownFields;
|
|
1466
|
+
if (u !== false)
|
|
1467
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1468
|
+
return writer;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* @generated MessageType for protobuf message pb.CloneToProjectRequest
|
|
1473
|
+
*/
|
|
1474
|
+
exports.CloneToProjectRequest = new CloneToProjectRequest$Type();
|
|
1475
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1476
|
+
class CloneToProjectResponse$Type extends runtime_5.MessageType {
|
|
1477
|
+
constructor() {
|
|
1478
|
+
super("pb.CloneToProjectResponse", [
|
|
1479
|
+
{ no: 1, name: "latest_version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1480
|
+
]);
|
|
1481
|
+
}
|
|
1482
|
+
create(value) {
|
|
1483
|
+
const message = { latestVersion: 0n };
|
|
1484
|
+
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
|
1485
|
+
if (value !== undefined)
|
|
1486
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1487
|
+
return message;
|
|
1488
|
+
}
|
|
1489
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1490
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1491
|
+
while (reader.pos < end) {
|
|
1492
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1493
|
+
switch (fieldNo) {
|
|
1494
|
+
case /* int64 latest_version */ 1:
|
|
1495
|
+
message.latestVersion = reader.int64().toBigInt();
|
|
1496
|
+
break;
|
|
1497
|
+
default:
|
|
1498
|
+
let u = options.readUnknownField;
|
|
1499
|
+
if (u === "throw")
|
|
1500
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1501
|
+
let d = reader.skip(wireType);
|
|
1502
|
+
if (u !== false)
|
|
1503
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
return message;
|
|
1507
|
+
}
|
|
1508
|
+
internalBinaryWrite(message, writer, options) {
|
|
1509
|
+
/* int64 latest_version = 1; */
|
|
1510
|
+
if (message.latestVersion !== 0n)
|
|
1511
|
+
writer.tag(1, runtime_1.WireType.Varint).int64(message.latestVersion);
|
|
1512
|
+
let u = options.writeUnknownFields;
|
|
1513
|
+
if (u !== false)
|
|
1514
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1515
|
+
return writer;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* @generated MessageType for protobuf message pb.CloneToProjectResponse
|
|
1520
|
+
*/
|
|
1521
|
+
exports.CloneToProjectResponse = new CloneToProjectResponse$Type();
|
|
1075
1522
|
/**
|
|
1076
1523
|
* @generated ServiceType for protobuf service pb.Fs
|
|
1077
1524
|
*/
|
|
@@ -1084,6 +1531,10 @@ exports.Fs = new runtime_rpc_1.ServiceType("pb.Fs", [
|
|
|
1084
1531
|
{ name: "Update", clientStreaming: true, options: {}, I: exports.UpdateRequest, O: exports.UpdateResponse },
|
|
1085
1532
|
{ name: "Inspect", options: {}, I: exports.InspectRequest, O: exports.InspectResponse },
|
|
1086
1533
|
{ name: "Snapshot", options: {}, I: exports.SnapshotRequest, O: exports.SnapshotResponse },
|
|
1087
|
-
{ name: "Reset", options: {}, I: exports.ResetRequest, O: exports.ResetResponse }
|
|
1534
|
+
{ name: "Reset", options: {}, I: exports.ResetRequest, O: exports.ResetResponse },
|
|
1535
|
+
{ name: "GcProject", options: {}, I: exports.GcProjectRequest, O: exports.GcProjectResponse },
|
|
1536
|
+
{ name: "GcRandomProjects", options: {}, I: exports.GcRandomProjectsRequest, O: exports.GcRandomProjectsResponse },
|
|
1537
|
+
{ name: "GcContents", options: {}, I: exports.GcContentsRequest, O: exports.GcContentsResponse },
|
|
1538
|
+
{ name: "CloneToProject", options: {}, I: exports.CloneToProjectRequest, O: exports.CloneToProjectResponse }
|
|
1088
1539
|
]);
|
|
1089
1540
|
//# sourceMappingURL=fs_pb.js.map
|