github.com/status-im/status-go@v1.1.0/protocol/protobuf/push_notifications.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v3.20.3 5 // source: push_notifications.proto 6 7 package protobuf 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 PushNotificationRegistration_TokenType int32 24 25 const ( 26 PushNotificationRegistration_UNKNOWN_TOKEN_TYPE PushNotificationRegistration_TokenType = 0 27 PushNotificationRegistration_APN_TOKEN PushNotificationRegistration_TokenType = 1 28 PushNotificationRegistration_FIREBASE_TOKEN PushNotificationRegistration_TokenType = 2 29 ) 30 31 // Enum value maps for PushNotificationRegistration_TokenType. 32 var ( 33 PushNotificationRegistration_TokenType_name = map[int32]string{ 34 0: "UNKNOWN_TOKEN_TYPE", 35 1: "APN_TOKEN", 36 2: "FIREBASE_TOKEN", 37 } 38 PushNotificationRegistration_TokenType_value = map[string]int32{ 39 "UNKNOWN_TOKEN_TYPE": 0, 40 "APN_TOKEN": 1, 41 "FIREBASE_TOKEN": 2, 42 } 43 ) 44 45 func (x PushNotificationRegistration_TokenType) Enum() *PushNotificationRegistration_TokenType { 46 p := new(PushNotificationRegistration_TokenType) 47 *p = x 48 return p 49 } 50 51 func (x PushNotificationRegistration_TokenType) String() string { 52 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 53 } 54 55 func (PushNotificationRegistration_TokenType) Descriptor() protoreflect.EnumDescriptor { 56 return file_push_notifications_proto_enumTypes[0].Descriptor() 57 } 58 59 func (PushNotificationRegistration_TokenType) Type() protoreflect.EnumType { 60 return &file_push_notifications_proto_enumTypes[0] 61 } 62 63 func (x PushNotificationRegistration_TokenType) Number() protoreflect.EnumNumber { 64 return protoreflect.EnumNumber(x) 65 } 66 67 // Deprecated: Use PushNotificationRegistration_TokenType.Descriptor instead. 68 func (PushNotificationRegistration_TokenType) EnumDescriptor() ([]byte, []int) { 69 return file_push_notifications_proto_rawDescGZIP(), []int{0, 0} 70 } 71 72 type PushNotificationRegistrationResponse_ErrorType int32 73 74 const ( 75 PushNotificationRegistrationResponse_UNKNOWN_ERROR_TYPE PushNotificationRegistrationResponse_ErrorType = 0 76 PushNotificationRegistrationResponse_MALFORMED_MESSAGE PushNotificationRegistrationResponse_ErrorType = 1 77 PushNotificationRegistrationResponse_VERSION_MISMATCH PushNotificationRegistrationResponse_ErrorType = 2 78 PushNotificationRegistrationResponse_UNSUPPORTED_TOKEN_TYPE PushNotificationRegistrationResponse_ErrorType = 3 79 PushNotificationRegistrationResponse_INTERNAL_ERROR PushNotificationRegistrationResponse_ErrorType = 4 80 ) 81 82 // Enum value maps for PushNotificationRegistrationResponse_ErrorType. 83 var ( 84 PushNotificationRegistrationResponse_ErrorType_name = map[int32]string{ 85 0: "UNKNOWN_ERROR_TYPE", 86 1: "MALFORMED_MESSAGE", 87 2: "VERSION_MISMATCH", 88 3: "UNSUPPORTED_TOKEN_TYPE", 89 4: "INTERNAL_ERROR", 90 } 91 PushNotificationRegistrationResponse_ErrorType_value = map[string]int32{ 92 "UNKNOWN_ERROR_TYPE": 0, 93 "MALFORMED_MESSAGE": 1, 94 "VERSION_MISMATCH": 2, 95 "UNSUPPORTED_TOKEN_TYPE": 3, 96 "INTERNAL_ERROR": 4, 97 } 98 ) 99 100 func (x PushNotificationRegistrationResponse_ErrorType) Enum() *PushNotificationRegistrationResponse_ErrorType { 101 p := new(PushNotificationRegistrationResponse_ErrorType) 102 *p = x 103 return p 104 } 105 106 func (x PushNotificationRegistrationResponse_ErrorType) String() string { 107 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 108 } 109 110 func (PushNotificationRegistrationResponse_ErrorType) Descriptor() protoreflect.EnumDescriptor { 111 return file_push_notifications_proto_enumTypes[1].Descriptor() 112 } 113 114 func (PushNotificationRegistrationResponse_ErrorType) Type() protoreflect.EnumType { 115 return &file_push_notifications_proto_enumTypes[1] 116 } 117 118 func (x PushNotificationRegistrationResponse_ErrorType) Number() protoreflect.EnumNumber { 119 return protoreflect.EnumNumber(x) 120 } 121 122 // Deprecated: Use PushNotificationRegistrationResponse_ErrorType.Descriptor instead. 123 func (PushNotificationRegistrationResponse_ErrorType) EnumDescriptor() ([]byte, []int) { 124 return file_push_notifications_proto_rawDescGZIP(), []int{1, 0} 125 } 126 127 type PushNotification_PushNotificationType int32 128 129 const ( 130 PushNotification_UNKNOWN_PUSH_NOTIFICATION_TYPE PushNotification_PushNotificationType = 0 131 PushNotification_MESSAGE PushNotification_PushNotificationType = 1 132 PushNotification_MENTION PushNotification_PushNotificationType = 2 133 PushNotification_REQUEST_TO_JOIN_COMMUNITY PushNotification_PushNotificationType = 3 134 ) 135 136 // Enum value maps for PushNotification_PushNotificationType. 137 var ( 138 PushNotification_PushNotificationType_name = map[int32]string{ 139 0: "UNKNOWN_PUSH_NOTIFICATION_TYPE", 140 1: "MESSAGE", 141 2: "MENTION", 142 3: "REQUEST_TO_JOIN_COMMUNITY", 143 } 144 PushNotification_PushNotificationType_value = map[string]int32{ 145 "UNKNOWN_PUSH_NOTIFICATION_TYPE": 0, 146 "MESSAGE": 1, 147 "MENTION": 2, 148 "REQUEST_TO_JOIN_COMMUNITY": 3, 149 } 150 ) 151 152 func (x PushNotification_PushNotificationType) Enum() *PushNotification_PushNotificationType { 153 p := new(PushNotification_PushNotificationType) 154 *p = x 155 return p 156 } 157 158 func (x PushNotification_PushNotificationType) String() string { 159 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 160 } 161 162 func (PushNotification_PushNotificationType) Descriptor() protoreflect.EnumDescriptor { 163 return file_push_notifications_proto_enumTypes[2].Descriptor() 164 } 165 166 func (PushNotification_PushNotificationType) Type() protoreflect.EnumType { 167 return &file_push_notifications_proto_enumTypes[2] 168 } 169 170 func (x PushNotification_PushNotificationType) Number() protoreflect.EnumNumber { 171 return protoreflect.EnumNumber(x) 172 } 173 174 // Deprecated: Use PushNotification_PushNotificationType.Descriptor instead. 175 func (PushNotification_PushNotificationType) EnumDescriptor() ([]byte, []int) { 176 return file_push_notifications_proto_rawDescGZIP(), []int{6, 0} 177 } 178 179 type PushNotificationReport_ErrorType int32 180 181 const ( 182 PushNotificationReport_UNKNOWN_ERROR_TYPE PushNotificationReport_ErrorType = 0 183 PushNotificationReport_WRONG_TOKEN PushNotificationReport_ErrorType = 1 184 PushNotificationReport_INTERNAL_ERROR PushNotificationReport_ErrorType = 2 185 PushNotificationReport_NOT_REGISTERED PushNotificationReport_ErrorType = 3 186 ) 187 188 // Enum value maps for PushNotificationReport_ErrorType. 189 var ( 190 PushNotificationReport_ErrorType_name = map[int32]string{ 191 0: "UNKNOWN_ERROR_TYPE", 192 1: "WRONG_TOKEN", 193 2: "INTERNAL_ERROR", 194 3: "NOT_REGISTERED", 195 } 196 PushNotificationReport_ErrorType_value = map[string]int32{ 197 "UNKNOWN_ERROR_TYPE": 0, 198 "WRONG_TOKEN": 1, 199 "INTERNAL_ERROR": 2, 200 "NOT_REGISTERED": 3, 201 } 202 ) 203 204 func (x PushNotificationReport_ErrorType) Enum() *PushNotificationReport_ErrorType { 205 p := new(PushNotificationReport_ErrorType) 206 *p = x 207 return p 208 } 209 210 func (x PushNotificationReport_ErrorType) String() string { 211 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 212 } 213 214 func (PushNotificationReport_ErrorType) Descriptor() protoreflect.EnumDescriptor { 215 return file_push_notifications_proto_enumTypes[3].Descriptor() 216 } 217 218 func (PushNotificationReport_ErrorType) Type() protoreflect.EnumType { 219 return &file_push_notifications_proto_enumTypes[3] 220 } 221 222 func (x PushNotificationReport_ErrorType) Number() protoreflect.EnumNumber { 223 return protoreflect.EnumNumber(x) 224 } 225 226 // Deprecated: Use PushNotificationReport_ErrorType.Descriptor instead. 227 func (PushNotificationReport_ErrorType) EnumDescriptor() ([]byte, []int) { 228 return file_push_notifications_proto_rawDescGZIP(), []int{8, 0} 229 } 230 231 type PushNotificationRegistration struct { 232 state protoimpl.MessageState 233 sizeCache protoimpl.SizeCache 234 unknownFields protoimpl.UnknownFields 235 236 TokenType PushNotificationRegistration_TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=protobuf.PushNotificationRegistration_TokenType" json:"token_type,omitempty"` 237 DeviceToken string `protobuf:"bytes,2,opt,name=device_token,json=deviceToken,proto3" json:"device_token,omitempty"` 238 InstallationId string `protobuf:"bytes,3,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` 239 AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` 240 Enabled bool `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"` 241 Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` 242 AllowedKeyList [][]byte `protobuf:"bytes,7,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"` 243 BlockedChatList [][]byte `protobuf:"bytes,8,rep,name=blocked_chat_list,json=blockedChatList,proto3" json:"blocked_chat_list,omitempty"` 244 Unregister bool `protobuf:"varint,9,opt,name=unregister,proto3" json:"unregister,omitempty"` 245 Grant []byte `protobuf:"bytes,10,opt,name=grant,proto3" json:"grant,omitempty"` 246 AllowFromContactsOnly bool `protobuf:"varint,11,opt,name=allow_from_contacts_only,json=allowFromContactsOnly,proto3" json:"allow_from_contacts_only,omitempty"` 247 ApnTopic string `protobuf:"bytes,12,opt,name=apn_topic,json=apnTopic,proto3" json:"apn_topic,omitempty"` 248 BlockMentions bool `protobuf:"varint,13,opt,name=block_mentions,json=blockMentions,proto3" json:"block_mentions,omitempty"` 249 AllowedMentionsChatList [][]byte `protobuf:"bytes,14,rep,name=allowed_mentions_chat_list,json=allowedMentionsChatList,proto3" json:"allowed_mentions_chat_list,omitempty"` 250 MutedChatList [][]byte `protobuf:"bytes,15,rep,name=muted_chat_list,json=mutedChatList,proto3" json:"muted_chat_list,omitempty"` 251 } 252 253 func (x *PushNotificationRegistration) Reset() { 254 *x = PushNotificationRegistration{} 255 if protoimpl.UnsafeEnabled { 256 mi := &file_push_notifications_proto_msgTypes[0] 257 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 258 ms.StoreMessageInfo(mi) 259 } 260 } 261 262 func (x *PushNotificationRegistration) String() string { 263 return protoimpl.X.MessageStringOf(x) 264 } 265 266 func (*PushNotificationRegistration) ProtoMessage() {} 267 268 func (x *PushNotificationRegistration) ProtoReflect() protoreflect.Message { 269 mi := &file_push_notifications_proto_msgTypes[0] 270 if protoimpl.UnsafeEnabled && x != nil { 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 if ms.LoadMessageInfo() == nil { 273 ms.StoreMessageInfo(mi) 274 } 275 return ms 276 } 277 return mi.MessageOf(x) 278 } 279 280 // Deprecated: Use PushNotificationRegistration.ProtoReflect.Descriptor instead. 281 func (*PushNotificationRegistration) Descriptor() ([]byte, []int) { 282 return file_push_notifications_proto_rawDescGZIP(), []int{0} 283 } 284 285 func (x *PushNotificationRegistration) GetTokenType() PushNotificationRegistration_TokenType { 286 if x != nil { 287 return x.TokenType 288 } 289 return PushNotificationRegistration_UNKNOWN_TOKEN_TYPE 290 } 291 292 func (x *PushNotificationRegistration) GetDeviceToken() string { 293 if x != nil { 294 return x.DeviceToken 295 } 296 return "" 297 } 298 299 func (x *PushNotificationRegistration) GetInstallationId() string { 300 if x != nil { 301 return x.InstallationId 302 } 303 return "" 304 } 305 306 func (x *PushNotificationRegistration) GetAccessToken() string { 307 if x != nil { 308 return x.AccessToken 309 } 310 return "" 311 } 312 313 func (x *PushNotificationRegistration) GetEnabled() bool { 314 if x != nil { 315 return x.Enabled 316 } 317 return false 318 } 319 320 func (x *PushNotificationRegistration) GetVersion() uint64 { 321 if x != nil { 322 return x.Version 323 } 324 return 0 325 } 326 327 func (x *PushNotificationRegistration) GetAllowedKeyList() [][]byte { 328 if x != nil { 329 return x.AllowedKeyList 330 } 331 return nil 332 } 333 334 func (x *PushNotificationRegistration) GetBlockedChatList() [][]byte { 335 if x != nil { 336 return x.BlockedChatList 337 } 338 return nil 339 } 340 341 func (x *PushNotificationRegistration) GetUnregister() bool { 342 if x != nil { 343 return x.Unregister 344 } 345 return false 346 } 347 348 func (x *PushNotificationRegistration) GetGrant() []byte { 349 if x != nil { 350 return x.Grant 351 } 352 return nil 353 } 354 355 func (x *PushNotificationRegistration) GetAllowFromContactsOnly() bool { 356 if x != nil { 357 return x.AllowFromContactsOnly 358 } 359 return false 360 } 361 362 func (x *PushNotificationRegistration) GetApnTopic() string { 363 if x != nil { 364 return x.ApnTopic 365 } 366 return "" 367 } 368 369 func (x *PushNotificationRegistration) GetBlockMentions() bool { 370 if x != nil { 371 return x.BlockMentions 372 } 373 return false 374 } 375 376 func (x *PushNotificationRegistration) GetAllowedMentionsChatList() [][]byte { 377 if x != nil { 378 return x.AllowedMentionsChatList 379 } 380 return nil 381 } 382 383 func (x *PushNotificationRegistration) GetMutedChatList() [][]byte { 384 if x != nil { 385 return x.MutedChatList 386 } 387 return nil 388 } 389 390 type PushNotificationRegistrationResponse struct { 391 state protoimpl.MessageState 392 sizeCache protoimpl.SizeCache 393 unknownFields protoimpl.UnknownFields 394 395 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` 396 Error PushNotificationRegistrationResponse_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationRegistrationResponse_ErrorType" json:"error,omitempty"` 397 RequestId []byte `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 398 } 399 400 func (x *PushNotificationRegistrationResponse) Reset() { 401 *x = PushNotificationRegistrationResponse{} 402 if protoimpl.UnsafeEnabled { 403 mi := &file_push_notifications_proto_msgTypes[1] 404 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 405 ms.StoreMessageInfo(mi) 406 } 407 } 408 409 func (x *PushNotificationRegistrationResponse) String() string { 410 return protoimpl.X.MessageStringOf(x) 411 } 412 413 func (*PushNotificationRegistrationResponse) ProtoMessage() {} 414 415 func (x *PushNotificationRegistrationResponse) ProtoReflect() protoreflect.Message { 416 mi := &file_push_notifications_proto_msgTypes[1] 417 if protoimpl.UnsafeEnabled && x != nil { 418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 419 if ms.LoadMessageInfo() == nil { 420 ms.StoreMessageInfo(mi) 421 } 422 return ms 423 } 424 return mi.MessageOf(x) 425 } 426 427 // Deprecated: Use PushNotificationRegistrationResponse.ProtoReflect.Descriptor instead. 428 func (*PushNotificationRegistrationResponse) Descriptor() ([]byte, []int) { 429 return file_push_notifications_proto_rawDescGZIP(), []int{1} 430 } 431 432 func (x *PushNotificationRegistrationResponse) GetSuccess() bool { 433 if x != nil { 434 return x.Success 435 } 436 return false 437 } 438 439 func (x *PushNotificationRegistrationResponse) GetError() PushNotificationRegistrationResponse_ErrorType { 440 if x != nil { 441 return x.Error 442 } 443 return PushNotificationRegistrationResponse_UNKNOWN_ERROR_TYPE 444 } 445 446 func (x *PushNotificationRegistrationResponse) GetRequestId() []byte { 447 if x != nil { 448 return x.RequestId 449 } 450 return nil 451 } 452 453 type ContactCodeAdvertisement struct { 454 state protoimpl.MessageState 455 sizeCache protoimpl.SizeCache 456 unknownFields protoimpl.UnknownFields 457 458 PushNotificationInfo []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=push_notification_info,json=pushNotificationInfo,proto3" json:"push_notification_info,omitempty"` 459 ChatIdentity *ChatIdentity `protobuf:"bytes,2,opt,name=chat_identity,json=chatIdentity,proto3" json:"chat_identity,omitempty"` 460 } 461 462 func (x *ContactCodeAdvertisement) Reset() { 463 *x = ContactCodeAdvertisement{} 464 if protoimpl.UnsafeEnabled { 465 mi := &file_push_notifications_proto_msgTypes[2] 466 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 467 ms.StoreMessageInfo(mi) 468 } 469 } 470 471 func (x *ContactCodeAdvertisement) String() string { 472 return protoimpl.X.MessageStringOf(x) 473 } 474 475 func (*ContactCodeAdvertisement) ProtoMessage() {} 476 477 func (x *ContactCodeAdvertisement) ProtoReflect() protoreflect.Message { 478 mi := &file_push_notifications_proto_msgTypes[2] 479 if protoimpl.UnsafeEnabled && x != nil { 480 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 481 if ms.LoadMessageInfo() == nil { 482 ms.StoreMessageInfo(mi) 483 } 484 return ms 485 } 486 return mi.MessageOf(x) 487 } 488 489 // Deprecated: Use ContactCodeAdvertisement.ProtoReflect.Descriptor instead. 490 func (*ContactCodeAdvertisement) Descriptor() ([]byte, []int) { 491 return file_push_notifications_proto_rawDescGZIP(), []int{2} 492 } 493 494 func (x *ContactCodeAdvertisement) GetPushNotificationInfo() []*PushNotificationQueryInfo { 495 if x != nil { 496 return x.PushNotificationInfo 497 } 498 return nil 499 } 500 501 func (x *ContactCodeAdvertisement) GetChatIdentity() *ChatIdentity { 502 if x != nil { 503 return x.ChatIdentity 504 } 505 return nil 506 } 507 508 type PushNotificationQuery struct { 509 state protoimpl.MessageState 510 sizeCache protoimpl.SizeCache 511 unknownFields protoimpl.UnknownFields 512 513 PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` 514 } 515 516 func (x *PushNotificationQuery) Reset() { 517 *x = PushNotificationQuery{} 518 if protoimpl.UnsafeEnabled { 519 mi := &file_push_notifications_proto_msgTypes[3] 520 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 521 ms.StoreMessageInfo(mi) 522 } 523 } 524 525 func (x *PushNotificationQuery) String() string { 526 return protoimpl.X.MessageStringOf(x) 527 } 528 529 func (*PushNotificationQuery) ProtoMessage() {} 530 531 func (x *PushNotificationQuery) ProtoReflect() protoreflect.Message { 532 mi := &file_push_notifications_proto_msgTypes[3] 533 if protoimpl.UnsafeEnabled && x != nil { 534 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 535 if ms.LoadMessageInfo() == nil { 536 ms.StoreMessageInfo(mi) 537 } 538 return ms 539 } 540 return mi.MessageOf(x) 541 } 542 543 // Deprecated: Use PushNotificationQuery.ProtoReflect.Descriptor instead. 544 func (*PushNotificationQuery) Descriptor() ([]byte, []int) { 545 return file_push_notifications_proto_rawDescGZIP(), []int{3} 546 } 547 548 func (x *PushNotificationQuery) GetPublicKeys() [][]byte { 549 if x != nil { 550 return x.PublicKeys 551 } 552 return nil 553 } 554 555 type PushNotificationQueryInfo struct { 556 state protoimpl.MessageState 557 sizeCache protoimpl.SizeCache 558 unknownFields protoimpl.UnknownFields 559 560 AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` 561 InstallationId string `protobuf:"bytes,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` 562 PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 563 AllowedKeyList [][]byte `protobuf:"bytes,4,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"` 564 Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"` 565 Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` 566 ServerPublicKey []byte `protobuf:"bytes,7,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"` 567 } 568 569 func (x *PushNotificationQueryInfo) Reset() { 570 *x = PushNotificationQueryInfo{} 571 if protoimpl.UnsafeEnabled { 572 mi := &file_push_notifications_proto_msgTypes[4] 573 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 574 ms.StoreMessageInfo(mi) 575 } 576 } 577 578 func (x *PushNotificationQueryInfo) String() string { 579 return protoimpl.X.MessageStringOf(x) 580 } 581 582 func (*PushNotificationQueryInfo) ProtoMessage() {} 583 584 func (x *PushNotificationQueryInfo) ProtoReflect() protoreflect.Message { 585 mi := &file_push_notifications_proto_msgTypes[4] 586 if protoimpl.UnsafeEnabled && x != nil { 587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 588 if ms.LoadMessageInfo() == nil { 589 ms.StoreMessageInfo(mi) 590 } 591 return ms 592 } 593 return mi.MessageOf(x) 594 } 595 596 // Deprecated: Use PushNotificationQueryInfo.ProtoReflect.Descriptor instead. 597 func (*PushNotificationQueryInfo) Descriptor() ([]byte, []int) { 598 return file_push_notifications_proto_rawDescGZIP(), []int{4} 599 } 600 601 func (x *PushNotificationQueryInfo) GetAccessToken() string { 602 if x != nil { 603 return x.AccessToken 604 } 605 return "" 606 } 607 608 func (x *PushNotificationQueryInfo) GetInstallationId() string { 609 if x != nil { 610 return x.InstallationId 611 } 612 return "" 613 } 614 615 func (x *PushNotificationQueryInfo) GetPublicKey() []byte { 616 if x != nil { 617 return x.PublicKey 618 } 619 return nil 620 } 621 622 func (x *PushNotificationQueryInfo) GetAllowedKeyList() [][]byte { 623 if x != nil { 624 return x.AllowedKeyList 625 } 626 return nil 627 } 628 629 func (x *PushNotificationQueryInfo) GetGrant() []byte { 630 if x != nil { 631 return x.Grant 632 } 633 return nil 634 } 635 636 func (x *PushNotificationQueryInfo) GetVersion() uint64 { 637 if x != nil { 638 return x.Version 639 } 640 return 0 641 } 642 643 func (x *PushNotificationQueryInfo) GetServerPublicKey() []byte { 644 if x != nil { 645 return x.ServerPublicKey 646 } 647 return nil 648 } 649 650 type PushNotificationQueryResponse struct { 651 state protoimpl.MessageState 652 sizeCache protoimpl.SizeCache 653 unknownFields protoimpl.UnknownFields 654 655 Info []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` 656 MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` 657 Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"` 658 } 659 660 func (x *PushNotificationQueryResponse) Reset() { 661 *x = PushNotificationQueryResponse{} 662 if protoimpl.UnsafeEnabled { 663 mi := &file_push_notifications_proto_msgTypes[5] 664 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 665 ms.StoreMessageInfo(mi) 666 } 667 } 668 669 func (x *PushNotificationQueryResponse) String() string { 670 return protoimpl.X.MessageStringOf(x) 671 } 672 673 func (*PushNotificationQueryResponse) ProtoMessage() {} 674 675 func (x *PushNotificationQueryResponse) ProtoReflect() protoreflect.Message { 676 mi := &file_push_notifications_proto_msgTypes[5] 677 if protoimpl.UnsafeEnabled && x != nil { 678 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 679 if ms.LoadMessageInfo() == nil { 680 ms.StoreMessageInfo(mi) 681 } 682 return ms 683 } 684 return mi.MessageOf(x) 685 } 686 687 // Deprecated: Use PushNotificationQueryResponse.ProtoReflect.Descriptor instead. 688 func (*PushNotificationQueryResponse) Descriptor() ([]byte, []int) { 689 return file_push_notifications_proto_rawDescGZIP(), []int{5} 690 } 691 692 func (x *PushNotificationQueryResponse) GetInfo() []*PushNotificationQueryInfo { 693 if x != nil { 694 return x.Info 695 } 696 return nil 697 } 698 699 func (x *PushNotificationQueryResponse) GetMessageId() []byte { 700 if x != nil { 701 return x.MessageId 702 } 703 return nil 704 } 705 706 func (x *PushNotificationQueryResponse) GetSuccess() bool { 707 if x != nil { 708 return x.Success 709 } 710 return false 711 } 712 713 type PushNotification struct { 714 state protoimpl.MessageState 715 sizeCache protoimpl.SizeCache 716 unknownFields protoimpl.UnknownFields 717 718 AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` 719 ChatId []byte `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` 720 PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 721 InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` 722 Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` 723 Type PushNotification_PushNotificationType `protobuf:"varint,6,opt,name=type,proto3,enum=protobuf.PushNotification_PushNotificationType" json:"type,omitempty"` 724 Author []byte `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty"` 725 } 726 727 func (x *PushNotification) Reset() { 728 *x = PushNotification{} 729 if protoimpl.UnsafeEnabled { 730 mi := &file_push_notifications_proto_msgTypes[6] 731 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 732 ms.StoreMessageInfo(mi) 733 } 734 } 735 736 func (x *PushNotification) String() string { 737 return protoimpl.X.MessageStringOf(x) 738 } 739 740 func (*PushNotification) ProtoMessage() {} 741 742 func (x *PushNotification) ProtoReflect() protoreflect.Message { 743 mi := &file_push_notifications_proto_msgTypes[6] 744 if protoimpl.UnsafeEnabled && x != nil { 745 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 746 if ms.LoadMessageInfo() == nil { 747 ms.StoreMessageInfo(mi) 748 } 749 return ms 750 } 751 return mi.MessageOf(x) 752 } 753 754 // Deprecated: Use PushNotification.ProtoReflect.Descriptor instead. 755 func (*PushNotification) Descriptor() ([]byte, []int) { 756 return file_push_notifications_proto_rawDescGZIP(), []int{6} 757 } 758 759 func (x *PushNotification) GetAccessToken() string { 760 if x != nil { 761 return x.AccessToken 762 } 763 return "" 764 } 765 766 func (x *PushNotification) GetChatId() []byte { 767 if x != nil { 768 return x.ChatId 769 } 770 return nil 771 } 772 773 func (x *PushNotification) GetPublicKey() []byte { 774 if x != nil { 775 return x.PublicKey 776 } 777 return nil 778 } 779 780 func (x *PushNotification) GetInstallationId() string { 781 if x != nil { 782 return x.InstallationId 783 } 784 return "" 785 } 786 787 func (x *PushNotification) GetMessage() []byte { 788 if x != nil { 789 return x.Message 790 } 791 return nil 792 } 793 794 func (x *PushNotification) GetType() PushNotification_PushNotificationType { 795 if x != nil { 796 return x.Type 797 } 798 return PushNotification_UNKNOWN_PUSH_NOTIFICATION_TYPE 799 } 800 801 func (x *PushNotification) GetAuthor() []byte { 802 if x != nil { 803 return x.Author 804 } 805 return nil 806 } 807 808 type PushNotificationRequest struct { 809 state protoimpl.MessageState 810 sizeCache protoimpl.SizeCache 811 unknownFields protoimpl.UnknownFields 812 813 Requests []*PushNotification `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` 814 MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` 815 } 816 817 func (x *PushNotificationRequest) Reset() { 818 *x = PushNotificationRequest{} 819 if protoimpl.UnsafeEnabled { 820 mi := &file_push_notifications_proto_msgTypes[7] 821 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 822 ms.StoreMessageInfo(mi) 823 } 824 } 825 826 func (x *PushNotificationRequest) String() string { 827 return protoimpl.X.MessageStringOf(x) 828 } 829 830 func (*PushNotificationRequest) ProtoMessage() {} 831 832 func (x *PushNotificationRequest) ProtoReflect() protoreflect.Message { 833 mi := &file_push_notifications_proto_msgTypes[7] 834 if protoimpl.UnsafeEnabled && x != nil { 835 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 836 if ms.LoadMessageInfo() == nil { 837 ms.StoreMessageInfo(mi) 838 } 839 return ms 840 } 841 return mi.MessageOf(x) 842 } 843 844 // Deprecated: Use PushNotificationRequest.ProtoReflect.Descriptor instead. 845 func (*PushNotificationRequest) Descriptor() ([]byte, []int) { 846 return file_push_notifications_proto_rawDescGZIP(), []int{7} 847 } 848 849 func (x *PushNotificationRequest) GetRequests() []*PushNotification { 850 if x != nil { 851 return x.Requests 852 } 853 return nil 854 } 855 856 func (x *PushNotificationRequest) GetMessageId() []byte { 857 if x != nil { 858 return x.MessageId 859 } 860 return nil 861 } 862 863 type PushNotificationReport struct { 864 state protoimpl.MessageState 865 sizeCache protoimpl.SizeCache 866 unknownFields protoimpl.UnknownFields 867 868 Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` 869 Error PushNotificationReport_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationReport_ErrorType" json:"error,omitempty"` 870 PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` 871 InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` 872 } 873 874 func (x *PushNotificationReport) Reset() { 875 *x = PushNotificationReport{} 876 if protoimpl.UnsafeEnabled { 877 mi := &file_push_notifications_proto_msgTypes[8] 878 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 879 ms.StoreMessageInfo(mi) 880 } 881 } 882 883 func (x *PushNotificationReport) String() string { 884 return protoimpl.X.MessageStringOf(x) 885 } 886 887 func (*PushNotificationReport) ProtoMessage() {} 888 889 func (x *PushNotificationReport) ProtoReflect() protoreflect.Message { 890 mi := &file_push_notifications_proto_msgTypes[8] 891 if protoimpl.UnsafeEnabled && x != nil { 892 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 893 if ms.LoadMessageInfo() == nil { 894 ms.StoreMessageInfo(mi) 895 } 896 return ms 897 } 898 return mi.MessageOf(x) 899 } 900 901 // Deprecated: Use PushNotificationReport.ProtoReflect.Descriptor instead. 902 func (*PushNotificationReport) Descriptor() ([]byte, []int) { 903 return file_push_notifications_proto_rawDescGZIP(), []int{8} 904 } 905 906 func (x *PushNotificationReport) GetSuccess() bool { 907 if x != nil { 908 return x.Success 909 } 910 return false 911 } 912 913 func (x *PushNotificationReport) GetError() PushNotificationReport_ErrorType { 914 if x != nil { 915 return x.Error 916 } 917 return PushNotificationReport_UNKNOWN_ERROR_TYPE 918 } 919 920 func (x *PushNotificationReport) GetPublicKey() []byte { 921 if x != nil { 922 return x.PublicKey 923 } 924 return nil 925 } 926 927 func (x *PushNotificationReport) GetInstallationId() string { 928 if x != nil { 929 return x.InstallationId 930 } 931 return "" 932 } 933 934 type PushNotificationResponse struct { 935 state protoimpl.MessageState 936 sizeCache protoimpl.SizeCache 937 unknownFields protoimpl.UnknownFields 938 939 MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` 940 Reports []*PushNotificationReport `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"` 941 } 942 943 func (x *PushNotificationResponse) Reset() { 944 *x = PushNotificationResponse{} 945 if protoimpl.UnsafeEnabled { 946 mi := &file_push_notifications_proto_msgTypes[9] 947 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 948 ms.StoreMessageInfo(mi) 949 } 950 } 951 952 func (x *PushNotificationResponse) String() string { 953 return protoimpl.X.MessageStringOf(x) 954 } 955 956 func (*PushNotificationResponse) ProtoMessage() {} 957 958 func (x *PushNotificationResponse) ProtoReflect() protoreflect.Message { 959 mi := &file_push_notifications_proto_msgTypes[9] 960 if protoimpl.UnsafeEnabled && x != nil { 961 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 962 if ms.LoadMessageInfo() == nil { 963 ms.StoreMessageInfo(mi) 964 } 965 return ms 966 } 967 return mi.MessageOf(x) 968 } 969 970 // Deprecated: Use PushNotificationResponse.ProtoReflect.Descriptor instead. 971 func (*PushNotificationResponse) Descriptor() ([]byte, []int) { 972 return file_push_notifications_proto_rawDescGZIP(), []int{9} 973 } 974 975 func (x *PushNotificationResponse) GetMessageId() []byte { 976 if x != nil { 977 return x.MessageId 978 } 979 return nil 980 } 981 982 func (x *PushNotificationResponse) GetReports() []*PushNotificationReport { 983 if x != nil { 984 return x.Reports 985 } 986 return nil 987 } 988 989 var File_push_notifications_proto protoreflect.FileDescriptor 990 991 var file_push_notifications_proto_rawDesc = []byte{ 992 0x0a, 0x18, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 993 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 994 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x13, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 995 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x05, 0x0a, 0x1c, 0x50, 0x75, 996 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 997 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x0a, 0x74, 0x6f, 998 0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 999 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 1000 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 1001 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 1002 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 1003 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 1004 0x09, 0x52, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 1005 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 1006 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 1007 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 1008 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 1009 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 1010 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 1011 0x62, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 1012 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 1013 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x69, 1014 0x73, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 1015 0x64, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x6c, 0x6f, 0x63, 1016 0x6b, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 1017 0x03, 0x28, 0x0c, 0x52, 0x0f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x43, 0x68, 0x61, 0x74, 1018 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 1019 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69, 1020 0x73, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x0a, 0x20, 1021 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x61, 0x6c, 1022 0x6c, 0x6f, 0x77, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 1023 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x61, 0x6c, 1024 0x6c, 0x6f, 0x77, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x4f, 1025 0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x70, 0x6e, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 1026 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x70, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 1027 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 1028 0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d, 1029 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 1030 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x74, 1031 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x17, 0x61, 0x6c, 0x6c, 1032 0x6f, 0x77, 0x65, 0x64, 0x4d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x68, 0x61, 0x74, 1033 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 1034 0x61, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x6d, 1035 0x75, 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x46, 0x0a, 0x09, 1036 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 1037 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 1038 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x50, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 1039 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x52, 0x45, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x4f, 0x4b, 1040 0x45, 0x4e, 0x10, 0x02, 0x22, 0xb2, 0x02, 0x0a, 0x24, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 1041 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 1042 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 1043 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 1044 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 1045 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 1046 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 1047 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 1048 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 1049 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 1050 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x71, 1051 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 1052 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 1053 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 1054 0x4d, 0x41, 0x4c, 0x46, 0x4f, 0x52, 0x4d, 0x45, 0x44, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 1055 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 1056 0x49, 0x53, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x4e, 0x53, 1057 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 1058 0x59, 0x50, 0x45, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 1059 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0xb2, 0x01, 0x0a, 0x18, 0x43, 0x6f, 1060 0x6e, 0x74, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69, 1061 0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x59, 0x0a, 0x16, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6e, 1062 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 1063 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 1064 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 1065 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x14, 0x70, 0x75, 0x73, 1066 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 1067 0x6f, 0x12, 0x3b, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 1068 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 1069 0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 1070 0x52, 0x0c, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x38, 1071 0x0a, 0x15, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 1072 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 1073 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x75, 1074 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x8c, 0x02, 0x0a, 0x19, 0x50, 0x75, 0x73, 1075 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 1076 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 1077 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 1078 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 1079 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 1080 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 1081 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 1082 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 1083 0x79, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 1084 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 1085 0x6f, 0x77, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 1086 0x72, 0x61, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 1087 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 1088 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x73, 1089 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 1090 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x75, 1091 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x1d, 0x50, 0x75, 0x73, 0x68, 1092 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 1093 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x69, 0x6e, 0x66, 1094 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 1095 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 1096 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 1097 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 1098 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 1099 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 1100 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x82, 0x03, 0x0a, 0x10, 1101 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 1102 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 1103 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 1104 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 1105 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 1106 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 1107 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x69, 1108 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 1109 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 1110 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 1111 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 1112 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x70, 1113 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 1114 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 1115 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 1116 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x07, 0x20, 1117 0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x22, 0x73, 0x0a, 0x14, 0x50, 1118 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 1119 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50, 1120 0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 1121 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x53, 0x53, 0x41, 1122 0x47, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x10, 1123 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 1124 0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x10, 0x03, 1125 0x22, 0x70, 0x0a, 0x17, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 1126 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x72, 1127 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 1128 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 1129 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 1130 0x73, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 1131 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 1132 0x49, 0x64, 0x22, 0x9a, 0x02, 0x0a, 0x16, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 1133 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 1134 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 1135 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 1136 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 1137 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 1138 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 1139 0x70, 0x65, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 1140 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 1141 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 1142 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 1143 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 1144 0x64, 0x22, 0x5c, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 1145 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 1146 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x52, 0x4f, 0x4e, 0x47, 0x5f, 1147 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, 1148 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 1149 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x45, 0x52, 0x45, 0x44, 0x10, 0x03, 0x22, 1150 0x75, 0x0a, 0x18, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 1151 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 1152 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 1153 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x72, 0x65, 1154 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 1155 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 1156 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x07, 0x72, 1157 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 1158 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1159 } 1160 1161 var ( 1162 file_push_notifications_proto_rawDescOnce sync.Once 1163 file_push_notifications_proto_rawDescData = file_push_notifications_proto_rawDesc 1164 ) 1165 1166 func file_push_notifications_proto_rawDescGZIP() []byte { 1167 file_push_notifications_proto_rawDescOnce.Do(func() { 1168 file_push_notifications_proto_rawDescData = protoimpl.X.CompressGZIP(file_push_notifications_proto_rawDescData) 1169 }) 1170 return file_push_notifications_proto_rawDescData 1171 } 1172 1173 var file_push_notifications_proto_enumTypes = make([]protoimpl.EnumInfo, 4) 1174 var file_push_notifications_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 1175 var file_push_notifications_proto_goTypes = []interface{}{ 1176 (PushNotificationRegistration_TokenType)(0), // 0: protobuf.PushNotificationRegistration.TokenType 1177 (PushNotificationRegistrationResponse_ErrorType)(0), // 1: protobuf.PushNotificationRegistrationResponse.ErrorType 1178 (PushNotification_PushNotificationType)(0), // 2: protobuf.PushNotification.PushNotificationType 1179 (PushNotificationReport_ErrorType)(0), // 3: protobuf.PushNotificationReport.ErrorType 1180 (*PushNotificationRegistration)(nil), // 4: protobuf.PushNotificationRegistration 1181 (*PushNotificationRegistrationResponse)(nil), // 5: protobuf.PushNotificationRegistrationResponse 1182 (*ContactCodeAdvertisement)(nil), // 6: protobuf.ContactCodeAdvertisement 1183 (*PushNotificationQuery)(nil), // 7: protobuf.PushNotificationQuery 1184 (*PushNotificationQueryInfo)(nil), // 8: protobuf.PushNotificationQueryInfo 1185 (*PushNotificationQueryResponse)(nil), // 9: protobuf.PushNotificationQueryResponse 1186 (*PushNotification)(nil), // 10: protobuf.PushNotification 1187 (*PushNotificationRequest)(nil), // 11: protobuf.PushNotificationRequest 1188 (*PushNotificationReport)(nil), // 12: protobuf.PushNotificationReport 1189 (*PushNotificationResponse)(nil), // 13: protobuf.PushNotificationResponse 1190 (*ChatIdentity)(nil), // 14: protobuf.ChatIdentity 1191 } 1192 var file_push_notifications_proto_depIdxs = []int32{ 1193 0, // 0: protobuf.PushNotificationRegistration.token_type:type_name -> protobuf.PushNotificationRegistration.TokenType 1194 1, // 1: protobuf.PushNotificationRegistrationResponse.error:type_name -> protobuf.PushNotificationRegistrationResponse.ErrorType 1195 8, // 2: protobuf.ContactCodeAdvertisement.push_notification_info:type_name -> protobuf.PushNotificationQueryInfo 1196 14, // 3: protobuf.ContactCodeAdvertisement.chat_identity:type_name -> protobuf.ChatIdentity 1197 8, // 4: protobuf.PushNotificationQueryResponse.info:type_name -> protobuf.PushNotificationQueryInfo 1198 2, // 5: protobuf.PushNotification.type:type_name -> protobuf.PushNotification.PushNotificationType 1199 10, // 6: protobuf.PushNotificationRequest.requests:type_name -> protobuf.PushNotification 1200 3, // 7: protobuf.PushNotificationReport.error:type_name -> protobuf.PushNotificationReport.ErrorType 1201 12, // 8: protobuf.PushNotificationResponse.reports:type_name -> protobuf.PushNotificationReport 1202 9, // [9:9] is the sub-list for method output_type 1203 9, // [9:9] is the sub-list for method input_type 1204 9, // [9:9] is the sub-list for extension type_name 1205 9, // [9:9] is the sub-list for extension extendee 1206 0, // [0:9] is the sub-list for field type_name 1207 } 1208 1209 func init() { file_push_notifications_proto_init() } 1210 func file_push_notifications_proto_init() { 1211 if File_push_notifications_proto != nil { 1212 return 1213 } 1214 file_chat_identity_proto_init() 1215 if !protoimpl.UnsafeEnabled { 1216 file_push_notifications_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1217 switch v := v.(*PushNotificationRegistration); i { 1218 case 0: 1219 return &v.state 1220 case 1: 1221 return &v.sizeCache 1222 case 2: 1223 return &v.unknownFields 1224 default: 1225 return nil 1226 } 1227 } 1228 file_push_notifications_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1229 switch v := v.(*PushNotificationRegistrationResponse); i { 1230 case 0: 1231 return &v.state 1232 case 1: 1233 return &v.sizeCache 1234 case 2: 1235 return &v.unknownFields 1236 default: 1237 return nil 1238 } 1239 } 1240 file_push_notifications_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1241 switch v := v.(*ContactCodeAdvertisement); i { 1242 case 0: 1243 return &v.state 1244 case 1: 1245 return &v.sizeCache 1246 case 2: 1247 return &v.unknownFields 1248 default: 1249 return nil 1250 } 1251 } 1252 file_push_notifications_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1253 switch v := v.(*PushNotificationQuery); i { 1254 case 0: 1255 return &v.state 1256 case 1: 1257 return &v.sizeCache 1258 case 2: 1259 return &v.unknownFields 1260 default: 1261 return nil 1262 } 1263 } 1264 file_push_notifications_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1265 switch v := v.(*PushNotificationQueryInfo); i { 1266 case 0: 1267 return &v.state 1268 case 1: 1269 return &v.sizeCache 1270 case 2: 1271 return &v.unknownFields 1272 default: 1273 return nil 1274 } 1275 } 1276 file_push_notifications_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1277 switch v := v.(*PushNotificationQueryResponse); i { 1278 case 0: 1279 return &v.state 1280 case 1: 1281 return &v.sizeCache 1282 case 2: 1283 return &v.unknownFields 1284 default: 1285 return nil 1286 } 1287 } 1288 file_push_notifications_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1289 switch v := v.(*PushNotification); i { 1290 case 0: 1291 return &v.state 1292 case 1: 1293 return &v.sizeCache 1294 case 2: 1295 return &v.unknownFields 1296 default: 1297 return nil 1298 } 1299 } 1300 file_push_notifications_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1301 switch v := v.(*PushNotificationRequest); i { 1302 case 0: 1303 return &v.state 1304 case 1: 1305 return &v.sizeCache 1306 case 2: 1307 return &v.unknownFields 1308 default: 1309 return nil 1310 } 1311 } 1312 file_push_notifications_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1313 switch v := v.(*PushNotificationReport); i { 1314 case 0: 1315 return &v.state 1316 case 1: 1317 return &v.sizeCache 1318 case 2: 1319 return &v.unknownFields 1320 default: 1321 return nil 1322 } 1323 } 1324 file_push_notifications_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1325 switch v := v.(*PushNotificationResponse); i { 1326 case 0: 1327 return &v.state 1328 case 1: 1329 return &v.sizeCache 1330 case 2: 1331 return &v.unknownFields 1332 default: 1333 return nil 1334 } 1335 } 1336 } 1337 type x struct{} 1338 out := protoimpl.TypeBuilder{ 1339 File: protoimpl.DescBuilder{ 1340 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1341 RawDescriptor: file_push_notifications_proto_rawDesc, 1342 NumEnums: 4, 1343 NumMessages: 10, 1344 NumExtensions: 0, 1345 NumServices: 0, 1346 }, 1347 GoTypes: file_push_notifications_proto_goTypes, 1348 DependencyIndexes: file_push_notifications_proto_depIdxs, 1349 EnumInfos: file_push_notifications_proto_enumTypes, 1350 MessageInfos: file_push_notifications_proto_msgTypes, 1351 }.Build() 1352 File_push_notifications_proto = out.File 1353 file_push_notifications_proto_rawDesc = nil 1354 file_push_notifications_proto_goTypes = nil 1355 file_push_notifications_proto_depIdxs = nil 1356 }