github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/internal/testEnv/pb/singleton/singleton.proto (about) 1 syntax = "proto3"; 2 package singleton; 3 import "options.proto"; 4 option go_package = "./;singleton"; 5 6 7 enum Enum { 8 None = 0; 9 Something = 1; 10 Else = 2; 11 } 12 13 14 message Single1 { 15 option (rony_model) = { 16 singleton: true 17 }; 18 int32 ID = 1; 19 int32 ShardKey = 2; 20 string P1 = 3; 21 repeated string P2 = 4; 22 uint64 P5 = 5; 23 Enum Enum = 7 ; 24 } 25 26 message Single2 { 27 option (rony_model) = { 28 singleton: true 29 }; 30 int64 ID = 1; 31 int32 ShardKey = 2; 32 string P1 = 3 ; 33 repeated string P2 = 4; 34 uint64 P5 = 5; 35 } 36 37