github.com/s7techlab/cckit@v0.10.5/examples/token/service/account/account.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: token/service/account/account.proto 6 7 package account 8 9 import ( 10 context "context" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 emptypb "google.golang.org/protobuf/types/known/emptypb" 18 reflect "reflect" 19 sync "sync" 20 ) 21 22 const ( 23 // Verify that this generated code is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 25 // Verify that runtime/protoimpl is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 27 ) 28 29 type KeyStatus int32 30 31 const ( 32 KeyStatus_KEY_STATUS_UNKNOWN KeyStatus = 0 33 KeyStatus_KEY_STATUS_ENABLED KeyStatus = 1 34 KeyStatus_KEY_STATUS_DISABLED KeyStatus = 2 35 ) 36 37 // Enum value maps for KeyStatus. 38 var ( 39 KeyStatus_name = map[int32]string{ 40 0: "KEY_STATUS_UNKNOWN", 41 1: "KEY_STATUS_ENABLED", 42 2: "KEY_STATUS_DISABLED", 43 } 44 KeyStatus_value = map[string]int32{ 45 "KEY_STATUS_UNKNOWN": 0, 46 "KEY_STATUS_ENABLED": 1, 47 "KEY_STATUS_DISABLED": 2, 48 } 49 ) 50 51 func (x KeyStatus) Enum() *KeyStatus { 52 p := new(KeyStatus) 53 *p = x 54 return p 55 } 56 57 func (x KeyStatus) String() string { 58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 59 } 60 61 func (KeyStatus) Descriptor() protoreflect.EnumDescriptor { 62 return file_token_service_account_account_proto_enumTypes[0].Descriptor() 63 } 64 65 func (KeyStatus) Type() protoreflect.EnumType { 66 return &file_token_service_account_account_proto_enumTypes[0] 67 } 68 69 func (x KeyStatus) Number() protoreflect.EnumNumber { 70 return protoreflect.EnumNumber(x) 71 } 72 73 // Deprecated: Use KeyStatus.Descriptor instead. 74 func (KeyStatus) EnumDescriptor() ([]byte, []int) { 75 return file_token_service_account_account_proto_rawDescGZIP(), []int{0} 76 } 77 78 type AccountStatus int32 79 80 const ( 81 AccountStatus_ACCOUNT_STATUS_UNKNOWN AccountStatus = 0 82 AccountStatus_ACCOUNT_STATUS_ENABLED AccountStatus = 1 83 AccountStatus_ACCOUNT_STATUS_DISABLED AccountStatus = 2 84 ) 85 86 // Enum value maps for AccountStatus. 87 var ( 88 AccountStatus_name = map[int32]string{ 89 0: "ACCOUNT_STATUS_UNKNOWN", 90 1: "ACCOUNT_STATUS_ENABLED", 91 2: "ACCOUNT_STATUS_DISABLED", 92 } 93 AccountStatus_value = map[string]int32{ 94 "ACCOUNT_STATUS_UNKNOWN": 0, 95 "ACCOUNT_STATUS_ENABLED": 1, 96 "ACCOUNT_STATUS_DISABLED": 2, 97 } 98 ) 99 100 func (x AccountStatus) Enum() *AccountStatus { 101 p := new(AccountStatus) 102 *p = x 103 return p 104 } 105 106 func (x AccountStatus) String() string { 107 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 108 } 109 110 func (AccountStatus) Descriptor() protoreflect.EnumDescriptor { 111 return file_token_service_account_account_proto_enumTypes[1].Descriptor() 112 } 113 114 func (AccountStatus) Type() protoreflect.EnumType { 115 return &file_token_service_account_account_proto_enumTypes[1] 116 } 117 118 func (x AccountStatus) Number() protoreflect.EnumNumber { 119 return protoreflect.EnumNumber(x) 120 } 121 122 // Deprecated: Use AccountStatus.Descriptor instead. 123 func (AccountStatus) EnumDescriptor() ([]byte, []int) { 124 return file_token_service_account_account_proto_rawDescGZIP(), []int{1} 125 } 126 127 type GetAddressRequest struct { 128 state protoimpl.MessageState 129 sizeCache protoimpl.SizeCache 130 unknownFields protoimpl.UnknownFields 131 132 PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 133 } 134 135 func (x *GetAddressRequest) Reset() { 136 *x = GetAddressRequest{} 137 if protoimpl.UnsafeEnabled { 138 mi := &file_token_service_account_account_proto_msgTypes[0] 139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 140 ms.StoreMessageInfo(mi) 141 } 142 } 143 144 func (x *GetAddressRequest) String() string { 145 return protoimpl.X.MessageStringOf(x) 146 } 147 148 func (*GetAddressRequest) ProtoMessage() {} 149 150 func (x *GetAddressRequest) ProtoReflect() protoreflect.Message { 151 mi := &file_token_service_account_account_proto_msgTypes[0] 152 if protoimpl.UnsafeEnabled && x != nil { 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 154 if ms.LoadMessageInfo() == nil { 155 ms.StoreMessageInfo(mi) 156 } 157 return ms 158 } 159 return mi.MessageOf(x) 160 } 161 162 // Deprecated: Use GetAddressRequest.ProtoReflect.Descriptor instead. 163 func (*GetAddressRequest) Descriptor() ([]byte, []int) { 164 return file_token_service_account_account_proto_rawDescGZIP(), []int{0} 165 } 166 167 func (x *GetAddressRequest) GetPublicKey() []byte { 168 if x != nil { 169 return x.PublicKey 170 } 171 return nil 172 } 173 174 type GetAccountRequest struct { 175 state protoimpl.MessageState 176 sizeCache protoimpl.SizeCache 177 unknownFields protoimpl.UnknownFields 178 179 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 180 } 181 182 func (x *GetAccountRequest) Reset() { 183 *x = GetAccountRequest{} 184 if protoimpl.UnsafeEnabled { 185 mi := &file_token_service_account_account_proto_msgTypes[1] 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 ms.StoreMessageInfo(mi) 188 } 189 } 190 191 func (x *GetAccountRequest) String() string { 192 return protoimpl.X.MessageStringOf(x) 193 } 194 195 func (*GetAccountRequest) ProtoMessage() {} 196 197 func (x *GetAccountRequest) ProtoReflect() protoreflect.Message { 198 mi := &file_token_service_account_account_proto_msgTypes[1] 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 GetAccountRequest.ProtoReflect.Descriptor instead. 210 func (*GetAccountRequest) Descriptor() ([]byte, []int) { 211 return file_token_service_account_account_proto_rawDescGZIP(), []int{1} 212 } 213 214 func (x *GetAccountRequest) GetAddress() string { 215 if x != nil { 216 return x.Address 217 } 218 return "" 219 } 220 221 type Address struct { 222 state protoimpl.MessageState 223 sizeCache protoimpl.SizeCache 224 unknownFields protoimpl.UnknownFields 225 226 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 227 } 228 229 func (x *Address) Reset() { 230 *x = Address{} 231 if protoimpl.UnsafeEnabled { 232 mi := &file_token_service_account_account_proto_msgTypes[2] 233 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 234 ms.StoreMessageInfo(mi) 235 } 236 } 237 238 func (x *Address) String() string { 239 return protoimpl.X.MessageStringOf(x) 240 } 241 242 func (*Address) ProtoMessage() {} 243 244 func (x *Address) ProtoReflect() protoreflect.Message { 245 mi := &file_token_service_account_account_proto_msgTypes[2] 246 if protoimpl.UnsafeEnabled && x != nil { 247 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 248 if ms.LoadMessageInfo() == nil { 249 ms.StoreMessageInfo(mi) 250 } 251 return ms 252 } 253 return mi.MessageOf(x) 254 } 255 256 // Deprecated: Use Address.ProtoReflect.Descriptor instead. 257 func (*Address) Descriptor() ([]byte, []int) { 258 return file_token_service_account_account_proto_rawDescGZIP(), []int{2} 259 } 260 261 func (x *Address) GetAddress() string { 262 if x != nil { 263 return x.Address 264 } 265 return "" 266 } 267 268 type AddressId struct { 269 state protoimpl.MessageState 270 sizeCache protoimpl.SizeCache 271 unknownFields protoimpl.UnknownFields 272 273 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 274 } 275 276 func (x *AddressId) Reset() { 277 *x = AddressId{} 278 if protoimpl.UnsafeEnabled { 279 mi := &file_token_service_account_account_proto_msgTypes[3] 280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 281 ms.StoreMessageInfo(mi) 282 } 283 } 284 285 func (x *AddressId) String() string { 286 return protoimpl.X.MessageStringOf(x) 287 } 288 289 func (*AddressId) ProtoMessage() {} 290 291 func (x *AddressId) ProtoReflect() protoreflect.Message { 292 mi := &file_token_service_account_account_proto_msgTypes[3] 293 if protoimpl.UnsafeEnabled && x != nil { 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 if ms.LoadMessageInfo() == nil { 296 ms.StoreMessageInfo(mi) 297 } 298 return ms 299 } 300 return mi.MessageOf(x) 301 } 302 303 // Deprecated: Use AddressId.ProtoReflect.Descriptor instead. 304 func (*AddressId) Descriptor() ([]byte, []int) { 305 return file_token_service_account_account_proto_rawDescGZIP(), []int{3} 306 } 307 308 func (x *AddressId) GetAddress() string { 309 if x != nil { 310 return x.Address 311 } 312 return "" 313 } 314 315 type AccountId struct { 316 state protoimpl.MessageState 317 sizeCache protoimpl.SizeCache 318 unknownFields protoimpl.UnknownFields 319 320 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 321 } 322 323 func (x *AccountId) Reset() { 324 *x = AccountId{} 325 if protoimpl.UnsafeEnabled { 326 mi := &file_token_service_account_account_proto_msgTypes[4] 327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 328 ms.StoreMessageInfo(mi) 329 } 330 } 331 332 func (x *AccountId) String() string { 333 return protoimpl.X.MessageStringOf(x) 334 } 335 336 func (*AccountId) ProtoMessage() {} 337 338 func (x *AccountId) ProtoReflect() protoreflect.Message { 339 mi := &file_token_service_account_account_proto_msgTypes[4] 340 if protoimpl.UnsafeEnabled && x != nil { 341 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 342 if ms.LoadMessageInfo() == nil { 343 ms.StoreMessageInfo(mi) 344 } 345 return ms 346 } 347 return mi.MessageOf(x) 348 } 349 350 // Deprecated: Use AccountId.ProtoReflect.Descriptor instead. 351 func (*AccountId) Descriptor() ([]byte, []int) { 352 return file_token_service_account_account_proto_rawDescGZIP(), []int{4} 353 } 354 355 func (x *AccountId) GetAddress() string { 356 if x != nil { 357 return x.Address 358 } 359 return "" 360 } 361 362 type Account struct { 363 state protoimpl.MessageState 364 sizeCache protoimpl.SizeCache 365 unknownFields protoimpl.UnknownFields 366 367 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 368 Status AccountStatus `protobuf:"varint,2,opt,name=status,proto3,enum=examples.token.service.account.AccountStatus" json:"status,omitempty"` 369 } 370 371 func (x *Account) Reset() { 372 *x = Account{} 373 if protoimpl.UnsafeEnabled { 374 mi := &file_token_service_account_account_proto_msgTypes[5] 375 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 376 ms.StoreMessageInfo(mi) 377 } 378 } 379 380 func (x *Account) String() string { 381 return protoimpl.X.MessageStringOf(x) 382 } 383 384 func (*Account) ProtoMessage() {} 385 386 func (x *Account) ProtoReflect() protoreflect.Message { 387 mi := &file_token_service_account_account_proto_msgTypes[5] 388 if protoimpl.UnsafeEnabled && x != nil { 389 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 390 if ms.LoadMessageInfo() == nil { 391 ms.StoreMessageInfo(mi) 392 } 393 return ms 394 } 395 return mi.MessageOf(x) 396 } 397 398 // Deprecated: Use Account.ProtoReflect.Descriptor instead. 399 func (*Account) Descriptor() ([]byte, []int) { 400 return file_token_service_account_account_proto_rawDescGZIP(), []int{5} 401 } 402 403 func (x *Account) GetAddress() string { 404 if x != nil { 405 return x.Address 406 } 407 return "" 408 } 409 410 func (x *Account) GetStatus() AccountStatus { 411 if x != nil { 412 return x.Status 413 } 414 return AccountStatus_ACCOUNT_STATUS_UNKNOWN 415 } 416 417 type AccountKey struct { 418 state protoimpl.MessageState 419 sizeCache protoimpl.SizeCache 420 unknownFields protoimpl.UnknownFields 421 422 PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 423 Status KeyStatus `protobuf:"varint,2,opt,name=status,proto3,enum=examples.token.service.account.KeyStatus" json:"status,omitempty"` 424 } 425 426 func (x *AccountKey) Reset() { 427 *x = AccountKey{} 428 if protoimpl.UnsafeEnabled { 429 mi := &file_token_service_account_account_proto_msgTypes[6] 430 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 431 ms.StoreMessageInfo(mi) 432 } 433 } 434 435 func (x *AccountKey) String() string { 436 return protoimpl.X.MessageStringOf(x) 437 } 438 439 func (*AccountKey) ProtoMessage() {} 440 441 func (x *AccountKey) ProtoReflect() protoreflect.Message { 442 mi := &file_token_service_account_account_proto_msgTypes[6] 443 if protoimpl.UnsafeEnabled && x != nil { 444 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 445 if ms.LoadMessageInfo() == nil { 446 ms.StoreMessageInfo(mi) 447 } 448 return ms 449 } 450 return mi.MessageOf(x) 451 } 452 453 // Deprecated: Use AccountKey.ProtoReflect.Descriptor instead. 454 func (*AccountKey) Descriptor() ([]byte, []int) { 455 return file_token_service_account_account_proto_rawDescGZIP(), []int{6} 456 } 457 458 func (x *AccountKey) GetPublicKey() []byte { 459 if x != nil { 460 return x.PublicKey 461 } 462 return nil 463 } 464 465 func (x *AccountKey) GetStatus() KeyStatus { 466 if x != nil { 467 return x.Status 468 } 469 return KeyStatus_KEY_STATUS_UNKNOWN 470 } 471 472 var File_token_service_account_account_proto protoreflect.FileDescriptor 473 474 var file_token_service_account_account_proto_rawDesc = []byte{ 475 0x0a, 0x23, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 476 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 477 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 478 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 479 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 480 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 481 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 482 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 483 0x22, 0x32, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 484 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 485 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 486 0x63, 0x4b, 0x65, 0x79, 0x22, 0x2d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 487 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 488 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 489 0x65, 0x73, 0x73, 0x22, 0x23, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 490 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 491 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x25, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x72, 492 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 493 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 494 0x25, 0x0a, 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 495 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 496 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6a, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 497 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 498 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x06, 0x73, 499 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x65, 0x78, 500 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x73, 0x65, 0x72, 501 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x63, 502 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 503 0x75, 0x73, 0x22, 0x6e, 0x0a, 0x0a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4b, 0x65, 0x79, 504 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 505 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 506 0x41, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 507 0x29, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 508 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 509 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 510 0x75, 0x73, 0x2a, 0x54, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 511 0x16, 0x0a, 0x12, 0x4b, 0x45, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 512 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x4b, 0x45, 0x59, 0x5f, 0x53, 513 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 514 0x17, 0x0a, 0x13, 0x4b, 0x45, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x49, 515 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x64, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 516 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 517 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 518 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 519 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 520 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 521 0x54, 0x55, 0x53, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x32, 0xa3, 522 0x03, 0x0a, 0x0e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 523 0x65, 0x12, 0x77, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x72, 0x41, 524 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 525 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x29, 526 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 527 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 528 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 529 0x19, 0x12, 0x17, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 530 0x73, 0x65, 0x73, 0x2f, 0x77, 0x68, 0x6f, 0x61, 0x6d, 0x69, 0x12, 0x91, 0x01, 0x0a, 0x0a, 0x47, 531 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x2e, 0x65, 0x78, 0x61, 0x6d, 532 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 533 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x64, 534 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x65, 535 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x73, 0x65, 536 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x41, 0x64, 537 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 538 0x1d, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 539 0x73, 0x2f, 0x7b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x7d, 0x12, 0x83, 540 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x2e, 541 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x73, 542 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x41, 543 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x1a, 0x27, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 544 0x6c, 0x65, 0x73, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 545 0x65, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 546 0x74, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 547 0x6e, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 548 0x65, 0x73, 0x73, 0x7d, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 549 0x6f, 0x6d, 0x2f, 0x73, 0x37, 0x74, 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 550 0x69, 0x74, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 551 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 552 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 553 } 554 555 var ( 556 file_token_service_account_account_proto_rawDescOnce sync.Once 557 file_token_service_account_account_proto_rawDescData = file_token_service_account_account_proto_rawDesc 558 ) 559 560 func file_token_service_account_account_proto_rawDescGZIP() []byte { 561 file_token_service_account_account_proto_rawDescOnce.Do(func() { 562 file_token_service_account_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_token_service_account_account_proto_rawDescData) 563 }) 564 return file_token_service_account_account_proto_rawDescData 565 } 566 567 var file_token_service_account_account_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 568 var file_token_service_account_account_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 569 var file_token_service_account_account_proto_goTypes = []interface{}{ 570 (KeyStatus)(0), // 0: examples.token.service.account.KeyStatus 571 (AccountStatus)(0), // 1: examples.token.service.account.AccountStatus 572 (*GetAddressRequest)(nil), // 2: examples.token.service.account.GetAddressRequest 573 (*GetAccountRequest)(nil), // 3: examples.token.service.account.GetAccountRequest 574 (*Address)(nil), // 4: examples.token.service.account.Address 575 (*AddressId)(nil), // 5: examples.token.service.account.AddressId 576 (*AccountId)(nil), // 6: examples.token.service.account.AccountId 577 (*Account)(nil), // 7: examples.token.service.account.Account 578 (*AccountKey)(nil), // 8: examples.token.service.account.AccountKey 579 (*emptypb.Empty)(nil), // 9: google.protobuf.Empty 580 } 581 var file_token_service_account_account_proto_depIdxs = []int32{ 582 1, // 0: examples.token.service.account.Account.status:type_name -> examples.token.service.account.AccountStatus 583 0, // 1: examples.token.service.account.AccountKey.status:type_name -> examples.token.service.account.KeyStatus 584 9, // 2: examples.token.service.account.AccountService.GetInvokerAddress:input_type -> google.protobuf.Empty 585 2, // 3: examples.token.service.account.AccountService.GetAddress:input_type -> examples.token.service.account.GetAddressRequest 586 6, // 4: examples.token.service.account.AccountService.GetAccount:input_type -> examples.token.service.account.AccountId 587 5, // 5: examples.token.service.account.AccountService.GetInvokerAddress:output_type -> examples.token.service.account.AddressId 588 5, // 6: examples.token.service.account.AccountService.GetAddress:output_type -> examples.token.service.account.AddressId 589 7, // 7: examples.token.service.account.AccountService.GetAccount:output_type -> examples.token.service.account.Account 590 5, // [5:8] is the sub-list for method output_type 591 2, // [2:5] is the sub-list for method input_type 592 2, // [2:2] is the sub-list for extension type_name 593 2, // [2:2] is the sub-list for extension extendee 594 0, // [0:2] is the sub-list for field type_name 595 } 596 597 func init() { file_token_service_account_account_proto_init() } 598 func file_token_service_account_account_proto_init() { 599 if File_token_service_account_account_proto != nil { 600 return 601 } 602 if !protoimpl.UnsafeEnabled { 603 file_token_service_account_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 604 switch v := v.(*GetAddressRequest); i { 605 case 0: 606 return &v.state 607 case 1: 608 return &v.sizeCache 609 case 2: 610 return &v.unknownFields 611 default: 612 return nil 613 } 614 } 615 file_token_service_account_account_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 616 switch v := v.(*GetAccountRequest); i { 617 case 0: 618 return &v.state 619 case 1: 620 return &v.sizeCache 621 case 2: 622 return &v.unknownFields 623 default: 624 return nil 625 } 626 } 627 file_token_service_account_account_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 628 switch v := v.(*Address); i { 629 case 0: 630 return &v.state 631 case 1: 632 return &v.sizeCache 633 case 2: 634 return &v.unknownFields 635 default: 636 return nil 637 } 638 } 639 file_token_service_account_account_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 640 switch v := v.(*AddressId); i { 641 case 0: 642 return &v.state 643 case 1: 644 return &v.sizeCache 645 case 2: 646 return &v.unknownFields 647 default: 648 return nil 649 } 650 } 651 file_token_service_account_account_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 652 switch v := v.(*AccountId); i { 653 case 0: 654 return &v.state 655 case 1: 656 return &v.sizeCache 657 case 2: 658 return &v.unknownFields 659 default: 660 return nil 661 } 662 } 663 file_token_service_account_account_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 664 switch v := v.(*Account); i { 665 case 0: 666 return &v.state 667 case 1: 668 return &v.sizeCache 669 case 2: 670 return &v.unknownFields 671 default: 672 return nil 673 } 674 } 675 file_token_service_account_account_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 676 switch v := v.(*AccountKey); i { 677 case 0: 678 return &v.state 679 case 1: 680 return &v.sizeCache 681 case 2: 682 return &v.unknownFields 683 default: 684 return nil 685 } 686 } 687 } 688 type x struct{} 689 out := protoimpl.TypeBuilder{ 690 File: protoimpl.DescBuilder{ 691 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 692 RawDescriptor: file_token_service_account_account_proto_rawDesc, 693 NumEnums: 2, 694 NumMessages: 7, 695 NumExtensions: 0, 696 NumServices: 1, 697 }, 698 GoTypes: file_token_service_account_account_proto_goTypes, 699 DependencyIndexes: file_token_service_account_account_proto_depIdxs, 700 EnumInfos: file_token_service_account_account_proto_enumTypes, 701 MessageInfos: file_token_service_account_account_proto_msgTypes, 702 }.Build() 703 File_token_service_account_account_proto = out.File 704 file_token_service_account_account_proto_rawDesc = nil 705 file_token_service_account_account_proto_goTypes = nil 706 file_token_service_account_account_proto_depIdxs = nil 707 } 708 709 // Reference imports to suppress errors if they are not otherwise used. 710 var _ context.Context 711 var _ grpc.ClientConnInterface 712 713 // This is a compile-time assertion to ensure that this generated file 714 // is compatible with the grpc package it is being compiled against. 715 const _ = grpc.SupportPackageIsVersion6 716 717 // AccountServiceClient is the client API for AccountService service. 718 // 719 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 720 type AccountServiceClient interface { 721 GetInvokerAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AddressId, error) 722 GetAddress(ctx context.Context, in *GetAddressRequest, opts ...grpc.CallOption) (*AddressId, error) 723 GetAccount(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*Account, error) 724 } 725 726 type accountServiceClient struct { 727 cc grpc.ClientConnInterface 728 } 729 730 func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient { 731 return &accountServiceClient{cc} 732 } 733 734 func (c *accountServiceClient) GetInvokerAddress(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AddressId, error) { 735 out := new(AddressId) 736 err := c.cc.Invoke(ctx, "/examples.token.service.account.AccountService/GetInvokerAddress", in, out, opts...) 737 if err != nil { 738 return nil, err 739 } 740 return out, nil 741 } 742 743 func (c *accountServiceClient) GetAddress(ctx context.Context, in *GetAddressRequest, opts ...grpc.CallOption) (*AddressId, error) { 744 out := new(AddressId) 745 err := c.cc.Invoke(ctx, "/examples.token.service.account.AccountService/GetAddress", in, out, opts...) 746 if err != nil { 747 return nil, err 748 } 749 return out, nil 750 } 751 752 func (c *accountServiceClient) GetAccount(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*Account, error) { 753 out := new(Account) 754 err := c.cc.Invoke(ctx, "/examples.token.service.account.AccountService/GetAccount", in, out, opts...) 755 if err != nil { 756 return nil, err 757 } 758 return out, nil 759 } 760 761 // AccountServiceServer is the server API for AccountService service. 762 type AccountServiceServer interface { 763 GetInvokerAddress(context.Context, *emptypb.Empty) (*AddressId, error) 764 GetAddress(context.Context, *GetAddressRequest) (*AddressId, error) 765 GetAccount(context.Context, *AccountId) (*Account, error) 766 } 767 768 // UnimplementedAccountServiceServer can be embedded to have forward compatible implementations. 769 type UnimplementedAccountServiceServer struct { 770 } 771 772 func (*UnimplementedAccountServiceServer) GetInvokerAddress(context.Context, *emptypb.Empty) (*AddressId, error) { 773 return nil, status.Errorf(codes.Unimplemented, "method GetInvokerAddress not implemented") 774 } 775 func (*UnimplementedAccountServiceServer) GetAddress(context.Context, *GetAddressRequest) (*AddressId, error) { 776 return nil, status.Errorf(codes.Unimplemented, "method GetAddress not implemented") 777 } 778 func (*UnimplementedAccountServiceServer) GetAccount(context.Context, *AccountId) (*Account, error) { 779 return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") 780 } 781 782 func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer) { 783 s.RegisterService(&_AccountService_serviceDesc, srv) 784 } 785 786 func _AccountService_GetInvokerAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 787 in := new(emptypb.Empty) 788 if err := dec(in); err != nil { 789 return nil, err 790 } 791 if interceptor == nil { 792 return srv.(AccountServiceServer).GetInvokerAddress(ctx, in) 793 } 794 info := &grpc.UnaryServerInfo{ 795 Server: srv, 796 FullMethod: "/examples.token.service.account.AccountService/GetInvokerAddress", 797 } 798 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 799 return srv.(AccountServiceServer).GetInvokerAddress(ctx, req.(*emptypb.Empty)) 800 } 801 return interceptor(ctx, in, info, handler) 802 } 803 804 func _AccountService_GetAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 805 in := new(GetAddressRequest) 806 if err := dec(in); err != nil { 807 return nil, err 808 } 809 if interceptor == nil { 810 return srv.(AccountServiceServer).GetAddress(ctx, in) 811 } 812 info := &grpc.UnaryServerInfo{ 813 Server: srv, 814 FullMethod: "/examples.token.service.account.AccountService/GetAddress", 815 } 816 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 817 return srv.(AccountServiceServer).GetAddress(ctx, req.(*GetAddressRequest)) 818 } 819 return interceptor(ctx, in, info, handler) 820 } 821 822 func _AccountService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 823 in := new(AccountId) 824 if err := dec(in); err != nil { 825 return nil, err 826 } 827 if interceptor == nil { 828 return srv.(AccountServiceServer).GetAccount(ctx, in) 829 } 830 info := &grpc.UnaryServerInfo{ 831 Server: srv, 832 FullMethod: "/examples.token.service.account.AccountService/GetAccount", 833 } 834 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 835 return srv.(AccountServiceServer).GetAccount(ctx, req.(*AccountId)) 836 } 837 return interceptor(ctx, in, info, handler) 838 } 839 840 var _AccountService_serviceDesc = grpc.ServiceDesc{ 841 ServiceName: "examples.token.service.account.AccountService", 842 HandlerType: (*AccountServiceServer)(nil), 843 Methods: []grpc.MethodDesc{ 844 { 845 MethodName: "GetInvokerAddress", 846 Handler: _AccountService_GetInvokerAddress_Handler, 847 }, 848 { 849 MethodName: "GetAddress", 850 Handler: _AccountService_GetAddress_Handler, 851 }, 852 { 853 MethodName: "GetAccount", 854 Handler: _AccountService_GetAccount_Handler, 855 }, 856 }, 857 Streams: []grpc.StreamDesc{}, 858 Metadata: "token/service/account/account.proto", 859 }