File indexing completed on 2024-05-19 15:23:14

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>highlight.proto</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (Protobuf) - Theme (Breeze Light)"/>
0006 </head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
0007 syntax = <span style="color:#bf0303;">&quot;proto2&quot;</span>;
0008 
0009 <span style="font-weight:bold;">package</span> example;
0010 
0011 <span style="font-weight:bold;">message</span> Object {
0012   <span style="font-weight:bold;">required</span> <span style="color:#0057ae;">string</span> name = <span style="color:#b08000;">1</span>;
0013   <span style="font-weight:bold;">required</span> <span style="color:#0057ae;">int32</span> identifier = <span style="color:#b08000;">2</span>;
0014   <span style="font-weight:bold;">optional</span> <span style="color:#0057ae;">string</span> address = <span style="color:#b08000;">3</span>;
0015 
0016   <span style="font-weight:bold;">enum</span> ObjectType {
0017     LOCAL = <span style="color:#b08000;">0</span>;
0018     REMOTE = <span style="color:#b08000;">1</span>;
0019     NEITHER = <span style="color:#b08000;">2</span>;
0020   }
0021 
0022   <span style="font-weight:bold;">message</span> ObjectData {
0023     <span style="font-weight:bold;">required</span> <span style="color:#0057ae;">string</span> number = <span style="color:#b08000;">1</span>;
0024     <span style="font-weight:bold;">optional</span> ObjectType type = <span style="color:#b08000;">2</span> [<span style="font-weight:bold;">default</span> = NEITHER];
0025   }
0026 
0027   <span style="font-weight:bold;">repeated</span> ObjectData dataList = <span style="color:#b08000;">4</span>;
0028 }
0029 
0030 <span style="font-weight:bold;">message</span> ObjectList {
0031   <span style="font-weight:bold;">repeated</span> Object object = <span style="color:#b08000;">1</span>;
0032 }
0033 </pre></body></html>