@@ -1262,14 +1262,16 @@ export namespace cloudquery.plugin.v3 {
12621262 }
12631263 }
12641264 export class Request extends pb_1 . Message {
1265- #one_of_decls: number [ ] [ ] = [ ] ;
1266- constructor ( data ?: any [ ] | {
1265+ #one_of_decls: number [ ] [ ] = [ [ 6 ] ] ;
1266+ constructor ( data ?: any [ ] | ( {
12671267 tables ?: string [ ] ;
12681268 skip_tables ?: string [ ] ;
12691269 skip_dependent_tables ?: boolean ;
12701270 deterministic_cq_id ?: boolean ;
12711271 backend ?: Sync . BackendOptions ;
1272- } ) {
1272+ } & ( ( {
1273+ shard ?: Sync . Request . Shard ;
1274+ } ) ) ) ) {
12731275 super ( ) ;
12741276 pb_1 . Message . initialize ( this , Array . isArray ( data ) ? data : [ ] , 0 , - 1 , [ 1 , 2 ] , this . #one_of_decls) ;
12751277 if ( ! Array . isArray ( data ) && typeof data == "object" ) {
@@ -1288,6 +1290,9 @@ export namespace cloudquery.plugin.v3 {
12881290 if ( "backend" in data && data . backend != undefined ) {
12891291 this . backend = data . backend ;
12901292 }
1293+ if ( "shard" in data && data . shard != undefined ) {
1294+ this . shard = data . shard ;
1295+ }
12911296 }
12921297 }
12931298 get tables ( ) {
@@ -1323,12 +1328,31 @@ export namespace cloudquery.plugin.v3 {
13231328 get has_backend ( ) {
13241329 return pb_1 . Message . getField ( this , 5 ) != null ;
13251330 }
1331+ get shard ( ) {
1332+ return pb_1 . Message . getWrapperField ( this , Sync . Request . Shard , 6 ) as Sync . Request . Shard ;
1333+ }
1334+ set shard ( value : Sync . Request . Shard ) {
1335+ pb_1 . Message . setOneofWrapperField ( this , 6 , this . #one_of_decls[ 0 ] , value ) ;
1336+ }
1337+ get has_shard ( ) {
1338+ return pb_1 . Message . getField ( this , 6 ) != null ;
1339+ }
1340+ get _shard ( ) {
1341+ const cases : {
1342+ [ index : number ] : "none" | "shard" ;
1343+ } = {
1344+ 0 : "none" ,
1345+ 6 : "shard"
1346+ } ;
1347+ return cases [ pb_1 . Message . computeOneofCase ( this , [ 6 ] ) ] ;
1348+ }
13261349 static fromObject ( data : {
13271350 tables ?: string [ ] ;
13281351 skip_tables ?: string [ ] ;
13291352 skip_dependent_tables ?: boolean ;
13301353 deterministic_cq_id ?: boolean ;
13311354 backend ?: ReturnType < typeof Sync . BackendOptions . prototype . toObject > ;
1355+ shard ?: ReturnType < typeof Sync . Request . Shard . prototype . toObject > ;
13321356 } ) : Request {
13331357 const message = new Request ( { } ) ;
13341358 if ( data . tables != null ) {
@@ -1346,6 +1370,9 @@ export namespace cloudquery.plugin.v3 {
13461370 if ( data . backend != null ) {
13471371 message . backend = Sync . BackendOptions . fromObject ( data . backend ) ;
13481372 }
1373+ if ( data . shard != null ) {
1374+ message . shard = Sync . Request . Shard . fromObject ( data . shard ) ;
1375+ }
13491376 return message ;
13501377 }
13511378 toObject ( ) {
@@ -1355,6 +1382,7 @@ export namespace cloudquery.plugin.v3 {
13551382 skip_dependent_tables ?: boolean ;
13561383 deterministic_cq_id ?: boolean ;
13571384 backend ?: ReturnType < typeof Sync . BackendOptions . prototype . toObject > ;
1385+ shard ?: ReturnType < typeof Sync . Request . Shard . prototype . toObject > ;
13581386 } = { } ;
13591387 if ( this . tables != null ) {
13601388 data . tables = this . tables ;
@@ -1371,6 +1399,9 @@ export namespace cloudquery.plugin.v3 {
13711399 if ( this . backend != null ) {
13721400 data . backend = this . backend . toObject ( ) ;
13731401 }
1402+ if ( this . shard != null ) {
1403+ data . shard = this . shard . toObject ( ) ;
1404+ }
13741405 return data ;
13751406 }
13761407 serialize ( ) : Uint8Array ;
@@ -1387,6 +1418,8 @@ export namespace cloudquery.plugin.v3 {
13871418 writer . writeBool ( 4 , this . deterministic_cq_id ) ;
13881419 if ( this . has_backend )
13891420 writer . writeMessage ( 5 , this . backend , ( ) => this . backend . serialize ( writer ) ) ;
1421+ if ( this . has_shard )
1422+ writer . writeMessage ( 6 , this . shard , ( ) => this . shard . serialize ( writer ) ) ;
13901423 if ( ! w )
13911424 return writer . getResultBuffer ( ) ;
13921425 }
@@ -1411,6 +1444,9 @@ export namespace cloudquery.plugin.v3 {
14111444 case 5 :
14121445 reader . readMessage ( message . backend , ( ) => message . backend = Sync . BackendOptions . deserialize ( reader ) ) ;
14131446 break ;
1447+ case 6 :
1448+ reader . readMessage ( message . shard , ( ) => message . shard = Sync . Request . Shard . deserialize ( reader ) ) ;
1449+ break ;
14141450 default : reader . skipField ( ) ;
14151451 }
14161452 }
@@ -1423,6 +1459,98 @@ export namespace cloudquery.plugin.v3 {
14231459 return Request . deserialize ( bytes ) ;
14241460 }
14251461 }
1462+ export namespace Request {
1463+ export class Shard extends pb_1 . Message {
1464+ #one_of_decls: number [ ] [ ] = [ ] ;
1465+ constructor ( data ?: any [ ] | {
1466+ num ?: number ;
1467+ total ?: number ;
1468+ } ) {
1469+ super ( ) ;
1470+ pb_1 . Message . initialize ( this , Array . isArray ( data ) ? data : [ ] , 0 , - 1 , [ ] , this . #one_of_decls) ;
1471+ if ( ! Array . isArray ( data ) && typeof data == "object" ) {
1472+ if ( "num" in data && data . num != undefined ) {
1473+ this . num = data . num ;
1474+ }
1475+ if ( "total" in data && data . total != undefined ) {
1476+ this . total = data . total ;
1477+ }
1478+ }
1479+ }
1480+ get num ( ) {
1481+ return pb_1 . Message . getFieldWithDefault ( this , 1 , 0 ) as number ;
1482+ }
1483+ set num ( value : number ) {
1484+ pb_1 . Message . setField ( this , 1 , value ) ;
1485+ }
1486+ get total ( ) {
1487+ return pb_1 . Message . getFieldWithDefault ( this , 2 , 0 ) as number ;
1488+ }
1489+ set total ( value : number ) {
1490+ pb_1 . Message . setField ( this , 2 , value ) ;
1491+ }
1492+ static fromObject ( data : {
1493+ num ?: number ;
1494+ total ?: number ;
1495+ } ) : Shard {
1496+ const message = new Shard ( { } ) ;
1497+ if ( data . num != null ) {
1498+ message . num = data . num ;
1499+ }
1500+ if ( data . total != null ) {
1501+ message . total = data . total ;
1502+ }
1503+ return message ;
1504+ }
1505+ toObject ( ) {
1506+ const data : {
1507+ num ?: number ;
1508+ total ?: number ;
1509+ } = { } ;
1510+ if ( this . num != null ) {
1511+ data . num = this . num ;
1512+ }
1513+ if ( this . total != null ) {
1514+ data . total = this . total ;
1515+ }
1516+ return data ;
1517+ }
1518+ serialize ( ) : Uint8Array ;
1519+ serialize ( w : pb_1 . BinaryWriter ) : void ;
1520+ serialize ( w ?: pb_1 . BinaryWriter ) : Uint8Array | void {
1521+ const writer = w || new pb_1 . BinaryWriter ( ) ;
1522+ if ( this . num != 0 )
1523+ writer . writeInt32 ( 1 , this . num ) ;
1524+ if ( this . total != 0 )
1525+ writer . writeInt32 ( 2 , this . total ) ;
1526+ if ( ! w )
1527+ return writer . getResultBuffer ( ) ;
1528+ }
1529+ static deserialize ( bytes : Uint8Array | pb_1 . BinaryReader ) : Shard {
1530+ const reader = bytes instanceof pb_1 . BinaryReader ? bytes : new pb_1 . BinaryReader ( bytes ) , message = new Shard ( ) ;
1531+ while ( reader . nextField ( ) ) {
1532+ if ( reader . isEndGroup ( ) )
1533+ break ;
1534+ switch ( reader . getFieldNumber ( ) ) {
1535+ case 1 :
1536+ message . num = reader . readInt32 ( ) ;
1537+ break ;
1538+ case 2 :
1539+ message . total = reader . readInt32 ( ) ;
1540+ break ;
1541+ default : reader . skipField ( ) ;
1542+ }
1543+ }
1544+ return message ;
1545+ }
1546+ serializeBinary ( ) : Uint8Array {
1547+ return this . serialize ( ) ;
1548+ }
1549+ static deserializeBinary ( bytes : Uint8Array ) : Shard {
1550+ return Shard . deserialize ( bytes ) ;
1551+ }
1552+ }
1553+ }
14261554 export class Response extends pb_1 . Message {
14271555 #one_of_decls: number [ ] [ ] = [ [ 1 , 2 , 3 ] ] ;
14281556 constructor ( data ?: any [ ] | ( { } & ( ( {
0 commit comments