Coverage for mcpgateway / plugins / framework / external / grpc / proto / plugin_service_pb2.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-02-11 07:10 +0000

1# -*- coding: utf-8 -*- 

2# noqa: D100, D101, D102, D103, D104, D107, D400, D415 

3# ruff: noqa 

4# type: ignore 

5# pylint: skip-file 

6# Generated by protoc - do not edit 

7# -*- coding: utf-8 -*- 

8# Generated by the protocol buffer compiler. DO NOT EDIT! 

9# NO CHECKED-IN PROTOBUF GENCODE 

10# source: plugin_service.proto 

11# Protobuf Python Version: 6.31.1 

12"""Generated protocol buffer code.""" 

13# Third-Party 

14from google.protobuf import descriptor as _descriptor 

15from google.protobuf import descriptor_pool as _descriptor_pool 

16from google.protobuf import runtime_version as _runtime_version 

17from google.protobuf import symbol_database as _symbol_database 

18from google.protobuf.internal import builder as _builder 

19 

20_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 6, 31, 1, "", "plugin_service.proto") 

21# @@protoc_insertion_point(imports) 

22 

23_sym_db = _symbol_database.Default() 

24 

25 

26# Third-Party 

27 

28DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( 

29 b'\n\x14plugin_service.proto\x12\x12mcpgateway.plugins\x1a\x1cgoogle/protobuf/struct.proto"&\n\x16GetPluginConfigRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"Q\n\x17GetPluginConfigResponse\x12\r\n\x05\x66ound\x18\x01 \x01(\x08\x12\'\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct"\x19\n\x17GetPluginConfigsRequest"D\n\x18GetPluginConfigsResponse\x12(\n\x07\x63onfigs\x18\x01 \x03(\x0b\x32\x17.google.protobuf.Struct"\x99\x01\n\x11InvokeHookRequest\x12\x11\n\thook_type\x18\x01 \x01(\t\x12\x13\n\x0bplugin_name\x18\x02 \x01(\t\x12(\n\x07payload\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x07\x63ontext\x18\x04 \x01(\x0b\x32!.mcpgateway.plugins.PluginContext"\xf1\x01\n\x12InvokeHookResponse\x12\x13\n\x0bplugin_name\x18\x01 \x01(\t\x12\'\n\x06result\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x07\x63ontext\x18\x03 \x01(\x0b\x32!.mcpgateway.plugins.PluginContext\x12.\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1f.mcpgateway.plugins.PluginError\x12\x39\n\x0bresult_base\x18\x05 \x01(\x0b\x32$.mcpgateway.plugins.PluginResultBase"\xf1\x01\n\rGlobalContext\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x11\n\tserver_id\x18\x02 \x01(\t\x12\x11\n\ttenant_id\x18\x03 \x01(\t\x12\x15\n\x0buser_string\x18\x04 \x01(\tH\x00\x12.\n\x0buser_struct\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12&\n\x05state\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\x0c\n\nuser_value"\x9d\x01\n\rPluginContext\x12\x39\n\x0eglobal_context\x18\x01 \x01(\x0b\x32!.mcpgateway.plugins.GlobalContext\x12&\n\x05state\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct"\x9b\x01\n\x0fPluginViolation\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x13\n\x0bplugin_name\x18\x04 \x01(\t\x12(\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x16\n\x0emcp_error_code\x18\x06 \x01(\x05"\x92\x01\n\x10PluginResultBase\x12\x1b\n\x13\x63ontinue_processing\x18\x01 \x01(\x08\x12\x36\n\tviolation\x18\x02 \x01(\x0b\x32#.mcpgateway.plugins.PluginViolation\x12)\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct"\x83\x01\n\x0bPluginError\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x13\n\x0bplugin_name\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12(\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x16\n\x0emcp_error_code\x18\x05 \x01(\x05"%\n\x12HealthCheckRequest\x12\x0f\n\x07service\x18\x01 \x01(\t"\xad\x01\n\x13HealthCheckResponse\x12\x45\n\x06status\x18\x01 \x01(\x0e\x32\x35.mcpgateway.plugins.HealthCheckResponse.ServingStatus"O\n\rServingStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07SERVING\x10\x01\x12\x0f\n\x0bNOT_SERVING\x10\x02\x12\x13\n\x0fSERVICE_UNKNOWN\x10\x03\x32\xc7\x02\n\rPluginService\x12j\n\x0fGetPluginConfig\x12*.mcpgateway.plugins.GetPluginConfigRequest\x1a+.mcpgateway.plugins.GetPluginConfigResponse\x12m\n\x10GetPluginConfigs\x12+.mcpgateway.plugins.GetPluginConfigsRequest\x1a,.mcpgateway.plugins.GetPluginConfigsResponse\x12[\n\nInvokeHook\x12%.mcpgateway.plugins.InvokeHookRequest\x1a&.mcpgateway.plugins.InvokeHookResponse2b\n\x06Health\x12X\n\x05\x43heck\x12&.mcpgateway.plugins.HealthCheckRequest\x1a\'.mcpgateway.plugins.HealthCheckResponseb\x06proto3' 

30) 

