github.com/godaddy-x/freego@v1.0.156/rpcx/pb/pub_worker.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.21.5 5 // source: rpcx/proto/pub_worker.proto 6 7 package pb 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type GenerateIdReq struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Node int64 `protobuf:"varint,1,opt,name=node,proto3" json:"node,omitempty"` 29 Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` 30 } 31 32 func (x *GenerateIdReq) Reset() { 33 *x = GenerateIdReq{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *GenerateIdReq) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*GenerateIdReq) ProtoMessage() {} 46 47 func (x *GenerateIdReq) ProtoReflect() protoreflect.Message { 48 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use GenerateIdReq.ProtoReflect.Descriptor instead. 60 func (*GenerateIdReq) Descriptor() ([]byte, []int) { 61 return file_rpcx_proto_pub_worker_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *GenerateIdReq) GetNode() int64 { 65 if x != nil { 66 return x.Node 67 } 68 return 0 69 } 70 71 func (x *GenerateIdReq) GetKind() string { 72 if x != nil { 73 return x.Kind 74 } 75 return "" 76 } 77 78 type GenerateIdRes struct { 79 state protoimpl.MessageState 80 sizeCache protoimpl.SizeCache 81 unknownFields protoimpl.UnknownFields 82 83 Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 84 } 85 86 func (x *GenerateIdRes) Reset() { 87 *x = GenerateIdRes{} 88 if protoimpl.UnsafeEnabled { 89 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[1] 90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 91 ms.StoreMessageInfo(mi) 92 } 93 } 94 95 func (x *GenerateIdRes) String() string { 96 return protoimpl.X.MessageStringOf(x) 97 } 98 99 func (*GenerateIdRes) ProtoMessage() {} 100 101 func (x *GenerateIdRes) ProtoReflect() protoreflect.Message { 102 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[1] 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 GenerateIdRes.ProtoReflect.Descriptor instead. 114 func (*GenerateIdRes) Descriptor() ([]byte, []int) { 115 return file_rpcx_proto_pub_worker_proto_rawDescGZIP(), []int{1} 116 } 117 118 func (x *GenerateIdRes) GetValue() int64 { 119 if x != nil { 120 return x.Value 121 } 122 return 0 123 } 124 125 type AuthorizeReq struct { 126 state protoimpl.MessageState 127 sizeCache protoimpl.SizeCache 128 unknownFields protoimpl.UnknownFields 129 130 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 131 } 132 133 func (x *AuthorizeReq) Reset() { 134 *x = AuthorizeReq{} 135 if protoimpl.UnsafeEnabled { 136 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[2] 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 ms.StoreMessageInfo(mi) 139 } 140 } 141 142 func (x *AuthorizeReq) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*AuthorizeReq) ProtoMessage() {} 147 148 func (x *AuthorizeReq) ProtoReflect() protoreflect.Message { 149 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[2] 150 if protoimpl.UnsafeEnabled && x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use AuthorizeReq.ProtoReflect.Descriptor instead. 161 func (*AuthorizeReq) Descriptor() ([]byte, []int) { 162 return file_rpcx_proto_pub_worker_proto_rawDescGZIP(), []int{2} 163 } 164 165 func (x *AuthorizeReq) GetMessage() string { 166 if x != nil { 167 return x.Message 168 } 169 return "" 170 } 171 172 type AuthorizeRes struct { 173 state protoimpl.MessageState 174 sizeCache protoimpl.SizeCache 175 unknownFields protoimpl.UnknownFields 176 177 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 178 Expired int64 `protobuf:"varint,2,opt,name=expired,proto3" json:"expired,omitempty"` 179 } 180 181 func (x *AuthorizeRes) Reset() { 182 *x = AuthorizeRes{} 183 if protoimpl.UnsafeEnabled { 184 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[3] 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 ms.StoreMessageInfo(mi) 187 } 188 } 189 190 func (x *AuthorizeRes) String() string { 191 return protoimpl.X.MessageStringOf(x) 192 } 193 194 func (*AuthorizeRes) ProtoMessage() {} 195 196 func (x *AuthorizeRes) ProtoReflect() protoreflect.Message { 197 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[3] 198 if protoimpl.UnsafeEnabled && x != nil { 199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 200 if ms.LoadMessageInfo() == nil { 201 ms.StoreMessageInfo(mi) 202 } 203 return ms 204 } 205 return mi.MessageOf(x) 206 } 207 208 // Deprecated: Use AuthorizeRes.ProtoReflect.Descriptor instead. 209 func (*AuthorizeRes) Descriptor() ([]byte, []int) { 210 return file_rpcx_proto_pub_worker_proto_rawDescGZIP(), []int{3} 211 } 212 213 func (x *AuthorizeRes) GetToken() string { 214 if x != nil { 215 return x.Token 216 } 217 return "" 218 } 219 220 func (x *AuthorizeRes) GetExpired() int64 { 221 if x != nil { 222 return x.Expired 223 } 224 return 0 225 } 226 227 type PublicKeyReq struct { 228 state protoimpl.MessageState 229 sizeCache protoimpl.SizeCache 230 unknownFields protoimpl.UnknownFields 231 } 232 233 func (x *PublicKeyReq) Reset() { 234 *x = PublicKeyReq{} 235 if protoimpl.UnsafeEnabled { 236 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[4] 237 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 238 ms.StoreMessageInfo(mi) 239 } 240 } 241 242 func (x *PublicKeyReq) String() string { 243 return protoimpl.X.MessageStringOf(x) 244 } 245 246 func (*PublicKeyReq) ProtoMessage() {} 247 248 func (x *PublicKeyReq) ProtoReflect() protoreflect.Message { 249 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[4] 250 if protoimpl.UnsafeEnabled && x != nil { 251 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 252 if ms.LoadMessageInfo() == nil { 253 ms.StoreMessageInfo(mi) 254 } 255 return ms 256 } 257 return mi.MessageOf(x) 258 } 259 260 // Deprecated: Use PublicKeyReq.ProtoReflect.Descriptor instead. 261 func (*PublicKeyReq) Descriptor() ([]byte, []int) { 262 return file_rpcx_proto_pub_worker_proto_rawDescGZIP(), []int{4} 263 } 264 265 type PublicKeyRes struct { 266 state protoimpl.MessageState 267 sizeCache protoimpl.SizeCache 268 unknownFields protoimpl.UnknownFields 269 270 PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` 271 } 272 273 func (x *PublicKeyRes) Reset() { 274 *x = PublicKeyRes{} 275 if protoimpl.UnsafeEnabled { 276 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[5] 277 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 278 ms.StoreMessageInfo(mi) 279 } 280 } 281 282 func (x *PublicKeyRes) String() string { 283 return protoimpl.X.MessageStringOf(x) 284 } 285 286 func (*PublicKeyRes) ProtoMessage() {} 287 288 func (x *PublicKeyRes) ProtoReflect() protoreflect.Message { 289 mi := &file_rpcx_proto_pub_worker_proto_msgTypes[5] 290 if protoimpl.UnsafeEnabled && x != nil { 291 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 292 if ms.LoadMessageInfo() == nil { 293 ms.StoreMessageInfo(mi) 294 } 295 return ms 296 } 297 return mi.MessageOf(x) 298 } 299 300 // Deprecated: Use PublicKeyRes.ProtoReflect.Descriptor instead. 301 func (*PublicKeyRes) Descriptor() ([]byte, []int) { 302 return file_rpcx_proto_pub_worker_proto_rawDescGZIP(), []int{5} 303 } 304 305 func (x *PublicKeyRes) GetPublicKey() string { 306 if x != nil { 307 return x.PublicKey 308 } 309 return "" 310 } 311 312 var File_rpcx_proto_pub_worker_proto protoreflect.FileDescriptor 313 314 var file_rpcx_proto_pub_worker_proto_rawDesc = []byte{ 315 0x0a, 0x1b, 0x72, 0x70, 0x63, 0x78, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x75, 0x62, 316 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x70, 317 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x22, 0x37, 0x0a, 0x0d, 0x47, 0x65, 0x6e, 318 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, 319 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x12, 320 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 321 0x6e, 0x64, 0x22, 0x25, 0x0a, 0x0d, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 322 0x52, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 323 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x28, 0x0a, 0x0c, 0x41, 0x75, 0x74, 324 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 325 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 326 0x61, 0x67, 0x65, 0x22, 0x3e, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 327 0x52, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 328 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 329 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 330 0x72, 0x65, 0x64, 0x22, 0x0e, 0x0a, 0x0c, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 331 0x52, 0x65, 0x71, 0x22, 0x2c, 0x0a, 0x0c, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 332 0x52, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 333 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 334 0x79, 0x32, 0xd7, 0x01, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 335 0x44, 0x0a, 0x0a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x19, 0x2e, 336 0x70, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 337 0x61, 0x74, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x70, 0x75, 0x62, 0x5f, 0x77, 338 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 339 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x09, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 340 0x7a, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 341 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x70, 342 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 343 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 344 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x2e, 0x70, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 345 0x65, 0x72, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x1a, 346 0x18, 0x2e, 0x70, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x50, 0x75, 0x62, 347 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2f, 348 0x72, 0x70, 0x63, 0x78, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 349 } 350 351 var ( 352 file_rpcx_proto_pub_worker_proto_rawDescOnce sync.Once 353 file_rpcx_proto_pub_worker_proto_rawDescData = file_rpcx_proto_pub_worker_proto_rawDesc 354 ) 355 356 func file_rpcx_proto_pub_worker_proto_rawDescGZIP() []byte { 357 file_rpcx_proto_pub_worker_proto_rawDescOnce.Do(func() { 358 file_rpcx_proto_pub_worker_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpcx_proto_pub_worker_proto_rawDescData) 359 }) 360 return file_rpcx_proto_pub_worker_proto_rawDescData 361 } 362 363 var file_rpcx_proto_pub_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 364 var file_rpcx_proto_pub_worker_proto_goTypes = []interface{}{ 365 (*GenerateIdReq)(nil), // 0: pub_worker.GenerateIdReq 366 (*GenerateIdRes)(nil), // 1: pub_worker.GenerateIdRes 367 (*AuthorizeReq)(nil), // 2: pub_worker.AuthorizeReq 368 (*AuthorizeRes)(nil), // 3: pub_worker.AuthorizeRes 369 (*PublicKeyReq)(nil), // 4: pub_worker.PublicKeyReq 370 (*PublicKeyRes)(nil), // 5: pub_worker.PublicKeyRes 371 } 372 var file_rpcx_proto_pub_worker_proto_depIdxs = []int32{ 373 0, // 0: pub_worker.PubWorker.GenerateId:input_type -> pub_worker.GenerateIdReq 374 2, // 1: pub_worker.PubWorker.Authorize:input_type -> pub_worker.AuthorizeReq 375 4, // 2: pub_worker.PubWorker.PublicKey:input_type -> pub_worker.PublicKeyReq 376 1, // 3: pub_worker.PubWorker.GenerateId:output_type -> pub_worker.GenerateIdRes 377 3, // 4: pub_worker.PubWorker.Authorize:output_type -> pub_worker.AuthorizeRes 378 5, // 5: pub_worker.PubWorker.PublicKey:output_type -> pub_worker.PublicKeyRes 379 3, // [3:6] is the sub-list for method output_type 380 0, // [0:3] is the sub-list for method input_type 381 0, // [0:0] is the sub-list for extension type_name 382 0, // [0:0] is the sub-list for extension extendee 383 0, // [0:0] is the sub-list for field type_name 384 } 385 386 func init() { file_rpcx_proto_pub_worker_proto_init() } 387 func file_rpcx_proto_pub_worker_proto_init() { 388 if File_rpcx_proto_pub_worker_proto != nil { 389 return 390 } 391 if !protoimpl.UnsafeEnabled { 392 file_rpcx_proto_pub_worker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 393 switch v := v.(*GenerateIdReq); i { 394 case 0: 395 return &v.state 396 case 1: 397 return &v.sizeCache 398 case 2: 399 return &v.unknownFields 400 default: 401 return nil 402 } 403 } 404 file_rpcx_proto_pub_worker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 405 switch v := v.(*GenerateIdRes); i { 406 case 0: 407 return &v.state 408 case 1: 409 return &v.sizeCache 410 case 2: 411 return &v.unknownFields 412 default: 413 return nil 414 } 415 } 416 file_rpcx_proto_pub_worker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 417 switch v := v.(*AuthorizeReq); i { 418 case 0: 419 return &v.state 420 case 1: 421 return &v.sizeCache 422 case 2: 423 return &v.unknownFields 424 default: 425 return nil 426 } 427 } 428 file_rpcx_proto_pub_worker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 429 switch v := v.(*AuthorizeRes); i { 430 case 0: 431 return &v.state 432 case 1: 433 return &v.sizeCache 434 case 2: 435 return &v.unknownFields 436 default: 437 return nil 438 } 439 } 440 file_rpcx_proto_pub_worker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 441 switch v := v.(*PublicKeyReq); i { 442 case 0: 443 return &v.state 444 case 1: 445 return &v.sizeCache 446 case 2: 447 return &v.unknownFields 448 default: 449 return nil 450 } 451 } 452 file_rpcx_proto_pub_worker_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 453 switch v := v.(*PublicKeyRes); i { 454 case 0: 455 return &v.state 456 case 1: 457 return &v.sizeCache 458 case 2: 459 return &v.unknownFields 460 default: 461 return nil 462 } 463 } 464 } 465 type x struct{} 466 out := protoimpl.TypeBuilder{ 467 File: protoimpl.DescBuilder{ 468 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 469 RawDescriptor: file_rpcx_proto_pub_worker_proto_rawDesc, 470 NumEnums: 0, 471 NumMessages: 6, 472 NumExtensions: 0, 473 NumServices: 1, 474 }, 475 GoTypes: file_rpcx_proto_pub_worker_proto_goTypes, 476 DependencyIndexes: file_rpcx_proto_pub_worker_proto_depIdxs, 477 MessageInfos: file_rpcx_proto_pub_worker_proto_msgTypes, 478 }.Build() 479 File_rpcx_proto_pub_worker_proto = out.File 480 file_rpcx_proto_pub_worker_proto_rawDesc = nil 481 file_rpcx_proto_pub_worker_proto_goTypes = nil 482 file_rpcx_proto_pub_worker_proto_depIdxs = nil 483 }