mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
Define protobuf messages and PluginHooks gRPC service for lifecycle and system hooks: - Implemented: returns list of hooks the plugin implements - OnActivate/OnDeactivate: plugin lifecycle events - OnConfigurationChange: configuration change notifications - OnInstall: plugin installation event - OnSendDailyTelemetry: daily telemetry hook - RunDataRetention: data retention batch processing - OnCloudLimitsUpdated: cloud product limit changes - ConfigurationWillBeSaved: configuration validation/modification Also adds model types: - OnInstallEvent: mirrors model.OnInstallEvent - ProductLimits/FilesLimits/MessagesLimits/TeamsLimits: typed cloud limits - ConfigJson: JSON blob wrapper for model.Config (too large for typed proto) Updates Makefile to include new proto file mappings. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1358 lines
44 KiB
Go
1358 lines
44 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_lifecycle.proto
|
|
|
|
package pluginapiv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
|
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)
|
|
)
|
|
|
|
// OnInstallEvent is sent to the plugin when it gets installed.
|
|
type OnInstallEvent struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The user who installed the plugin
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnInstallEvent) Reset() {
|
|
*x = OnInstallEvent{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnInstallEvent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnInstallEvent) ProtoMessage() {}
|
|
|
|
func (x *OnInstallEvent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnInstallEvent.ProtoReflect.Descriptor instead.
|
|
func (*OnInstallEvent) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *OnInstallEvent) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// FilesLimits contains limits related to file storage.
|
|
type FilesLimits struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Total storage limit in bytes. Null means unlimited.
|
|
TotalStorage *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=total_storage,json=totalStorage,proto3" json:"total_storage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilesLimits) Reset() {
|
|
*x = FilesLimits{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilesLimits) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilesLimits) ProtoMessage() {}
|
|
|
|
func (x *FilesLimits) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 FilesLimits.ProtoReflect.Descriptor instead.
|
|
func (*FilesLimits) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *FilesLimits) GetTotalStorage() *wrapperspb.Int64Value {
|
|
if x != nil {
|
|
return x.TotalStorage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MessagesLimits contains limits related to message history.
|
|
type MessagesLimits struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Number of days of message history to retain. Null means unlimited.
|
|
History *wrapperspb.Int32Value `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MessagesLimits) Reset() {
|
|
*x = MessagesLimits{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MessagesLimits) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MessagesLimits) ProtoMessage() {}
|
|
|
|
func (x *MessagesLimits) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 MessagesLimits.ProtoReflect.Descriptor instead.
|
|
func (*MessagesLimits) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *MessagesLimits) GetHistory() *wrapperspb.Int32Value {
|
|
if x != nil {
|
|
return x.History
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// TeamsLimits contains limits related to teams.
|
|
type TeamsLimits struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Maximum number of active teams. Null means unlimited.
|
|
Active *wrapperspb.Int32Value `protobuf:"bytes,1,opt,name=active,proto3" json:"active,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TeamsLimits) Reset() {
|
|
*x = TeamsLimits{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TeamsLimits) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TeamsLimits) ProtoMessage() {}
|
|
|
|
func (x *TeamsLimits) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 TeamsLimits.ProtoReflect.Descriptor instead.
|
|
func (*TeamsLimits) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *TeamsLimits) GetActive() *wrapperspb.Int32Value {
|
|
if x != nil {
|
|
return x.Active
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ProductLimits represents cloud product tier limits.
|
|
// Maps to model.ProductLimits in Go.
|
|
type ProductLimits struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// File storage limits (may be null if no limits apply)
|
|
Files *FilesLimits `protobuf:"bytes,1,opt,name=files,proto3" json:"files,omitempty"`
|
|
// Message history limits (may be null if no limits apply)
|
|
Messages *MessagesLimits `protobuf:"bytes,2,opt,name=messages,proto3" json:"messages,omitempty"`
|
|
// Team limits (may be null if no limits apply)
|
|
Teams *TeamsLimits `protobuf:"bytes,3,opt,name=teams,proto3" json:"teams,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ProductLimits) Reset() {
|
|
*x = ProductLimits{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ProductLimits) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ProductLimits) ProtoMessage() {}
|
|
|
|
func (x *ProductLimits) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 ProductLimits.ProtoReflect.Descriptor instead.
|
|
func (*ProductLimits) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ProductLimits) GetFiles() *FilesLimits {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ProductLimits) GetMessages() *MessagesLimits {
|
|
if x != nil {
|
|
return x.Messages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ProductLimits) GetTeams() *TeamsLimits {
|
|
if x != nil {
|
|
return x.Teams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ConfigJson wraps a serialized model.Config as JSON bytes.
|
|
// The Go server serializes model.Config via json.Marshal before sending,
|
|
// and deserializes via json.Unmarshal when receiving.
|
|
type ConfigJson struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// JSON-encoded model.Config
|
|
ConfigJson []byte `protobuf:"bytes,1,opt,name=config_json,json=configJson,proto3" json:"config_json,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfigJson) Reset() {
|
|
*x = ConfigJson{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfigJson) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfigJson) ProtoMessage() {}
|
|
|
|
func (x *ConfigJson) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 ConfigJson.ProtoReflect.Descriptor instead.
|
|
func (*ConfigJson) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ConfigJson) GetConfigJson() []byte {
|
|
if x != nil {
|
|
return x.ConfigJson
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ImplementedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ImplementedRequest) Reset() {
|
|
*x = ImplementedRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ImplementedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ImplementedRequest) ProtoMessage() {}
|
|
|
|
func (x *ImplementedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 ImplementedRequest.ProtoReflect.Descriptor instead.
|
|
func (*ImplementedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ImplementedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ImplementedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
// List of hook names implemented by the plugin
|
|
// Examples: "OnActivate", "MessageWillBePosted", "ServeHTTP"
|
|
Hooks []string `protobuf:"bytes,2,rep,name=hooks,proto3" json:"hooks,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ImplementedResponse) Reset() {
|
|
*x = ImplementedResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ImplementedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ImplementedResponse) ProtoMessage() {}
|
|
|
|
func (x *ImplementedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 ImplementedResponse.ProtoReflect.Descriptor instead.
|
|
func (*ImplementedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ImplementedResponse) GetError() *AppError {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ImplementedResponse) GetHooks() []string {
|
|
if x != nil {
|
|
return x.Hooks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnActivateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnActivateRequest) Reset() {
|
|
*x = OnActivateRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnActivateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnActivateRequest) ProtoMessage() {}
|
|
|
|
func (x *OnActivateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnActivateRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnActivateRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *OnActivateRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnActivateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnActivateResponse) Reset() {
|
|
*x = OnActivateResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnActivateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnActivateResponse) ProtoMessage() {}
|
|
|
|
func (x *OnActivateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnActivateResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnActivateResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *OnActivateResponse) GetError() *AppError {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnDeactivateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnDeactivateRequest) Reset() {
|
|
*x = OnDeactivateRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnDeactivateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnDeactivateRequest) ProtoMessage() {}
|
|
|
|
func (x *OnDeactivateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnDeactivateRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnDeactivateRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *OnDeactivateRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnDeactivateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnDeactivateResponse) Reset() {
|
|
*x = OnDeactivateResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnDeactivateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnDeactivateResponse) ProtoMessage() {}
|
|
|
|
func (x *OnDeactivateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnDeactivateResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnDeactivateResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *OnDeactivateResponse) GetError() *AppError {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnConfigurationChangeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnConfigurationChangeRequest) Reset() {
|
|
*x = OnConfigurationChangeRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnConfigurationChangeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnConfigurationChangeRequest) ProtoMessage() {}
|
|
|
|
func (x *OnConfigurationChangeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnConfigurationChangeRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnConfigurationChangeRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *OnConfigurationChangeRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnConfigurationChangeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnConfigurationChangeResponse) Reset() {
|
|
*x = OnConfigurationChangeResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnConfigurationChangeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnConfigurationChangeResponse) ProtoMessage() {}
|
|
|
|
func (x *OnConfigurationChangeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnConfigurationChangeResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnConfigurationChangeResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *OnConfigurationChangeResponse) GetError() *AppError {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnInstallRequest 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 install event containing the user who installed the plugin
|
|
Event *OnInstallEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnInstallRequest) Reset() {
|
|
*x = OnInstallRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnInstallRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnInstallRequest) ProtoMessage() {}
|
|
|
|
func (x *OnInstallRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnInstallRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnInstallRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *OnInstallRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnInstallRequest) GetPluginContext() *PluginContext {
|
|
if x != nil {
|
|
return x.PluginContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnInstallRequest) GetEvent() *OnInstallEvent {
|
|
if x != nil {
|
|
return x.Event
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnInstallResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnInstallResponse) Reset() {
|
|
*x = OnInstallResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnInstallResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnInstallResponse) ProtoMessage() {}
|
|
|
|
func (x *OnInstallResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnInstallResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnInstallResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *OnInstallResponse) GetError() *AppError {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnSendDailyTelemetryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnSendDailyTelemetryRequest) Reset() {
|
|
*x = OnSendDailyTelemetryRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnSendDailyTelemetryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnSendDailyTelemetryRequest) ProtoMessage() {}
|
|
|
|
func (x *OnSendDailyTelemetryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnSendDailyTelemetryRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnSendDailyTelemetryRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *OnSendDailyTelemetryRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnSendDailyTelemetryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnSendDailyTelemetryResponse) Reset() {
|
|
*x = OnSendDailyTelemetryResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnSendDailyTelemetryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnSendDailyTelemetryResponse) ProtoMessage() {}
|
|
|
|
func (x *OnSendDailyTelemetryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnSendDailyTelemetryResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnSendDailyTelemetryResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
type RunDataRetentionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// The current time as Unix timestamp in milliseconds.
|
|
// Plugins should delete data older than their retention policy relative to this time.
|
|
NowTime int64 `protobuf:"varint,2,opt,name=now_time,json=nowTime,proto3" json:"now_time,omitempty"`
|
|
// The maximum number of items to process in this batch.
|
|
// Plugins should respect this limit to avoid long-running operations.
|
|
BatchSize int64 `protobuf:"varint,3,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RunDataRetentionRequest) Reset() {
|
|
*x = RunDataRetentionRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RunDataRetentionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RunDataRetentionRequest) ProtoMessage() {}
|
|
|
|
func (x *RunDataRetentionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 RunDataRetentionRequest.ProtoReflect.Descriptor instead.
|
|
func (*RunDataRetentionRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *RunDataRetentionRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RunDataRetentionRequest) GetNowTime() int64 {
|
|
if x != nil {
|
|
return x.NowTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RunDataRetentionRequest) GetBatchSize() int64 {
|
|
if x != nil {
|
|
return x.BatchSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RunDataRetentionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
// The number of items deleted in this batch.
|
|
// Used for reporting and determining if another batch is needed.
|
|
DeletedCount int64 `protobuf:"varint,2,opt,name=deleted_count,json=deletedCount,proto3" json:"deleted_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RunDataRetentionResponse) Reset() {
|
|
*x = RunDataRetentionResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RunDataRetentionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RunDataRetentionResponse) ProtoMessage() {}
|
|
|
|
func (x *RunDataRetentionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 RunDataRetentionResponse.ProtoReflect.Descriptor instead.
|
|
func (*RunDataRetentionResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *RunDataRetentionResponse) GetError() *AppError {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RunDataRetentionResponse) GetDeletedCount() int64 {
|
|
if x != nil {
|
|
return x.DeletedCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type OnCloudLimitsUpdatedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// The updated product limits. May be null if limits are removed.
|
|
Limits *ProductLimits `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnCloudLimitsUpdatedRequest) Reset() {
|
|
*x = OnCloudLimitsUpdatedRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnCloudLimitsUpdatedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnCloudLimitsUpdatedRequest) ProtoMessage() {}
|
|
|
|
func (x *OnCloudLimitsUpdatedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnCloudLimitsUpdatedRequest.ProtoReflect.Descriptor instead.
|
|
func (*OnCloudLimitsUpdatedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *OnCloudLimitsUpdatedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OnCloudLimitsUpdatedRequest) GetLimits() *ProductLimits {
|
|
if x != nil {
|
|
return x.Limits
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OnCloudLimitsUpdatedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OnCloudLimitsUpdatedResponse) Reset() {
|
|
*x = OnCloudLimitsUpdatedResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OnCloudLimitsUpdatedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OnCloudLimitsUpdatedResponse) ProtoMessage() {}
|
|
|
|
func (x *OnCloudLimitsUpdatedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 OnCloudLimitsUpdatedResponse.ProtoReflect.Descriptor instead.
|
|
func (*OnCloudLimitsUpdatedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
type ConfigurationWillBeSavedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Context *RequestContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
|
// The new configuration about to be saved, as JSON bytes.
|
|
NewConfig *ConfigJson `protobuf:"bytes,2,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedRequest) Reset() {
|
|
*x = ConfigurationWillBeSavedRequest{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfigurationWillBeSavedRequest) ProtoMessage() {}
|
|
|
|
func (x *ConfigurationWillBeSavedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 ConfigurationWillBeSavedRequest.ProtoReflect.Descriptor instead.
|
|
func (*ConfigurationWillBeSavedRequest) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedRequest) GetContext() *RequestContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedRequest) GetNewConfig() *ConfigJson {
|
|
if x != nil {
|
|
return x.NewConfig
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ConfigurationWillBeSavedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Error *AppError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
// The modified configuration to save instead, as JSON bytes.
|
|
// If null/empty and error is null, the original new_config is saved.
|
|
// If set, this configuration is saved instead of new_config.
|
|
ModifiedConfig *ConfigJson `protobuf:"bytes,2,opt,name=modified_config,json=modifiedConfig,proto3" json:"modified_config,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedResponse) Reset() {
|
|
*x = ConfigurationWillBeSavedResponse{}
|
|
mi := &file_hooks_lifecycle_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfigurationWillBeSavedResponse) ProtoMessage() {}
|
|
|
|
func (x *ConfigurationWillBeSavedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_hooks_lifecycle_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 ConfigurationWillBeSavedResponse.ProtoReflect.Descriptor instead.
|
|
func (*ConfigurationWillBeSavedResponse) Descriptor() ([]byte, []int) {
|
|
return file_hooks_lifecycle_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedResponse) GetError() *AppError {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ConfigurationWillBeSavedResponse) GetModifiedConfig() *ConfigJson {
|
|
if x != nil {
|
|
return x.ModifiedConfig
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_hooks_lifecycle_proto protoreflect.FileDescriptor
|
|
|
|
const file_hooks_lifecycle_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x15hooks_lifecycle.proto\x12\x17mattermost.pluginapi.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\fcommon.proto\x1a\x12hooks_common.proto\")\n" +
|
|
"\x0eOnInstallEvent\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\"O\n" +
|
|
"\vFilesLimits\x12@\n" +
|
|
"\rtotal_storage\x18\x01 \x01(\v2\x1b.google.protobuf.Int64ValueR\ftotalStorage\"G\n" +
|
|
"\x0eMessagesLimits\x125\n" +
|
|
"\ahistory\x18\x01 \x01(\v2\x1b.google.protobuf.Int32ValueR\ahistory\"B\n" +
|
|
"\vTeamsLimits\x123\n" +
|
|
"\x06active\x18\x01 \x01(\v2\x1b.google.protobuf.Int32ValueR\x06active\"\xcc\x01\n" +
|
|
"\rProductLimits\x12:\n" +
|
|
"\x05files\x18\x01 \x01(\v2$.mattermost.pluginapi.v1.FilesLimitsR\x05files\x12C\n" +
|
|
"\bmessages\x18\x02 \x01(\v2'.mattermost.pluginapi.v1.MessagesLimitsR\bmessages\x12:\n" +
|
|
"\x05teams\x18\x03 \x01(\v2$.mattermost.pluginapi.v1.TeamsLimitsR\x05teams\"-\n" +
|
|
"\n" +
|
|
"ConfigJson\x12\x1f\n" +
|
|
"\vconfig_json\x18\x01 \x01(\fR\n" +
|
|
"configJson\"W\n" +
|
|
"\x12ImplementedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\"d\n" +
|
|
"\x13ImplementedResponse\x127\n" +
|
|
"\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\x12\x14\n" +
|
|
"\x05hooks\x18\x02 \x03(\tR\x05hooks\"V\n" +
|
|
"\x11OnActivateRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\"M\n" +
|
|
"\x12OnActivateResponse\x127\n" +
|
|
"\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\"X\n" +
|
|
"\x13OnDeactivateRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\"O\n" +
|
|
"\x14OnDeactivateResponse\x127\n" +
|
|
"\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\"a\n" +
|
|
"\x1cOnConfigurationChangeRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\"X\n" +
|
|
"\x1dOnConfigurationChangeResponse\x127\n" +
|
|
"\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\"\xe3\x01\n" +
|
|
"\x10OnInstallRequest\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" +
|
|
"\x05event\x18\x03 \x01(\v2'.mattermost.pluginapi.v1.OnInstallEventR\x05event\"L\n" +
|
|
"\x11OnInstallResponse\x127\n" +
|
|
"\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\"`\n" +
|
|
"\x1bOnSendDailyTelemetryRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\"\x1e\n" +
|
|
"\x1cOnSendDailyTelemetryResponse\"\x96\x01\n" +
|
|
"\x17RunDataRetentionRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12\x19\n" +
|
|
"\bnow_time\x18\x02 \x01(\x03R\anowTime\x12\x1d\n" +
|
|
"\n" +
|
|
"batch_size\x18\x03 \x01(\x03R\tbatchSize\"x\n" +
|
|
"\x18RunDataRetentionResponse\x127\n" +
|
|
"\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\x12#\n" +
|
|
"\rdeleted_count\x18\x02 \x01(\x03R\fdeletedCount\"\xa0\x01\n" +
|
|
"\x1bOnCloudLimitsUpdatedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12>\n" +
|
|
"\x06limits\x18\x02 \x01(\v2&.mattermost.pluginapi.v1.ProductLimitsR\x06limits\"\x1e\n" +
|
|
"\x1cOnCloudLimitsUpdatedResponse\"\xa8\x01\n" +
|
|
"\x1fConfigurationWillBeSavedRequest\x12A\n" +
|
|
"\acontext\x18\x01 \x01(\v2'.mattermost.pluginapi.v1.RequestContextR\acontext\x12B\n" +
|
|
"\n" +
|
|
"new_config\x18\x02 \x01(\v2#.mattermost.pluginapi.v1.ConfigJsonR\tnewConfig\"\xa9\x01\n" +
|
|
" ConfigurationWillBeSavedResponse\x127\n" +
|
|
"\x05error\x18\x01 \x01(\v2!.mattermost.pluginapi.v1.AppErrorR\x05error\x12L\n" +
|
|
"\x0fmodified_config\x18\x02 \x01(\v2#.mattermost.pluginapi.v1.ConfigJsonR\x0emodifiedConfigBXZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1b\x06proto3"
|
|
|
|
var (
|
|
file_hooks_lifecycle_proto_rawDescOnce sync.Once
|
|
file_hooks_lifecycle_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_hooks_lifecycle_proto_rawDescGZIP() []byte {
|
|
file_hooks_lifecycle_proto_rawDescOnce.Do(func() {
|
|
file_hooks_lifecycle_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_hooks_lifecycle_proto_rawDesc), len(file_hooks_lifecycle_proto_rawDesc)))
|
|
})
|
|
return file_hooks_lifecycle_proto_rawDescData
|
|
}
|
|
|
|
var file_hooks_lifecycle_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
|
var file_hooks_lifecycle_proto_goTypes = []any{
|
|
(*OnInstallEvent)(nil), // 0: mattermost.pluginapi.v1.OnInstallEvent
|
|
(*FilesLimits)(nil), // 1: mattermost.pluginapi.v1.FilesLimits
|
|
(*MessagesLimits)(nil), // 2: mattermost.pluginapi.v1.MessagesLimits
|
|
(*TeamsLimits)(nil), // 3: mattermost.pluginapi.v1.TeamsLimits
|
|
(*ProductLimits)(nil), // 4: mattermost.pluginapi.v1.ProductLimits
|
|
(*ConfigJson)(nil), // 5: mattermost.pluginapi.v1.ConfigJson
|
|
(*ImplementedRequest)(nil), // 6: mattermost.pluginapi.v1.ImplementedRequest
|
|
(*ImplementedResponse)(nil), // 7: mattermost.pluginapi.v1.ImplementedResponse
|
|
(*OnActivateRequest)(nil), // 8: mattermost.pluginapi.v1.OnActivateRequest
|
|
(*OnActivateResponse)(nil), // 9: mattermost.pluginapi.v1.OnActivateResponse
|
|
(*OnDeactivateRequest)(nil), // 10: mattermost.pluginapi.v1.OnDeactivateRequest
|
|
(*OnDeactivateResponse)(nil), // 11: mattermost.pluginapi.v1.OnDeactivateResponse
|
|
(*OnConfigurationChangeRequest)(nil), // 12: mattermost.pluginapi.v1.OnConfigurationChangeRequest
|
|
(*OnConfigurationChangeResponse)(nil), // 13: mattermost.pluginapi.v1.OnConfigurationChangeResponse
|
|
(*OnInstallRequest)(nil), // 14: mattermost.pluginapi.v1.OnInstallRequest
|
|
(*OnInstallResponse)(nil), // 15: mattermost.pluginapi.v1.OnInstallResponse
|
|
(*OnSendDailyTelemetryRequest)(nil), // 16: mattermost.pluginapi.v1.OnSendDailyTelemetryRequest
|
|
(*OnSendDailyTelemetryResponse)(nil), // 17: mattermost.pluginapi.v1.OnSendDailyTelemetryResponse
|
|
(*RunDataRetentionRequest)(nil), // 18: mattermost.pluginapi.v1.RunDataRetentionRequest
|
|
(*RunDataRetentionResponse)(nil), // 19: mattermost.pluginapi.v1.RunDataRetentionResponse
|
|
(*OnCloudLimitsUpdatedRequest)(nil), // 20: mattermost.pluginapi.v1.OnCloudLimitsUpdatedRequest
|
|
(*OnCloudLimitsUpdatedResponse)(nil), // 21: mattermost.pluginapi.v1.OnCloudLimitsUpdatedResponse
|
|
(*ConfigurationWillBeSavedRequest)(nil), // 22: mattermost.pluginapi.v1.ConfigurationWillBeSavedRequest
|
|
(*ConfigurationWillBeSavedResponse)(nil), // 23: mattermost.pluginapi.v1.ConfigurationWillBeSavedResponse
|
|
(*wrapperspb.Int64Value)(nil), // 24: google.protobuf.Int64Value
|
|
(*wrapperspb.Int32Value)(nil), // 25: google.protobuf.Int32Value
|
|
(*RequestContext)(nil), // 26: mattermost.pluginapi.v1.RequestContext
|
|
(*AppError)(nil), // 27: mattermost.pluginapi.v1.AppError
|
|
(*PluginContext)(nil), // 28: mattermost.pluginapi.v1.PluginContext
|
|
}
|
|
var file_hooks_lifecycle_proto_depIdxs = []int32{
|
|
24, // 0: mattermost.pluginapi.v1.FilesLimits.total_storage:type_name -> google.protobuf.Int64Value
|
|
25, // 1: mattermost.pluginapi.v1.MessagesLimits.history:type_name -> google.protobuf.Int32Value
|
|
25, // 2: mattermost.pluginapi.v1.TeamsLimits.active:type_name -> google.protobuf.Int32Value
|
|
1, // 3: mattermost.pluginapi.v1.ProductLimits.files:type_name -> mattermost.pluginapi.v1.FilesLimits
|
|
2, // 4: mattermost.pluginapi.v1.ProductLimits.messages:type_name -> mattermost.pluginapi.v1.MessagesLimits
|
|
3, // 5: mattermost.pluginapi.v1.ProductLimits.teams:type_name -> mattermost.pluginapi.v1.TeamsLimits
|
|
26, // 6: mattermost.pluginapi.v1.ImplementedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 7: mattermost.pluginapi.v1.ImplementedResponse.error:type_name -> mattermost.pluginapi.v1.AppError
|
|
26, // 8: mattermost.pluginapi.v1.OnActivateRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 9: mattermost.pluginapi.v1.OnActivateResponse.error:type_name -> mattermost.pluginapi.v1.AppError
|
|
26, // 10: mattermost.pluginapi.v1.OnDeactivateRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 11: mattermost.pluginapi.v1.OnDeactivateResponse.error:type_name -> mattermost.pluginapi.v1.AppError
|
|
26, // 12: mattermost.pluginapi.v1.OnConfigurationChangeRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 13: mattermost.pluginapi.v1.OnConfigurationChangeResponse.error:type_name -> mattermost.pluginapi.v1.AppError
|
|
26, // 14: mattermost.pluginapi.v1.OnInstallRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
28, // 15: mattermost.pluginapi.v1.OnInstallRequest.plugin_context:type_name -> mattermost.pluginapi.v1.PluginContext
|
|
0, // 16: mattermost.pluginapi.v1.OnInstallRequest.event:type_name -> mattermost.pluginapi.v1.OnInstallEvent
|
|
27, // 17: mattermost.pluginapi.v1.OnInstallResponse.error:type_name -> mattermost.pluginapi.v1.AppError
|
|
26, // 18: mattermost.pluginapi.v1.OnSendDailyTelemetryRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
26, // 19: mattermost.pluginapi.v1.RunDataRetentionRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
27, // 20: mattermost.pluginapi.v1.RunDataRetentionResponse.error:type_name -> mattermost.pluginapi.v1.AppError
|
|
26, // 21: mattermost.pluginapi.v1.OnCloudLimitsUpdatedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
4, // 22: mattermost.pluginapi.v1.OnCloudLimitsUpdatedRequest.limits:type_name -> mattermost.pluginapi.v1.ProductLimits
|
|
26, // 23: mattermost.pluginapi.v1.ConfigurationWillBeSavedRequest.context:type_name -> mattermost.pluginapi.v1.RequestContext
|
|
5, // 24: mattermost.pluginapi.v1.ConfigurationWillBeSavedRequest.new_config:type_name -> mattermost.pluginapi.v1.ConfigJson
|
|
27, // 25: mattermost.pluginapi.v1.ConfigurationWillBeSavedResponse.error:type_name -> mattermost.pluginapi.v1.AppError
|
|
5, // 26: mattermost.pluginapi.v1.ConfigurationWillBeSavedResponse.modified_config:type_name -> mattermost.pluginapi.v1.ConfigJson
|
|
27, // [27:27] is the sub-list for method output_type
|
|
27, // [27:27] is the sub-list for method input_type
|
|
27, // [27:27] is the sub-list for extension type_name
|
|
27, // [27:27] is the sub-list for extension extendee
|
|
0, // [0:27] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_hooks_lifecycle_proto_init() }
|
|
func file_hooks_lifecycle_proto_init() {
|
|
if File_hooks_lifecycle_proto != nil {
|
|
return
|
|
}
|
|
file_common_proto_init()
|
|
file_hooks_common_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_hooks_lifecycle_proto_rawDesc), len(file_hooks_lifecycle_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 24,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_hooks_lifecycle_proto_goTypes,
|
|
DependencyIndexes: file_hooks_lifecycle_proto_depIdxs,
|
|
MessageInfos: file_hooks_lifecycle_proto_msgTypes,
|
|
}.Build()
|
|
File_hooks_lifecycle_proto = out.File
|
|
file_hooks_lifecycle_proto_goTypes = nil
|
|
file_hooks_lifecycle_proto_depIdxs = nil
|
|
}
|