overpush/proto/message.pb.go

359 lines
12 KiB
Go
Raw Normal View History

2023-05-25 06:57:56 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v3.12.4
// source: message.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
2023-06-08 20:43:48 +00:00
type MessageType int32
2023-05-25 06:57:56 +00:00
const (
2023-06-08 20:43:48 +00:00
MessageType_MessageTypeInvalid MessageType = 0
MessageType_MessageTypeMessage MessageType = 1
MessageType_MessageTypeMessageWithTitle MessageType = 2
MessageType_MessageTypeMessageWithAttachment MessageType = 3
2023-05-25 06:57:56 +00:00
)
2023-06-08 20:43:48 +00:00
// Enum value maps for MessageType.
2023-05-25 06:57:56 +00:00
var (
2023-06-08 20:43:48 +00:00
MessageType_name = map[int32]string{
0: "MessageTypeInvalid",
1: "MessageTypeMessage",
2: "MessageTypeMessageWithTitle",
3: "MessageTypeMessageWithAttachment",
2023-05-25 06:57:56 +00:00
}
2023-06-08 20:43:48 +00:00
MessageType_value = map[string]int32{
"MessageTypeInvalid": 0,
"MessageTypeMessage": 1,
"MessageTypeMessageWithTitle": 2,
"MessageTypeMessageWithAttachment": 3,
2023-05-25 06:57:56 +00:00
}
)
2023-06-08 20:43:48 +00:00
func (x MessageType) Enum() *MessageType {
p := new(MessageType)
2023-05-25 06:57:56 +00:00
*p = x
return p
}
2023-06-08 20:43:48 +00:00
func (x MessageType) String() string {
2023-05-25 06:57:56 +00:00
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
2023-06-08 20:43:48 +00:00
func (MessageType) Descriptor() protoreflect.EnumDescriptor {
2023-05-25 06:57:56 +00:00
return file_message_proto_enumTypes[0].Descriptor()
}
2023-06-08 20:43:48 +00:00
func (MessageType) Type() protoreflect.EnumType {
2023-05-25 06:57:56 +00:00
return &file_message_proto_enumTypes[0]
}
2023-06-08 20:43:48 +00:00
func (x MessageType) Number() protoreflect.EnumNumber {
2023-05-25 06:57:56 +00:00
return protoreflect.EnumNumber(x)
}
2023-06-08 20:43:48 +00:00
// Deprecated: Use MessageType.Descriptor instead.
func (MessageType) EnumDescriptor() ([]byte, []int) {
2023-05-25 06:57:56 +00:00
return file_message_proto_rawDescGZIP(), []int{0}
}
type Priority int32
const (
Priority_PriorityInvalid Priority = 0
Priority_PriorityLowest Priority = 1
Priority_PriorityLow Priority = 2
Priority_PriorityNormal Priority = 3
Priority_PriorityHigh Priority = 4
Priority_PriorityEmergency Priority = 5
)
// Enum value maps for Priority.
var (
Priority_name = map[int32]string{
0: "PriorityInvalid",
1: "PriorityLowest",
2: "PriorityLow",
3: "PriorityNormal",
4: "PriorityHigh",
5: "PriorityEmergency",
}
Priority_value = map[string]int32{
"PriorityInvalid": 0,
"PriorityLowest": 1,
"PriorityLow": 2,
"PriorityNormal": 3,
"PriorityHigh": 4,
"PriorityEmergency": 5,
}
)
func (x Priority) Enum() *Priority {
p := new(Priority)
*p = x
return p
}
func (x Priority) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Priority) Descriptor() protoreflect.EnumDescriptor {
return file_message_proto_enumTypes[1].Descriptor()
}
func (Priority) Type() protoreflect.EnumType {
return &file_message_proto_enumTypes[1]
}
func (x Priority) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Priority.Descriptor instead.
func (Priority) EnumDescriptor() ([]byte, []int) {
return file_message_proto_rawDescGZIP(), []int{1}
}
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2023-06-08 20:43:48 +00:00
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Type MessageType `protobuf:"varint,2,opt,name=type,proto3,enum=overpush.MessageType" json:"type,omitempty"`
Priority Priority `protobuf:"varint,3,opt,name=priority,proto3,enum=overpush.Priority" json:"priority,omitempty"`
Recipients []string `protobuf:"bytes,4,rep,name=recipients,proto3" json:"recipients,omitempty"`
StreamName string `protobuf:"bytes,5,opt,name=stream_name,json=streamName,proto3" json:"stream_name,omitempty"` // string transmitter = 6;
Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
Text string `protobuf:"bytes,9,opt,name=text,proto3" json:"text,omitempty"`
Attachment []byte `protobuf:"bytes,10,opt,name=attachment,proto3" json:"attachment,omitempty"`
Url *URL `protobuf:"bytes,11,opt,name=url,proto3" json:"url,omitempty"`
2023-05-25 06:57:56 +00:00
}
func (x *Message) Reset() {
*x = Message{}
if protoimpl.UnsafeEnabled {
mi := &file_message_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Message) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
mi := &file_message_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)
}
// Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (*Message) Descriptor() ([]byte, []int) {
return file_message_proto_rawDescGZIP(), []int{0}
}
2023-06-08 20:43:48 +00:00
func (x *Message) GetTimestamp() int64 {
2023-05-25 06:57:56 +00:00
if x != nil {
return x.Timestamp
}
return 0
}
2023-06-08 20:43:48 +00:00
func (x *Message) GetType() MessageType {
2023-05-25 06:57:56 +00:00
if x != nil {
return x.Type
}
2023-06-08 20:43:48 +00:00
return MessageType_MessageTypeInvalid
2023-05-25 06:57:56 +00:00
}
func (x *Message) GetPriority() Priority {
if x != nil {
return x.Priority
}
return Priority_PriorityInvalid
}
func (x *Message) GetRecipients() []string {
if x != nil {
return x.Recipients
}
return nil
}
func (x *Message) GetStreamName() string {
if x != nil {
return x.StreamName
}
return ""
}
func (x *Message) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Message) GetText() string {
if x != nil {
return x.Text
}
return ""
}
func (x *Message) GetAttachment() []byte {
if x != nil {
return x.Attachment
}
return nil
}
2023-06-08 20:43:48 +00:00
func (x *Message) GetUrl() *URL {
if x != nil {
return x.Url
}
return nil
}
2023-05-25 06:57:56 +00:00
var File_message_proto protoreflect.FileDescriptor
var file_message_proto_rawDesc = []byte{
0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
2023-06-08 20:43:48 +00:00
0x08, 0x6f, 0x76, 0x65, 0x72, 0x70, 0x75, 0x73, 0x68, 0x1a, 0x09, 0x75, 0x72, 0x6c, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x29,
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x6f,
0x76, 0x65, 0x72, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54,
0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x08, 0x70, 0x72, 0x69,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x6f, 0x76,
0x65, 0x72, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52,
0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x63,
0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x72,
0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x72,
0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
0x74, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65,
0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68,
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x0d, 0x2e, 0x6f, 0x76, 0x65, 0x72, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x55, 0x52, 0x4c,
0x52, 0x03, 0x75, 0x72, 0x6c, 0x2a, 0x84, 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x10, 0x00, 0x12, 0x16, 0x0a,
0x12, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68, 0x54,
0x69, 0x74, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x24, 0x0a, 0x20, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x57, 0x69, 0x74, 0x68,
0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x10, 0x03, 0x2a, 0x81, 0x01, 0x0a,
0x08, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x72, 0x69,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x10, 0x00, 0x12, 0x12,
0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x77, 0x65, 0x73, 0x74,
0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4c, 0x6f,
0x77, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4e,
0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x72, 0x69, 0x6f, 0x72,
0x69, 0x74, 0x79, 0x48, 0x69, 0x67, 0x68, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x72, 0x69,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x10, 0x05,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
2023-05-25 06:57:56 +00:00
}
var (
file_message_proto_rawDescOnce sync.Once
file_message_proto_rawDescData = file_message_proto_rawDesc
)
func file_message_proto_rawDescGZIP() []byte {
file_message_proto_rawDescOnce.Do(func() {
file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
})
return file_message_proto_rawDescData
}
var file_message_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_message_proto_goTypes = []interface{}{
2023-06-08 20:43:48 +00:00
(MessageType)(0), // 0: overpush.MessageType
(Priority)(0), // 1: overpush.Priority
(*Message)(nil), // 2: overpush.Message
(*URL)(nil), // 3: overpush.URL
2023-05-25 06:57:56 +00:00
}
var file_message_proto_depIdxs = []int32{
2023-06-08 20:43:48 +00:00
0, // 0: overpush.Message.type:type_name -> overpush.MessageType
2023-05-25 06:57:56 +00:00
1, // 1: overpush.Message.priority:type_name -> overpush.Priority
2023-06-08 20:43:48 +00:00
3, // 2: overpush.Message.url:type_name -> overpush.URL
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
2023-05-25 06:57:56 +00:00
}
func init() { file_message_proto_init() }
func file_message_proto_init() {
if File_message_proto != nil {
return
}
2023-06-08 20:43:48 +00:00
file_url_proto_init()
2023-05-25 06:57:56 +00:00
if !protoimpl.UnsafeEnabled {
file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Message); 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_message_proto_rawDesc,
NumEnums: 2,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_message_proto_goTypes,
DependencyIndexes: file_message_proto_depIdxs,
EnumInfos: file_message_proto_enumTypes,
MessageInfos: file_message_proto_msgTypes,
}.Build()
File_message_proto = out.File
file_message_proto_rawDesc = nil
file_message_proto_goTypes = nil
file_message_proto_depIdxs = nil
}