2020-06-30 07:50:59 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: push_notifications.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
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
|
|
|
)
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
var PushNotificationRegistration_TokenType_name = map[int32]string{
|
2020-06-30 07:50:59 +00:00
|
|
|
0: "UNKNOWN_TOKEN_TYPE",
|
|
|
|
1: "APN_TOKEN",
|
|
|
|
2: "FIREBASE_TOKEN",
|
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
var PushNotificationRegistration_TokenType_value = map[string]int32{
|
2020-06-30 07:50:59 +00:00
|
|
|
"UNKNOWN_TOKEN_TYPE": 0,
|
|
|
|
"APN_TOKEN": 1,
|
|
|
|
"FIREBASE_TOKEN": 2,
|
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (x PushNotificationRegistration_TokenType) String() string {
|
|
|
|
return proto.EnumName(PushNotificationRegistration_TokenType_name, int32(x))
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (PushNotificationRegistration_TokenType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_200acd86044eaa5d, []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
|
|
|
|
)
|
|
|
|
|
|
|
|
var PushNotificationRegistrationResponse_ErrorType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_ERROR_TYPE",
|
|
|
|
1: "MALFORMED_MESSAGE",
|
|
|
|
2: "VERSION_MISMATCH",
|
|
|
|
3: "UNSUPPORTED_TOKEN_TYPE",
|
|
|
|
4: "INTERNAL_ERROR",
|
|
|
|
}
|
|
|
|
|
|
|
|
var PushNotificationRegistrationResponse_ErrorType_value = map[string]int32{
|
|
|
|
"UNKNOWN_ERROR_TYPE": 0,
|
|
|
|
"MALFORMED_MESSAGE": 1,
|
|
|
|
"VERSION_MISMATCH": 2,
|
|
|
|
"UNSUPPORTED_TOKEN_TYPE": 3,
|
|
|
|
"INTERNAL_ERROR": 4,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x PushNotificationRegistrationResponse_ErrorType) String() string {
|
|
|
|
return proto.EnumName(PushNotificationRegistrationResponse_ErrorType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PushNotificationRegistrationResponse_ErrorType) EnumDescriptor() ([]byte, []int) {
|
2020-07-02 08:08:19 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{1, 0}
|
2020-06-30 07:50:59 +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
|
|
|
|
)
|
|
|
|
|
|
|
|
var PushNotificationReport_ErrorType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_ERROR_TYPE",
|
|
|
|
1: "WRONG_TOKEN",
|
|
|
|
2: "INTERNAL_ERROR",
|
|
|
|
3: "NOT_REGISTERED",
|
|
|
|
}
|
|
|
|
|
|
|
|
var PushNotificationReport_ErrorType_value = map[string]int32{
|
|
|
|
"UNKNOWN_ERROR_TYPE": 0,
|
|
|
|
"WRONG_TOKEN": 1,
|
|
|
|
"INTERNAL_ERROR": 2,
|
|
|
|
"NOT_REGISTERED": 3,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x PushNotificationReport_ErrorType) String() string {
|
|
|
|
return proto.EnumName(PushNotificationReport_ErrorType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PushNotificationReport_ErrorType) EnumDescriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{8, 0}
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
type PushNotificationRegistration struct {
|
2020-07-20 08:06:24 +00:00
|
|
|
TokenType PushNotificationRegistration_TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=protobuf.PushNotificationRegistration_TokenType" json:"token_type,omitempty"`
|
2020-07-22 07:41:40 +00:00
|
|
|
DeviceToken string `protobuf:"bytes,2,opt,name=device_token,json=deviceToken,proto3" json:"device_token,omitempty"`
|
2020-07-20 08:06:24 +00:00
|
|
|
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"`
|
2020-07-22 07:41:40 +00:00
|
|
|
AllowedKeyList [][]byte `protobuf:"bytes,7,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"`
|
2020-07-20 08:06:24 +00:00
|
|
|
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"`
|
2020-07-30 08:24:30 +00:00
|
|
|
ApnTopic string `protobuf:"bytes,12,opt,name=apn_topic,json=apnTopic,proto3" json:"apn_topic,omitempty"`
|
2020-07-20 08:06:24 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-07-02 08:08:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationRegistration) Reset() { *m = PushNotificationRegistration{} }
|
|
|
|
func (m *PushNotificationRegistration) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationRegistration) ProtoMessage() {}
|
|
|
|
func (*PushNotificationRegistration) Descriptor() ([]byte, []int) {
|
2020-06-30 07:50:59 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{0}
|
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationRegistration.Unmarshal(m, b)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationRegistration.Marshal(b, m, deterministic)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationRegistration.Merge(m, src)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationRegistration.Size(m)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationRegistration.DiscardUnknown(m)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
var xxx_messageInfo_PushNotificationRegistration proto.InternalMessageInfo
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) GetTokenType() PushNotificationRegistration_TokenType {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.TokenType
|
|
|
|
}
|
2020-07-02 08:08:19 +00:00
|
|
|
return PushNotificationRegistration_UNKNOWN_TOKEN_TYPE
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-07-22 07:41:40 +00:00
|
|
|
func (m *PushNotificationRegistration) GetDeviceToken() string {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-22 07:41:40 +00:00
|
|
|
return m.DeviceToken
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) GetInstallationId() string {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.InstallationId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) GetAccessToken() string {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-01 08:37:54 +00:00
|
|
|
return m.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
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) GetEnabled() bool {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-01 08:37:54 +00:00
|
|
|
return m.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
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) GetVersion() uint64 {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-01 08:37:54 +00:00
|
|
|
return m.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
|
|
|
}
|
|
|
|
|
2020-07-22 07:41:40 +00:00
|
|
|
func (m *PushNotificationRegistration) GetAllowedKeyList() [][]byte {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-22 07:41:40 +00:00
|
|
|
return m.AllowedKeyList
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) GetBlockedChatList() [][]byte {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-01 08:37:54 +00:00
|
|
|
return m.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
|
|
|
}
|
|
|
|
|
2020-07-02 08:08:19 +00:00
|
|
|
func (m *PushNotificationRegistration) GetUnregister() bool {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Unregister
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-07-13 08:53:13 +00:00
|
|
|
func (m *PushNotificationRegistration) GetGrant() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Grant
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-20 08:06:24 +00:00
|
|
|
func (m *PushNotificationRegistration) GetAllowFromContactsOnly() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.AllowFromContactsOnly
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-07-30 08:24:30 +00:00
|
|
|
func (m *PushNotificationRegistration) GetApnTopic() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ApnTopic
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotificationRegistrationResponse struct {
|
|
|
|
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"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationRegistrationResponse) Reset() { *m = PushNotificationRegistrationResponse{} }
|
|
|
|
func (m *PushNotificationRegistrationResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationRegistrationResponse) ProtoMessage() {}
|
|
|
|
func (*PushNotificationRegistrationResponse) Descriptor() ([]byte, []int) {
|
2020-07-02 08:08:19 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{1}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationRegistrationResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationRegistrationResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRegistrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationRegistrationResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRegistrationResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationRegistrationResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRegistrationResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationRegistrationResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRegistrationResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationRegistrationResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PushNotificationRegistrationResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PushNotificationRegistrationResponse) GetSuccess() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Success
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationRegistrationResponse) GetError() PushNotificationRegistrationResponse_ErrorType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Error
|
|
|
|
}
|
|
|
|
return PushNotificationRegistrationResponse_UNKNOWN_ERROR_TYPE
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationRegistrationResponse) GetRequestId() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.RequestId
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ContactCodeAdvertisement struct {
|
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"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContactCodeAdvertisement) Reset() { *m = ContactCodeAdvertisement{} }
|
|
|
|
func (m *ContactCodeAdvertisement) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ContactCodeAdvertisement) ProtoMessage() {}
|
|
|
|
func (*ContactCodeAdvertisement) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{2}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ContactCodeAdvertisement) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ContactCodeAdvertisement.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ContactCodeAdvertisement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ContactCodeAdvertisement.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ContactCodeAdvertisement) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ContactCodeAdvertisement.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ContactCodeAdvertisement) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ContactCodeAdvertisement.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ContactCodeAdvertisement) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ContactCodeAdvertisement.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ContactCodeAdvertisement proto.InternalMessageInfo
|
|
|
|
|
2020-07-22 07:41:40 +00:00
|
|
|
func (m *ContactCodeAdvertisement) GetPushNotificationInfo() []*PushNotificationQueryInfo {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.PushNotificationInfo
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PushNotificationQuery struct {
|
|
|
|
PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQuery) Reset() { *m = PushNotificationQuery{} }
|
|
|
|
func (m *PushNotificationQuery) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationQuery) ProtoMessage() {}
|
|
|
|
func (*PushNotificationQuery) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{3}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQuery) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationQuery.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationQuery.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQuery) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationQuery.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQuery) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationQuery.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQuery) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationQuery.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PushNotificationQuery proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PushNotificationQuery) GetPublicKeys() [][]byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PublicKeys
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PushNotificationQueryInfo struct {
|
|
|
|
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"`
|
2020-07-22 07:41:40 +00:00
|
|
|
AllowedKeyList [][]byte `protobuf:"bytes,4,rep,name=allowed_key_list,json=allowedKeyList,proto3" json:"allowed_key_list,omitempty"`
|
2020-07-13 08:53:13 +00:00
|
|
|
Grant []byte `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"`
|
2020-07-17 11:41:49 +00:00
|
|
|
Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
|
2020-07-22 07:41:40 +00:00
|
|
|
ServerPublicKey []byte `protobuf:"bytes,7,opt,name=server_public_key,json=serverPublicKey,proto3" json:"server_public_key,omitempty"`
|
2020-06-30 07:50:59 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryInfo) Reset() { *m = PushNotificationQueryInfo{} }
|
|
|
|
func (m *PushNotificationQueryInfo) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationQueryInfo) ProtoMessage() {}
|
|
|
|
func (*PushNotificationQueryInfo) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{4}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryInfo) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationQueryInfo.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationQueryInfo.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryInfo) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationQueryInfo.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryInfo) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationQueryInfo.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryInfo) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationQueryInfo.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PushNotificationQueryInfo proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryInfo) GetAccessToken() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.AccessToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryInfo) GetInstallationId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.InstallationId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryInfo) GetPublicKey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PublicKey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-22 07:41:40 +00:00
|
|
|
func (m *PushNotificationQueryInfo) GetAllowedKeyList() [][]byte {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-22 07:41:40 +00:00
|
|
|
return m.AllowedKeyList
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-13 08:53:13 +00:00
|
|
|
func (m *PushNotificationQueryInfo) GetGrant() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Grant
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-17 11:41:49 +00:00
|
|
|
func (m *PushNotificationQueryInfo) GetVersion() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Version
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-07-22 07:41:40 +00:00
|
|
|
func (m *PushNotificationQueryInfo) GetServerPublicKey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ServerPublicKey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotificationQueryResponse struct {
|
|
|
|
Info []*PushNotificationQueryInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
|
2020-07-09 16:52:26 +00:00
|
|
|
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"`
|
2020-06-30 07:50:59 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryResponse) Reset() { *m = PushNotificationQueryResponse{} }
|
|
|
|
func (m *PushNotificationQueryResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationQueryResponse) ProtoMessage() {}
|
|
|
|
func (*PushNotificationQueryResponse) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{5}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationQueryResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationQueryResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationQueryResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationQueryResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationQueryResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationQueryResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PushNotificationQueryResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PushNotificationQueryResponse) GetInfo() []*PushNotificationQueryInfo {
|
|
|
|
if m != nil {
|
|
|
|
return m.Info
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-09 16:52:26 +00:00
|
|
|
func (m *PushNotificationQueryResponse) GetMessageId() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.MessageId
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-02 13:57:50 +00:00
|
|
|
func (m *PushNotificationQueryResponse) GetSuccess() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Success
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotification struct {
|
|
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
2020-07-03 08:02:28 +00:00
|
|
|
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"`
|
2020-06-30 07:50:59 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotification) Reset() { *m = PushNotification{} }
|
|
|
|
func (m *PushNotification) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotification) ProtoMessage() {}
|
|
|
|
func (*PushNotification) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{6}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotification) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotification.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PushNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotification.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PushNotification) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotification.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PushNotification) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotification.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PushNotification) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotification.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PushNotification proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PushNotification) GetAccessToken() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.AccessToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotification) GetChatId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ChatId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotification) GetPublicKey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PublicKey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotification) GetInstallationId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.InstallationId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotification) GetMessage() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Message
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
type PushNotificationRequest struct {
|
|
|
|
Requests []*PushNotification `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
|
2020-07-10 13:26:06 +00:00
|
|
|
MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
2020-06-30 07:50:59 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationRequest) Reset() { *m = PushNotificationRequest{} }
|
|
|
|
func (m *PushNotificationRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationRequest) ProtoMessage() {}
|
|
|
|
func (*PushNotificationRequest) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{7}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PushNotificationRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PushNotificationRequest) GetRequests() []*PushNotification {
|
|
|
|
if m != nil {
|
|
|
|
return m.Requests
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-10 13:26:06 +00:00
|
|
|
func (m *PushNotificationRequest) GetMessageId() []byte {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.MessageId
|
|
|
|
}
|
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 {
|
|
|
|
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"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotificationReport) Reset() { *m = PushNotificationReport{} }
|
|
|
|
func (m *PushNotificationReport) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationReport) ProtoMessage() {}
|
|
|
|
func (*PushNotificationReport) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{8}
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotificationReport) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationReport.Unmarshal(m, b)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotificationReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationReport.Marshal(b, m, deterministic)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotificationReport) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationReport.Merge(m, src)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotificationReport) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationReport.Size(m)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotificationReport) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationReport.DiscardUnknown(m)
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
2020-07-03 08:02:28 +00:00
|
|
|
var xxx_messageInfo_PushNotificationReport proto.InternalMessageInfo
|
2020-06-30 07:50:59 +00:00
|
|
|
|
2020-07-03 08:02:28 +00:00
|
|
|
func (m *PushNotificationReport) GetSuccess() bool {
|
2020-06-30 07:50:59 +00:00
|
|
|
if m != nil {
|
2020-07-03 08:02:28 +00:00
|
|
|
return m.Success
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationReport) GetError() PushNotificationReport_ErrorType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Error
|
|
|
|
}
|
|
|
|
return PushNotificationReport_UNKNOWN_ERROR_TYPE
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationReport) GetPublicKey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PublicKey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationReport) GetInstallationId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.InstallationId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type PushNotificationResponse struct {
|
2020-07-10 13:26:06 +00:00
|
|
|
MessageId []byte `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
2020-07-03 08:02:28 +00:00
|
|
|
Reports []*PushNotificationReport `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationResponse) Reset() { *m = PushNotificationResponse{} }
|
|
|
|
func (m *PushNotificationResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PushNotificationResponse) ProtoMessage() {}
|
|
|
|
func (*PushNotificationResponse) Descriptor() ([]byte, []int) {
|
2020-07-22 07:41:40 +00:00
|
|
|
return fileDescriptor_200acd86044eaa5d, []int{9}
|
2020-07-03 08:02:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PushNotificationResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PushNotificationResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PushNotificationResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PushNotificationResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PushNotificationResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PushNotificationResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PushNotificationResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PushNotificationResponse proto.InternalMessageInfo
|
|
|
|
|
2020-07-10 13:26:06 +00:00
|
|
|
func (m *PushNotificationResponse) GetMessageId() []byte {
|
2020-07-03 08:02:28 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.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
|
|
|
func (m *PushNotificationResponse) GetReports() []*PushNotificationReport {
|
|
|
|
if m != nil {
|
|
|
|
return m.Reports
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-30 07:50:59 +00:00
|
|
|
func init() {
|
2020-07-02 08:08:19 +00:00
|
|
|
proto.RegisterEnum("protobuf.PushNotificationRegistration_TokenType", PushNotificationRegistration_TokenType_name, PushNotificationRegistration_TokenType_value)
|
2020-06-30 07:50:59 +00:00
|
|
|
proto.RegisterEnum("protobuf.PushNotificationRegistrationResponse_ErrorType", PushNotificationRegistrationResponse_ErrorType_name, PushNotificationRegistrationResponse_ErrorType_value)
|
2020-07-03 08:02:28 +00:00
|
|
|
proto.RegisterEnum("protobuf.PushNotificationReport_ErrorType", PushNotificationReport_ErrorType_name, PushNotificationReport_ErrorType_value)
|
2020-07-02 08:08:19 +00:00
|
|
|
proto.RegisterType((*PushNotificationRegistration)(nil), "protobuf.PushNotificationRegistration")
|
2020-06-30 07:50:59 +00:00
|
|
|
proto.RegisterType((*PushNotificationRegistrationResponse)(nil), "protobuf.PushNotificationRegistrationResponse")
|
|
|
|
proto.RegisterType((*ContactCodeAdvertisement)(nil), "protobuf.ContactCodeAdvertisement")
|
|
|
|
proto.RegisterType((*PushNotificationQuery)(nil), "protobuf.PushNotificationQuery")
|
|
|
|
proto.RegisterType((*PushNotificationQueryInfo)(nil), "protobuf.PushNotificationQueryInfo")
|
|
|
|
proto.RegisterType((*PushNotificationQueryResponse)(nil), "protobuf.PushNotificationQueryResponse")
|
|
|
|
proto.RegisterType((*PushNotification)(nil), "protobuf.PushNotification")
|
|
|
|
proto.RegisterType((*PushNotificationRequest)(nil), "protobuf.PushNotificationRequest")
|
2020-07-03 08:02:28 +00:00
|
|
|
proto.RegisterType((*PushNotificationReport)(nil), "protobuf.PushNotificationReport")
|
|
|
|
proto.RegisterType((*PushNotificationResponse)(nil), "protobuf.PushNotificationResponse")
|
2020-06-30 07:50:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("push_notifications.proto", fileDescriptor_200acd86044eaa5d) }
|
|
|
|
|
|
|
|
var fileDescriptor_200acd86044eaa5d = []byte{
|
2020-07-30 08:24:30 +00:00
|
|
|
// 896 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4f, 0x6f, 0xe3, 0x44,
|
|
|
|
0x14, 0xc7, 0x49, 0xba, 0x49, 0x5e, 0x42, 0x9a, 0x8e, 0xda, 0xae, 0x59, 0x28, 0x04, 0x83, 0x44,
|
|
|
|
0x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