11#[ derive( Clone , PartialEq , :: prost:: Message ) ]
2- pub struct EntitiesChanges {
3- #[ prost( bytes="vec" , tag="1" ) ]
4- pub block_id : :: prost:: alloc:: vec:: Vec < u8 > ,
5- #[ prost( uint64, tag="2" ) ]
6- pub block_number : u64 ,
7- #[ prost( bytes="vec" , tag="3" ) ]
8- pub prev_block_id : :: prost:: alloc:: vec:: Vec < u8 > ,
9- #[ prost( uint64, tag="4" ) ]
10- pub prev_block_number : u64 ,
2+ pub struct EntityChanges {
113 #[ prost( message, repeated, tag="5" ) ]
124 pub entity_changes : :: prost:: alloc:: vec:: Vec < EntityChange > ,
135}
146#[ derive( Clone , PartialEq , :: prost:: Message ) ]
157pub struct EntityChange {
168 #[ prost( string, tag="1" ) ]
179 pub entity : :: prost:: alloc:: string:: String ,
18- #[ prost( bytes= "vec" , tag="2" ) ]
19- pub id : :: prost:: alloc:: vec :: Vec < u8 > ,
10+ #[ prost( string , tag="2" ) ]
11+ pub id : :: prost:: alloc:: string :: String ,
2012 #[ prost( uint64, tag="3" ) ]
2113 pub ordinal : u64 ,
2214 #[ prost( enumeration="entity_change::Operation" , tag="4" ) ]
@@ -37,32 +29,43 @@ pub mod entity_change {
3729 }
3830}
3931#[ derive( Clone , PartialEq , :: prost:: Message ) ]
32+ pub struct Value {
33+ #[ prost( oneof="value::Typed" , tags="1, 2, 3, 4, 5, 6, 10" ) ]
34+ pub typed : :: core:: option:: Option < value:: Typed > ,
35+ }
36+ /// Nested message and enum types in `Value`.
37+ pub mod value {
38+ #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
39+ pub enum Typed {
40+ #[ prost( int32, tag="1" ) ]
41+ Int32 ( i32 ) ,
42+ #[ prost( string, tag="2" ) ]
43+ Bigdecimal ( :: prost:: alloc:: string:: String ) ,
44+ #[ prost( string, tag="3" ) ]
45+ Bigint ( :: prost:: alloc:: string:: String ) ,
46+ #[ prost( string, tag="4" ) ]
47+ String ( :: prost:: alloc:: string:: String ) ,
48+ #[ prost( bytes, tag="5" ) ]
49+ Bytes ( :: prost:: alloc:: vec:: Vec < u8 > ) ,
50+ #[ prost( bool , tag="6" ) ]
51+ Bool ( bool ) ,
52+ //reserved 7 to 9; // For future types
53+
54+ #[ prost( message, tag="10" ) ]
55+ Array ( super :: Array ) ,
56+ }
57+ }
58+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
59+ pub struct Array {
60+ #[ prost( message, repeated, tag="1" ) ]
61+ pub value : :: prost:: alloc:: vec:: Vec < Value > ,
62+ }
63+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
4064pub struct Field {
4165 #[ prost( string, tag="1" ) ]
4266 pub name : :: prost:: alloc:: string:: String ,
43- #[ prost( enumeration="field::Type" , tag="2" ) ]
44- pub value_type : i32 ,
45- #[ prost( bytes="vec" , tag="3" ) ]
46- pub new_value : :: prost:: alloc:: vec:: Vec < u8 > ,
47- #[ prost( bool , tag="4" ) ]
48- pub new_value_null : bool ,
49- #[ prost( bytes="vec" , tag="5" ) ]
50- pub old_value : :: prost:: alloc:: vec:: Vec < u8 > ,
51- #[ prost( bool , tag="6" ) ]
52- pub old_value_null : bool ,
53- }
54- /// Nested message and enum types in `Field`.
55- pub mod field {
56- #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
57- #[ repr( i32 ) ]
58- pub enum Type {
59- /// Protobuf default should not be used, this is used so that the consume can ensure that the value was actually specified
60- Unset = 0 ,
61- Bigdecimal = 1 ,
62- Bigint = 2 ,
63- /// int32
64- Int = 3 ,
65- Bytes = 4 ,
66- String = 5 ,
67- }
67+ #[ prost( message, optional, tag="3" ) ]
68+ pub new_value : :: core:: option:: Option < Value > ,
69+ #[ prost( message, optional, tag="5" ) ]
70+ pub old_value : :: core:: option:: Option < Value > ,
6871}
0 commit comments