mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
- Add hooks_message.proto mapping to Makefile for proto generation - Update hooks_message.proto to import api_remaining.proto for PushNotification and Preference types (avoiding redefinition) - Generate Go code for all message hook messages and RPCs Verified: - make proto-gen succeeds - go build ./public/pluginapi/grpc/generated/go/pluginapiv1/... succeeds Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1703 lines
61 KiB
Go
1703 lines
61 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v6.33.4
|
|
// source: hooks_message.proto
|
|
|
|
package pluginapiv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// EmailNotificationJson wraps a serialized model.EmailNotification as JSON bytes.
|
|
// EmailNotification is a complex type with embedded struct; we use JSON blob
|
|
// approach to avoid maintaining duplicate proto schema.
|
|
type EmailNotificationJson struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// JSON-encoded model.EmailNotification
|
|
NotificationJson []byte `protobuf:"bytes,1,opt,name=notification_json,json=notificationJson,proto3" json:"notification_json,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EmailNotificationJson) Reset() {
|
|
*x = EmailNotificationJson{}
|
|
mi := &file_hooks_message_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EmailNotificationJson) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EmailNotificationJson) ProtoMessage() {}
|
|
|
|
func (x *EmailNotificationJson) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EmailNotificationJson.ProtoReflect.Descriptor instead.
|
|
func (*EmailNotificationJson) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *EmailNotificationJson) GetNotificationJson() []byte {
|
|
if x != nil {
|
|
return x.NotificationJson
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// EmailNotificationContent contains the customizable content of an email notification.
|
|
// Maps to model.EmailNotificationContent in Go (server/public/model/email_notification.go).
|
|
// This is the return type for EmailNotificationWillBeSent hook.
|
|
type EmailNotificationContent struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Email subject line
|
|
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
|
|
// Main title in the email body
|
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
// Subtitle below the main title
|
|
SubTitle string `protobuf:"bytes,3,opt,name=sub_title,json=subTitle,proto3" json:"sub_title,omitempty"`
|
|
// HTML-formatted message content
|
|
MessageHtml string `protobuf:"bytes,4,opt,name=message_html,json=messageHtml,proto3" json:"message_html,omitempty"`
|
|
// Plain text message content (for email clients that don't render HTML)
|
|
MessageText string `protobuf:"bytes,5,opt,name=message_text,json=messageText,proto3" json:"message_text,omitempty"`
|
|
// Text for the call-to-action button
|
|
ButtonText string `protobuf:"bytes,6,opt,name=button_text,json=buttonText,proto3" json:"button_text,omitempty"`
|
|
// URL for the call-to-action button
|
|
ButtonUrl string `protobuf:"bytes,7,opt,name=button_url,json=buttonUrl,proto3" json:"button_url,omitempty"`
|
|
// Footer text at the bottom of the email
|
|
FooterText string `protobuf:"bytes,8,opt,name=footer_text,json=footerText,proto3" json:"footer_text,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EmailNotificationContent) Reset() {
|
|
*x = EmailNotificationContent{}
|
|
mi := &file_hooks_message_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EmailNotificationContent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EmailNotificationContent) ProtoMessage() {}
|
|
|
|
func (x *EmailNotificationContent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EmailNotificationContent.ProtoReflect.Descriptor instead.
|
|
func (*EmailNotificationContent) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetSubject() string {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetSubTitle() string {
|
|
if x != nil {
|
|
return x.SubTitle
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetMessageHtml() string {
|
|
if x != nil {
|
|
return x.MessageHtml
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetMessageText() string {
|
|
if x != nil {
|
|
return x.MessageText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetButtonText() string {
|
|
if x != nil {
|
|
return x.ButtonText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetButtonUrl() string {
|
|
if x != nil {
|
|
return x.ButtonUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EmailNotificationContent) GetFooterText() string {
|
|
if x != nil {
|
|
return x.FooterText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MessageWillBePostedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The post about to be created
|
|
Post *Post `protobuf:"bytes,3,opt,name=post,proto3" json:"post,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageWillBePostedRequest) Reset() {
|
|
*x = MessageWillBePostedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageWillBePostedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageWillBePostedRequest) ProtoMessage() {}
|
|
|
|
func (x *MessageWillBePostedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageWillBePostedRequest.ProtoReflect.Descriptor instead.
|
|
func (*MessageWillBePostedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *MessageWillBePostedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageWillBePostedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageWillBePostedRequest) GetPost() *Post {
|
|
if x != nil {
|
|
return x.Post
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessageWillBePostedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Modified post to use instead of the original (null to use original unchanged)
|
|
ModifiedPost *Post `protobuf:"bytes,1,opt,name=modified_post,json=modifiedPost,proto3" json:"modified_post,omitempty"`
|
|
// Non-empty string rejects the post with this message shown to user.
|
|
// Use "plugin.message_will_be_posted.dismiss_post" to silently dismiss.
|
|
RejectionReason string `protobuf:"bytes,2,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageWillBePostedResponse) Reset() {
|
|
*x = MessageWillBePostedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageWillBePostedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageWillBePostedResponse) ProtoMessage() {}
|
|
|
|
func (x *MessageWillBePostedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageWillBePostedResponse.ProtoReflect.Descriptor instead.
|
|
func (*MessageWillBePostedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *MessageWillBePostedResponse) GetModifiedPost() *Post {
|
|
if x != nil {
|
|
return x.ModifiedPost
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageWillBePostedResponse) GetRejectionReason() string {
|
|
if x != nil {
|
|
return x.RejectionReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MessageWillBeUpdatedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The updated post content
|
|
NewPost *Post `protobuf:"bytes,3,opt,name=new_post,json=newPost,proto3" json:"new_post,omitempty"`
|
|
// The original post before the update
|
|
OldPost *Post `protobuf:"bytes,4,opt,name=old_post,json=oldPost,proto3" json:"old_post,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedRequest) Reset() {
|
|
*x = MessageWillBeUpdatedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageWillBeUpdatedRequest) ProtoMessage() {}
|
|
|
|
func (x *MessageWillBeUpdatedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageWillBeUpdatedRequest.ProtoReflect.Descriptor instead.
|
|
func (*MessageWillBeUpdatedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedRequest) GetNewPost() *Post {
|
|
if x != nil {
|
|
return x.NewPost
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedRequest) GetOldPost() *Post {
|
|
if x != nil {
|
|
return x.OldPost
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessageWillBeUpdatedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Modified post to use instead (null to use new_post unchanged)
|
|
ModifiedPost *Post `protobuf:"bytes,1,opt,name=modified_post,json=modifiedPost,proto3" json:"modified_post,omitempty"`
|
|
// Non-empty string rejects the update with this message shown to user.
|
|
// The post will remain in its previous state.
|
|
RejectionReason string `protobuf:"bytes,2,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedResponse) Reset() {
|
|
*x = MessageWillBeUpdatedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageWillBeUpdatedResponse) ProtoMessage() {}
|
|
|
|
func (x *MessageWillBeUpdatedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageWillBeUpdatedResponse.ProtoReflect.Descriptor instead.
|
|
func (*MessageWillBeUpdatedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedResponse) GetModifiedPost() *Post {
|
|
if x != nil {
|
|
return x.ModifiedPost
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageWillBeUpdatedResponse) GetRejectionReason() string {
|
|
if x != nil {
|
|
return x.RejectionReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MessageHasBeenPostedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The post that was created
|
|
Post *Post `protobuf:"bytes,3,opt,name=post,proto3" json:"post,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageHasBeenPostedRequest) Reset() {
|
|
*x = MessageHasBeenPostedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageHasBeenPostedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageHasBeenPostedRequest) ProtoMessage() {}
|
|
|
|
func (x *MessageHasBeenPostedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageHasBeenPostedRequest.ProtoReflect.Descriptor instead.
|
|
func (*MessageHasBeenPostedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *MessageHasBeenPostedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageHasBeenPostedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageHasBeenPostedRequest) GetPost() *Post {
|
|
if x != nil {
|
|
return x.Post
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessageHasBeenPostedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageHasBeenPostedResponse) Reset() {
|
|
*x = MessageHasBeenPostedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageHasBeenPostedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageHasBeenPostedResponse) ProtoMessage() {}
|
|
|
|
func (x *MessageHasBeenPostedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageHasBeenPostedResponse.ProtoReflect.Descriptor instead.
|
|
func (*MessageHasBeenPostedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type MessageHasBeenUpdatedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The post after the update
|
|
NewPost *Post `protobuf:"bytes,3,opt,name=new_post,json=newPost,proto3" json:"new_post,omitempty"`
|
|
// The post before the update
|
|
OldPost *Post `protobuf:"bytes,4,opt,name=old_post,json=oldPost,proto3" json:"old_post,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedRequest) Reset() {
|
|
*x = MessageHasBeenUpdatedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageHasBeenUpdatedRequest) ProtoMessage() {}
|
|
|
|
func (x *MessageHasBeenUpdatedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageHasBeenUpdatedRequest.ProtoReflect.Descriptor instead.
|
|
func (*MessageHasBeenUpdatedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedRequest) GetNewPost() *Post {
|
|
if x != nil {
|
|
return x.NewPost
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedRequest) GetOldPost() *Post {
|
|
if x != nil {
|
|
return x.OldPost
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessageHasBeenUpdatedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedResponse) Reset() {
|
|
*x = MessageHasBeenUpdatedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageHasBeenUpdatedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageHasBeenUpdatedResponse) ProtoMessage() {}
|
|
|
|
func (x *MessageHasBeenUpdatedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageHasBeenUpdatedResponse.ProtoReflect.Descriptor instead.
|
|
func (*MessageHasBeenUpdatedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
type MessagesWillBeConsumedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Posts about to be sent to the client
|
|
Posts []*Post `protobuf:"bytes,2,rep,name=posts,proto3" json:"posts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessagesWillBeConsumedRequest) Reset() {
|
|
*x = MessagesWillBeConsumedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessagesWillBeConsumedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessagesWillBeConsumedRequest) ProtoMessage() {}
|
|
|
|
func (x *MessagesWillBeConsumedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessagesWillBeConsumedRequest.ProtoReflect.Descriptor instead.
|
|
func (*MessagesWillBeConsumedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *MessagesWillBeConsumedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessagesWillBeConsumedRequest) GetPosts() []*Post {
|
|
if x != nil {
|
|
return x.Posts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessagesWillBeConsumedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Modified/filtered posts to return to the client.
|
|
// Can remove posts by omitting them, or modify post content.
|
|
Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessagesWillBeConsumedResponse) Reset() {
|
|
*x = MessagesWillBeConsumedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessagesWillBeConsumedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessagesWillBeConsumedResponse) ProtoMessage() {}
|
|
|
|
func (x *MessagesWillBeConsumedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessagesWillBeConsumedResponse.ProtoReflect.Descriptor instead.
|
|
func (*MessagesWillBeConsumedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *MessagesWillBeConsumedResponse) GetPosts() []*Post {
|
|
if x != nil {
|
|
return x.Posts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessageHasBeenDeletedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The post that was deleted
|
|
Post *Post `protobuf:"bytes,3,opt,name=post,proto3" json:"post,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageHasBeenDeletedRequest) Reset() {
|
|
*x = MessageHasBeenDeletedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageHasBeenDeletedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageHasBeenDeletedRequest) ProtoMessage() {}
|
|
|
|
func (x *MessageHasBeenDeletedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageHasBeenDeletedRequest.ProtoReflect.Descriptor instead.
|
|
func (*MessageHasBeenDeletedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *MessageHasBeenDeletedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageHasBeenDeletedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MessageHasBeenDeletedRequest) GetPost() *Post {
|
|
if x != nil {
|
|
return x.Post
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MessageHasBeenDeletedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessageHasBeenDeletedResponse) Reset() {
|
|
*x = MessageHasBeenDeletedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessageHasBeenDeletedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessageHasBeenDeletedResponse) ProtoMessage() {}
|
|
|
|
func (x *MessageHasBeenDeletedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageHasBeenDeletedResponse.ProtoReflect.Descriptor instead.
|
|
func (*MessageHasBeenDeletedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
type FileWillBeUploadedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// Metadata about the file being uploaded
|
|
FileInfo *FileInfo `protobuf:"bytes,3,opt,name=file_info,json=fileInfo,proto3" json:"file_info,omitempty"`
|
|
// The raw file content (Phase 8 will add streaming support)
|
|
FileContent []byte `protobuf:"bytes,4,opt,name=file_content,json=fileContent,proto3" json:"file_content,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileWillBeUploadedRequest) Reset() {
|
|
*x = FileWillBeUploadedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileWillBeUploadedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileWillBeUploadedRequest) ProtoMessage() {}
|
|
|
|
func (x *FileWillBeUploadedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FileWillBeUploadedRequest.ProtoReflect.Descriptor instead.
|
|
func (*FileWillBeUploadedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *FileWillBeUploadedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FileWillBeUploadedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FileWillBeUploadedRequest) GetFileInfo() *FileInfo {
|
|
if x != nil {
|
|
return x.FileInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FileWillBeUploadedRequest) GetFileContent() []byte {
|
|
if x != nil {
|
|
return x.FileContent
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FileWillBeUploadedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Modified file metadata (null to use original unchanged)
|
|
ModifiedFileInfo *FileInfo `protobuf:"bytes,1,opt,name=modified_file_info,json=modifiedFileInfo,proto3" json:"modified_file_info,omitempty"`
|
|
// Modified file content (empty to use original unchanged)
|
|
// Size will be automatically recalculated if content is modified.
|
|
ModifiedContent []byte `protobuf:"bytes,2,opt,name=modified_content,json=modifiedContent,proto3" json:"modified_content,omitempty"`
|
|
// Non-empty string rejects the upload with this message shown to user.
|
|
RejectionReason string `protobuf:"bytes,3,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileWillBeUploadedResponse) Reset() {
|
|
*x = FileWillBeUploadedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileWillBeUploadedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileWillBeUploadedResponse) ProtoMessage() {}
|
|
|
|
func (x *FileWillBeUploadedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FileWillBeUploadedResponse.ProtoReflect.Descriptor instead.
|
|
func (*FileWillBeUploadedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *FileWillBeUploadedResponse) GetModifiedFileInfo() *FileInfo {
|
|
if x != nil {
|
|
return x.ModifiedFileInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FileWillBeUploadedResponse) GetModifiedContent() []byte {
|
|
if x != nil {
|
|
return x.ModifiedContent
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FileWillBeUploadedResponse) GetRejectionReason() string {
|
|
if x != nil {
|
|
return x.RejectionReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ReactionHasBeenAddedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The reaction that was added (defined in post.proto)
|
|
Reaction *Reaction `protobuf:"bytes,3,opt,name=reaction,proto3" json:"reaction,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReactionHasBeenAddedRequest) Reset() {
|
|
*x = ReactionHasBeenAddedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReactionHasBeenAddedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReactionHasBeenAddedRequest) ProtoMessage() {}
|
|
|
|
func (x *ReactionHasBeenAddedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReactionHasBeenAddedRequest.ProtoReflect.Descriptor instead.
|
|
func (*ReactionHasBeenAddedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ReactionHasBeenAddedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ReactionHasBeenAddedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ReactionHasBeenAddedRequest) GetReaction() *Reaction {
|
|
if x != nil {
|
|
return x.Reaction
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReactionHasBeenAddedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReactionHasBeenAddedResponse) Reset() {
|
|
*x = ReactionHasBeenAddedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReactionHasBeenAddedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReactionHasBeenAddedResponse) ProtoMessage() {}
|
|
|
|
func (x *ReactionHasBeenAddedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReactionHasBeenAddedResponse.ProtoReflect.Descriptor instead.
|
|
func (*ReactionHasBeenAddedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
type ReactionHasBeenRemovedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The reaction that was removed (defined in post.proto)
|
|
Reaction *Reaction `protobuf:"bytes,3,opt,name=reaction,proto3" json:"reaction,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReactionHasBeenRemovedRequest) Reset() {
|
|
*x = ReactionHasBeenRemovedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReactionHasBeenRemovedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReactionHasBeenRemovedRequest) ProtoMessage() {}
|
|
|
|
func (x *ReactionHasBeenRemovedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReactionHasBeenRemovedRequest.ProtoReflect.Descriptor instead.
|
|
func (*ReactionHasBeenRemovedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *ReactionHasBeenRemovedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ReactionHasBeenRemovedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ReactionHasBeenRemovedRequest) GetReaction() *Reaction {
|
|
if x != nil {
|
|
return x.Reaction
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReactionHasBeenRemovedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReactionHasBeenRemovedResponse) Reset() {
|
|
*x = ReactionHasBeenRemovedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReactionHasBeenRemovedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReactionHasBeenRemovedResponse) ProtoMessage() {}
|
|
|
|
func (x *ReactionHasBeenRemovedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReactionHasBeenRemovedResponse.ProtoReflect.Descriptor instead.
|
|
func (*ReactionHasBeenRemovedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
type NotificationWillBePushedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// The push notification about to be sent
|
|
PushNotification *PushNotification `protobuf:"bytes,2,opt,name=push_notification,json=pushNotification,proto3" json:"push_notification,omitempty"`
|
|
// The user ID of the notification recipient
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NotificationWillBePushedRequest) Reset() {
|
|
*x = NotificationWillBePushedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NotificationWillBePushedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotificationWillBePushedRequest) ProtoMessage() {}
|
|
|
|
func (x *NotificationWillBePushedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NotificationWillBePushedRequest.ProtoReflect.Descriptor instead.
|
|
func (*NotificationWillBePushedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *NotificationWillBePushedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotificationWillBePushedRequest) GetPushNotification() *PushNotification {
|
|
if x != nil {
|
|
return x.PushNotification
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotificationWillBePushedRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type NotificationWillBePushedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Modified notification to send instead (null to use original unchanged)
|
|
ModifiedNotification *PushNotification `protobuf:"bytes,1,opt,name=modified_notification,json=modifiedNotification,proto3" json:"modified_notification,omitempty"`
|
|
// Non-empty string rejects the notification (it won't be sent)
|
|
RejectionReason string `protobuf:"bytes,2,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NotificationWillBePushedResponse) Reset() {
|
|
*x = NotificationWillBePushedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NotificationWillBePushedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotificationWillBePushedResponse) ProtoMessage() {}
|
|
|
|
func (x *NotificationWillBePushedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NotificationWillBePushedResponse.ProtoReflect.Descriptor instead.
|
|
func (*NotificationWillBePushedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *NotificationWillBePushedResponse) GetModifiedNotification() *PushNotification {
|
|
if x != nil {
|
|
return x.ModifiedNotification
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NotificationWillBePushedResponse) GetRejectionReason() string {
|
|
if x != nil {
|
|
return x.RejectionReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EmailNotificationWillBeSentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// The email notification as JSON bytes (model.EmailNotification is complex)
|
|
EmailNotification *EmailNotificationJson `protobuf:"bytes,2,opt,name=email_notification,json=emailNotification,proto3" json:"email_notification,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentRequest) Reset() {
|
|
*x = EmailNotificationWillBeSentRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EmailNotificationWillBeSentRequest) ProtoMessage() {}
|
|
|
|
func (x *EmailNotificationWillBeSentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EmailNotificationWillBeSentRequest.ProtoReflect.Descriptor instead.
|
|
func (*EmailNotificationWillBeSentRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentRequest) GetEmailNotification() *EmailNotificationJson {
|
|
if x != nil {
|
|
return x.EmailNotification
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EmailNotificationWillBeSentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Modified content to use instead (null to use original unchanged)
|
|
// Only content fields can be modified; core identifiers are immutable.
|
|
ModifiedContent *EmailNotificationContent `protobuf:"bytes,1,opt,name=modified_content,json=modifiedContent,proto3" json:"modified_content,omitempty"`
|
|
// Non-empty string rejects the email (it won't be sent)
|
|
RejectionReason string `protobuf:"bytes,2,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentResponse) Reset() {
|
|
*x = EmailNotificationWillBeSentResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EmailNotificationWillBeSentResponse) ProtoMessage() {}
|
|
|
|
func (x *EmailNotificationWillBeSentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EmailNotificationWillBeSentResponse.ProtoReflect.Descriptor instead.
|
|
func (*EmailNotificationWillBeSentResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentResponse) GetModifiedContent() *EmailNotificationContent {
|
|
if x != nil {
|
|
return x.ModifiedContent
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *EmailNotificationWillBeSentResponse) GetRejectionReason() string {
|
|
if x != nil {
|
|
return x.RejectionReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PreferencesHaveChangedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// Plugin context with session/request metadata
|
|
PluginContext *PluginContext `protobuf:"bytes,2,opt,name=plugin_context,json=pluginContext,proto3" json:"plugin_context,omitempty"`
|
|
// The preferences that were changed
|
|
Preferences []*Preference `protobuf:"bytes,3,rep,name=preferences,proto3" json:"preferences,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PreferencesHaveChangedRequest) Reset() {
|
|
*x = PreferencesHaveChangedRequest{}
|
|
mi := &file_hooks_message_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PreferencesHaveChangedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PreferencesHaveChangedRequest) ProtoMessage() {}
|
|
|
|
func (x *PreferencesHaveChangedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PreferencesHaveChangedRequest.ProtoReflect.Descriptor instead.
|
|
func (*PreferencesHaveChangedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *PreferencesHaveChangedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PreferencesHaveChangedRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PreferencesHaveChangedRequest) GetPreferences() []*Preference {
|
|
if x != nil {
|
|
return x.Preferences
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PreferencesHaveChangedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PreferencesHaveChangedResponse) Reset() {
|
|
*x = PreferencesHaveChangedResponse{}
|
|
mi := &file_hooks_message_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PreferencesHaveChangedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PreferencesHaveChangedResponse) ProtoMessage() {}
|
|
|
|
func (x *PreferencesHaveChangedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_message_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PreferencesHaveChangedResponse.ProtoReflect.Descriptor instead.
|
|
func (*PreferencesHaveChangedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_message_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
var File_hooks_message_proto protoreflect.FileDescriptor
|
|
|
|
const file_hooks_message_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x13hooks_message.proto\x12\x17mattermost.pluginapi.v1\x1a\fcommon.proto\x1a\x12hooks_common.proto\x1a\n" +
|
|
"post.proto\x1a\n" +
|
|
"file.proto\x1a\x13api_remaining.proto\"D\n" +
|
|
"\x15EmailNotificationJson\x12+\n" +
|
|
"\x11notification_json\x18\x01 \x01(\fR\x10notificationJson\"\x8e\x02\n" +
|
|
"\x18EmailNotificationContent\x12\x18\n" +
|
|
"\asubject\x18\x01 \x01(\tR\asubject\x12\x14\n" +
|
|
"\x05title\x18\x02 \x01(\tR\x05title\x12\x1b\n" +
|
|
"\tsub_title\x18\x03 \x01(\tR\bsubTitle\x12!\n" +
|
|
"\fmessage_html\x18\x04 \x01(\tR\vmessageHtml\x12!\n" +
|
|
"\fmessage_text\x18\x05 \x01(\tR\vmessageText\x12\x1f\n" +
|
|
"\vbutton_text\x18\x06 \x01(\tR\n" +
|
|
"buttonText\x12\x1d\n" +
|
|
"\n" +
|
|
"button_url\x18\a \x01(\tR\tbuttonUrl\x12\x1f\n" +
|
|
"\vfooter_text\x18\b \x01(\tR\n" +
|
|
"footerText\"\xe1\x01\n" +
|
|
"\x1aMessageWillBePostedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x121\n" +
|
|
"\x04post\x18\x03 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\x04post\"\x8c\x01\n" +
|
|
"\x1bMessageWillBePostedResponse\x12B\n" +
|
|
"\rmodified_post\x18\x01 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\fmodifiedPost\x12)\n" +
|
|
"\x10rejection_reason\x18\x02 \x01(\tR\x0frejectionReason\"\xa3\x02\n" +
|
|
"\x1bMessageWillBeUpdatedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x128\n" +
|
|
"\bnew_post\x18\x03 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\anewPost\x128\n" +
|
|
"\bold_post\x18\x04 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\aoldPost\"\x8d\x01\n" +
|
|
"\x1cMessageWillBeUpdatedResponse\x12B\n" +
|
|
"\rmodified_post\x18\x01 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\fmodifiedPost\x12)\n" +
|
|
"\x10rejection_reason\x18\x02 \x01(\tR\x0frejectionReason\"\xe2\x01\n" +
|
|
"\x1bMessageHasBeenPostedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x121\n" +
|
|
"\x04post\x18\x03 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\x04post\"\x1e\n" +
|
|
"\x1cMessageHasBeenPostedResponse\"\xa4\x02\n" +
|
|
"\x1cMessageHasBeenUpdatedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x128\n" +
|
|
"\bnew_post\x18\x03 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\anewPost\x128\n" +
|
|
"\bold_post\x18\x04 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\aoldPost\"\x1f\n" +
|
|
"\x1dMessageHasBeenUpdatedResponse\"\x97\x01\n" +
|
|
"\x1dMessagesWillBeConsumedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x123\n" +
|
|
"\x05posts\x18\x02 \x03(\v2\x1d.mattermost.pluginapi.v1.PostR\x05posts\"U\n" +
|
|
"\x1eMessagesWillBeConsumedResponse\x123\n" +
|
|
"\x05posts\x18\x01 \x03(\v2\x1d.mattermost.pluginapi.v1.PostR\x05posts\"\xe3\x01\n" +
|
|
"\x1cMessageHasBeenDeletedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x121\n" +
|
|
"\x04post\x18\x03 \x01(\v2\x1d.mattermost.pluginapi.v1.PostR\x04post\"\x1f\n" +
|
|
"\x1dMessageHasBeenDeletedResponse\"\x90\x02\n" +
|
|
"\x19FileWillBeUploadedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x12>\n" +
|
|
"\tfile_info\x18\x03 \x01(\v2!.mattermost.pluginapi.v1.FileInfoR\bfileInfo\x12!\n" +
|
|
"\ffile_content\x18\x04 \x01(\fR\vfileContent\"\xc3\x01\n" +
|
|
"\x1aFileWillBeUploadedResponse\x12O\n" +
|
|
"\x12modified_file_info\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.FileInfoR\x10modifiedFileInfo\x12)\n" +
|
|
"\x10modified_content\x18\x02 \x01(\fR\x0fmodifiedContent\x12)\n" +
|
|
"\x10rejection_reason\x18\x03 \x01(\tR\x0frejectionReason\"\xee\x01\n" +
|
|
"\x1bReactionHasBeenAddedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x12=\n" +
|
|
"\breaction\x18\x03 \x01(\v2!.mattermost.pluginapi.v1.ReactionR\breaction\"\x1e\n" +
|
|
"\x1cReactionHasBeenAddedResponse\"\xf0\x01\n" +
|
|
"\x1dReactionHasBeenRemovedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x12=\n" +
|
|
"\breaction\x18\x03 \x01(\v2!.mattermost.pluginapi.v1.ReactionR\breaction\" \n" +
|
|
"\x1eReactionHasBeenRemovedResponse\"\xd5\x01\n" +
|
|
"\x1fNotificationWillBePushedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12V\n" +
|
|
"\x11push_notification\x18\x02 \x01(\v2).mattermost.pluginapi.v1.PushNotificationR\x10pushNotification\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\"\xad\x01\n" +
|
|
" NotificationWillBePushedResponse\x12^\n" +
|
|
"\x15modified_notification\x18\x01 \x01(\v2).mattermost.pluginapi.v1.PushNotificationR\x14modifiedNotification\x12)\n" +
|
|
"\x10rejection_reason\x18\x02 \x01(\tR\x0frejectionReason\"\xc6\x01\n" +
|
|
"\"EmailNotificationWillBeSentRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12]\n" +
|
|
"\x12email_notification\x18\x02 \x01(\v2..mattermost.pluginapi.v1.EmailNotificationJsonR\x11emailNotification\"\xae\x01\n" +
|
|
"#EmailNotificationWillBeSentResponse\x12\\\n" +
|
|
"\x10modified_content\x18\x01 \x01(\v21.mattermost.pluginapi.v1.EmailNotificationContentR\x0fmodifiedContent\x12)\n" +
|
|
"\x10rejection_reason\x18\x02 \x01(\tR\x0frejectionReason\"\xf8\x01\n" +
|
|
"\x1dPreferencesHaveChangedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12M\n" +
|
|
"\x0eplugin_context\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.PluginContextR\rpluginContext\x12E\n" +
|
|
"\vpreferences\x18\x03 \x03(\v2#.mattermost.pluginapi.v1.PreferenceR\vpreferences\" \n" +
|
|
"\x1ePreferencesHaveChangedResponseBXZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1b\x06proto3"
|
|
|
|
var (
|
|
file_hooks_message_proto_rawDescOnce sync.Once
|
|
file_hooks_message_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_hooks_message_proto_rawDescGZIP() []byte {
|
|
file_hooks_message_proto_rawDescOnce.Do(func() {
|
|
file_hooks_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_hooks_message_proto_rawDesc), len(file_hooks_message_proto_rawDesc)))
|
|
})
|
|
return file_hooks_message_proto_rawDescData
|
|
}
|
|
|
|
var file_hooks_message_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
|
var file_hooks_message_proto_goTypes = []any{
|
|
(*EmailNotificationJson)(nil), // 0: mattermost.pluginapi.v1.EmailNotificationJson
|
|
(*EmailNotificationContent)(nil), // 1: mattermost.pluginapi.v1.EmailNotificationContent
|
|
(*MessageWillBePostedRequest)(nil), // 2: mattermost.pluginapi.v1.MessageWillBePostedRequest
|
|
(*MessageWillBePostedResponse)(nil), // 3: mattermost.pluginapi.v1.MessageWillBePostedResponse
|
|
(*MessageWillBeUpdatedRequest)(nil), // 4: mattermost.pluginapi.v1.MessageWillBeUpdatedRequest
|
|
(*MessageWillBeUpdatedResponse)(nil), // 5: mattermost.pluginapi.v1.MessageWillBeUpdatedResponse
|
|
(*MessageHasBeenPostedRequest)(nil), // 6: mattermost.pluginapi.v1.MessageHasBeenPostedRequest
|
|
(*MessageHasBeenPostedResponse)(nil), // 7: mattermost.pluginapi.v1.MessageHasBeenPostedResponse
|
|
(*MessageHasBeenUpdatedRequest)(nil), // 8: mattermost.pluginapi.v1.MessageHasBeenUpdatedRequest
|
|
(*MessageHasBeenUpdatedResponse)(nil), // 9: mattermost.pluginapi.v1.MessageHasBeenUpdatedResponse
|
|
(*MessagesWillBeConsumedRequest)(nil), // 10: mattermost.pluginapi.v1.MessagesWillBeConsumedRequest
|
|
(*MessagesWillBeConsumedResponse)(nil), // 11: mattermost.pluginapi.v1.MessagesWillBeConsumedResponse
|
|
(*MessageHasBeenDeletedRequest)(nil), // 12: mattermost.pluginapi.v1.MessageHasBeenDeletedRequest
|
|
(*MessageHasBeenDeletedResponse)(nil), // 13: mattermost.pluginapi.v1.MessageHasBeenDeletedResponse
|
|
(*FileWillBeUploadedRequest)(nil), // 14: mattermost.pluginapi.v1.FileWillBeUploadedRequest
|
|
(*FileWillBeUploadedResponse)(nil), // 15: mattermost.pluginapi.v1.FileWillBeUploadedResponse
|
|
(*ReactionHasBeenAddedRequest)(nil), // 16: mattermost.pluginapi.v1.ReactionHasBeenAddedRequest
|
|
(*ReactionHasBeenAddedResponse)(nil), // 17: mattermost.pluginapi.v1.ReactionHasBeenAddedResponse
|
|
(*ReactionHasBeenRemovedRequest)(nil), // 18: mattermost.pluginapi.v1.ReactionHasBeenRemovedRequest
|
|
(*ReactionHasBeenRemovedResponse)(nil), // 19: mattermost.pluginapi.v1.ReactionHasBeenRemovedResponse
|
|
(*NotificationWillBePushedRequest)(nil), // 20: mattermost.pluginapi.v1.NotificationWillBePushedRequest
|
|
(*NotificationWillBePushedResponse)(nil), // 21: mattermost.pluginapi.v1.NotificationWillBePushedResponse
|
|
(*EmailNotificationWillBeSentRequest)(nil), // 22: mattermost.pluginapi.v1.EmailNotificationWillBeSentRequest
|
|
(*EmailNotificationWillBeSentResponse)(nil), // 23: mattermost.pluginapi.v1.EmailNotificationWillBeSentResponse
|
|
(*PreferencesHaveChangedRequest)(nil), // 24: mattermost.pluginapi.v1.PreferencesHaveChangedRequest
|
|
(*PreferencesHaveChangedResponse)(nil), // 25: mattermost.pluginapi.v1.PreferencesHaveChangedResponse
|
|
(*RequestContext)(nil), // 26: mattermost.pluginapi.v1.RequestContext
|
|
(*PluginContext)(nil), // 27: mattermost.pluginapi.v1.PluginContext
|
|
(*Post)(nil), // 28: mattermost.pluginapi.v1.Post
|
|
(*FileInfo)(nil), // 29: mattermost.pluginapi.v1.FileInfo
|
|
(*Reaction)(nil), // 30: mattermost.pluginapi.v1.Reaction
|
|
(*PushNotification)(nil), // 31: mattermost.pluginapi.v1.PushNotification
|
|
(*Preference)(nil), // 32: mattermost.pluginapi.v1.Preference
|
|
}
|
|
var file_hooks_message_proto_depIdxs = []int32{
|
|
26, // 0: mattermost.pluginapi.v1.MessageWillBePostedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 1: mattermost.pluginapi.v1.MessageWillBePostedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
28, // 2: mattermost.pluginapi.v1.MessageWillBePostedRequest.post:type_name -> mattermost.pluginapi.v1.Post
|
|
28, // 3: mattermost.pluginapi.v1.MessageWillBePostedResponse.modified_post:type_name -> mattermost.pluginapi.v1.Post
|
|
26, // 4: mattermost.pluginapi.v1.MessageWillBeUpdatedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 5: mattermost.pluginapi.v1.MessageWillBeUpdatedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
28, // 6: mattermost.pluginapi.v1.MessageWillBeUpdatedRequest.new_post:type_name -> mattermost.pluginapi.v1.Post
|
|
28, // 7: mattermost.pluginapi.v1.MessageWillBeUpdatedRequest.old_post:type_name -> mattermost.pluginapi.v1.Post
|
|
28, // 8: mattermost.pluginapi.v1.MessageWillBeUpdatedResponse.modified_post:type_name -> mattermost.pluginapi.v1.Post
|
|
26, // 9: mattermost.pluginapi.v1.MessageHasBeenPostedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 10: mattermost.pluginapi.v1.MessageHasBeenPostedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
28, // 11: mattermost.pluginapi.v1.MessageHasBeenPostedRequest.post:type_name -> mattermost.pluginapi.v1.Post
|
|
26, // 12: mattermost.pluginapi.v1.MessageHasBeenUpdatedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 13: mattermost.pluginapi.v1.MessageHasBeenUpdatedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
28, // 14: mattermost.pluginapi.v1.MessageHasBeenUpdatedRequest.new_post:type_name -> mattermost.pluginapi.v1.Post
|
|
28, // 15: mattermost.pluginapi.v1.MessageHasBeenUpdatedRequest.old_post:type_name -> mattermost.pluginapi.v1.Post
|
|
26, // 16: mattermost.pluginapi.v1.MessagesWillBeConsumedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
28, // 17: mattermost.pluginapi.v1.MessagesWillBeConsumedRequest.posts:type_name -> mattermost.pluginapi.v1.Post
|
|
28, // 18: mattermost.pluginapi.v1.MessagesWillBeConsumedResponse.posts:type_name -> mattermost.pluginapi.v1.Post
|
|
26, // 19: mattermost.pluginapi.v1.MessageHasBeenDeletedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 20: mattermost.pluginapi.v1.MessageHasBeenDeletedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
28, // 21: mattermost.pluginapi.v1.MessageHasBeenDeletedRequest.post:type_name -> mattermost.pluginapi.v1.Post
|
|
26, // 22: mattermost.pluginapi.v1.FileWillBeUploadedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 23: mattermost.pluginapi.v1.FileWillBeUploadedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
29, // 24: mattermost.pluginapi.v1.FileWillBeUploadedRequest.file_info:type_name -> mattermost.pluginapi.v1.FileInfo
|
|
29, // 25: mattermost.pluginapi.v1.FileWillBeUploadedResponse.modified_file_info:type_name -> mattermost.pluginapi.v1.FileInfo
|
|
26, // 26: mattermost.pluginapi.v1.ReactionHasBeenAddedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 27: mattermost.pluginapi.v1.ReactionHasBeenAddedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
30, // 28: mattermost.pluginapi.v1.ReactionHasBeenAddedRequest.reaction:type_name -> mattermost.pluginapi.v1.Reaction
|
|
26, // 29: mattermost.pluginapi.v1.ReactionHasBeenRemovedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 30: mattermost.pluginapi.v1.ReactionHasBeenRemovedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
30, // 31: mattermost.pluginapi.v1.ReactionHasBeenRemovedRequest.reaction:type_name -> mattermost.pluginapi.v1.Reaction
|
|
26, // 32: mattermost.pluginapi.v1.NotificationWillBePushedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
31, // 33: mattermost.pluginapi.v1.NotificationWillBePushedRequest.push_notification:type_name -> mattermost.pluginapi.v1.PushNotification
|
|
31, // 34: mattermost.pluginapi.v1.NotificationWillBePushedResponse.modified_notification:type_name -> mattermost.pluginapi.v1.PushNotification
|
|
26, // 35: mattermost.pluginapi.v1.EmailNotificationWillBeSentRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
0, // 36: mattermost.pluginapi.v1.EmailNotificationWillBeSentRequest.email_notification:type_name -> mattermost.pluginapi.v1.EmailNotificationJson
|
|
1, // 37: mattermost.pluginapi.v1.EmailNotificationWillBeSentResponse.modified_content:type_name -> mattermost.pluginapi.v1.EmailNotificationContent
|
|
26, // 38: mattermost.pluginapi.v1.PreferencesHaveChangedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 39: mattermost.pluginapi.v1.PreferencesHaveChangedRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
32, // 40: mattermost.pluginapi.v1.PreferencesHaveChangedRequest.preferences:type_name -> mattermost.pluginapi.v1.Preference
|
|
41, // [41:41] is the sub-list for method output_type
|
|
41, // [41:41] is the sub-list for method input_type
|
|
41, // [41:41] is the sub-list for extension type_name
|
|
41, // [41:41] is the sub-list for extension extendee
|
|
0, // [0:41] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_hooks_message_proto_init() }
|
|
func file_hooks_message_proto_init() {
|
|
if File_hooks_message_proto != nil {
|
|
return
|
|
}
|
|
file_common_proto_init()
|
|
file_hooks_common_proto_init()
|
|
file_post_proto_init()
|
|
file_file_proto_init()
|
|
file_api_remaining_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_hooks_message_proto_rawDesc), len(file_hooks_message_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 26,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_hooks_message_proto_goTypes,
|
|
DependencyIndexes: file_hooks_message_proto_depIdxs,
|
|
MessageInfos: file_hooks_message_proto_msgTypes,
|
|
}.Build()
|
|
File_hooks_message_proto = out.File
|
|
file_hooks_message_proto_goTypes = nil
|
|
file_hooks_message_proto_depIdxs = nil
|
|
}
|