Server returned me binary file -- https://pastebin.com/E4jxdF0W
I want to find .proto structure of the binary file
So, I added the file to the site -- https://protogen.marcgravell.com/decode/
And received
I created proto file (but don't receive valid text)
What should I change in my proto structure?
syntax = "proto2";
message Cities {
repeated City city = 1;
}
message City {
optional string name = 2;
optional string name2 = 3;
optional string name3 = 4;
optional string name4 = 5;
optional string name5 = 6;
optional string name6 = 7;
optional int32 name7 = 8;
optional int32 name8 = 9;
optional int32 name9 = 10;
optional string name10 = 11;
}
UPDATE 1 I used
protoc --decode_raw < binary_file.protobuf
And received result
1 {
1: "U\222\017\352c\021\021\346\204\237RT\000\020\266\010"
2: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263"
4 {
1: 0x426fc1a3
2: 0x41f286ea
}
5: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263"
5: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263\320\260"
5: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263\321\203"
5: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263"
5: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263\320\276\320\274"
5: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263\320\265"
5: "\320\241\320\260\320\275\320\272\321\202-\320\237\320\265\321\202\320\265\321\200\320\261\321\203\321\200\320\263\320\265"
6: "sankt-peterburg"
7: 2
}
2 {
1: "\224\331\203\202B\303\021\346\224\031RT\000\020\266\010"
2: "\260\336\t\360I\026I\006\217\232t\2021T\030B"
3: "\320\237\321\217\321\202\321\221\321\200\320\276\321\207\320\272\320\260"
4: "https://leonardo.edadeal.io/dyn/re/retailers/images/icons/sq/85cd6908f8a34aefbe66dd1948cc3d39.png"
5: "https://leonardo.edadeal.io/dyn/re/retailers/images/logos/sq/992af68cffaa47de9ff23079648074ad.png"
6: "eb2316"
7: 733
8: 55
9: 425
10: "5ka"
}
2 {
1: "\224\331\205\336B\303\021\346\224\031RT\000\020\266\010"
2: "\260\336\t\360I\026I\006\217\232t\2021T\030B"
3: "\320\224\320\270\320\272\321\201\320\270"
4: "https://leonardo.edadeal.io/dyn/re/retailers/images/icons/sq/146db05ebc81464cbf4872675cb2e761.png"
5: "https://leonardo.edadeal.io/dyn/re/retailers/images/logos/sq/9c2b2c291f134929949fa4daab88252f.png"
6: "FF8A38"
7: 691
8: 61
9: 276
10: "dixy"
}