roles_pb2.py 7.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: chatto/admin/v1/roles.proto
  5. # Protobuf Python Version: 7.34.1
  6. """Generated protocol buffer code."""
  7. from google.protobuf import descriptor as _descriptor
  8. from google.protobuf import descriptor_pool as _descriptor_pool
  9. from google.protobuf import runtime_version as _runtime_version
  10. from google.protobuf import symbol_database as _symbol_database
  11. from google.protobuf.internal import builder as _builder
  12. _runtime_version.ValidateProtobufRuntimeVersion(
  13. _runtime_version.Domain.PUBLIC,
  14. 7,
  15. 34,
  16. 1,
  17. '',
  18. 'chatto/admin/v1/roles.proto'
  19. )
  20. # @@protoc_insertion_point(imports)
  21. _sym_db = _symbol_database.Default()
  22. from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
  23. from chatto.api.v1 import roles_pb2 as chatto_dot_api_dot_v1_dot_roles__pb2
  24. from chatto.api.v1 import users_pb2 as chatto_dot_api_dot_v1_dot_users__pb2
  25. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63hatto/admin/v1/roles.proto\x12\x0f\x63hatto.admin.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x19\x63hatto/api/v1/roles.proto\x1a\x19\x63hatto/api/v1/users.proto\"_\n\tAdminRole\x12!\n\x04role\x18\x01 \x01(\x0b\x32\x13.chatto.api.v1.Role\x12\x13\n\x0bpermissions\x18\x02 \x03(\t\x12\x1a\n\x12permission_denials\x18\x03 \x03(\t\"\x12\n\x10ListRolesRequest\"\x80\x01\n\x11ListRolesResponse\x12)\n\x05roles\x18\x01 \x03(\x0b\x32\x1a.chatto.admin.v1.AdminRole\x12\x1f\n\x17viewer_can_manage_roles\x18\x02 \x01(\x08\x12\x1f\n\x17viewer_can_assign_roles\x18\x03 \x01(\x08\"\'\n\x0eGetRoleRequest\x12\x15\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"\xa1\x01\n\x0fGetRoleResponse\x12(\n\x04role\x18\x01 \x01(\x0b\x32\x1a.chatto.admin.v1.AdminRole\x12\"\n\x05users\x18\x02 \x03(\x0b\x32\x13.chatto.api.v1.User\x12\x1f\n\x17viewer_can_manage_roles\x18\x03 \x01(\x08\x12\x1f\n\x17viewer_can_assign_roles\x18\x04 \x01(\x08\"z\n\x11\x43reateRoleRequest\x12\x15\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x1d\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x18P\x12\x1d\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\xf4\x03\x12\x10\n\x08pingable\x18\x04 \x01(\x08\">\n\x12\x43reateRoleResponse\x12(\n\x04role\x18\x01 \x01(\x0b\x32\x1a.chatto.admin.v1.AdminRole\"\xb7\x01\n\x11UpdateRoleRequest\x12\x15\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\"\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x18PH\x00\x88\x01\x01\x12\"\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\xf4\x03H\x01\x88\x01\x01\x12\x15\n\x08pingable\x18\x04 \x01(\x08H\x02\x88\x01\x01\x42\x0f\n\r_display_nameB\x0e\n\x0c_descriptionB\x0b\n\t_pingable\">\n\x12UpdateRoleResponse\x12(\n\x04role\x18\x01 \x01(\x0b\x32\x1a.chatto.admin.v1.AdminRole\"*\n\x11\x44\x65leteRoleRequest\x12\x15\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"%\n\x12\x44\x65leteRoleResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x08\":\n\x13ReorderRolesRequest\x12#\n\nrole_names\x18\x01 \x03(\tB\x0f\xbaH\x0c\x92\x01\t\x10\xe8\x07\"\x04r\x02\x10\x01\"A\n\x14ReorderRolesResponse\x12)\n\x05roles\x18\x01 \x03(\x0b\x32\x1a.chatto.admin.v1.AdminRole2\x96\x04\n\x10\x41\x64minRoleService\x12R\n\tListRoles\x12!.chatto.admin.v1.ListRolesRequest\x1a\".chatto.admin.v1.ListRolesResponse\x12L\n\x07GetRole\x12\x1f.chatto.admin.v1.GetRoleRequest\x1a .chatto.admin.v1.GetRoleResponse\x12U\n\nCreateRole\x12\".chatto.admin.v1.CreateRoleRequest\x1a#.chatto.admin.v1.CreateRoleResponse\x12U\n\nUpdateRole\x12\".chatto.admin.v1.UpdateRoleRequest\x1a#.chatto.admin.v1.UpdateRoleResponse\x12U\n\nDeleteRole\x12\".chatto.admin.v1.DeleteRoleRequest\x1a#.chatto.admin.v1.DeleteRoleResponse\x12[\n\x0cReorderRoles\x12$.chatto.admin.v1.ReorderRolesRequest\x1a%.chatto.admin.v1.ReorderRolesResponseb\x06proto3')
  26. _globals = globals()
  27. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  28. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.admin.v1.roles_pb2', _globals)
  29. if not _descriptor._USE_C_DESCRIPTORS:
  30. DESCRIPTOR._loaded_options = None
  31. _globals['_GETROLEREQUEST'].fields_by_name['name']._loaded_options = None
  32. _globals['_GETROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  33. _globals['_CREATEROLEREQUEST'].fields_by_name['name']._loaded_options = None
  34. _globals['_CREATEROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  35. _globals['_CREATEROLEREQUEST'].fields_by_name['display_name']._loaded_options = None
  36. _globals['_CREATEROLEREQUEST'].fields_by_name['display_name']._serialized_options = b'\272H\004r\002\030P'
  37. _globals['_CREATEROLEREQUEST'].fields_by_name['description']._loaded_options = None
  38. _globals['_CREATEROLEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
  39. _globals['_UPDATEROLEREQUEST'].fields_by_name['name']._loaded_options = None
  40. _globals['_UPDATEROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  41. _globals['_UPDATEROLEREQUEST'].fields_by_name['display_name']._loaded_options = None
  42. _globals['_UPDATEROLEREQUEST'].fields_by_name['display_name']._serialized_options = b'\272H\004r\002\030P'
  43. _globals['_UPDATEROLEREQUEST'].fields_by_name['description']._loaded_options = None
  44. _globals['_UPDATEROLEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
  45. _globals['_DELETEROLEREQUEST'].fields_by_name['name']._loaded_options = None
  46. _globals['_DELETEROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  47. _globals['_REORDERROLESREQUEST'].fields_by_name['role_names']._loaded_options = None
  48. _globals['_REORDERROLESREQUEST'].fields_by_name['role_names']._serialized_options = b'\272H\014\222\001\t\020\350\007\"\004r\002\020\001'
  49. _globals['_ADMINROLE']._serialized_start=131
  50. _globals['_ADMINROLE']._serialized_end=226
  51. _globals['_LISTROLESREQUEST']._serialized_start=228
  52. _globals['_LISTROLESREQUEST']._serialized_end=246
  53. _globals['_LISTROLESRESPONSE']._serialized_start=249
  54. _globals['_LISTROLESRESPONSE']._serialized_end=377
  55. _globals['_GETROLEREQUEST']._serialized_start=379
  56. _globals['_GETROLEREQUEST']._serialized_end=418
  57. _globals['_GETROLERESPONSE']._serialized_start=421
  58. _globals['_GETROLERESPONSE']._serialized_end=582
  59. _globals['_CREATEROLEREQUEST']._serialized_start=584
  60. _globals['_CREATEROLEREQUEST']._serialized_end=706
  61. _globals['_CREATEROLERESPONSE']._serialized_start=708
  62. _globals['_CREATEROLERESPONSE']._serialized_end=770
  63. _globals['_UPDATEROLEREQUEST']._serialized_start=773
  64. _globals['_UPDATEROLEREQUEST']._serialized_end=956
  65. _globals['_UPDATEROLERESPONSE']._serialized_start=958
  66. _globals['_UPDATEROLERESPONSE']._serialized_end=1020
  67. _globals['_DELETEROLEREQUEST']._serialized_start=1022
  68. _globals['_DELETEROLEREQUEST']._serialized_end=1064
  69. _globals['_DELETEROLERESPONSE']._serialized_start=1066
  70. _globals['_DELETEROLERESPONSE']._serialized_end=1103
  71. _globals['_REORDERROLESREQUEST']._serialized_start=1105
  72. _globals['_REORDERROLESREQUEST']._serialized_end=1163
  73. _globals['_REORDERROLESRESPONSE']._serialized_start=1165
  74. _globals['_REORDERROLESRESPONSE']._serialized_end=1230
  75. _globals['_ADMINROLESERVICE']._serialized_start=1233
  76. _globals['_ADMINROLESERVICE']._serialized_end=1767
  77. # @@protoc_insertion_point(module_scope)