31 

32_globals = globals() 

33_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) 

34_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "plugin_service_pb2", _globals) 

35if not _descriptor._USE_C_DESCRIPTORS: # pragma: no cover 

36 DESCRIPTOR._loaded_options = None 

37 _globals["_GETPLUGINCONFIGREQUEST"]._serialized_start = 74 

38 _globals["_GETPLUGINCONFIGREQUEST"]._serialized_end = 112 

39 _globals["_GETPLUGINCONFIGRESPONSE"]._serialized_start = 114 

40 _globals["_GETPLUGINCONFIGRESPONSE"]._serialized_end = 195 

41 _globals["_GETPLUGINCONFIGSREQUEST"]._serialized_start = 197 

42 _globals["_GETPLUGINCONFIGSREQUEST"]._serialized_end = 222 

43 _globals["_GETPLUGINCONFIGSRESPONSE"]._serialized_start = 224 

44 _globals["_GETPLUGINCONFIGSRESPONSE"]._serialized_end = 292 

45 _globals["_INVOKEHOOKREQUEST"]._serialized_start = 295 

46 _globals["_INVOKEHOOKREQUEST"]._serialized_end = 448 

47 _globals["_INVOKEHOOKRESPONSE"]._serialized_start = 451 

48 _globals["_INVOKEHOOKRESPONSE"]._serialized_end = 692 

49 _globals["_GLOBALCONTEXT"]._serialized_start = 695 

50 _globals["_GLOBALCONTEXT"]._serialized_end = 936 

51 _globals["_PLUGINCONTEXT"]._serialized_start = 939 

52 _globals["_PLUGINCONTEXT"]._serialized_end = 1096 

53 _globals["_PLUGINVIOLATION"]._serialized_start = 1099 

54 _globals["_PLUGINVIOLATION"]._serialized_end = 1254 

55 _globals["_PLUGINRESULTBASE"]._serialized_start = 1257 

56 _globals["_PLUGINRESULTBASE"]._serialized_end = 1403 

57 _globals["_PLUGINERROR"]._serialized_start = 1406 

58 _globals["_PLUGINERROR"]._serialized_end = 1537 

59 _globals["_HEALTHCHECKREQUEST"]._serialized_start = 1539 

60 _globals["_HEALTHCHECKREQUEST"]._serialized_end = 1576 

61 _globals["_HEALTHCHECKRESPONSE"]._serialized_start = 1579 

62 _globals["_HEALTHCHECKRESPONSE"]._serialized_end = 1752 

63 _globals["_HEALTHCHECKRESPONSE_SERVINGSTATUS"]._serialized_start = 1673 

64 _globals["_HEALTHCHECKRESPONSE_SERVINGSTATUS"]._serialized_end = 1752 

65 _globals["_PLUGINSERVICE"]._serialized_start = 1755 

66 _globals["_PLUGINSERVICE"]._serialized_end = 2082 

67 _globals["_HEALTH"]._serialized_start = 2084 

68 _globals["_HEALTH"]._serialized_end = 2182 

69# @@protoc_insertion_point(module_scope)