mattermost/python-sdk/build/lib/mattermost_plugin/grpc/hooks_lifecycle_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

86 lines
7.5 KiB
Python

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: hooks_lifecycle.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_lifecycle.proto'
)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
from . import common_pb2 as common__pb2
from . import hooks_common_pb2 as hooks__common__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15hooks_lifecycle.proto\x12\x17mattermost.pluginapi.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x0c\x63ommon.proto\x1a\x12hooks_common.proto\"!\n\x0eOnInstallEvent\x12\x0f\n\x07user_id\x18\x01 \x01(\t\"A\n\x0b\x46ilesLimits\x12\x32\n\rtotal_storage\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\">\n\x0eMessagesLimits\x12,\n\x07history\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\":\n\x0bTeamsLimits\x12+\n\x06\x61\x63tive\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xb4\x01\n\rProductLimits\x12\x33\n\x05\x66iles\x18\x01 \x01(\x0b\x32$.mattermost.pluginapi.v1.FilesLimits\x12\x39\n\x08messages\x18\x02 \x01(\x0b\x32\'.mattermost.pluginapi.v1.MessagesLimits\x12\x33\n\x05teams\x18\x03 \x01(\x0b\x32$.mattermost.pluginapi.v1.TeamsLimits\"!\n\nConfigJson\x12\x13\n\x0b\x63onfig_json\x18\x01 \x01(\x0c\"N\n\x12ImplementedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\"V\n\x13ImplementedResponse\x12\x30\n\x05\x65rror\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.AppError\x12\r\n\x05hooks\x18\x02 \x03(\t\"M\n\x11OnActivateRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\"F\n\x12OnActivateResponse\x12\x30\n\x05\x65rror\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.AppError\"O\n\x13OnDeactivateRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\"H\n\x14OnDeactivateResponse\x12\x30\n\x05\x65rror\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.AppError\"X\n\x1cOnConfigurationChangeRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\"Q\n\x1dOnConfigurationChangeResponse\x12\x30\n\x05\x65rror\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.AppError\"\xc4\x01\n\x10OnInstallRequest\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\x36\n\x05\x65vent\x18\x03 \x01(\x0b\x32\'.mattermost.pluginapi.v1.OnInstallEvent\"E\n\x11OnInstallResponse\x12\x30\n\x05\x65rror\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.AppError\"W\n\x1bOnSendDailyTelemetryRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\"\x1e\n\x1cOnSendDailyTelemetryResponse\"y\n\x17RunDataRetentionRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12\x10\n\x08now_time\x18\x02 \x01(\x03\x12\x12\n\nbatch_size\x18\x03 \x01(\x03\"c\n\x18RunDataRetentionResponse\x12\x30\n\x05\x65rror\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.AppError\x12\x15\n\rdeleted_count\x18\x02 \x01(\x03\"\x8f\x01\n\x1bOnCloudLimitsUpdatedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12\x36\n\x06limits\x18\x02 \x01(\x0b\x32&.mattermost.pluginapi.v1.ProductLimits\"\x1e\n\x1cOnCloudLimitsUpdatedResponse\"\x94\x01\n\x1f\x43onfigurationWillBeSavedRequest\x12\x38\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\'.mattermost.pluginapi.v1.RequestContext\x12\x37\n\nnew_config\x18\x02 \x01(\x0b\x32#.mattermost.pluginapi.v1.ConfigJson\"\x92\x01\n ConfigurationWillBeSavedResponse\x12\x30\n\x05\x65rror\x18\x01 \x01(\x0b\x32!.mattermost.pluginapi.v1.AppError\x12<\n\x0fmodified_config\x18\x02 \x01(\x0b\x32#.mattermost.pluginapi.v1.ConfigJsonBXZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1b\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hooks_lifecycle_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['_ONINSTALLEVENT']._serialized_start=116
_globals['_ONINSTALLEVENT']._serialized_end=149
_globals['_FILESLIMITS']._serialized_start=151
_globals['_FILESLIMITS']._serialized_end=216
_globals['_MESSAGESLIMITS']._serialized_start=218
_globals['_MESSAGESLIMITS']._serialized_end=280
_globals['_TEAMSLIMITS']._serialized_start=282
_globals['_TEAMSLIMITS']._serialized_end=340
_globals['_PRODUCTLIMITS']._serialized_start=343
_globals['_PRODUCTLIMITS']._serialized_end=523
_globals['_CONFIGJSON']._serialized_start=525
_globals['_CONFIGJSON']._serialized_end=558
_globals['_IMPLEMENTEDREQUEST']._serialized_start=560
_globals['_IMPLEMENTEDREQUEST']._serialized_end=638
_globals['_IMPLEMENTEDRESPONSE']._serialized_start=640
_globals['_IMPLEMENTEDRESPONSE']._serialized_end=726
_globals['_ONACTIVATEREQUEST']._serialized_start=728
_globals['_ONACTIVATEREQUEST']._serialized_end=805
_globals['_ONACTIVATERESPONSE']._serialized_start=807
_globals['_ONACTIVATERESPONSE']._serialized_end=877
_globals['_ONDEACTIVATEREQUEST']._serialized_start=879
_globals['_ONDEACTIVATEREQUEST']._serialized_end=958
_globals['_ONDEACTIVATERESPONSE']._serialized_start=960
_globals['_ONDEACTIVATERESPONSE']._serialized_end=1032
_globals['_ONCONFIGURATIONCHANGEREQUEST']._serialized_start=1034
_globals['_ONCONFIGURATIONCHANGEREQUEST']._serialized_end=1122
_globals['_ONCONFIGURATIONCHANGERESPONSE']._serialized_start=1124
_globals['_ONCONFIGURATIONCHANGERESPONSE']._serialized_end=1205
_globals['_ONINSTALLREQUEST']._serialized_start=1208
_globals['_ONINSTALLREQUEST']._serialized_end=1404
_globals['_ONINSTALLRESPONSE']._serialized_start=1406
_globals['_ONINSTALLRESPONSE']._serialized_end=1475
_globals['_ONSENDDAILYTELEMETRYREQUEST']._serialized_start=1477
_globals['_ONSENDDAILYTELEMETRYREQUEST']._serialized_end=1564
_globals['_ONSENDDAILYTELEMETRYRESPONSE']._serialized_start=1566
_globals['_ONSENDDAILYTELEMETRYRESPONSE']._serialized_end=1596
_globals['_RUNDATARETENTIONREQUEST']._serialized_start=1598
_globals['_RUNDATARETENTIONREQUEST']._serialized_end=1719
_globals['_RUNDATARETENTIONRESPONSE']._serialized_start=1721
_globals['_RUNDATARETENTIONRESPONSE']._serialized_end=1820
_globals['_ONCLOUDLIMITSUPDATEDREQUEST']._serialized_start=1823
_globals['_ONCLOUDLIMITSUPDATEDREQUEST']._serialized_end=1966
_globals['_ONCLOUDLIMITSUPDATEDRESPONSE']._serialized_start=1968
_globals['_ONCLOUDLIMITSUPDATEDRESPONSE']._serialized_end=1998
_globals['_CONFIGURATIONWILLBESAVEDREQUEST']._serialized_start=2001
_globals['_CONFIGURATIONWILLBESAVEDREQUEST']._serialized_end=2149
_globals['_CONFIGURATIONWILLBESAVEDRESPONSE']._serialized_start=2152
_globals['_CONFIGURATIONWILLBESAVEDRESPONSE']._serialized_end=2298
# @@protoc_insertion_point(module_scope)