mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
Go side: - Log hooks returned by Implemented() - Log each hook name -> ID mapping - Log OnActivate implementation status - Log OnActivate call flow Python side: - Log Implemented() return value - Log OnActivate gRPC receipt and handler invocation This is temporary debug logging to diagnose why OnActivate isn't being called for Python plugins. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
92 lines
10 KiB
Python
92 lines
10 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: hooks_message.proto
|
|
# Protobuf Python Version: 6.31.1
|
|
"""Generated protocol buffer code."""
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
from google.protobuf import runtime_version as _runtime_version
|
|
from google.protobuf import symbol_database as _symbol_database
|
|
from google.protobuf.internal import builder as _builder
|
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
_runtime_version.Domain.PUBLIC,
|
|
6,
|
|
31,
|
|
1,
|
|
'',
|
|
'hooks_message.proto'
|
|
)
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
from . import common_pb2 as common__pb2
|
|
from . import hooks_common_pb2 as hooks__common__pb2
|
|
from . import post_pb2 as post__pb2
|
|
from . import file_pb2 as file__pb2
|
|
from . import api_remaining_pb2 as api__remaining__pb2
|
|
|
|
|
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13hooks_message.proto\x12\x17mattermost.pluginapi.v1\x1a\x0c\x63ommon.proto\x1a\x12hooks_common.proto\x1a\npost.proto\x1a\nfile.proto\x1a\x13\x61pi_remaining.proto\"2\n\x15\x45mailNotificationJson\x12\x19\n\x11notification_json\x18\x01 \x01(\x0c\"\xb7\x01\n\x18\x45mailNotificationContent\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x11\n\tsub_title\x18\x03 \x01(\t\x12\x14\n\x0cmessage_html\x18\x04 \x01(\t\x12\x14\n\x0cmessage_text\x18\x05 \x01(\t\x12\x13\n\x0b\x62utton_text\x18\x06 \x01(\t\x12\x12\n\nbutton_url\x18\x07 \x01(\t\x12\x13\n\x0b\x66ooter_text\x18\x08 \x01(\t\"\xc3\x01\n\x1aMessageWillBePostedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12+\n\x04post\x18\x03 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\"m\n\x1bMessageWillBePostedResponse\x12\x34\n\rmodified_post\x18\x01 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\x12\x18\n\x10rejection_reason\x18\x02 \x01(\t\"\xf9\x01\n\x1bMessageWillBeUpdatedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12/\n\x08new_post\x18\x03 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\x12/\n\x08old_post\x18\x04 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\"n\n\x1cMessageWillBeUpdatedResponse\x12\x34\n\rmodified_post\x18\x01 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\x12\x18\n\x10rejection_reason\x18\x02 \x01(\t\"\xc4\x01\n\x1bMessageHasBeenPostedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12+\n\x04post\x18\x03 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\"\x1e\n\x1cMessageHasBeenPostedResponse\"\xfa\x01\n\x1cMessageHasBeenUpdatedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12/\n\x08new_post\x18\x03 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\x12/\n\x08old_post\x18\x04 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\"\x1f\n\x1dMessageHasBeenUpdatedResponse\"\x87\x01\n\x1dMessagesWillBeConsumedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12,\n\x05posts\x18\x02 \x03(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\"N\n\x1eMessagesWillBeConsumedResponse\x12,\n\x05posts\x18\x01 \x03(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\"\xc5\x01\n\x1cMessageHasBeenDeletedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12+\n\x04post\x18\x03 \x01(\x0b\x32\x1d.mattermost.pluginapi.v1.Post\"\x1f\n\x1dMessageHasBeenDeletedResponse\"\xe1\x01\n\x19\x46ileWillBeUploadedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12\x34\n\tfile_info\x18\x03 \x01(\x0b\x32!.mattermost.pluginapi.v1.FileInfo\x12\x14\n\x0c\x66ile_content\x18\x04 \x01(\x0c\"\x8f\x01\n\x1a\x46ileWillBeUploadedResponse\x12=\n\x12modified_file_info\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.FileInfo\x12\x18\n\x10modified_content\x18\x02 \x01(\x0c\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\"\xcc\x01\n\x1bReactionHasBeenAddedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12\x33\n\x08reaction\x18\x03 \x01(\x0b\x32!.mattermost.pluginapi.v1.Reaction\"\x1e\n\x1cReactionHasBeenAddedResponse\"\xce\x01\n\x1dReactionHasBeenRemovedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12\x33\n\x08reaction\x18\x03 \x01(\x0b\x32!.mattermost.pluginapi.v1.Reaction\" \n\x1eReactionHasBeenRemovedResponse\"\xb2\x01\n\x1fNotificationWillBePushedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12\x44\n\x11push_notification\x18\x02 \x01(\x0b\x32).mattermost.pluginapi.v1.PushNotification\x12\x0f\n\x07user_id\x18\x03 \x01(\t\"\x86\x01\n NotificationWillBePushedResponse\x12H\n\x15modified_notification\x18\x01 \x01(\x0b\x32).mattermost.pluginapi.v1.PushNotification\x12\x18\n\x10rejection_reason\x18\x02 \x01(\t\"\xaa\x01\n\"EmailNotificationWillBeSentRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12J\n\x12\x65mail_notification\x18\x02 \x01(\x0b\x32..mattermost.pluginapi.v1.EmailNotificationJson\"\x8c\x01\n#EmailNotificationWillBeSentResponse\x12K\n\x10modified_content\x18\x01 \x01(\x0b\x32\x31.mattermost.pluginapi.v1.EmailNotificationContent\x12\x18\n\x10rejection_reason\x18\x02 \x01(\t\"\xd3\x01\n\x1dPreferencesHaveChangedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12>\n\x0eplugin_context\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12\x38\n\x0bpreferences\x18\x03 \x03(\x0b\x32#.mattermost.pluginapi.v1.Preference\" \n\x1ePreferencesHaveChangedResponseBXZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1b\x06proto3')
|
|
|
|
_globals = globals()
|
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hooks_message_pb2', _globals)
|
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
_globals['DESCRIPTOR']._serialized_options = b'ZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1'
|
|
_globals['_EMAILNOTIFICATIONJSON']._serialized_start=127
|
|
_globals['_EMAILNOTIFICATIONJSON']._serialized_end=177
|
|
_globals['_EMAILNOTIFICATIONCONTENT']._serialized_start=180
|
|
_globals['_EMAILNOTIFICATIONCONTENT']._serialized_end=363
|
|
_globals['_MESSAGEWILLBEPOSTEDREQUEST']._serialized_start=366
|
|
_globals['_MESSAGEWILLBEPOSTEDREQUEST']._serialized_end=561
|
|
_globals['_MESSAGEWILLBEPOSTEDRESPONSE']._serialized_start=563
|
|
_globals['_MESSAGEWILLBEPOSTEDRESPONSE']._serialized_end=672
|
|
_globals['_MESSAGEWILLBEUPDATEDREQUEST']._serialized_start=675
|
|
_globals['_MESSAGEWILLBEUPDATEDREQUEST']._serialized_end=924
|
|
_globals['_MESSAGEWILLBEUPDATEDRESPONSE']._serialized_start=926
|
|
_globals['_MESSAGEWILLBEUPDATEDRESPONSE']._serialized_end=1036
|
|
_globals['_MESSAGEHASBEENPOSTEDREQUEST']._serialized_start=1039
|
|
_globals['_MESSAGEHASBEENPOSTEDREQUEST']._serialized_end=1235
|
|
_globals['_MESSAGEHASBEENPOSTEDRESPONSE']._serialized_start=1237
|
|
_globals['_MESSAGEHASBEENPOSTEDRESPONSE']._serialized_end=1267
|
|
_globals['_MESSAGEHASBEENUPDATEDREQUEST']._serialized_start=1270
|
|
_globals['_MESSAGEHASBEENUPDATEDREQUEST']._serialized_end=1520
|
|
_globals['_MESSAGEHASBEENUPDATEDRESPONSE']._serialized_start=1522
|
|
_globals['_MESSAGEHASBEENUPDATEDRESPONSE']._serialized_end=1553
|
|
_globals['_MESSAGESWILLBECONSUMEDREQUEST']._serialized_start=1556
|
|
_globals['_MESSAGESWILLBECONSUMEDREQUEST']._serialized_end=1691
|
|
_globals['_MESSAGESWILLBECONSUMEDRESPONSE']._serialized_start=1693
|
|
_globals['_MESSAGESWILLBECONSUMEDRESPONSE']._serialized_end=1771
|
|
_globals['_MESSAGEHASBEENDELETEDREQUEST']._serialized_start=1774
|
|
_globals['_MESSAGEHASBEENDELETEDREQUEST']._serialized_end=1971
|
|
_globals['_MESSAGEHASBEENDELETEDRESPONSE']._serialized_start=1973
|
|
_globals['_MESSAGEHASBEENDELETEDRESPONSE']._serialized_end=2004
|
|
_globals['_FILEWILLBEUPLOADEDREQUEST']._serialized_start=2007
|
|
_globals['_FILEWILLBEUPLOADEDREQUEST']._serialized_end=2232
|
|
_globals['_FILEWILLBEUPLOADEDRESPONSE']._serialized_start=2235
|
|
_globals['_FILEWILLBEUPLOADEDRESPONSE']._serialized_end=2378
|
|
_globals['_REACTIONHASBEENADDEDREQUEST']._serialized_start=2381
|
|
_globals['_REACTIONHASBEENADDEDREQUEST']._serialized_end=2585
|
|
_globals['_REACTIONHASBEENADDEDRESPONSE']._serialized_start=2587
|
|
_globals['_REACTIONHASBEENADDEDRESPONSE']._serialized_end=2617
|
|
_globals['_REACTIONHASBEENREMOVEDREQUEST']._serialized_start=2620
|
|
_globals['_REACTIONHASBEENREMOVEDREQUEST']._serialized_end=2826
|
|
_globals['_REACTIONHASBEENREMOVEDRESPONSE']._serialized_start=2828
|
|
_globals['_REACTIONHASBEENREMOVEDRESPONSE']._serialized_end=2860
|
|
_globals['_NOTIFICATIONWILLBEPUSHEDREQUEST']._serialized_start=2863
|
|
_globals['_NOTIFICATIONWILLBEPUSHEDREQUEST']._serialized_end=3041
|
|
_globals['_NOTIFICATIONWILLBEPUSHEDRESPONSE']._serialized_start=3044
|
|
_globals['_NOTIFICATIONWILLBEPUSHEDRESPONSE']._serialized_end=3178
|
|
_globals['_EMAILNOTIFICATIONWILLBESENTREQUEST']._serialized_start=3181
|
|
_globals['_EMAILNOTIFICATIONWILLBESENTREQUEST']._serialized_end=3351
|
|
_globals['_EMAILNOTIFICATIONWILLBESENTRESPONSE']._serialized_start=3354
|
|
_globals['_EMAILNOTIFICATIONWILLBESENTRESPONSE']._serialized_end=3494
|
|
_globals['_PREFERENCESHAVECHANGEDREQUEST']._serialized_start=3497
|
|
_globals['_PREFERENCESHAVECHANGEDREQUEST']._serialized_end=3708
|
|
_globals['_PREFERENCESHAVECHANGEDRESPONSE']._serialized_start=3710
|
|
_globals['_PREFERENCESHAVECHANGEDRESPONSE']._serialized_end=3742
|
|
# @@protoc_insertion_point(module_scope)
|