2020-06-30 07:50:59 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2023-11-09 18:59:01 +00:00
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.31.0
|
|
|
|
// protoc v4.24.4
|
2020-06-30 07:50:59 +00:00
|
|
|
// source: push_notifications.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
2023-11-09 18:59:01 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2020-06-30 07:50:59 +00:00
|
|
|
)
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
type PushNotificationRegistration_TokenType int32
|
2020-06-30 07:50:59 +00:00
|
|
|
|
|
|
|
const (
|
2020-07-02 08:08:19 +00:00
|
|
|
PushNotificationRegistration_UNKNOWN_TOKEN_TYPE PushNotificationRegistration_TokenType = 0
|
|
|
|
PushNotificationRegistration_APN_TOKEN PushNotificationRegistration_TokenType = 1
|
|
|
|
PushNotificationRegistration_FIREBASE_TOKEN PushNotificationRegistration_TokenType = 2
|
2020-06-30 07:50:59 +00:00
|
|
|
)
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Enum value maps for PushNotificationRegistration_TokenType.
|
|
|
|
var (
|
|
|
|
PushNotificationRegistration_TokenType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_TOKEN_TYPE",
|
|
|
|
1: "APN_TOKEN",
|
|
|
|
2: "FIREBASE_TOKEN",
|
|
|
|
}
|
|
|
|
PushNotificationRegistration_TokenType_value = map[string]int32{
|
|
|
|
"UNKNOWN_TOKEN_TYPE": 0,
|
|
|
|
"APN_TOKEN": 1,
|
|
|
|
"FIREBASE_TOKEN": 2,
|
|
|
|
}
|
|
|
|
)
|
2023-10-29 08:04:01 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x PushNotificationRegistration_TokenType) Enum() *PushNotificationRegistration_TokenType {
|
|
|
|
p := new(PushNotificationRegistration_TokenType)
|
|
|
|
*p = x
|
|
|
|
return p
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-10-31 14:20:40 +00:00
|
|
|
func (x PushNotificationRegistration_TokenType) String() string {
|
2023-11-09 18:59:01 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PushNotificationRegistration_TokenType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_push_notifications_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PushNotificationRegistration_TokenType) Type() protoreflect.EnumType {
|
|
|
|
return &file_push_notifications_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x PushNotificationRegistration_TokenType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationRegistration_TokenType.Descriptor instead.
|
2020-07-02 08:08:19 +00:00
|
|
|
func (PushNotificationRegistration_TokenType) EnumDescriptor() ([]byte, []int) {
|
2023-11-09 18:59:01 +00:00
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{0, 0}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type PushNotificationRegistrationResponse_ErrorType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
PushNotificationRegistrationResponse_UNKNOWN_ERROR_TYPE PushNotificationRegistrationResponse_ErrorType = 0
|
|
|
|
PushNotificationRegistrationResponse_MALFORMED_MESSAGE PushNotificationRegistrationResponse_ErrorType = 1
|
|
|
|
PushNotificationRegistrationResponse_VERSION_MISMATCH PushNotificationRegistrationResponse_ErrorType = 2
|
|
|
|
PushNotificationRegistrationResponse_UNSUPPORTED_TOKEN_TYPE PushNotificationRegistrationResponse_ErrorType = 3
|
|
|
|
PushNotificationRegistrationResponse_INTERNAL_ERROR PushNotificationRegistrationResponse_ErrorType = 4
|
|
|
|
)
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Enum value maps for PushNotificationRegistrationResponse_ErrorType.
|
|
|
|
var (
|
|
|
|
PushNotificationRegistrationResponse_ErrorType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_ERROR_TYPE",
|
|
|
|
1: "MALFORMED_MESSAGE",
|
|
|
|
2: "VERSION_MISMATCH",
|
|
|
|
3: "UNSUPPORTED_TOKEN_TYPE",
|
|
|
|
4: "INTERNAL_ERROR",
|
|
|
|
}
|
|
|
|
PushNotificationRegistrationResponse_ErrorType_value = map[string]int32{
|
|
|
|
"UNKNOWN_ERROR_TYPE": 0,
|
|
|
|
"MALFORMED_MESSAGE": 1,
|
|
|
|
"VERSION_MISMATCH": 2,
|
|
|
|
"UNSUPPORTED_TOKEN_TYPE": 3,
|
|
|
|
"INTERNAL_ERROR": 4,
|
|
|
|
}
|
|
|
|
)
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x PushNotificationRegistrationResponse_ErrorType) Enum() *PushNotificationRegistrationResponse_ErrorType {
|
|
|
|
p := new(PushNotificationRegistrationResponse_ErrorType)
|
|
|
|
*p = x
|
|
|
|
return p
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-10-31 14:20:40 +00:00
|
|
|
func (x PushNotificationRegistrationResponse_ErrorType) String() string {
|
2023-11-09 18:59:01 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (PushNotificationRegistrationResponse_ErrorType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_push_notifications_proto_enumTypes[1].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PushNotificationRegistrationResponse_ErrorType) Type() protoreflect.EnumType {
|
|
|
|
return &file_push_notifications_proto_enumTypes[1]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x PushNotificationRegistrationResponse_ErrorType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use PushNotificationRegistrationResponse_ErrorType.Descriptor instead.
|
2020-06-30 07:50:59 +00:00
|
|
|
func (PushNotificationRegistrationResponse_ErrorType) EnumDescriptor() ([]byte, []int) {
|
2023-11-09 18:59:01 +00:00
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{1, 0}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-08-18 11:28:05 +00:00
|
|
|
type PushNotification_PushNotificationType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
PushNotification_UNKNOWN_PUSH_NOTIFICATION_TYPE PushNotification_PushNotificationType = 0
|
|
|
|
PushNotification_MESSAGE PushNotification_PushNotificationType = 1
|
|
|
|
PushNotification_MENTION PushNotification_PushNotificationType = 2
|
2021-03-31 16:23:45 +00:00
|
|
|
PushNotification_REQUEST_TO_JOIN_COMMUNITY PushNotification_PushNotificationType = 3
|
2020-08-18 11:28:05 +00:00
|
|
|
)
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Enum value maps for PushNotification_PushNotificationType.
|
|
|
|
var (
|
|
|
|
PushNotification_PushNotificationType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_PUSH_NOTIFICATION_TYPE",
|
|
|
|
1: "MESSAGE",
|
|
|
|
2: "MENTION",
|
|
|
|
3: "REQUEST_TO_JOIN_COMMUNITY",
|
|
|
|
}
|
|
|
|
PushNotification_PushNotificationType_value = map[string]int32{
|
|
|
|
"UNKNOWN_PUSH_NOTIFICATION_TYPE": 0,
|
|
|
|
"MESSAGE": 1,
|
|
|
|
"MENTION": 2,
|
|
|
|
"REQUEST_TO_JOIN_COMMUNITY": 3,
|
|
|
|
}
|
|
|
|
)
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x PushNotification_PushNotificationType) Enum() *PushNotification_PushNotificationType {
|
|
|
|
p := new(PushNotification_PushNotificationType)
|
|
|
|
*p = x
|
|
|
|
return p
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-10-31 14:20:40 +00:00
|
|
|
func (x PushNotification_PushNotificationType) String() string {
|
2023-11-09 18:59:01 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (PushNotification_PushNotificationType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_push_notifications_proto_enumTypes[2].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PushNotification_PushNotificationType) Type() protoreflect.EnumType {
|
|
|
|
return &file_push_notifications_proto_enumTypes[2]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x PushNotification_PushNotificationType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use PushNotification_PushNotificationType.Descriptor instead.
|
2020-08-18 11:28:05 +00:00
|
|
|
func (PushNotification_PushNotificationType) EnumDescriptor() ([]byte, []int) {
|
2023-11-09 18:59:01 +00:00
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{6, 0}
|
2020-08-18 11:28:05 +00:00
|
|
|
}
|
|
|
|
|
2020-07-03 08:02:28 +00:00
|
|
|
type PushNotificationReport_ErrorType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
PushNotificationReport_UNKNOWN_ERROR_TYPE PushNotificationReport_ErrorType = 0
|
|
|
|
PushNotificationReport_WRONG_TOKEN PushNotificationReport_ErrorType = 1
|
|
|
|
PushNotificationReport_INTERNAL_ERROR PushNotificationReport_ErrorType = 2
|
|
|
|
PushNotificationReport_NOT_REGISTERED PushNotificationReport_ErrorType = 3
|
|
|
|
)
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Enum value maps for PushNotificationReport_ErrorType.
|
|
|
|
var (
|
|
|
|
PushNotificationReport_ErrorType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_ERROR_TYPE",
|
|
|
|
1: "WRONG_TOKEN",
|
|
|
|
2: "INTERNAL_ERROR",
|
|
|
|
3: "NOT_REGISTERED",
|
|
|
|
}
|
|
|
|
PushNotificationReport_ErrorType_value = map[string]int32{
|
|
|
|
"UNKNOWN_ERROR_TYPE": 0,
|
|
|
|
"WRONG_TOKEN": 1,
|
|
|
|
"INTERNAL_ERROR": 2,
|
|
|
|
"NOT_REGISTERED": 3,
|
|
|
|
}
|
|
|
|
)
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x PushNotificationReport_ErrorType) Enum() *PushNotificationReport_ErrorType {
|
|
|
|
p := new(PushNotificationReport_ErrorType)
|
|
|
|
*p = x
|
|
|
|
return p
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-10-31 14:20:40 +00:00
|
|
|
func (x PushNotificationReport_ErrorType) String() string {
|
2023-11-09 18:59:01 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PushNotificationReport_ErrorType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_push_notifications_proto_enumTypes[3].Descriptor()
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (PushNotificationReport_ErrorType) Type() protoreflect.EnumType {
|
|
|
|
return &file_push_notifications_proto_enumTypes[3]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x PushNotificationReport_ErrorType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use PushNotificationReport_ErrorType.Descriptor instead.
|
2020-07-03 08:02:28 +00:00
|
|
|
func (PushNotificationReport_ErrorType) EnumDescriptor() ([]byte, []int) {
|
2023-11-09 18:59:01 +00:00
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{8, 0}
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
type PushNotificationRegistration struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-09-01 13:27:01 +00:00
|
|
|
TokenType PushNotificationRegistration_TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=protobuf.PushNotificationRegistration_TokenType" json:"token_type,omitempty"`
|
|
|
|
DeviceToken string `protobuf:"bytes,2,opt,name=device_token,json=deviceToken,proto3" json:"device_token,omitempty"`
|
|
|
|
InstallationId string `protobuf:"bytes,3,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
|
|
|
|
AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
Enabled bool `protobuf:"varint,5,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
|
|
|
Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
AllowedKeyList [][]byte `protobuf:"bytes,7,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"`
|
|
|
|
BlockedChatList [][]byte `protobuf:"bytes,8,rep,name=blocked_chat_list,json=blockedChatList,proto3" json:"blocked_chat_list,omitempty"`
|
|
|
|
Unregister bool `protobuf:"varint,9,opt,name=unregister,proto3" json:"unregister,omitempty"`
|
|
|
|
Grant []byte `protobuf:"bytes,10,opt,name=grant,proto3" json:"grant,omitempty"`
|
|
|
|
AllowFromContactsOnly bool `protobuf:"varint,11,opt,name=allow_from_contacts_only,json=allowFromContactsOnly,proto3" json:"allow_from_contacts_only,omitempty"`
|
|
|
|
ApnTopic string `protobuf:"bytes,12,opt,name=apn_topic,json=apnTopic,proto3" json:"apn_topic,omitempty"`
|
|
|
|
BlockMentions bool `protobuf:"varint,13,opt,name=block_mentions,json=blockMentions,proto3" json:"block_mentions,omitempty"`
|
|
|
|
AllowedMentionsChatList [][]byte `protobuf:"bytes,14,rep,name=allowed_mentions_chat_list,json=allowedMentionsChatList,proto3" json:"allowed_mentions_chat_list,omitempty"`
|
2023-06-22 05:06:32 +00:00
|
|
|
MutedChatList [][]byte `protobuf:"bytes,15,rep,name=muted_chat_list,json=mutedChatList,proto3" json:"muted_chat_list,omitempty"`
|
2020-07-02 08:08:19 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) Reset() {
|
|
|
|
*x = PushNotificationRegistration{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationRegistration) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationRegistration) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationRegistration.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationRegistration) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetTokenType() PushNotificationRegistration_TokenType {
|
|
|
|
if x != nil {
|
|
|
|
return x.TokenType
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-02 08:08:19 +00:00
|
|
|
return PushNotificationRegistration_UNKNOWN_TOKEN_TYPE
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetDeviceToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.DeviceToken
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetInstallationId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.InstallationId
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetAccessToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccessToken
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-01 08:37:54 +00:00
|
|
|
return ""
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetEnabled() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Enabled
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-01 08:37:54 +00:00
|
|
|
return false
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetVersion() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Version
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-01 08:37:54 +00:00
|
|
|
return 0
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetAllowedKeyList() [][]byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.AllowedKeyList
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetBlockedChatList() [][]byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.BlockedChatList
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-01 08:37:54 +00:00
|
|
|
return nil
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetUnregister() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Unregister
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetGrant() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Grant
|
2020-07-13 08:53:13 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetAllowFromContactsOnly() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.AllowFromContactsOnly
|
2020-07-20 08:06:24 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetApnTopic() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ApnTopic
|
2020-07-30 08:24:30 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetBlockMentions() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.BlockMentions
|
2020-09-01 13:27:01 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetAllowedMentionsChatList() [][]byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.AllowedMentionsChatList
|
2020-09-01 13:27:01 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistration) GetMutedChatList() [][]byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.MutedChatList
|
2023-06-22 05:06:32 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotificationRegistrationResponse struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
|
|
Error PushNotificationRegistrationResponse_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationRegistrationResponse_ErrorType" json:"error,omitempty"`
|
|
|
|
RequestId []byte `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
2023-10-25 13:03:26 +00:00
|
|
|
}
|
2023-10-29 08:04:01 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistrationResponse) Reset() {
|
|
|
|
*x = PushNotificationRegistrationResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (x *PushNotificationRegistrationResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationRegistrationResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationRegistrationResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationRegistrationResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationRegistrationResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistrationResponse) GetSuccess() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Success
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistrationResponse) GetError() PushNotificationRegistrationResponse_ErrorType {
|
|
|
|
if x != nil {
|
|
|
|
return x.Error
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return PushNotificationRegistrationResponse_UNKNOWN_ERROR_TYPE
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRegistrationResponse) GetRequestId() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.RequestId
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ContactCodeAdvertisement struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-22 07:41:40 +00:00
|
|
|
PushNotificationInfo []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=push_notification_info,json=pushNotificationInfo,proto3" json:"push_notification_info,omitempty"`
|
2020-11-05 17:35:20 +00:00
|
|
|
ChatIdentity *ChatIdentity `protobuf:"bytes,2,opt,name=chat_identity,json=chatIdentity,proto3" json:"chat_identity,omitempty"`
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *ContactCodeAdvertisement) Reset() {
|
|
|
|
*x = ContactCodeAdvertisement{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *ContactCodeAdvertisement) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*ContactCodeAdvertisement) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ContactCodeAdvertisement) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-10-25 13:03:26 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use ContactCodeAdvertisement.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ContactCodeAdvertisement) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *ContactCodeAdvertisement) GetPushNotificationInfo() []*PushNotificationQueryInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.PushNotificationInfo
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *ContactCodeAdvertisement) GetChatIdentity() *ChatIdentity {
|
|
|
|
if x != nil {
|
|
|
|
return x.ChatIdentity
|
2020-11-05 17:35:20 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotificationQuery struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
|
2023-10-25 13:03:26 +00:00
|
|
|
}
|
2023-10-29 08:04:01 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQuery) Reset() {
|
|
|
|
*x = PushNotificationQuery{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (x *PushNotificationQuery) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationQuery) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationQuery) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationQuery.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationQuery) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQuery) GetPublicKeys() [][]byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.PublicKeys
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PushNotificationQueryInfo struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
InstallationId string `protobuf:"bytes,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
|
|
|
|
PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
|
|
AllowedKeyList [][]byte `protobuf:"bytes,4,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"`
|
|
|
|
Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"`
|
|
|
|
Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
ServerPublicKey []byte `protobuf:"bytes,7,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PushNotificationQueryInfo) Reset() {
|
|
|
|
*x = PushNotificationQueryInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationQueryInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationQueryInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[4]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationQueryInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationQueryInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) GetAccessToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccessToken
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) GetInstallationId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.InstallationId
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) GetPublicKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.PublicKey
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) GetAllowedKeyList() [][]byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.AllowedKeyList
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) GetGrant() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Grant
|
2020-07-13 08:53:13 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) GetVersion() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Version
|
2020-07-17 11:41:49 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryInfo) GetServerPublicKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.ServerPublicKey
|
2020-07-22 07:41:40 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotificationQueryResponse struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
Info []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
|
|
|
|
MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
|
|
|
Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
|
2023-10-25 13:03:26 +00:00
|
|
|
}
|
2023-10-29 08:04:01 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryResponse) Reset() {
|
|
|
|
*x = PushNotificationQueryResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (x *PushNotificationQueryResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationQueryResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationQueryResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[5]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-10-25 13:03:26 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationQueryResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationQueryResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryResponse) GetInfo() []*PushNotificationQueryInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Info
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryResponse) GetMessageId() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.MessageId
|
2020-07-09 16:52:26 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationQueryResponse) GetSuccess() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Success
|
2020-07-02 13:57:50 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotification struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
ChatId []byte `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
|
|
PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
|
|
InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
|
|
|
|
Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
|
|
|
|
Type PushNotification_PushNotificationType `protobuf:"varint,6,opt,name=type,proto3,enum=protobuf.PushNotification_PushNotificationType" json:"type,omitempty"`
|
|
|
|
Author []byte `protobuf:"bytes,7,opt,name=author,proto3" json:"author,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PushNotification) Reset() {
|
|
|
|
*x = PushNotification{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotification) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotification) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[6]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotification.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotification) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) GetAccessToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.AccessToken
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) GetChatId() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.ChatId
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-08-25 09:46:01 +00:00
|
|
|
return nil
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) GetPublicKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.PublicKey
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) GetInstallationId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.InstallationId
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) GetMessage() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Message
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) GetType() PushNotification_PushNotificationType {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
2020-08-18 11:28:05 +00:00
|
|
|
}
|
|
|
|
return PushNotification_UNKNOWN_PUSH_NOTIFICATION_TYPE
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotification) GetAuthor() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Author
|
2020-09-07 08:25:57 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotificationRequest struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
Requests []*PushNotification `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
|
|
|
|
MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
2023-10-12 15:45:23 +00:00
|
|
|
}
|
2023-10-29 08:04:01 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRequest) Reset() {
|
|
|
|
*x = PushNotificationRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[7]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (x *PushNotificationRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[7]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{7}
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRequest) GetRequests() []*PushNotification {
|
|
|
|
if x != nil {
|
|
|
|
return x.Requests
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationRequest) GetMessageId() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.MessageId
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-10 13:26:06 +00:00
|
|
|
return nil
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-07-03 08:02:28 +00:00
|
|
|
type PushNotificationReport struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
|
|
Error PushNotificationReport_ErrorType `protobuf:"varint,2,opt,name=error,proto3,enum=protobuf.PushNotificationReport_ErrorType" json:"error,omitempty"`
|
|
|
|
PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
|
|
InstallationId string `protobuf:"bytes,4,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PushNotificationReport) Reset() {
|
|
|
|
*x = PushNotificationReport{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[8]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationReport) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationReport) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationReport) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[8]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-10-25 13:03:26 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationReport.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationReport) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{8}
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationReport) GetSuccess() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Success
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationReport) GetError() PushNotificationReport_ErrorType {
|
|
|
|
if x != nil {
|
|
|
|
return x.Error
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return PushNotificationReport_UNKNOWN_ERROR_TYPE
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationReport) GetPublicKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.PublicKey
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationReport) GetInstallationId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.InstallationId
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type PushNotificationResponse struct {
|
2023-11-09 18:59:01 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2023-10-12 15:45:23 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
|
|
|
Reports []*PushNotificationReport `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"`
|
2023-10-25 13:03:26 +00:00
|
|
|
}
|
2023-10-29 08:04:01 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationResponse) Reset() {
|
|
|
|
*x = PushNotificationResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[9]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (x *PushNotificationResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
|
|
|
func (*PushNotificationResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PushNotificationResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_push_notifications_proto_msgTypes[9]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
// Deprecated: Use PushNotificationResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PushNotificationResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_push_notifications_proto_rawDescGZIP(), []int{9}
|
|
|
|
}
|
2020-07-03 08:02:28 +00:00
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationResponse) GetMessageId() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.MessageId
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-10 13:26:06 +00:00
|
|
|
return nil
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
func (x *PushNotificationResponse) GetReports() []*PushNotificationReport {
|
|
|
|
if x != nil {
|
|
|
|
return x.Reports
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
var File_push_notifications_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_push_notifications_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x18, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
0x6f, 0x62, 0x75, 0x66, 0x1a, 0x13, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74,
|
|
|
|
0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x05, 0x0a, 0x1c, 0x50, 0x75,
|
|
|
|
0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
|
|
|
|
0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x0a, 0x74, 0x6f,
|
|
|
|
0x6b, 0x65, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30,
|
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f,
|
|
|
|
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
|
|
|
|
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65,
|
|
|
|
0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64,
|
|
|
|
0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27,
|
|
|
|
0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
|
|
|
|
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c,
|
|
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,
|
|
|
|
0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61,
|
|
|
|
0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e,
|
|
|
|
0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61,
|
|
|
|
0x62, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
|
|
|
0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28,
|
|
|
|
0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x69,
|
|
|
|
0x73, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65,
|
|
|
|
0x64, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x6c, 0x6f, 0x63,
|
|
|
|
0x6b, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20,
|
|
|
|
0x03, 0x28, 0x0c, 0x52, 0x0f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x43, 0x68, 0x61, 0x74,
|
|
|
|
0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
|
|
|
|
0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69,
|
|
|
|
0x73, 0x74, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x0a, 0x20,
|
|
|
|
0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x18, 0x61, 0x6c,
|
|
|
|
0x6c, 0x6f, 0x77, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74,
|
|
|
|
0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x61, 0x6c,
|
|
|
|
0x6c, 0x6f, 0x77, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x4f,
|
|
|
|
0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x70, 0x6e, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63,
|
|
|
|
0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x70, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63,
|
|
|
|
0x12, 0x25, 0x0a, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f,
|
|
|
|
0x6e, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x4d,
|
|
|
|
0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
|
|
|
|
0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x63, 0x68, 0x61, 0x74,
|
|
|
|
0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x17, 0x61, 0x6c, 0x6c,
|
|
|
|
0x6f, 0x77, 0x65, 0x64, 0x4d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x68, 0x61, 0x74,
|
|
|
|
0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x75, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68,
|
|
|
|
0x61, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x6d,
|
|
|
|
0x75, 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x46, 0x0a, 0x09,
|
|
|
|
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b,
|
|
|
|
0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10,
|
|
|
|
0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x50, 0x4e, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01,
|
|
|
|
0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x52, 0x45, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x54, 0x4f, 0x4b,
|
|
|
|
0x45, 0x4e, 0x10, 0x02, 0x22, 0xb2, 0x02, 0x0a, 0x24, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74,
|
|
|
|
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
|
|
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a,
|
|
|
|
0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
|
|
|
|
0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
|
|
|
0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65,
|
|
|
|
0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x72, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72,
|
|
|
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f,
|
|
|
|
0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11,
|
|
|
|
0x4d, 0x41, 0x4c, 0x46, 0x4f, 0x52, 0x4d, 0x45, 0x44, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47,
|
|
|
|
0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x4d,
|
|
|
|
0x49, 0x53, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x4e, 0x53,
|
|
|
|
0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54,
|
|
|
|
0x59, 0x50, 0x45, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41,
|
|
|
|
0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0xb2, 0x01, 0x0a, 0x18, 0x43, 0x6f,
|
|
|
|
0x6e, 0x74, 0x61, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x76, 0x65, 0x72, 0x74, 0x69,
|
|
|
|
0x73, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x59, 0x0a, 0x16, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6e,
|
|
|
|
0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
|
|
|
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
|
|
|
0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x14, 0x70, 0x75, 0x73,
|
|
|
|
0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66,
|
|
|
|
0x6f, 0x12, 0x3b, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
|
|
|
|
0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
0x62, 0x75, 0x66, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
|
|
|
|
0x52, 0x0c, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x38,
|
|
|
|
0x0a, 0x15, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69,
|
|
|
|
0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x75,
|
|
|
|
0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x8c, 0x02, 0x0a, 0x19, 0x50, 0x75, 0x73,
|
|
|
|
0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65,
|
|
|
|
0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
|
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
|
|
|
|
0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73,
|
|
|
|
0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79,
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65,
|
|
|
|
0x79, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79,
|
|
|
|
0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x6c, 0x6c,
|
|
|
|
0x6f, 0x77, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67,
|
|
|
|
0x72, 0x61, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e,
|
|
|
|
0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01,
|
|
|
|
0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x73,
|
|
|
|
0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79,
|
|
|
|
0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x75,
|
|
|
|
0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x1d, 0x50, 0x75, 0x73, 0x68,
|
|
|
|
0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72,
|
|
|
|
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x69, 0x6e, 0x66,
|
|
|
|
0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
|
|
|
0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e,
|
|
|
|
0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49,
|
|
|
|
0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x82, 0x03, 0x0a, 0x10,
|
|
|
|
0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f,
|
|
|
|
0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02,
|
|
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a,
|
|
|
|
0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
|
|
|
|
0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x69,
|
|
|
|
0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
|
|
|
|
0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43,
|
|
|
|
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x70,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69,
|
|
|
|
0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74,
|
|
|
|
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
|
|
|
|
0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x07, 0x20,
|
|
|
|
0x01, 0x28, 0x0c, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x22, 0x73, 0x0a, 0x14, 0x50,
|
|
|
|
0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
|
|
|
|
0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50,
|
|
|
|
0x55, 0x53, 0x48, 0x5f, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e,
|
|
|
|
0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x53, 0x53, 0x41,
|
|
|
|
0x47, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x10,
|
|
|
|
0x02, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x4f, 0x5f,
|
|
|
|
0x4a, 0x4f, 0x49, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x55, 0x4e, 0x49, 0x54, 0x59, 0x10, 0x03,
|
|
|
|
0x22, 0x70, 0x0a, 0x17, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x72,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74,
|
|
|
|
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69,
|
|
|
|
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
|
0x49, 0x64, 0x22, 0x9a, 0x02, 0x0a, 0x16, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66,
|
|
|
|
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a,
|
|
|
|
0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
|
|
|
|
0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
|
|
|
0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
|
|
|
|
0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79,
|
|
|
|
0x70, 0x65, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62,
|
|
|
|
0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70,
|
|
|
|
0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74,
|
|
|
|
0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
|
|
|
0x64, 0x22, 0x5c, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16,
|
|
|
|
0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f,
|
|
|
|
0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x52, 0x4f, 0x4e, 0x47, 0x5f,
|
|
|
|
0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52,
|
|
|
|
0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4e,
|
|
|
|
0x4f, 0x54, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x45, 0x52, 0x45, 0x44, 0x10, 0x03, 0x22,
|
|
|
|
0x75, 0x0a, 0x18, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d,
|
|
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
|
|
|
0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x07, 0x72, 0x65,
|
|
|
|
0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66,
|
|
|
|
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x07, 0x72,
|
|
|
|
0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_push_notifications_proto_rawDescOnce sync.Once
|
|
|
|
file_push_notifications_proto_rawDescData = file_push_notifications_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_push_notifications_proto_rawDescGZIP() []byte {
|
|
|
|
file_push_notifications_proto_rawDescOnce.Do(func() {
|
|
|
|
file_push_notifications_proto_rawDescData = protoimpl.X.CompressGZIP(file_push_notifications_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_push_notifications_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_push_notifications_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
|
|
|
var file_push_notifications_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
|
|
var file_push_notifications_proto_goTypes = []interface{}{
|
|
|
|
(PushNotificationRegistration_TokenType)(0), // 0: protobuf.PushNotificationRegistration.TokenType
|
|
|
|
(PushNotificationRegistrationResponse_ErrorType)(0), // 1: protobuf.PushNotificationRegistrationResponse.ErrorType
|
|
|
|
(PushNotification_PushNotificationType)(0), // 2: protobuf.PushNotification.PushNotificationType
|
|
|
|
(PushNotificationReport_ErrorType)(0), // 3: protobuf.PushNotificationReport.ErrorType
|
|
|
|
(*PushNotificationRegistration)(nil), // 4: protobuf.PushNotificationRegistration
|
|
|
|
(*PushNotificationRegistrationResponse)(nil), // 5: protobuf.PushNotificationRegistrationResponse
|
|
|
|
(*ContactCodeAdvertisement)(nil), // 6: protobuf.ContactCodeAdvertisement
|
|
|
|
(*PushNotificationQuery)(nil), // 7: protobuf.PushNotificationQuery
|
|
|
|
(*PushNotificationQueryInfo)(nil), // 8: protobuf.PushNotificationQueryInfo
|
|
|
|
(*PushNotificationQueryResponse)(nil), // 9: protobuf.PushNotificationQueryResponse
|
|
|
|
(*PushNotification)(nil), // 10: protobuf.PushNotification
|
|
|
|
(*PushNotificationRequest)(nil), // 11: protobuf.PushNotificationRequest
|
|
|
|
(*PushNotificationReport)(nil), // 12: protobuf.PushNotificationReport
|
|
|
|
(*PushNotificationResponse)(nil), // 13: protobuf.PushNotificationResponse
|
|
|
|
(*ChatIdentity)(nil), // 14: protobuf.ChatIdentity
|
|
|
|
}
|
|
|
|
var file_push_notifications_proto_depIdxs = []int32{
|
|
|
|
0, // 0: protobuf.PushNotificationRegistration.token_type:type_name -> protobuf.PushNotificationRegistration.TokenType
|
|
|
|
1, // 1: protobuf.PushNotificationRegistrationResponse.error:type_name -> protobuf.PushNotificationRegistrationResponse.ErrorType
|
|
|
|
8, // 2: protobuf.ContactCodeAdvertisement.push_notification_info:type_name -> protobuf.PushNotificationQueryInfo
|
|
|
|
14, // 3: protobuf.ContactCodeAdvertisement.chat_identity:type_name -> protobuf.ChatIdentity
|
|
|
|
8, // 4: protobuf.PushNotificationQueryResponse.info:type_name -> protobuf.PushNotificationQueryInfo
|
|
|
|
2, // 5: protobuf.PushNotification.type:type_name -> protobuf.PushNotification.PushNotificationType
|
|
|
|
10, // 6: protobuf.PushNotificationRequest.requests:type_name -> protobuf.PushNotification
|
|
|
|
3, // 7: protobuf.PushNotificationReport.error:type_name -> protobuf.PushNotificationReport.ErrorType
|
|
|
|
12, // 8: protobuf.PushNotificationResponse.reports:type_name -> protobuf.PushNotificationReport
|
|
|
|
9, // [9:9] is the sub-list for method output_type
|
|
|
|
9, // [9:9] is the sub-list for method input_type
|
|
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
|
|
0, // [0:9] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_push_notifications_proto_init() }
|
|
|
|
func file_push_notifications_proto_init() {
|
|
|
|
if File_push_notifications_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
file_chat_identity_proto_init()
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_push_notifications_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationRegistration); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationRegistrationResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ContactCodeAdvertisement); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationQuery); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationQueryInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationQueryResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotification); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationReport); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_push_notifications_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*PushNotificationResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_push_notifications_proto_rawDesc,
|
|
|
|
NumEnums: 4,
|
|
|
|
NumMessages: 10,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
GoTypes: file_push_notifications_proto_goTypes,
|
|
|
|
DependencyIndexes: file_push_notifications_proto_depIdxs,
|
|
|
|
EnumInfos: file_push_notifications_proto_enumTypes,
|
|
|
|
MessageInfos: file_push_notifications_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_push_notifications_proto = out.File
|
|
|
|
file_push_notifications_proto_rawDesc = nil
|
|
|
|
file_push_notifications_proto_goTypes = nil
|
|
|
|
file_push_notifications_proto_depIdxs = nil
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|