mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
1179 lines
41 KiB
Go
1179 lines
41 KiB
Go
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
// Licensed under the GNU Affero General Public License (AGPL).
|
|
// See License.AGPL.txt in the project root for license information.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.1
|
|
// protoc v3.20.1
|
|
// source: notification.proto
|
|
|
|
package api
|
|
|
|
import (
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
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 NotifyRequest_Level int32
|
|
|
|
const (
|
|
NotifyRequest_ERROR NotifyRequest_Level = 0
|
|
NotifyRequest_WARNING NotifyRequest_Level = 1
|
|
NotifyRequest_INFO NotifyRequest_Level = 2
|
|
)
|
|
|
|
// Enum value maps for NotifyRequest_Level.
|
|
var (
|
|
NotifyRequest_Level_name = map[int32]string{
|
|
0: "ERROR",
|
|
1: "WARNING",
|
|
2: "INFO",
|
|
}
|
|
NotifyRequest_Level_value = map[string]int32{
|
|
"ERROR": 0,
|
|
"WARNING": 1,
|
|
"INFO": 2,
|
|
}
|
|
)
|
|
|
|
func (x NotifyRequest_Level) Enum() *NotifyRequest_Level {
|
|
p := new(NotifyRequest_Level)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x NotifyRequest_Level) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (NotifyRequest_Level) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_notification_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (NotifyRequest_Level) Type() protoreflect.EnumType {
|
|
return &file_notification_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x NotifyRequest_Level) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use NotifyRequest_Level.Descriptor instead.
|
|
func (NotifyRequest_Level) EnumDescriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
type NotifyRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Level NotifyRequest_Level `protobuf:"varint,1,opt,name=level,proto3,enum=supervisor.NotifyRequest_Level" json:"level,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
// if actions are empty, Notify will return immediately
|
|
Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
|
|
}
|
|
|
|
func (x *NotifyRequest) Reset() {
|
|
*x = NotifyRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyRequest) ProtoMessage() {}
|
|
|
|
func (x *NotifyRequest) 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 NotifyRequest.ProtoReflect.Descriptor instead.
|
|
func (*NotifyRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *NotifyRequest) GetLevel() NotifyRequest_Level {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return NotifyRequest_ERROR
|
|
}
|
|
|
|
func (x *NotifyRequest) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NotifyRequest) GetActions() []string {
|
|
if x != nil {
|
|
return x.Actions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NotifyResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// action chosen by the user or empty string if cancelled
|
|
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
|
|
}
|
|
|
|
func (x *NotifyResponse) Reset() {
|
|
*x = NotifyResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyResponse) ProtoMessage() {}
|
|
|
|
func (x *NotifyResponse) 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 NotifyResponse.ProtoReflect.Descriptor instead.
|
|
func (*NotifyResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *NotifyResponse) GetAction() string {
|
|
if x != nil {
|
|
return x.Action
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SubscribeRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *SubscribeRequest) Reset() {
|
|
*x = SubscribeRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SubscribeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubscribeRequest) ProtoMessage() {}
|
|
|
|
func (x *SubscribeRequest) 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 SubscribeRequest.ProtoReflect.Descriptor instead.
|
|
func (*SubscribeRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type SubscribeResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
RequestId uint64 `protobuf:"varint,1,opt,name=requestId,proto3" json:"requestId,omitempty"`
|
|
Request *NotifyRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
|
|
}
|
|
|
|
func (x *SubscribeResponse) Reset() {
|
|
*x = SubscribeResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SubscribeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubscribeResponse) ProtoMessage() {}
|
|
|
|
func (x *SubscribeResponse) 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 SubscribeResponse.ProtoReflect.Descriptor instead.
|
|
func (*SubscribeResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *SubscribeResponse) GetRequestId() uint64 {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SubscribeResponse) GetRequest() *NotifyRequest {
|
|
if x != nil {
|
|
return x.Request
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RespondRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
RequestId uint64 `protobuf:"varint,1,opt,name=requestId,proto3" json:"requestId,omitempty"`
|
|
Response *NotifyResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
|
|
}
|
|
|
|
func (x *RespondRequest) Reset() {
|
|
*x = RespondRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RespondRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RespondRequest) ProtoMessage() {}
|
|
|
|
func (x *RespondRequest) 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 RespondRequest.ProtoReflect.Descriptor instead.
|
|
func (*RespondRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RespondRequest) GetRequestId() uint64 {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RespondRequest) GetResponse() *NotifyResponse {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RespondResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *RespondResponse) Reset() {
|
|
*x = RespondResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *RespondResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RespondResponse) ProtoMessage() {}
|
|
|
|
func (x *RespondResponse) 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 RespondResponse.ProtoReflect.Descriptor instead.
|
|
func (*RespondResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type NotifyActiveRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Types that are assignable to ActionData:
|
|
//
|
|
// *NotifyActiveRequest_Open
|
|
// *NotifyActiveRequest_Preview
|
|
ActionData isNotifyActiveRequest_ActionData `protobuf_oneof:"action_data"`
|
|
}
|
|
|
|
func (x *NotifyActiveRequest) Reset() {
|
|
*x = NotifyActiveRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyActiveRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyActiveRequest) ProtoMessage() {}
|
|
|
|
func (x *NotifyActiveRequest) 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 NotifyActiveRequest.ProtoReflect.Descriptor instead.
|
|
func (*NotifyActiveRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (m *NotifyActiveRequest) GetActionData() isNotifyActiveRequest_ActionData {
|
|
if m != nil {
|
|
return m.ActionData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotifyActiveRequest) GetOpen() *NotifyActiveRequest_OpenData {
|
|
if x, ok := x.GetActionData().(*NotifyActiveRequest_Open); ok {
|
|
return x.Open
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotifyActiveRequest) GetPreview() *NotifyActiveRequest_PreviewData {
|
|
if x, ok := x.GetActionData().(*NotifyActiveRequest_Preview); ok {
|
|
return x.Preview
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isNotifyActiveRequest_ActionData interface {
|
|
isNotifyActiveRequest_ActionData()
|
|
}
|
|
|
|
type NotifyActiveRequest_Open struct {
|
|
Open *NotifyActiveRequest_OpenData `protobuf:"bytes,1,opt,name=open,proto3,oneof"`
|
|
}
|
|
|
|
type NotifyActiveRequest_Preview struct {
|
|
Preview *NotifyActiveRequest_PreviewData `protobuf:"bytes,2,opt,name=preview,proto3,oneof"`
|
|
}
|
|
|
|
func (*NotifyActiveRequest_Open) isNotifyActiveRequest_ActionData() {}
|
|
|
|
func (*NotifyActiveRequest_Preview) isNotifyActiveRequest_ActionData() {}
|
|
|
|
type NotifyActiveResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *NotifyActiveResponse) Reset() {
|
|
*x = NotifyActiveResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyActiveResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyActiveResponse) ProtoMessage() {}
|
|
|
|
func (x *NotifyActiveResponse) 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 NotifyActiveResponse.ProtoReflect.Descriptor instead.
|
|
func (*NotifyActiveResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type SubscribeActiveRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *SubscribeActiveRequest) Reset() {
|
|
*x = SubscribeActiveRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SubscribeActiveRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubscribeActiveRequest) ProtoMessage() {}
|
|
|
|
func (x *SubscribeActiveRequest) 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 SubscribeActiveRequest.ProtoReflect.Descriptor instead.
|
|
func (*SubscribeActiveRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type SubscribeActiveResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
RequestId uint64 `protobuf:"varint,1,opt,name=requestId,proto3" json:"requestId,omitempty"`
|
|
Request *NotifyActiveRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
|
|
}
|
|
|
|
func (x *SubscribeActiveResponse) Reset() {
|
|
*x = SubscribeActiveResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SubscribeActiveResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SubscribeActiveResponse) ProtoMessage() {}
|
|
|
|
func (x *SubscribeActiveResponse) 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 SubscribeActiveResponse.ProtoReflect.Descriptor instead.
|
|
func (*SubscribeActiveResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *SubscribeActiveResponse) GetRequestId() uint64 {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SubscribeActiveResponse) GetRequest() *NotifyActiveRequest {
|
|
if x != nil {
|
|
return x.Request
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NotifyActiveRespondRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
RequestId uint64 `protobuf:"varint,1,opt,name=requestId,proto3" json:"requestId,omitempty"`
|
|
Response *NotifyActiveResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
|
|
}
|
|
|
|
func (x *NotifyActiveRespondRequest) Reset() {
|
|
*x = NotifyActiveRespondRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyActiveRespondRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyActiveRespondRequest) ProtoMessage() {}
|
|
|
|
func (x *NotifyActiveRespondRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[10]
|
|
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 NotifyActiveRespondRequest.ProtoReflect.Descriptor instead.
|
|
func (*NotifyActiveRespondRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *NotifyActiveRespondRequest) GetRequestId() uint64 {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NotifyActiveRespondRequest) GetResponse() *NotifyActiveResponse {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NotifyActiveRespondResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *NotifyActiveRespondResponse) Reset() {
|
|
*x = NotifyActiveRespondResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyActiveRespondResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyActiveRespondResponse) ProtoMessage() {}
|
|
|
|
func (x *NotifyActiveRespondResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[11]
|
|
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 NotifyActiveRespondResponse.ProtoReflect.Descriptor instead.
|
|
func (*NotifyActiveRespondResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
// open a file in editor
|
|
type NotifyActiveRequest_OpenData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Urls []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
|
|
// wait until all opened files are closed
|
|
Await bool `protobuf:"varint,2,opt,name=await,proto3" json:"await,omitempty"`
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_OpenData) Reset() {
|
|
*x = NotifyActiveRequest_OpenData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_OpenData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyActiveRequest_OpenData) ProtoMessage() {}
|
|
|
|
func (x *NotifyActiveRequest_OpenData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[12]
|
|
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 NotifyActiveRequest_OpenData.ProtoReflect.Descriptor instead.
|
|
func (*NotifyActiveRequest_OpenData) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{6, 0}
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_OpenData) GetUrls() []string {
|
|
if x != nil {
|
|
return x.Urls
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_OpenData) GetAwait() bool {
|
|
if x != nil {
|
|
return x.Await
|
|
}
|
|
return false
|
|
}
|
|
|
|
// ask editor to open a URL in its preview
|
|
type NotifyActiveRequest_PreviewData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
// open the URL in a new browser tab
|
|
External bool `protobuf:"varint,2,opt,name=external,proto3" json:"external,omitempty"`
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_PreviewData) Reset() {
|
|
*x = NotifyActiveRequest_PreviewData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_notification_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_PreviewData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotifyActiveRequest_PreviewData) ProtoMessage() {}
|
|
|
|
func (x *NotifyActiveRequest_PreviewData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[13]
|
|
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 NotifyActiveRequest_PreviewData.ProtoReflect.Descriptor instead.
|
|
func (*NotifyActiveRequest_PreviewData) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{6, 1}
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_PreviewData) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NotifyActiveRequest_PreviewData) GetExternal() bool {
|
|
if x != nil {
|
|
return x.External
|
|
}
|
|
return false
|
|
}
|
|
|
|
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, 0x0a, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72,
|
|
0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
|
|
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5,
|
|
0x01, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
|
0x1f, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74,
|
|
0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c,
|
|
0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03,
|
|
0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x29, 0x0a, 0x05, 0x4c,
|
|
0x65, 0x76, 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x00, 0x12,
|
|
0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,
|
|
0x49, 0x4e, 0x46, 0x4f, 0x10, 0x02, 0x22, 0x28, 0x0a, 0x0e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x22, 0x12, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71,
|
|
0x75, 0x65, 0x73, 0x74, 0x22, 0x66, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
|
|
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71,
|
|
0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65,
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,
|
|
0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x66, 0x0a, 0x0e,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c,
|
|
0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x08,
|
|
0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
|
|
0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69,
|
|
0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x13, 0x4e, 0x6f, 0x74, 0x69,
|
|
0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
0x3e, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e,
|
|
0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66,
|
|
0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f,
|
|
0x70, 0x65, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12,
|
|
0x47, 0x0a, 0x07, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
|
0x32, 0x2b, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f,
|
|
0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52,
|
|
0x07, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x1a, 0x34, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e,
|
|
0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03,
|
|
0x28, 0x09, 0x52, 0x04, 0x75, 0x72, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x69,
|
|
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x77, 0x61, 0x69, 0x74, 0x1a, 0x3b,
|
|
0x0a, 0x0b, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a,
|
|
0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12,
|
|
0x1a, 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x08, 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x42, 0x0d, 0x0a, 0x0b, 0x61,
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x22, 0x16, 0x0a, 0x14, 0x4e, 0x6f,
|
|
0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x41,
|
|
0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x72, 0x0a, 0x17,
|
|
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69,
|
|
0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65,
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x22, 0x78, 0x0a, 0x1a, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c,
|
|
0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x08,
|
|
0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
|
|
0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69,
|
|
0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x0a, 0x1b, 0x4e, 0x6f,
|
|
0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xeb, 0x05, 0x0a, 0x13, 0x4e, 0x6f,
|
|
0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
0x65, 0x12, 0x60, 0x0a, 0x06, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x12, 0x19, 0x2e, 0x73, 0x75,
|
|
0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52,
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69,
|
|
0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f,
|
|
0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6e, 0x6f, 0x74,
|
|
0x69, 0x66, 0x79, 0x12, 0x6e, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
|
|
0x12, 0x1c, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x75,
|
|
0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
|
|
0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73,
|
|
0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82,
|
|
0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66,
|
|
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
|
|
0x65, 0x30, 0x01, 0x12, 0x64, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x12, 0x1a,
|
|
0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x73, 0x75, 0x70,
|
|
0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22,
|
|
0x18, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x12, 0x87, 0x01, 0x0a, 0x0f, 0x53, 0x75,
|
|
0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x22, 0x2e,
|
|
0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
|
|
0x72, 0x69, 0x62, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x1a, 0x23, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x53,
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x21,
|
|
0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2d, 0x61, 0x63, 0x74, 0x69, 0x76,
|
|
0x65, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74,
|
|
0x69, 0x76, 0x65, 0x12, 0x1f, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72,
|
|
0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71,
|
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f,
|
|
0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1e,
|
|
0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x96,
|
|
0x01, 0x0a, 0x13, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x12, 0x26, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69,
|
|
0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65,
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27,
|
|
0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x74, 0x69,
|
|
0x66, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22,
|
|
0x26, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2d,
|
|
0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x42, 0x46, 0x0a, 0x18, 0x69, 0x6f, 0x2e, 0x67, 0x69,
|
|
0x74, 0x70, 0x6f, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e,
|
|
0x61, 0x70, 0x69, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
|
0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64,
|
|
0x2f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2f, 0x61, 0x70, 0x69, 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, 1)
|
|
var file_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_notification_proto_goTypes = []interface{}{
|
|
(NotifyRequest_Level)(0), // 0: supervisor.NotifyRequest.Level
|
|
(*NotifyRequest)(nil), // 1: supervisor.NotifyRequest
|
|
(*NotifyResponse)(nil), // 2: supervisor.NotifyResponse
|
|
(*SubscribeRequest)(nil), // 3: supervisor.SubscribeRequest
|
|
(*SubscribeResponse)(nil), // 4: supervisor.SubscribeResponse
|
|
(*RespondRequest)(nil), // 5: supervisor.RespondRequest
|
|
(*RespondResponse)(nil), // 6: supervisor.RespondResponse
|
|
(*NotifyActiveRequest)(nil), // 7: supervisor.NotifyActiveRequest
|
|
(*NotifyActiveResponse)(nil), // 8: supervisor.NotifyActiveResponse
|
|
(*SubscribeActiveRequest)(nil), // 9: supervisor.SubscribeActiveRequest
|
|
(*SubscribeActiveResponse)(nil), // 10: supervisor.SubscribeActiveResponse
|
|
(*NotifyActiveRespondRequest)(nil), // 11: supervisor.NotifyActiveRespondRequest
|
|
(*NotifyActiveRespondResponse)(nil), // 12: supervisor.NotifyActiveRespondResponse
|
|
(*NotifyActiveRequest_OpenData)(nil), // 13: supervisor.NotifyActiveRequest.OpenData
|
|
(*NotifyActiveRequest_PreviewData)(nil), // 14: supervisor.NotifyActiveRequest.PreviewData
|
|
}
|
|
var file_notification_proto_depIdxs = []int32{
|
|
0, // 0: supervisor.NotifyRequest.level:type_name -> supervisor.NotifyRequest.Level
|
|
1, // 1: supervisor.SubscribeResponse.request:type_name -> supervisor.NotifyRequest
|
|
2, // 2: supervisor.RespondRequest.response:type_name -> supervisor.NotifyResponse
|
|
13, // 3: supervisor.NotifyActiveRequest.open:type_name -> supervisor.NotifyActiveRequest.OpenData
|
|
14, // 4: supervisor.NotifyActiveRequest.preview:type_name -> supervisor.NotifyActiveRequest.PreviewData
|
|
7, // 5: supervisor.SubscribeActiveResponse.request:type_name -> supervisor.NotifyActiveRequest
|
|
8, // 6: supervisor.NotifyActiveRespondRequest.response:type_name -> supervisor.NotifyActiveResponse
|
|
1, // 7: supervisor.NotificationService.Notify:input_type -> supervisor.NotifyRequest
|
|
3, // 8: supervisor.NotificationService.Subscribe:input_type -> supervisor.SubscribeRequest
|
|
5, // 9: supervisor.NotificationService.Respond:input_type -> supervisor.RespondRequest
|
|
9, // 10: supervisor.NotificationService.SubscribeActive:input_type -> supervisor.SubscribeActiveRequest
|
|
7, // 11: supervisor.NotificationService.NotifyActive:input_type -> supervisor.NotifyActiveRequest
|
|
11, // 12: supervisor.NotificationService.NotifyActiveRespond:input_type -> supervisor.NotifyActiveRespondRequest
|
|
2, // 13: supervisor.NotificationService.Notify:output_type -> supervisor.NotifyResponse
|
|
4, // 14: supervisor.NotificationService.Subscribe:output_type -> supervisor.SubscribeResponse
|
|
6, // 15: supervisor.NotificationService.Respond:output_type -> supervisor.RespondResponse
|
|
10, // 16: supervisor.NotificationService.SubscribeActive:output_type -> supervisor.SubscribeActiveResponse
|
|
8, // 17: supervisor.NotificationService.NotifyActive:output_type -> supervisor.NotifyActiveResponse
|
|
12, // 18: supervisor.NotificationService.NotifyActiveRespond:output_type -> supervisor.NotifyActiveRespondResponse
|
|
13, // [13:19] is the sub-list for method output_type
|
|
7, // [7:13] 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.(*NotifyRequest); 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.(*NotifyResponse); 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.(*SubscribeRequest); 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.(*SubscribeResponse); 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.(*RespondRequest); 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.(*RespondResponse); 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.(*NotifyActiveRequest); 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.(*NotifyActiveResponse); 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.(*SubscribeActiveRequest); 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.(*SubscribeActiveResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NotifyActiveRespondRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NotifyActiveRespondResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NotifyActiveRequest_OpenData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NotifyActiveRequest_PreviewData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_notification_proto_msgTypes[6].OneofWrappers = []interface{}{
|
|
(*NotifyActiveRequest_Open)(nil),
|
|
(*NotifyActiveRequest_Preview)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_notification_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 14,
|
|
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
|
|
}
|