github.com/cloudwego/dynamicgo@v0.2.6-0.20240519101509-707f41b6b834/testdata/kitex_gen/pb/base/base.pb.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Test Protobuf definitions with proto3 syntax. 6 7 // Code generated by protoc-gen-go. DO NOT EDIT. 8 // versions: 9 // protoc-gen-go v1.28.1 10 // protoc v4.23.0 11 // source: base.proto 12 13 package base 14 15 import ( 16 context "context" 17 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 18 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 19 reflect "reflect" 20 sync "sync" 21 ) 22 23 const ( 24 // Verify that this generated code is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 26 // Verify that runtime/protoimpl is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 28 ) 29 30 type TrafficEnv struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 35 Open bool `protobuf:"varint,1,opt,name=Open,proto3" json:"Open,omitempty"` 36 Env string `protobuf:"bytes,2,opt,name=Env,proto3" json:"Env,omitempty"` 37 } 38 39 func (x *TrafficEnv) Reset() { 40 *x = TrafficEnv{} 41 if protoimpl.UnsafeEnabled { 42 mi := &file_base_proto_msgTypes[0] 43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 44 ms.StoreMessageInfo(mi) 45 } 46 } 47 48 func (x *TrafficEnv) String() string { 49 return protoimpl.X.MessageStringOf(x) 50 } 51 52 func (*TrafficEnv) ProtoMessage() {} 53 54 func (x *TrafficEnv) ProtoReflect() protoreflect.Message { 55 mi := &file_base_proto_msgTypes[0] 56 if protoimpl.UnsafeEnabled && x != nil { 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 if ms.LoadMessageInfo() == nil { 59 ms.StoreMessageInfo(mi) 60 } 61 return ms 62 } 63 return mi.MessageOf(x) 64 } 65 66 // Deprecated: Use TrafficEnv.ProtoReflect.Descriptor instead. 67 func (*TrafficEnv) Descriptor() ([]byte, []int) { 68 return file_base_proto_rawDescGZIP(), []int{0} 69 } 70 71 func (x *TrafficEnv) GetOpen() bool { 72 if x != nil { 73 return x.Open 74 } 75 return false 76 } 77 78 func (x *TrafficEnv) GetEnv() string { 79 if x != nil { 80 return x.Env 81 } 82 return "" 83 } 84 85 type Base struct { 86 state protoimpl.MessageState 87 sizeCache protoimpl.SizeCache 88 unknownFields protoimpl.UnknownFields 89 90 LogID string `protobuf:"bytes,1,opt,name=LogID,proto3" json:"LogID,omitempty"` 91 Caller string `protobuf:"bytes,2,opt,name=Caller,proto3" json:"Caller,omitempty"` 92 Addr string `protobuf:"bytes,3,opt,name=Addr,proto3" json:"Addr,omitempty"` 93 Client string `protobuf:"bytes,4,opt,name=Client,proto3" json:"Client,omitempty"` 94 TrafficEnv *TrafficEnv `protobuf:"bytes,5,opt,name=TrafficEnv,proto3,oneof" json:"TrafficEnv,omitempty"` 95 Extra map[string]string `protobuf:"bytes,6,rep,name=Extra,proto3" json:"Extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 96 } 97 98 func (x *Base) Reset() { 99 *x = Base{} 100 if protoimpl.UnsafeEnabled { 101 mi := &file_base_proto_msgTypes[1] 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 ms.StoreMessageInfo(mi) 104 } 105 } 106 107 func (x *Base) String() string { 108 return protoimpl.X.MessageStringOf(x) 109 } 110 111 func (*Base) ProtoMessage() {} 112 113 func (x *Base) ProtoReflect() protoreflect.Message { 114 mi := &file_base_proto_msgTypes[1] 115 if protoimpl.UnsafeEnabled && x != nil { 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 if ms.LoadMessageInfo() == nil { 118 ms.StoreMessageInfo(mi) 119 } 120 return ms 121 } 122 return mi.MessageOf(x) 123 } 124 125 // Deprecated: Use Base.ProtoReflect.Descriptor instead. 126 func (*Base) Descriptor() ([]byte, []int) { 127 return file_base_proto_rawDescGZIP(), []int{1} 128 } 129 130 func (x *Base) GetLogID() string { 131 if x != nil { 132 return x.LogID 133 } 134 return "" 135 } 136 137 func (x *Base) GetCaller() string { 138 if x != nil { 139 return x.Caller 140 } 141 return "" 142 } 143 144 func (x *Base) GetAddr() string { 145 if x != nil { 146 return x.Addr 147 } 148 return "" 149 } 150 151 func (x *Base) GetClient() string { 152 if x != nil { 153 return x.Client 154 } 155 return "" 156 } 157 158 func (x *Base) GetTrafficEnv() *TrafficEnv { 159 if x != nil { 160 return x.TrafficEnv 161 } 162 return nil 163 } 164 165 func (x *Base) GetExtra() map[string]string { 166 if x != nil { 167 return x.Extra 168 } 169 return nil 170 } 171 172 type BaseResp struct { 173 state protoimpl.MessageState 174 sizeCache protoimpl.SizeCache 175 unknownFields protoimpl.UnknownFields 176 177 StatusMessage string `protobuf:"bytes,1,opt,name=StatusMessage,proto3" json:"StatusMessage,omitempty"` 178 StatusCode int32 `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"` 179 Extra map[string]string `protobuf:"bytes,3,rep,name=Extra,proto3" json:"Extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 180 } 181 182 func (x *BaseResp) Reset() { 183 *x = BaseResp{} 184 if protoimpl.UnsafeEnabled { 185 mi := &file_base_proto_msgTypes[2] 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 ms.StoreMessageInfo(mi) 188 } 189 } 190 191 func (x *BaseResp) String() string { 192 return protoimpl.X.MessageStringOf(x) 193 } 194 195 func (*BaseResp) ProtoMessage() {} 196 197 func (x *BaseResp) ProtoReflect() protoreflect.Message { 198 mi := &file_base_proto_msgTypes[2] 199 if protoimpl.UnsafeEnabled && x != nil { 200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 201 if ms.LoadMessageInfo() == nil { 202 ms.StoreMessageInfo(mi) 203 } 204 return ms 205 } 206 return mi.MessageOf(x) 207 } 208 209 // Deprecated: Use BaseResp.ProtoReflect.Descriptor instead. 210 func (*BaseResp) Descriptor() ([]byte, []int) { 211 return file_base_proto_rawDescGZIP(), []int{2} 212 } 213 214 func (x *BaseResp) GetStatusMessage() string { 215 if x != nil { 216 return x.StatusMessage 217 } 218 return "" 219 } 220 221 func (x *BaseResp) GetStatusCode() int32 { 222 if x != nil { 223 return x.StatusCode 224 } 225 return 0 226 } 227 228 func (x *BaseResp) GetExtra() map[string]string { 229 if x != nil { 230 return x.Extra 231 } 232 return nil 233 } 234 235 var File_base_proto protoreflect.FileDescriptor 236 237 var file_base_proto_rawDesc = []byte{ 238 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x70, 0x62, 239 0x33, 0x22, 0x32, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x45, 0x6e, 0x76, 0x12, 240 0x12, 0x0a, 0x04, 0x4f, 0x70, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x4f, 241 0x70, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x45, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 242 0x52, 0x03, 0x45, 0x6e, 0x76, 0x22, 0x8b, 0x02, 0x0a, 0x04, 0x42, 0x61, 0x73, 0x65, 0x12, 0x14, 243 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4c, 244 0x6f, 0x67, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x02, 245 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 246 0x41, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x41, 0x64, 0x64, 0x72, 247 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 248 0x52, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x66, 249 0x66, 0x69, 0x63, 0x45, 0x6e, 0x76, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 250 0x62, 0x33, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x45, 0x6e, 0x76, 0x48, 0x00, 0x52, 251 0x0a, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x45, 0x6e, 0x76, 0x88, 0x01, 0x01, 0x12, 0x2a, 252 0x0a, 0x05, 0x45, 0x78, 0x74, 0x72, 0x61, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 253 0x70, 0x62, 0x33, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 254 0x74, 0x72, 0x79, 0x52, 0x05, 0x45, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 255 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 256 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 257 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 258 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 259 0x45, 0x6e, 0x76, 0x22, 0xba, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 260 0x12, 0x24, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 261 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 262 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 263 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x74, 264 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x45, 0x78, 0x74, 0x72, 0x61, 0x18, 265 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x42, 0x61, 0x73, 0x65, 266 0x52, 0x65, 0x73, 0x70, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 267 0x05, 0x45, 0x78, 0x74, 0x72, 0x61, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x72, 0x61, 0x45, 268 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 269 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 270 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 271 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 272 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x65, 0x67, 0x6f, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 273 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6b, 0x69, 0x74, 0x65, 274 0x78, 0x5f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x62, 0x06, 0x70, 275 0x72, 0x6f, 0x74, 0x6f, 0x33, 276 } 277 278 var ( 279 file_base_proto_rawDescOnce sync.Once 280 file_base_proto_rawDescData = file_base_proto_rawDesc 281 ) 282 283 func file_base_proto_rawDescGZIP() []byte { 284 file_base_proto_rawDescOnce.Do(func() { 285 file_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_base_proto_rawDescData) 286 }) 287 return file_base_proto_rawDescData 288 } 289 290 var file_base_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 291 var file_base_proto_goTypes = []interface{}{ 292 (*TrafficEnv)(nil), // 0: pb3.TrafficEnv 293 (*Base)(nil), // 1: pb3.Base 294 (*BaseResp)(nil), // 2: pb3.BaseResp 295 nil, // 3: pb3.Base.ExtraEntry 296 nil, // 4: pb3.BaseResp.ExtraEntry 297 } 298 var file_base_proto_depIdxs = []int32{ 299 0, // 0: pb3.Base.TrafficEnv:type_name -> pb3.TrafficEnv 300 3, // 1: pb3.Base.Extra:type_name -> pb3.Base.ExtraEntry 301 4, // 2: pb3.BaseResp.Extra:type_name -> pb3.BaseResp.ExtraEntry 302 3, // [3:3] is the sub-list for method output_type 303 3, // [3:3] is the sub-list for method input_type 304 3, // [3:3] is the sub-list for extension type_name 305 3, // [3:3] is the sub-list for extension extendee 306 0, // [0:3] is the sub-list for field type_name 307 } 308 309 func init() { file_base_proto_init() } 310 func file_base_proto_init() { 311 if File_base_proto != nil { 312 return 313 } 314 if !protoimpl.UnsafeEnabled { 315 file_base_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 316 switch v := v.(*TrafficEnv); i { 317 case 0: 318 return &v.state 319 case 1: 320 return &v.sizeCache 321 case 2: 322 return &v.unknownFields 323 default: 324 return nil 325 } 326 } 327 file_base_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 328 switch v := v.(*Base); i { 329 case 0: 330 return &v.state 331 case 1: 332 return &v.sizeCache 333 case 2: 334 return &v.unknownFields 335 default: 336 return nil 337 } 338 } 339 file_base_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 340 switch v := v.(*BaseResp); i { 341 case 0: 342 return &v.state 343 case 1: 344 return &v.sizeCache 345 case 2: 346 return &v.unknownFields 347 default: 348 return nil 349 } 350 } 351 } 352 file_base_proto_msgTypes[1].OneofWrappers = []interface{}{} 353 type x struct{} 354 out := protoimpl.TypeBuilder{ 355 File: protoimpl.DescBuilder{ 356 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 357 RawDescriptor: file_base_proto_rawDesc, 358 NumEnums: 0, 359 NumMessages: 5, 360 NumExtensions: 0, 361 NumServices: 0, 362 }, 363 GoTypes: file_base_proto_goTypes, 364 DependencyIndexes: file_base_proto_depIdxs, 365 MessageInfos: file_base_proto_msgTypes, 366 }.Build() 367 File_base_proto = out.File 368 file_base_proto_rawDesc = nil 369 file_base_proto_goTypes = nil 370 file_base_proto_depIdxs = nil 371 } 372 373 var _ context.Context