github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/internal/testEnv/pb/singleton/singleton.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: singleton.proto 6 7 package singleton 8 9 import ( 10 _ "github.com/ronaksoft/rony" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type Enum int32 25 26 const ( 27 Enum_None Enum = 0 28 Enum_Something Enum = 1 29 Enum_Else Enum = 2 30 ) 31 32 // Enum value maps for Enum. 33 var ( 34 Enum_name = map[int32]string{ 35 0: "None", 36 1: "Something", 37 2: "Else", 38 } 39 Enum_value = map[string]int32{ 40 "None": 0, 41 "Something": 1, 42 "Else": 2, 43 } 44 ) 45 46 func (x Enum) Enum() *Enum { 47 p := new(Enum) 48 *p = x 49 return p 50 } 51 52 func (x Enum) String() string { 53 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 54 } 55 56 func (Enum) Descriptor() protoreflect.EnumDescriptor { 57 return file_singleton_proto_enumTypes[0].Descriptor() 58 } 59 60 func (Enum) Type() protoreflect.EnumType { 61 return &file_singleton_proto_enumTypes[0] 62 } 63 64 func (x Enum) Number() protoreflect.EnumNumber { 65 return protoreflect.EnumNumber(x) 66 } 67 68 // Deprecated: Use Enum.Descriptor instead. 69 func (Enum) EnumDescriptor() ([]byte, []int) { 70 return file_singleton_proto_rawDescGZIP(), []int{0} 71 } 72 73 type Single1 struct { 74 state protoimpl.MessageState 75 sizeCache protoimpl.SizeCache 76 unknownFields protoimpl.UnknownFields 77 78 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` 79 ShardKey int32 `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"` 80 P1 string `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"` 81 P2 []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"` 82 P5 uint64 `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"` 83 Enum Enum `protobuf:"varint,7,opt,name=Enum,proto3,enum=singleton.Enum" json:"Enum,omitempty"` 84 } 85 86 func (x *Single1) Reset() { 87 *x = Single1{} 88 if protoimpl.UnsafeEnabled { 89 mi := &file_singleton_proto_msgTypes[0] 90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 91 ms.StoreMessageInfo(mi) 92 } 93 } 94 95 func (x *Single1) String() string { 96 return protoimpl.X.MessageStringOf(x) 97 } 98 99 func (*Single1) ProtoMessage() {} 100 101 func (x *Single1) ProtoReflect() protoreflect.Message { 102 mi := &file_singleton_proto_msgTypes[0] 103 if protoimpl.UnsafeEnabled && x != nil { 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 if ms.LoadMessageInfo() == nil { 106 ms.StoreMessageInfo(mi) 107 } 108 return ms 109 } 110 return mi.MessageOf(x) 111 } 112 113 // Deprecated: Use Single1.ProtoReflect.Descriptor instead. 114 func (*Single1) Descriptor() ([]byte, []int) { 115 return file_singleton_proto_rawDescGZIP(), []int{0} 116 } 117 118 func (x *Single1) GetID() int32 { 119 if x != nil { 120 return x.ID 121 } 122 return 0 123 } 124 125 func (x *Single1) GetShardKey() int32 { 126 if x != nil { 127 return x.ShardKey 128 } 129 return 0 130 } 131 132 func (x *Single1) GetP1() string { 133 if x != nil { 134 return x.P1 135 } 136 return "" 137 } 138 139 func (x *Single1) GetP2() []string { 140 if x != nil { 141 return x.P2 142 } 143 return nil 144 } 145 146 func (x *Single1) GetP5() uint64 { 147 if x != nil { 148 return x.P5 149 } 150 return 0 151 } 152 153 func (x *Single1) GetEnum() Enum { 154 if x != nil { 155 return x.Enum 156 } 157 return Enum_None 158 } 159 160 type Single2 struct { 161 state protoimpl.MessageState 162 sizeCache protoimpl.SizeCache 163 unknownFields protoimpl.UnknownFields 164 165 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` 166 ShardKey int32 `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"` 167 P1 string `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"` 168 P2 []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"` 169 P5 uint64 `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"` 170 } 171 172 func (x *Single2) Reset() { 173 *x = Single2{} 174 if protoimpl.UnsafeEnabled { 175 mi := &file_singleton_proto_msgTypes[1] 176 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 177 ms.StoreMessageInfo(mi) 178 } 179 } 180 181 func (x *Single2) String() string { 182 return protoimpl.X.MessageStringOf(x) 183 } 184 185 func (*Single2) ProtoMessage() {} 186 187 func (x *Single2) ProtoReflect() protoreflect.Message { 188 mi := &file_singleton_proto_msgTypes[1] 189 if protoimpl.UnsafeEnabled && x != nil { 190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 191 if ms.LoadMessageInfo() == nil { 192 ms.StoreMessageInfo(mi) 193 } 194 return ms 195 } 196 return mi.MessageOf(x) 197 } 198 199 // Deprecated: Use Single2.ProtoReflect.Descriptor instead. 200 func (*Single2) Descriptor() ([]byte, []int) { 201 return file_singleton_proto_rawDescGZIP(), []int{1} 202 } 203 204 func (x *Single2) GetID() int64 { 205 if x != nil { 206 return x.ID 207 } 208 return 0 209 } 210 211 func (x *Single2) GetShardKey() int32 { 212 if x != nil { 213 return x.ShardKey 214 } 215 return 0 216 } 217 218 func (x *Single2) GetP1() string { 219 if x != nil { 220 return x.P1 221 } 222 return "" 223 } 224 225 func (x *Single2) GetP2() []string { 226 if x != nil { 227 return x.P2 228 } 229 return nil 230 } 231 232 func (x *Single2) GetP5() uint64 { 233 if x != nil { 234 return x.P5 235 } 236 return 0 237 } 238 239 var File_singleton_proto protoreflect.FileDescriptor 240 241 var file_singleton_proto_rawDesc = []byte{ 242 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 243 0x6f, 0x12, 0x09, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x1a, 0x0d, 0x6f, 0x70, 244 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, 0x07, 245 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 246 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 247 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 248 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x31, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 249 0x02, 0x50, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x32, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 250 0x02, 0x50, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x35, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 251 0x02, 0x50, 0x35, 0x12, 0x23, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 252 0x0e, 0x32, 0x0f, 0x2e, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 253 0x75, 0x6d, 0x52, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x08, 0x01, 254 0x22, 0x6d, 0x0a, 0x07, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x49, 255 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x53, 256 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x53, 257 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x31, 0x18, 0x03, 0x20, 258 0x01, 0x28, 0x09, 0x52, 0x02, 0x50, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x32, 0x18, 0x04, 0x20, 259 0x03, 0x28, 0x09, 0x52, 0x02, 0x50, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x35, 0x18, 0x05, 0x20, 260 0x01, 0x28, 0x04, 0x52, 0x02, 0x50, 0x35, 0x3a, 0x06, 0x8a, 0xb5, 0x18, 0x02, 0x08, 0x01, 0x2a, 261 0x29, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 262 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x10, 0x01, 263 0x12, 0x08, 0x0a, 0x04, 0x45, 0x6c, 0x73, 0x65, 0x10, 0x02, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, 0x2f, 264 0x3b, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 265 0x6f, 0x33, 266 } 267 268 var ( 269 file_singleton_proto_rawDescOnce sync.Once 270 file_singleton_proto_rawDescData = file_singleton_proto_rawDesc 271 ) 272 273 func file_singleton_proto_rawDescGZIP() []byte { 274 file_singleton_proto_rawDescOnce.Do(func() { 275 file_singleton_proto_rawDescData = protoimpl.X.CompressGZIP(file_singleton_proto_rawDescData) 276 }) 277 return file_singleton_proto_rawDescData 278 } 279 280 var file_singleton_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 281 var file_singleton_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 282 var file_singleton_proto_goTypes = []interface{}{ 283 (Enum)(0), // 0: singleton.Enum 284 (*Single1)(nil), // 1: singleton.Single1 285 (*Single2)(nil), // 2: singleton.Single2 286 } 287 var file_singleton_proto_depIdxs = []int32{ 288 0, // 0: singleton.Single1.Enum:type_name -> singleton.Enum 289 1, // [1:1] is the sub-list for method output_type 290 1, // [1:1] is the sub-list for method input_type 291 1, // [1:1] is the sub-list for extension type_name 292 1, // [1:1] is the sub-list for extension extendee 293 0, // [0:1] is the sub-list for field type_name 294 } 295 296 func init() { file_singleton_proto_init() } 297 func file_singleton_proto_init() { 298 if File_singleton_proto != nil { 299 return 300 } 301 if !protoimpl.UnsafeEnabled { 302 file_singleton_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 303 switch v := v.(*Single1); i { 304 case 0: 305 return &v.state 306 case 1: 307 return &v.sizeCache 308 case 2: 309 return &v.unknownFields 310 default: 311 return nil 312 } 313 } 314 file_singleton_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 315 switch v := v.(*Single2); i { 316 case 0: 317 return &v.state 318 case 1: 319 return &v.sizeCache 320 case 2: 321 return &v.unknownFields 322 default: 323 return nil 324 } 325 } 326 } 327 type x struct{} 328 out := protoimpl.TypeBuilder{ 329 File: protoimpl.DescBuilder{ 330 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 331 RawDescriptor: file_singleton_proto_rawDesc, 332 NumEnums: 1, 333 NumMessages: 2, 334 NumExtensions: 0, 335 NumServices: 0, 336 }, 337 GoTypes: file_singleton_proto_goTypes, 338 DependencyIndexes: file_singleton_proto_depIdxs, 339 EnumInfos: file_singleton_proto_enumTypes, 340 MessageInfos: file_singleton_proto_msgTypes, 341 }.Build() 342 File_singleton_proto = out.File 343 file_singleton_proto_rawDesc = nil 344 file_singleton_proto_goTypes = nil 345 file_singleton_proto_depIdxs = nil 346 }