mattermost/python-sdk/build/lib/mattermost_plugin/grpc/hooks_pb2.py
Nick Misasi 01643af641 debug: add extensive logging to trace hook registration flow
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>
2026-01-20 09:12:22 -05:00

42 lines
8.1 KiB
Python

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: hooks.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.proto'
)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from . import hooks_lifecycle_pb2 as hooks__lifecycle__pb2
from . import hooks_message_pb2 as hooks__message__pb2
from . import hooks_user_channel_pb2 as hooks__user__channel__pb2
from . import hooks_command_pb2 as hooks__command__pb2
from . import hooks_http_pb2 as hooks__http__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bhooks.proto\x12\x17mattermost.pluginapi.v1\x1a\x15hooks_lifecycle.proto\x1a\x13hooks_message.proto\x1a\x18hooks_user_channel.proto\x1a\x13hooks_command.proto\x1a\x10hooks_http.proto2\xa3+\n\x0bPluginHooks\x12h\n\x0bImplemented\x12+.mattermost.pluginapi.v1.ImplementedRequest\x1a,.mattermost.pluginapi.v1.ImplementedResponse\x12\x65\n\nOnActivate\x12*.mattermost.pluginapi.v1.OnActivateRequest\x1a+.mattermost.pluginapi.v1.OnActivateResponse\x12k\n\x0cOnDeactivate\x12,.mattermost.pluginapi.v1.OnDeactivateRequest\x1a-.mattermost.pluginapi.v1.OnDeactivateResponse\x12\x86\x01\n\x15OnConfigurationChange\x12\x35.mattermost.pluginapi.v1.OnConfigurationChangeRequest\x1a\x36.mattermost.pluginapi.v1.OnConfigurationChangeResponse\x12\x62\n\tOnInstall\x12).mattermost.pluginapi.v1.OnInstallRequest\x1a*.mattermost.pluginapi.v1.OnInstallResponse\x12\x83\x01\n\x14OnSendDailyTelemetry\x12\x34.mattermost.pluginapi.v1.OnSendDailyTelemetryRequest\x1a\x35.mattermost.pluginapi.v1.OnSendDailyTelemetryResponse\x12w\n\x10RunDataRetention\x12\x30.mattermost.pluginapi.v1.RunDataRetentionRequest\x1a\x31.mattermost.pluginapi.v1.RunDataRetentionResponse\x12\x83\x01\n\x14OnCloudLimitsUpdated\x12\x34.mattermost.pluginapi.v1.OnCloudLimitsUpdatedRequest\x1a\x35.mattermost.pluginapi.v1.OnCloudLimitsUpdatedResponse\x12\x8f\x01\n\x18\x43onfigurationWillBeSaved\x12\x38.mattermost.pluginapi.v1.ConfigurationWillBeSavedRequest\x1a\x39.mattermost.pluginapi.v1.ConfigurationWillBeSavedResponse\x12\x80\x01\n\x13MessageWillBePosted\x12\x33.mattermost.pluginapi.v1.MessageWillBePostedRequest\x1a\x34.mattermost.pluginapi.v1.MessageWillBePostedResponse\x12\x83\x01\n\x14MessageWillBeUpdated\x12\x34.mattermost.pluginapi.v1.MessageWillBeUpdatedRequest\x1a\x35.mattermost.pluginapi.v1.MessageWillBeUpdatedResponse\x12\x83\x01\n\x14MessageHasBeenPosted\x12\x34.mattermost.pluginapi.v1.MessageHasBeenPostedRequest\x1a\x35.mattermost.pluginapi.v1.MessageHasBeenPostedResponse\x12\x86\x01\n\x15MessageHasBeenUpdated\x12\x35.mattermost.pluginapi.v1.MessageHasBeenUpdatedRequest\x1a\x36.mattermost.pluginapi.v1.MessageHasBeenUpdatedResponse\x12\x89\x01\n\x16MessagesWillBeConsumed\x12\x36.mattermost.pluginapi.v1.MessagesWillBeConsumedRequest\x1a\x37.mattermost.pluginapi.v1.MessagesWillBeConsumedResponse\x12\x86\x01\n\x15MessageHasBeenDeleted\x12\x35.mattermost.pluginapi.v1.MessageHasBeenDeletedRequest\x1a\x36.mattermost.pluginapi.v1.MessageHasBeenDeletedResponse\x12}\n\x12\x46ileWillBeUploaded\x12\x32.mattermost.pluginapi.v1.FileWillBeUploadedRequest\x1a\x33.mattermost.pluginapi.v1.FileWillBeUploadedResponse\x12\x83\x01\n\x14ReactionHasBeenAdded\x12\x34.mattermost.pluginapi.v1.ReactionHasBeenAddedRequest\x1a\x35.mattermost.pluginapi.v1.ReactionHasBeenAddedResponse\x12\x89\x01\n\x16ReactionHasBeenRemoved\x12\x36.mattermost.pluginapi.v1.ReactionHasBeenRemovedRequest\x1a\x37.mattermost.pluginapi.v1.ReactionHasBeenRemovedResponse\x12\x8f\x01\n\x18NotificationWillBePushed\x12\x38.mattermost.pluginapi.v1.NotificationWillBePushedRequest\x1a\x39.mattermost.pluginapi.v1.NotificationWillBePushedResponse\x12\x98\x01\n\x1b\x45mailNotificationWillBeSent\x12;.mattermost.pluginapi.v1.EmailNotificationWillBeSentRequest\x1a<.mattermost.pluginapi.v1.EmailNotificationWillBeSentResponse\x12\x89\x01\n\x16PreferencesHaveChanged\x12\x36.mattermost.pluginapi.v1.PreferencesHaveChangedRequest\x1a\x37.mattermost.pluginapi.v1.PreferencesHaveChangedResponse\x12}\n\x12UserHasBeenCreated\x12\x32.mattermost.pluginapi.v1.UserHasBeenCreatedRequest\x1a\x33.mattermost.pluginapi.v1.UserHasBeenCreatedResponse\x12n\n\rUserWillLogIn\x12-.mattermost.pluginapi.v1.UserWillLogInRequest\x1a..mattermost.pluginapi.v1.UserWillLogInResponse\x12t\n\x0fUserHasLoggedIn\x12/.mattermost.pluginapi.v1.UserHasLoggedInRequest\x1a\x30.mattermost.pluginapi.v1.UserHasLoggedInResponse\x12\x89\x01\n\x16UserHasBeenDeactivated\x12\x36.mattermost.pluginapi.v1.UserHasBeenDeactivatedRequest\x1a\x37.mattermost.pluginapi.v1.UserHasBeenDeactivatedResponse\x12h\n\x0bOnSAMLLogin\x12+.mattermost.pluginapi.v1.OnSAMLLoginRequest\x1a,.mattermost.pluginapi.v1.OnSAMLLoginResponse\x12\x86\x01\n\x15\x43hannelHasBeenCreated\x12\x35.mattermost.pluginapi.v1.ChannelHasBeenCreatedRequest\x1a\x36.mattermost.pluginapi.v1.ChannelHasBeenCreatedResponse\x12\x83\x01\n\x14UserHasJoinedChannel\x12\x34.mattermost.pluginapi.v1.UserHasJoinedChannelRequest\x1a\x35.mattermost.pluginapi.v1.UserHasJoinedChannelResponse\x12}\n\x12UserHasLeftChannel\x12\x32.mattermost.pluginapi.v1.UserHasLeftChannelRequest\x1a\x33.mattermost.pluginapi.v1.UserHasLeftChannelResponse\x12z\n\x11UserHasJoinedTeam\x12\x31.mattermost.pluginapi.v1.UserHasJoinedTeamRequest\x1a\x32.mattermost.pluginapi.v1.UserHasJoinedTeamResponse\x12t\n\x0fUserHasLeftTeam\x12/.mattermost.pluginapi.v1.UserHasLeftTeamRequest\x1a\x30.mattermost.pluginapi.v1.UserHasLeftTeamResponse\x12q\n\x0e\x45xecuteCommand\x12..mattermost.pluginapi.v1.ExecuteCommandRequest\x1a/.mattermost.pluginapi.v1.ExecuteCommandResponse\x12}\n\x12OnWebSocketConnect\x12\x32.mattermost.pluginapi.v1.OnWebSocketConnectRequest\x1a\x33.mattermost.pluginapi.v1.OnWebSocketConnectResponse\x12\x86\x01\n\x15OnWebSocketDisconnect\x12\x35.mattermost.pluginapi.v1.OnWebSocketDisconnectRequest\x1a\x36.mattermost.pluginapi.v1.OnWebSocketDisconnectResponse\x12\x9e\x01\n\x1dWebSocketMessageHasBeenPosted\x12=.mattermost.pluginapi.v1.WebSocketMessageHasBeenPostedRequest\x1a>.mattermost.pluginapi.v1.WebSocketMessageHasBeenPostedResponse\x12\x83\x01\n\x14OnPluginClusterEvent\x12\x34.mattermost.pluginapi.v1.OnPluginClusterEventRequest\x1a\x35.mattermost.pluginapi.v1.OnPluginClusterEventResponse\x12\x8c\x01\n\x17OnSharedChannelsSyncMsg\x12\x37.mattermost.pluginapi.v1.OnSharedChannelsSyncMsgRequest\x1a\x38.mattermost.pluginapi.v1.OnSharedChannelsSyncMsgResponse\x12\x83\x01\n\x14OnSharedChannelsPing\x12\x34.mattermost.pluginapi.v1.OnSharedChannelsPingRequest\x1a\x35.mattermost.pluginapi.v1.OnSharedChannelsPingResponse\x12\xaa\x01\n!OnSharedChannelsAttachmentSyncMsg\x12\x41.mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgRequest\x1a\x42.mattermost.pluginapi.v1.OnSharedChannelsAttachmentSyncMsgResponse\x12\xb0\x01\n#OnSharedChannelsProfileImageSyncMsg\x12\x43.mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgRequest\x1a\x44.mattermost.pluginapi.v1.OnSharedChannelsProfileImageSyncMsgResponse\x12\x80\x01\n\x13GenerateSupportData\x12\x33.mattermost.pluginapi.v1.GenerateSupportDataRequest\x1a\x34.mattermost.pluginapi.v1.GenerateSupportDataResponse\x12\x66\n\tServeHTTP\x12).mattermost.pluginapi.v1.ServeHTTPRequest\x1a*.mattermost.pluginapi.v1.ServeHTTPResponse(\x01\x30\x01\x42XZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1b\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hooks_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['_PLUGINHOOKS']._serialized_start=150
_globals['_PLUGINHOOKS']._serialized_end=5689
# @@protoc_insertion_point(module_scope)