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