github.com/RomiChan/protobuf@v0.1.1-0.20230204044148-2ed269a2e54d/proto/internal/testproto/proto2.proto (about) 1 syntax = "proto2"; 2 3 option go_package = "./;testproto"; 4 5 message Proto2 { 6 optional bool bool_value = 1; 7 optional int32 int32_val = 2; 8 optional uint32 uint32_val = 3; 9 optional int64 int64_val = 4; 10 optional uint64 uint64_val = 5; 11 optional float float_val = 6; 12 optional double double_val = 7; 13 optional string string_val = 8; 14 optional bytes bytes_val = 9; 15 optional fixed32 fixed32_val = 10; 16 optional fixed64 fixed64_val = 11; 17 optional sint32 sint32_val = 12; 18 optional sint64 sint64_val = 13; 19 20 optional NestedMessage nested = 14; 21 22 // todo(wdvxdr): support sfixed type 23 // optional sfixed32 sfixed32_val = ?; 24 // optional sfixed64 sfixed64_val = ?; 25 26 message NestedMessage { 27 optional int32 int32_val = 1; 28 optional int64 int64_val = 2; 29 optional string string_val = 3; 30 } 31 }