mirror of
https://github.com/safing/portmaster.git
synced 2026-12-05 10:03:06 +00:00
1168 lines
42 KiB
Go
1168 lines
42 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.21.2
|
|
// source: notification.proto
|
|
|
|
package proto
|
|
|
|
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)
|
|
)
|
|
|
|
type NotificationType int32
|
|
|
|
const (
|
|
NotificationType_NOTIFICATION_TYPE_INFO NotificationType = 0
|
|
NotificationType_NOTIFICATION_TYPE_WARNING NotificationType = 1
|
|
NotificationType_NOTIFICATION_TYPE_PROMPT NotificationType = 2
|
|
NotificationType_NOTIFICATION_TYPE_ERROR NotificationType = 3
|
|
)
|
|
|
|
// Enum value maps for NotificationType.
|
|
var (
|
|
NotificationType_name = map[int32]string{
|
|
0: "NOTIFICATION_TYPE_INFO",
|
|
1: "NOTIFICATION_TYPE_WARNING",
|
|
2: "NOTIFICATION_TYPE_PROMPT",
|
|
3: "NOTIFICATION_TYPE_ERROR",
|
|
}
|
|
NotificationType_value = map[string]int32{
|
|
"NOTIFICATION_TYPE_INFO": 0,
|
|
"NOTIFICATION_TYPE_WARNING": 1,
|
|
"NOTIFICATION_TYPE_PROMPT": 2,
|
|
"NOTIFICATION_TYPE_ERROR": 3,
|
|
}
|
|
)
|
|
|
|
func (x NotificationType) Enum() *NotificationType {
|
|
p := new(NotificationType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x NotificationType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (NotificationType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_notification_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (NotificationType) Type() protoreflect.EnumType {
|
|
return &file_notification_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x NotificationType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use NotificationType.Descriptor instead.
|
|
func (NotificationType) EnumDescriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type NotificationState int32
|
|
|
|
const (
|
|
NotificationState_NOTIFICATION_STATE_UNKNOWN NotificationState = 0
|
|
NotificationState_NOTIFICATION_STATE_ACTIVE NotificationState = 1
|
|
NotificationState_NOTIFICATION_STATE_RESPONDED NotificationState = 2
|
|
NotificationState_NOTIFICATION_STATE_EXECUTED NotificationState = 3
|
|
)
|
|
|
|
// Enum value maps for NotificationState.
|
|
var (
|
|
NotificationState_name = map[int32]string{
|
|
0: "NOTIFICATION_STATE_UNKNOWN",
|
|
1: "NOTIFICATION_STATE_ACTIVE",
|
|
2: "NOTIFICATION_STATE_RESPONDED",
|
|
3: "NOTIFICATION_STATE_EXECUTED",
|
|
}
|
|
NotificationState_value = map[string]int32{
|
|
"NOTIFICATION_STATE_UNKNOWN": 0,
|
|
"NOTIFICATION_STATE_ACTIVE": 1,
|
|
"NOTIFICATION_STATE_RESPONDED": 2,
|
|
"NOTIFICATION_STATE_EXECUTED": 3,
|
|
}
|
|
)
|
|
|
|
func (x NotificationState) Enum() *NotificationState {
|
|
p := new(NotificationState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x NotificationState) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (NotificationState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_notification_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (NotificationState) Type() protoreflect.EnumType {
|
|
return &file_notification_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x NotificationState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use NotificationState.Descriptor instead.
|
|
func (NotificationState) EnumDescriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type WebhookResultAction int32
|
|
|
|
const (
|
|
WebhookResultAction_WEBHOOK_RESULT_ACTION_IGNORE WebhookResultAction = 0
|
|
WebhookResultAction_WEBHOOK_RESULT_ACTION_DISPLAY WebhookResultAction = 1
|
|
)
|
|
|
|
// Enum value maps for WebhookResultAction.
|
|
var (
|
|
WebhookResultAction_name = map[int32]string{
|
|
0: "WEBHOOK_RESULT_ACTION_IGNORE",
|
|
1: "WEBHOOK_RESULT_ACTION_DISPLAY",
|
|
}
|
|
WebhookResultAction_value = map[string]int32{
|
|
"WEBHOOK_RESULT_ACTION_IGNORE": 0,
|
|
"WEBHOOK_RESULT_ACTION_DISPLAY": 1,
|
|
}
|
|
)
|
|
|
|
func (x WebhookResultAction) Enum() *WebhookResultAction {
|
|
p := new(WebhookResultAction)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x WebhookResultAction) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (WebhookResultAction) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_notification_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (WebhookResultAction) Type() protoreflect.EnumType {
|
|
return &file_notification_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x WebhookResultAction) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use WebhookResultAction.Descriptor instead.
|
|
func (WebhookResultAction) EnumDescriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type NotificationAction struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
|
// Types that are assignable to ActionType:
|
|
// *NotificationAction_OpenUrl
|
|
// *NotificationAction_OpenPage
|
|
// *NotificationAction_OpenSetting
|
|
// *NotificationAction_OpenProfile
|
|
// *NotificationAction_InjectEventId
|
|
// *NotificationAction_Webhook
|
|
ActionType isNotificationAction_ActionType `protobuf_oneof:"action_type"`
|
|
}
|
|
|
|
func (x *NotificationAction) Reset() {
|
|
*x = NotificationAction{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotificationAction) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotificationAction) ProtoMessage() {}
|
|
|
|
func (x *NotificationAction) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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 NotificationAction.ProtoReflect.Descriptor instead.
|
|
func (*NotificationAction) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *NotificationAction) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NotificationAction) GetText() string {
|
|
if x != nil {
|
|
return x.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NotificationAction) GetActionType() isNotificationAction_ActionType {
|
|
if m != nil {
|
|
return m.ActionType
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotificationAction) GetOpenUrl() string {
|
|
if x, ok := x.GetActionType().(*NotificationAction_OpenUrl); ok {
|
|
return x.OpenUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NotificationAction) GetOpenPage() string {
|
|
if x, ok := x.GetActionType().(*NotificationAction_OpenPage); ok {
|
|
return x.OpenPage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NotificationAction) GetOpenSetting() *OpenSettingPayload {
|
|
if x, ok := x.GetActionType().(*NotificationAction_OpenSetting); ok {
|
|
return x.OpenSetting
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotificationAction) GetOpenProfile() string {
|
|
if x, ok := x.GetActionType().(*NotificationAction_OpenProfile); ok {
|
|
return x.OpenProfile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NotificationAction) GetInjectEventId() string {
|
|
if x, ok := x.GetActionType().(*NotificationAction_InjectEventId); ok {
|
|
return x.InjectEventId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NotificationAction) GetWebhook() *CallWebhookPayload {
|
|
if x, ok := x.GetActionType().(*NotificationAction_Webhook); ok {
|
|
return x.Webhook
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isNotificationAction_ActionType interface {
|
|
isNotificationAction_ActionType()
|
|
}
|
|
|
|
type NotificationAction_OpenUrl struct {
|
|
OpenUrl string `protobuf:"bytes,3,opt,name=open_url,json=openUrl,proto3,oneof"`
|
|
}
|
|
|
|
type NotificationAction_OpenPage struct {
|
|
OpenPage string `protobuf:"bytes,4,opt,name=open_page,json=openPage,proto3,oneof"`
|
|
}
|
|
|
|
type NotificationAction_OpenSetting struct {
|
|
OpenSetting *OpenSettingPayload `protobuf:"bytes,5,opt,name=open_setting,json=openSetting,proto3,oneof"`
|
|
}
|
|
|
|
type NotificationAction_OpenProfile struct {
|
|
OpenProfile string `protobuf:"bytes,6,opt,name=open_profile,json=openProfile,proto3,oneof"`
|
|
}
|
|
|
|
type NotificationAction_InjectEventId struct {
|
|
InjectEventId string `protobuf:"bytes,7,opt,name=inject_event_id,json=injectEventId,proto3,oneof"`
|
|
}
|
|
|
|
type NotificationAction_Webhook struct {
|
|
Webhook *CallWebhookPayload `protobuf:"bytes,8,opt,name=webhook,proto3,oneof"`
|
|
}
|
|
|
|
func (*NotificationAction_OpenUrl) isNotificationAction_ActionType() {}
|
|
|
|
func (*NotificationAction_OpenPage) isNotificationAction_ActionType() {}
|
|
|
|
func (*NotificationAction_OpenSetting) isNotificationAction_ActionType() {}
|
|
|
|
func (*NotificationAction_OpenProfile) isNotificationAction_ActionType() {}
|
|
|
|
func (*NotificationAction_InjectEventId) isNotificationAction_ActionType() {}
|
|
|
|
func (*NotificationAction_Webhook) isNotificationAction_ActionType() {}
|
|
|
|
type CallWebhookPayload struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
|
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
|
Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
ResultAction WebhookResultAction `protobuf:"varint,4,opt,name=result_action,json=resultAction,proto3,enum=safing.portmaster.plugin.proto.WebhookResultAction" json:"result_action,omitempty"`
|
|
}
|
|
|
|
func (x *CallWebhookPayload) Reset() {
|
|
*x = CallWebhookPayload{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CallWebhookPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CallWebhookPayload) ProtoMessage() {}
|
|
|
|
func (x *CallWebhookPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use CallWebhookPayload.ProtoReflect.Descriptor instead.
|
|
func (*CallWebhookPayload) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CallWebhookPayload) GetMethod() string {
|
|
if x != nil {
|
|
return x.Method
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CallWebhookPayload) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CallWebhookPayload) GetPayload() string {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CallWebhookPayload) GetResultAction() WebhookResultAction {
|
|
if x != nil {
|
|
return x.ResultAction
|
|
}
|
|
return WebhookResultAction_WEBHOOK_RESULT_ACTION_IGNORE
|
|
}
|
|
|
|
type OpenSettingPayload struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
|
|
}
|
|
|
|
func (x *OpenSettingPayload) Reset() {
|
|
*x = OpenSettingPayload{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *OpenSettingPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OpenSettingPayload) ProtoMessage() {}
|
|
|
|
func (x *OpenSettingPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use OpenSettingPayload.ProtoReflect.Descriptor instead.
|
|
func (*OpenSettingPayload) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *OpenSettingPayload) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OpenSettingPayload) GetProfile() string {
|
|
if x != nil {
|
|
return x.Profile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Notification struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
|
|
Guid string `protobuf:"bytes,2,opt,name=guid,proto3" json:"guid,omitempty"`
|
|
Type NotificationType `protobuf:"varint,3,opt,name=type,proto3,enum=safing.portmaster.plugin.proto.NotificationType" json:"type,omitempty"`
|
|
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
|
|
Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
|
|
Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
|
|
ShowOnSystem bool `protobuf:"varint,7,opt,name=show_on_system,json=showOnSystem,proto3" json:"show_on_system,omitempty"`
|
|
Expires int64 `protobuf:"varint,8,opt,name=expires,proto3" json:"expires,omitempty"`
|
|
State NotificationState `protobuf:"varint,9,opt,name=state,proto3,enum=safing.portmaster.plugin.proto.NotificationState" json:"state,omitempty"`
|
|
Actions []*NotificationAction `protobuf:"bytes,10,rep,name=actions,proto3" json:"actions,omitempty"`
|
|
}
|
|
|
|
func (x *Notification) Reset() {
|
|
*x = Notification{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Notification) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Notification) ProtoMessage() {}
|
|
|
|
func (x *Notification) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use Notification.ProtoReflect.Descriptor instead.
|
|
func (*Notification) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Notification) GetEventId() string {
|
|
if x != nil {
|
|
return x.EventId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetGuid() string {
|
|
if x != nil {
|
|
return x.Guid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetType() NotificationType {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return NotificationType_NOTIFICATION_TYPE_INFO
|
|
}
|
|
|
|
func (x *Notification) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetShowOnSystem() bool {
|
|
if x != nil {
|
|
return x.ShowOnSystem
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Notification) GetExpires() int64 {
|
|
if x != nil {
|
|
return x.Expires
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Notification) GetState() NotificationState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return NotificationState_NOTIFICATION_STATE_UNKNOWN
|
|
}
|
|
|
|
func (x *Notification) GetActions() []*NotificationAction {
|
|
if x != nil {
|
|
return x.Actions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateNotificationRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Notification *Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification,omitempty"`
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) Reset() {
|
|
*x = CreateNotificationRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateNotificationRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateNotificationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use CreateNotificationRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateNotificationRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) GetNotification() *Notification {
|
|
if x != nil {
|
|
return x.Notification
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateNotificationResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
SelectedActionId string `protobuf:"bytes,1,opt,name=selected_action_id,json=selectedActionId,proto3" json:"selected_action_id,omitempty"`
|
|
}
|
|
|
|
func (x *CreateNotificationResponse) Reset() {
|
|
*x = CreateNotificationResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CreateNotificationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateNotificationResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateNotificationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use CreateNotificationResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateNotificationResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CreateNotificationResponse) GetSelectedActionId() string {
|
|
if x != nil {
|
|
return x.SelectedActionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ResolveNotificationRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
|
|
SelectedActionId string `protobuf:"bytes,2,opt,name=selected_action_id,json=selectedActionId,proto3" json:"selected_action_id,omitempty"`
|
|
}
|
|
|
|
func (x *ResolveNotificationRequest) Reset() {
|
|
*x = ResolveNotificationRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ResolveNotificationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResolveNotificationRequest) ProtoMessage() {}
|
|
|
|
func (x *ResolveNotificationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use ResolveNotificationRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResolveNotificationRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ResolveNotificationRequest) GetEventId() string {
|
|
if x != nil {
|
|
return x.EventId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResolveNotificationRequest) GetSelectedActionId() string {
|
|
if x != nil {
|
|
return x.SelectedActionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ResolveNotificationResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *ResolveNotificationResponse) Reset() {
|
|
*x = ResolveNotificationResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ResolveNotificationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResolveNotificationResponse) ProtoMessage() {}
|
|
|
|
func (x *ResolveNotificationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use ResolveNotificationResponse.ProtoReflect.Descriptor instead.
|
|
func (*ResolveNotificationResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type WatchNotificationsRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *WatchNotificationsRequest) Reset() {
|
|
*x = WatchNotificationsRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *WatchNotificationsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchNotificationsRequest) ProtoMessage() {}
|
|
|
|
func (x *WatchNotificationsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use WatchNotificationsRequest.ProtoReflect.Descriptor instead.
|
|
func (*WatchNotificationsRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type WatchNotificationsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *WatchNotificationsResponse) Reset() {
|
|
*x = WatchNotificationsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *WatchNotificationsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchNotificationsResponse) ProtoMessage() {}
|
|
|
|
func (x *WatchNotificationsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_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)
|
|
}
|
|
|
|
// Deprecated: Use WatchNotificationsResponse.ProtoReflect.Descriptor instead.
|
|
func (*WatchNotificationsResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
var File_notification_proto protoreflect.FileDescriptor
|
|
|
|
var file_notification_proto_rawDesc = []byte{
|
|
0x0a, 0x12, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f, 0x72,
|
|
0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfb, 0x02, 0x0a, 0x12, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74,
|
|
0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12,
|
|
0x1b, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x70, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x09,
|
|
0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48,
|
|
0x00, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x50, 0x61, 0x67, 0x65, 0x12, 0x57, 0x0a, 0x0c, 0x6f,
|
|
0x70, 0x65, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
0x0b, 0x32, 0x32, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d,
|
|
0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61,
|
|
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x53, 0x65, 0x74,
|
|
0x74, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x70, 0x72, 0x6f,
|
|
0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x70,
|
|
0x65, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x6e, 0x6a,
|
|
0x65, 0x63, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01,
|
|
0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x76, 0x65, 0x6e,
|
|
0x74, 0x49, 0x64, 0x12, 0x4e, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x08,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f,
|
|
0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f,
|
|
0x6b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x00, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68,
|
|
0x6f, 0x6f, 0x6b, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79,
|
|
0x70, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x12, 0x43, 0x61, 0x6c, 0x6c, 0x57, 0x65, 0x62, 0x68, 0x6f,
|
|
0x6f, 0x6b, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
|
|
0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
|
|
0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
|
0x75, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x58, 0x0a,
|
|
0x0d, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04,
|
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f,
|
|
0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73,
|
|
0x75, 0x6c, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x75, 0x6c,
|
|
0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x6e, 0x53,
|
|
0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x10, 0x0a,
|
|
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
|
|
0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xa6, 0x03, 0x0a, 0x0c, 0x4e, 0x6f,
|
|
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x76,
|
|
0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x76,
|
|
0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x75, 0x69, 0x64, 0x12, 0x44, 0x0a, 0x04, 0x74, 0x79, 0x70,
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67,
|
|
0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67,
|
|
0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
|
|
0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
|
|
0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
|
|
0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x73,
|
|
0x68, 0x6f, 0x77, 0x5f, 0x6f, 0x6e, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x07, 0x20,
|
|
0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x4f, 0x6e, 0x53, 0x79, 0x73, 0x74, 0x65,
|
|
0x6d, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01,
|
|
0x28, 0x03, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x73,
|
|
0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x73, 0x61, 0x66,
|
|
0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70,
|
|
0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x69,
|
|
0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73,
|
|
0x74, 0x61, 0x74, 0x65, 0x12, 0x4c, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
|
|
0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70,
|
|
0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x73, 0x22, 0x6d, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69,
|
|
0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
0x50, 0x0a, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70,
|
|
0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x22, 0x4a, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66,
|
|
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
0x2c, 0x0a, 0x12, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x65, 0x6c,
|
|
0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a,
|
|
0x1a, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
|
|
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65,
|
|
0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65,
|
|
0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74,
|
|
0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x10, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x49, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x4e,
|
|
0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x22, 0x1b, 0x0a, 0x19, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4e, 0x6f, 0x74, 0x69,
|
|
0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x22, 0x1c, 0x0a, 0x1a, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x88,
|
|
0x01, 0x0a, 0x10, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
|
|
0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54,
|
|
0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x00, 0x12,
|
|
0x1d, 0x0a, 0x19, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
|
|
0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1c,
|
|
0x0a, 0x18, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54,
|
|
0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4d, 0x50, 0x54, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17,
|
|
0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50,
|
|
0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x2a, 0x95, 0x01, 0x0a, 0x11, 0x4e, 0x6f,
|
|
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
|
0x1e, 0x0a, 0x1a, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
|
|
0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12,
|
|
0x1d, 0x0a, 0x19, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
|
|
0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x20,
|
|
0x0a, 0x1c, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53,
|
|
0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x02,
|
|
0x12, 0x1f, 0x0a, 0x1b, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e,
|
|
0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x45, 0x44, 0x10,
|
|
0x03, 0x2a, 0x5a, 0x0a, 0x13, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x75,
|
|
0x6c, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x1c, 0x57, 0x45, 0x42, 0x48,
|
|
0x4f, 0x4f, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f,
|
|
0x4e, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x57, 0x45,
|
|
0x42, 0x48, 0x4f, 0x4f, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x5f, 0x41, 0x43, 0x54,
|
|
0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x10, 0x01, 0x32, 0xa7, 0x01,
|
|
0x0a, 0x13, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,
|
|
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x2e, 0x73,
|
|
0x61, 0x66, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72,
|
|
0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x72,
|
|
0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x73, 0x61, 0x66, 0x69, 0x6e, 0x67,
|
|
0x2e, 0x70, 0x6f, 0x72, 0x74, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67,
|
|
0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e,
|
|
0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_notification_proto_rawDescOnce sync.Once
|
|
file_notification_proto_rawDescData = file_notification_proto_rawDesc
|
|
)
|
|
|
|
func file_notification_proto_rawDescGZIP() []byte {
|
|
file_notification_proto_rawDescOnce.Do(func() {
|
|
file_notification_proto_rawDescData = protoimpl.X.CompressGZIP(file_notification_proto_rawDescData)
|
|
})
|
|
return file_notification_proto_rawDescData
|
|
}
|
|
|
|
var file_notification_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
|
var file_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
var file_notification_proto_goTypes = []interface{}{
|
|
(NotificationType)(0), // 0: safing.portmaster.plugin.proto.NotificationType
|
|
(NotificationState)(0), // 1: safing.portmaster.plugin.proto.NotificationState
|
|
(WebhookResultAction)(0), // 2: safing.portmaster.plugin.proto.WebhookResultAction
|
|
(*NotificationAction)(nil), // 3: safing.portmaster.plugin.proto.NotificationAction
|
|
(*CallWebhookPayload)(nil), // 4: safing.portmaster.plugin.proto.CallWebhookPayload
|
|
(*OpenSettingPayload)(nil), // 5: safing.portmaster.plugin.proto.OpenSettingPayload
|
|
(*Notification)(nil), // 6: safing.portmaster.plugin.proto.Notification
|
|
(*CreateNotificationRequest)(nil), // 7: safing.portmaster.plugin.proto.CreateNotificationRequest
|
|
(*CreateNotificationResponse)(nil), // 8: safing.portmaster.plugin.proto.CreateNotificationResponse
|
|
(*ResolveNotificationRequest)(nil), // 9: safing.portmaster.plugin.proto.ResolveNotificationRequest
|
|
(*ResolveNotificationResponse)(nil), // 10: safing.portmaster.plugin.proto.ResolveNotificationResponse
|
|
(*WatchNotificationsRequest)(nil), // 11: safing.portmaster.plugin.proto.WatchNotificationsRequest
|
|
(*WatchNotificationsResponse)(nil), // 12: safing.portmaster.plugin.proto.WatchNotificationsResponse
|
|
}
|
|
var file_notification_proto_depIdxs = []int32{
|
|
5, // 0: safing.portmaster.plugin.proto.NotificationAction.open_setting:type_name -> safing.portmaster.plugin.proto.OpenSettingPayload
|
|
4, // 1: safing.portmaster.plugin.proto.NotificationAction.webhook:type_name -> safing.portmaster.plugin.proto.CallWebhookPayload
|
|
2, // 2: safing.portmaster.plugin.proto.CallWebhookPayload.result_action:type_name -> safing.portmaster.plugin.proto.WebhookResultAction
|
|
0, // 3: safing.portmaster.plugin.proto.Notification.type:type_name -> safing.portmaster.plugin.proto.NotificationType
|
|
1, // 4: safing.portmaster.plugin.proto.Notification.state:type_name -> safing.portmaster.plugin.proto.NotificationState
|
|
3, // 5: safing.portmaster.plugin.proto.Notification.actions:type_name -> safing.portmaster.plugin.proto.NotificationAction
|
|
6, // 6: safing.portmaster.plugin.proto.CreateNotificationRequest.notification:type_name -> safing.portmaster.plugin.proto.Notification
|
|
7, // 7: safing.portmaster.plugin.proto.NotificationService.CreateNotification:input_type -> safing.portmaster.plugin.proto.CreateNotificationRequest
|
|
8, // 8: safing.portmaster.plugin.proto.NotificationService.CreateNotification:output_type -> safing.portmaster.plugin.proto.CreateNotificationResponse
|
|
8, // [8:9] is the sub-list for method output_type
|
|
7, // [7:8] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_notification_proto_init() }
|
|
func file_notification_proto_init() {
|
|
if File_notification_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_notification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NotificationAction); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CallWebhookPayload); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*OpenSettingPayload); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Notification); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CreateNotificationRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CreateNotificationResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ResolveNotificationRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ResolveNotificationResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*WatchNotificationsRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*WatchNotificationsResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[0].OneofWrappers = []interface{}{
|
|
(*NotificationAction_OpenUrl)(nil),
|
|
(*NotificationAction_OpenPage)(nil),
|
|
(*NotificationAction_OpenSetting)(nil),
|
|
(*NotificationAction_OpenProfile)(nil),
|
|
(*NotificationAction_InjectEventId)(nil),
|
|
(*NotificationAction_Webhook)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_notification_proto_rawDesc,
|
|
NumEnums: 3,
|
|
NumMessages: 10,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_notification_proto_goTypes,
|
|
DependencyIndexes: file_notification_proto_depIdxs,
|
|
EnumInfos: file_notification_proto_enumTypes,
|
|
MessageInfos: file_notification_proto_msgTypes,
|
|
}.Build()
|
|
File_notification_proto = out.File
|
|
file_notification_proto_rawDesc = nil
|
|
file_notification_proto_goTypes = nil
|
|
file_notification_proto_depIdxs = nil
|
|
}
|