# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: chatto/admin/v1/roles.proto
# Protobuf Python Version: 7.34.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,
    7,
    34,
    1,
    '',
    'chatto/admin/v1/roles.proto'
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
from chatto.api.v1 import roles_pb2 as chatto_dot_api_dot_v1_dot_roles__pb2
from chatto.api.v1 import users_pb2 as chatto_dot_api_dot_v1_dot_users__pb2


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')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.admin.v1.roles_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_GETROLEREQUEST'].fields_by_name['name']._loaded_options = None
  _globals['_GETROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_CREATEROLEREQUEST'].fields_by_name['name']._loaded_options = None
  _globals['_CREATEROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_CREATEROLEREQUEST'].fields_by_name['display_name']._loaded_options = None
  _globals['_CREATEROLEREQUEST'].fields_by_name['display_name']._serialized_options = b'\272H\004r\002\030P'
  _globals['_CREATEROLEREQUEST'].fields_by_name['description']._loaded_options = None
  _globals['_CREATEROLEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
  _globals['_UPDATEROLEREQUEST'].fields_by_name['name']._loaded_options = None
  _globals['_UPDATEROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_UPDATEROLEREQUEST'].fields_by_name['display_name']._loaded_options = None
  _globals['_UPDATEROLEREQUEST'].fields_by_name['display_name']._serialized_options = b'\272H\004r\002\030P'
  _globals['_UPDATEROLEREQUEST'].fields_by_name['description']._loaded_options = None
  _globals['_UPDATEROLEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
  _globals['_DELETEROLEREQUEST'].fields_by_name['name']._loaded_options = None
  _globals['_DELETEROLEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_REORDERROLESREQUEST'].fields_by_name['role_names']._loaded_options = None
  _globals['_REORDERROLESREQUEST'].fields_by_name['role_names']._serialized_options = b'\272H\014\222\001\t\020\350\007\"\004r\002\020\001'
  _globals['_ADMINROLE']._serialized_start=131
  _globals['_ADMINROLE']._serialized_end=226
  _globals['_LISTROLESREQUEST']._serialized_start=228
  _globals['_LISTROLESREQUEST']._serialized_end=246
  _globals['_LISTROLESRESPONSE']._serialized_start=249
  _globals['_LISTROLESRESPONSE']._serialized_end=377
  _globals['_GETROLEREQUEST']._serialized_start=379
  _globals['_GETROLEREQUEST']._serialized_end=418
  _globals['_GETROLERESPONSE']._serialized_start=421
  _globals['_GETROLERESPONSE']._serialized_end=582
  _globals['_CREATEROLEREQUEST']._serialized_start=584
  _globals['_CREATEROLEREQUEST']._serialized_end=706
  _globals['_CREATEROLERESPONSE']._serialized_start=708
  _globals['_CREATEROLERESPONSE']._serialized_end=770
  _globals['_UPDATEROLEREQUEST']._serialized_start=773
  _globals['_UPDATEROLEREQUEST']._serialized_end=956
  _globals['_UPDATEROLERESPONSE']._serialized_start=958
  _globals['_UPDATEROLERESPONSE']._serialized_end=1020
  _globals['_DELETEROLEREQUEST']._serialized_start=1022
  _globals['_DELETEROLEREQUEST']._serialized_end=1064
  _globals['_DELETEROLERESPONSE']._serialized_start=1066
  _globals['_DELETEROLERESPONSE']._serialized_end=1103
  _globals['_REORDERROLESREQUEST']._serialized_start=1105
  _globals['_REORDERROLESREQUEST']._serialized_end=1163
  _globals['_REORDERROLESRESPONSE']._serialized_start=1165
  _globals['_REORDERROLESRESPONSE']._serialized_end=1230
  _globals['_ADMINROLESERVICE']._serialized_start=1233
  _globals['_ADMINROLESERVICE']._serialized_end=1767
# @@protoc_insertion_point(module_scope)
