roles_pb2.py 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: chatto/api/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/api/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. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63hatto/api/v1/roles.proto\x12\rchatto.api.v1\x1a\x1b\x62uf/validate/validate.proto\"v\n\x04Role\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x11\n\tis_system\x18\x04 \x01(\x08\x12\x10\n\x08position\x18\x05 \x01(\x05\x12\x10\n\x08pingable\x18\x06 \x01(\x08\"\x12\n\x10ListRolesRequest\"7\n\x11ListRolesResponse\x12\"\n\x05roles\x18\x01 \x03(\x0b\x32\x13.chatto.api.v1.Role\"\'\n\x0eGetRoleRequest\x12\x15\n\x04name\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"4\n\x0fGetRoleResponse\x12!\n\x04role\x18\x01 \x01(\x0b\x32\x13.chatto.api.v1.Role\"7\n\x14\x42\x61tchGetRolesRequest\x12\x1f\n\x05names\x18\x01 \x03(\tB\x10\xbaH\r\x92\x01\n\x08\x01\x10\x64\"\x04r\x02\x10\x01\";\n\x15\x42\x61tchGetRolesResponse\x12\"\n\x05roles\x18\x01 \x03(\x0b\x32\x13.chatto.api.v1.Role2\x83\x02\n\x0bRoleService\x12N\n\tListRoles\x12\x1f.chatto.api.v1.ListRolesRequest\x1a .chatto.api.v1.ListRolesResponse\x12H\n\x07GetRole\x12\x1d.chatto.api.v1.GetRoleRequest\x1a\x1e.chatto.api.v1.GetRoleResponse\x12Z\n\rBatchGetRoles\x12#.chatto.api.v1.BatchGetRolesRequest\x1a$.chatto.api.v1.BatchGetRolesResponseb\x06proto3')
  24. _globals = globals()
  25. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  26. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.roles_pb2', _globals)
  27. if not _descriptor._USE_C_DESCRIPTORS:
  28. DESCRIPTOR._loaded_options = None
  29. _globals['_GETROLEREQUEST'].fields_by_name['name']._loaded_options = None
  30. _globals['_GETROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  31. _globals['_BATCHGETROLESREQUEST'].fields_by_name['names']._loaded_options = None
  32. _globals['_BATCHGETROLESREQUEST'].fields_by_name['names']._serialized_options = b'\272H\r\222\001\n\010\001\020d\"\004r\002\020\001'
  33. _globals['_ROLE']._serialized_start=73
  34. _globals['_ROLE']._serialized_end=191
  35. _globals['_LISTROLESREQUEST']._serialized_start=193
  36. _globals['_LISTROLESREQUEST']._serialized_end=211
  37. _globals['_LISTROLESRESPONSE']._serialized_start=213
  38. _globals['_LISTROLESRESPONSE']._serialized_end=268
  39. _globals['_GETROLEREQUEST']._serialized_start=270
  40. _globals['_GETROLEREQUEST']._serialized_end=309
  41. _globals['_GETROLERESPONSE']._serialized_start=311
  42. _globals['_GETROLERESPONSE']._serialized_end=363
  43. _globals['_BATCHGETROLESREQUEST']._serialized_start=365
  44. _globals['_BATCHGETROLESREQUEST']._serialized_end=420
  45. _globals['_BATCHGETROLESRESPONSE']._serialized_start=422
  46. _globals['_BATCHGETROLESRESPONSE']._serialized_end=481
  47. _globals['_ROLESERVICE']._serialized_start=484
  48. _globals['_ROLESERVICE']._serialized_end=743
  49. # @@protoc_insertion_point(module_scope)