# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: privilege.proto
# Protobuf Python Version: 5.26.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 symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from . import object_identifier_pb2 as object__identifier__pb2
from . import account_pb2 as account__pb2
from . import metadata_entity_pb2 as metadata__entity__pb2
from . import table_common_pb2 as table__common__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fprivilege.proto\x12\x0f\x63z.proto.access\x1a\x17object_identifier.proto\x1a\raccount.proto\x1a\x15metadata_entity.proto\x1a\x12table_common.proto\"\\\n\x0b\x41\x63\x63\x65ssToken\x12\x13\n\x0b\x65xpire_time\x18\x01 \x01(\x03\x12\x0f\n\x07user_id\x18\x02 \x01(\x03\x12\'\n\raccess_policy\x18\n \x01(\x0b\x32\x10.cz.proto.Policy\"\xa2\x03\n\x0f\x43heckPrivileges\x12+\n\tprincipal\x18\x01 \x01(\x0b\x32\x18.cz.proto.UserIdentifier\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\x12\x39\n\x07\x63ontent\x18\x04 \x03(\x0b\x32(.cz.proto.access.CheckPrivileges.Content\x1a\x90\x02\n\x07\x43ontent\x12)\n\x04mode\x18\x01 \x01(\x0e\x32\x1b.cz.proto.access.EffectMode\x12+\n\x06\x61\x63tion\x18\x02 \x03(\x0e\x32\x1b.cz.proto.access.ActionType\x12\x19\n\x11with_grant_option\x18\x03 \x01(\x08\x12*\n\x06object\x18\x04 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12\x37\n\x0cgranted_type\x18\x05 \x01(\x0e\x32!.cz.proto.access.GrantedType.Type\x12-\n\x0fsub_object_type\x18\x06 \x01(\x0e\x32\x14.cz.proto.ObjectType\"X\n\x07Subject\x12.\n\nidentifier\x18\x01 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12\x11\n\x07user_id\x18\n \x01(\x03H\x00\x42\n\n\x08\x65xtended\"\xa5\x01\n\x0bGrantEntity\x12)\n\x07subject\x18\x01 \x01(\x0b\x32\x18.cz.proto.access.Subject\x12*\n\x04role\x18\n \x01(\x0b\x32\x1a.cz.proto.access.GrantRoleH\x00\x12\x34\n\tprivilege\x18\x0b \x01(\x0b\x32\x1f.cz.proto.access.GrantPrivilegeH\x00\x42\t\n\x07\x64\x65rived\"Z\n\tGrantRole\x12.\n\nidentifier\x18\x01 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12\x1d\n\x15\x61uthorization_time_ms\x18\x02 \x01(\x03\"D\n\x0eGrantPrivilege\x12\x32\n\x07\x63ontent\x18\x01 \x01(\x0b\x32!.cz.proto.access.PrivilegeContent\"\xa8\x01\n\x0cRevokeEntity\x12)\n\x07subject\x18\x01 \x01(\x0b\x32\x18.cz.proto.access.Subject\x12+\n\x04role\x18\n \x01(\x0b\x32\x1b.cz.proto.access.RevokeRoleH\x00\x12\x35\n\tprivilege\x18\x0b \x01(\x0b\x32 .cz.proto.access.RevokePrivilegeH\x00\x42\t\n\x07\x64\x65rived\"[\n\nRevokeRole\x12.\n\nidentifier\x18\x01 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12\x1d\n\x15\x61uthorization_time_ms\x18\x02 \x01(\x03\"E\n\x0fRevokePrivilege\x12\x32\n\x07\x63ontent\x18\x01 \x01(\x0b\x32!.cz.proto.access.PrivilegeContent\"\xee\x01\n\x10PrivilegeContent\x12+\n\x06\x61\x63tion\x18\x01 \x03(\x0e\x32\x1b.cz.proto.access.ActionType\x12*\n\x06object\x18\x02 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12\x37\n\x0cgranted_type\x18\x03 \x01(\x0e\x32!.cz.proto.access.GrantedType.Type\x12\x19\n\x11with_grant_option\x18\x05 \x01(\x08\x12-\n\x0fsub_object_type\x18\x06 \x01(\x0e\x32\x14.cz.proto.ObjectType\"d\n\x0bGrantedType\"U\n\x04Type\x12\r\n\tPRIVILEGE\x10\x00\x12\n\n\x06POLICY\x10\x01\x12\x08\n\x04ROLE\x10\x02\x12\x12\n\x0eOBJECT_CREATOR\x10\x03\x12\x14\n\x10OBJECT_HIERARCHY\x10\x04\"\x8e\x01\n\x0fPrivilegeAction\x12-\n\x06\x61\x63tion\x18\n \x01(\x0e\x32\x1b.cz.proto.access.ActionTypeH\x00\x12\x15\n\x0bpolicy_name\x18\x0b \x01(\tH\x00\x12*\n\x04role\x18\x0c \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifierH\x00\x42\t\n\x07\x64\x65rived\"(\n\x12PrivilegeCondition\x12\x12\n\nconditions\x18\x01 \x03(\t\"\xf0\x03\n\tPrivilege\x12\x37\n\x0cgranted_type\x18\x01 \x01(\x0e\x32!.cz.proto.access.GrantedType.Type\x12\x33\n\tprivilege\x18\x02 \x01(\x0b\x32 .cz.proto.access.PrivilegeAction\x12\x37\n\nconditions\x18\x03 \x01(\x0b\x32#.cz.proto.access.PrivilegeCondition\x12.\n\ngranted_on\x18\x04 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12+\n\x07grantee\x18\x05 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12+\n\x07grantor\x18\x06 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12\x14\n\x0cgrant_option\x18\x07 \x01(\x08\x12\x17\n\x0fgranted_time_ms\x18\x08 \x01(\x03\x12,\n\ntable_type\x18\t \x01(\x0e\x32\x13.cz.proto.TableTypeH\x00\x88\x01\x01\x12\x32\n\x0fsub_object_type\x18\n \x01(\x0e\x32\x14.cz.proto.ObjectTypeH\x01\x88\x01\x01\x42\r\n\x0b_table_typeB\x12\n\x10_sub_object_type\"?\n\rPrivilegeList\x12.\n\nprivileges\x18\x01 \x03(\x0b\x32\x1a.cz.proto.access.Privilege\"\xa2\x01\n\x08UserRole\x12&\n\x04user\x18\x01 \x01(\x0b\x32\x18.cz.proto.UserIdentifier\x12(\n\x04role\x18\x02 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12+\n\x07grantor\x18\x03 \x01(\x0b\x32\x1a.cz.proto.ObjectIdentifier\x12\x17\n\x0fgranted_time_ms\x18\x04 \x01(\x03\"=\n\x0cUserRoleList\x12-\n\nuser_roles\x18\x01 \x03(\x0b\x32\x19.cz.proto.access.UserRole\"&\n\x0e\x41\x63\x63\x65ssTypeList\x12\x14\n\x0c\x61\x63\x63\x65ss_types\x18\x01 \x03(\t*O\n\nSystemRole\x12\x0f\n\x0bSystemAdmin\x10\x00\x12\r\n\tUserAdmin\x10\x01\x12\x11\n\rSecurityAdmin\x10\x02\x12\x0e\n\nAuditAdmin\x10\x03*\xef\r\n\nActionType\x12\x0c\n\x08\x41T_KNOWN\x10\x00\x12\n\n\x06\x41T_ALL\x10\x01\x12\x11\n\rAT_CREATE_ALL\x10\x02\x12\x10\n\x0c\x41T_ALTER_ALL\x10\x03\x12\x11\n\rAT_UPDATE_ALL\x10\x04\x12\x11\n\rAT_SELECT_ALL\x10\x05\x12\x0f\n\x0b\x41T_DROP_ALL\x10\x06\x12\x0e\n\nAT_ALL_FIN\x10\x07\x12\x12\n\x0e\x41T_CREATE_ROLE\x10\x64\x12\x11\n\rAT_ALTER_ROLE\x10\x65\x12\x10\n\x0c\x41T_DROP_ROLE\x10\x66\x12\x17\n\x12\x41T_GRANT_PRIVILEGE\x10\xc8\x01\x12\x18\n\x13\x41T_REVOKE_PRIVILEGE\x10\xc9\x01\x12\x16\n\x11\x41T_SHOW_PRIVILEGE\x10\xca\x01\x12\x17\n\x12\x41T_CREATE_VCLUSTER\x10\x90\x03\x12\x16\n\x11\x41T_ALTER_VCLUSTER\x10\x91\x03\x12\x15\n\x10\x41T_DROP_VCLUSTER\x10\x92\x03\x12\x14\n\x0f\x41T_USE_VCLUSTER\x10\x96\x03\x12\x15\n\x10\x41T_CREATE_SCHEMA\x10\xf4\x03\x12\x14\n\x0f\x41T_ALTER_SCHEMA\x10\xf5\x03\x12\x13\n\x0e\x41T_DROP_SCHEMA\x10\xf6\x03\x12\x14\n\x0f\x41T_CREATE_TABLE\x10\xd8\x04\x12\x13\n\x0e\x41T_ALTER_TABLE\x10\xd9\x04\x12\x12\n\rAT_DROP_TABLE\x10\xda\x04\x12\x14\n\x0f\x41T_SELECT_TABLE\x10\xdf\x04\x12\x14\n\x0f\x41T_INSERT_TABLE\x10\xe0\x04\x12\x16\n\x11\x41T_TRUNCATE_TABLE\x10\xe2\x04\x12\x14\n\x0f\x41T_UPDATE_TABLE\x10\xe3\x04\x12\x14\n\x0f\x41T_DELETE_TABLE\x10\xe5\x04\x12\x13\n\x0e\x41T_CREATE_VIEW\x10\xbc\x05\x12\x11\n\x0c\x41T_DROP_VIEW\x10\xbd\x05\x12\x13\n\x0e\x41T_SELECT_VIEW\x10\xbf\x05\x12\x12\n\rAT_ALTER_VIEW\x10\xc0\x05\x12 \n\x1b\x41T_CREATE_MATERIALIZED_VIEW\x10\xa0\x06\x12\x1e\n\x19\x41T_DROP_MATERIALIZED_VIEW\x10\xa1\x06\x12 \n\x1b\x41T_SELECT_MATERIALIZED_VIEW\x10\xa2\x06\x12\x1f\n\x1a\x41T_ALTER_MATERIALIZED_VIEW\x10\xa4\x06\x12\x17\n\x12\x41T_CREATE_FUNCTION\x10\x84\x07\x12\x15\n\x10\x41T_DROP_FUNCTION\x10\x85\x07\x12\x14\n\x0f\x41T_USE_FUNCTION\x10\x86\x07\x12\x16\n\x11\x41T_ALTER_FUNCTION\x10\x87\x07\x12\x17\n\x12\x41T_CREATE_DATALAKE\x10\xe8\x07\x12\x16\n\x11\x41T_ALTER_DATALAKE\x10\xe9\x07\x12\x15\n\x10\x41T_DROP_DATALAKE\x10\xea\x07\x12\x1c\n\x17\x41T_CREATE_SCHEDULE_TASK\x10\xcc\x08\x12\x1b\n\x16\x41T_ALTER_SCHEDULE_TASK\x10\xcd\x08\x12\x1a\n\x15\x41T_DROP_SCHEDULE_TASK\x10\xce\x08\x12\x1b\n\x16\x41T_CLONE_SCHEDULE_TASK\x10\xcf\x08\x12\x13\n\x0e\x41T_CREATE_USER\x10\xb0\t\x12\x11\n\x0c\x41T_DROP_USER\x10\xb1\t\x12\x12\n\rAT_ALTER_USER\x10\xb2\t\x12\x16\n\x11\x41T_READ_AUDIT_LOG\x10\x94\n\x12\x1a\n\x15\x41T_DOWNLOAD_AUDIT_LOG\x10\x95\n\x12\x16\n\x11\x41T_COPY_AUDIT_LOG\x10\x96\n\x12\x11\n\x0c\x41T_ALTER_JOB\x10\xf8\n\x12\x15\n\x10\x41T_TERMINATE_JOB\x10\xf9\n\x12\x15\n\x10\x41T_READ_METADATA\x10\xdc\x0b\x12\x14\n\x0f\x41T_CREATE_SHARE\x10\xc0\x0c\x12\x13\n\x0e\x41T_ALTER_SHARE\x10\xc1\x0c\x12\x12\n\rAT_DROP_SHARE\x10\xc2\x0c\x12\x19\n\x14\x41T_CREATE_CONNECTION\x10\xa4\r\x12\x18\n\x13\x41T_ALTER_CONNECTION\x10\xa5\r\x12\x17\n\x12\x41T_DROP_CONNECTION\x10\xa6\r\x12\x17\n\x12\x41T_CREATE_LOCATION\x10\x88\x0e\x12\x16\n\x11\x41T_ALTER_LOCATION\x10\x89\x0e\x12\x15\n\x10\x41T_DROP_LOCATION\x10\x8a\x0e\x12\x14\n\x0f\x41T_USE_LOCATION\x10\x8e\x0e\x12\x18\n\x13\x41T_CREATE_WORKSPACE\x10\xec\x0e\x12\x17\n\x12\x41T_ALTER_WORKSPACE\x10\xed\x0e\x12\x16\n\x11\x41T_DROP_WORKSPACE\x10\xee\x0e\x12\x1b\n\x16\x41T_CREATE_TABLE_STREAM\x10\xd0\x0f\x12\x19\n\x14\x41T_DROP_TABLE_STREAM\x10\xd1\x0f\x12\x1b\n\x16\x41T_SELECT_TABLE_STREAM\x10\xd3\x0f\x12\x1a\n\x15\x41T_ALTER_TABLE_STREAM\x10\xd4\x0f\x12\x14\n\x0f\x41T_CREATE_INDEX\x10\xb4\x10\x12\x12\n\rAT_DROP_INDEX\x10\xb5\x10*!\n\nEffectType\x12\t\n\x05\x41LLOW\x10\x00\x12\x08\n\x04\x44\x45NY\x10\x01*3\n\nEffectMode\x12\x11\n\rDENY_OVERRIDE\x10\x00\x12\x12\n\x0e\x41LLOW_OVERRIDE\x10\x01\x42\x02P\x01\x62\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'privilege_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  _globals['DESCRIPTOR']._loaded_options = None
  _globals['DESCRIPTOR']._serialized_options = b'P\001'
  _globals['_SYSTEMROLE']._serialized_start=2751
  _globals['_SYSTEMROLE']._serialized_end=2830
  _globals['_ACTIONTYPE']._serialized_start=2833
  _globals['_ACTIONTYPE']._serialized_end=4608
  _globals['_EFFECTTYPE']._serialized_start=4610
  _globals['_EFFECTTYPE']._serialized_end=4643
  _globals['_EFFECTMODE']._serialized_start=4645
  _globals['_EFFECTMODE']._serialized_end=4696
  _globals['_ACCESSTOKEN']._serialized_start=119
  _globals['_ACCESSTOKEN']._serialized_end=211
  _globals['_CHECKPRIVILEGES']._serialized_start=214
  _globals['_CHECKPRIVILEGES']._serialized_end=632
  _globals['_CHECKPRIVILEGES_CONTENT']._serialized_start=360
  _globals['_CHECKPRIVILEGES_CONTENT']._serialized_end=632
  _globals['_SUBJECT']._serialized_start=634
  _globals['_SUBJECT']._serialized_end=722
  _globals['_GRANTENTITY']._serialized_start=725
  _globals['_GRANTENTITY']._serialized_end=890
  _globals['_GRANTROLE']._serialized_start=892
  _globals['_GRANTROLE']._serialized_end=982
  _globals['_GRANTPRIVILEGE']._serialized_start=984
  _globals['_GRANTPRIVILEGE']._serialized_end=1052
  _globals['_REVOKEENTITY']._serialized_start=1055
  _globals['_REVOKEENTITY']._serialized_end=1223
  _globals['_REVOKEROLE']._serialized_start=1225
  _globals['_REVOKEROLE']._serialized_end=1316
  _globals['_REVOKEPRIVILEGE']._serialized_start=1318
  _globals['_REVOKEPRIVILEGE']._serialized_end=1387
  _globals['_PRIVILEGECONTENT']._serialized_start=1390
  _globals['_PRIVILEGECONTENT']._serialized_end=1628
  _globals['_GRANTEDTYPE']._serialized_start=1630
  _globals['_GRANTEDTYPE']._serialized_end=1730
  _globals['_GRANTEDTYPE_TYPE']._serialized_start=1645
  _globals['_GRANTEDTYPE_TYPE']._serialized_end=1730
  _globals['_PRIVILEGEACTION']._serialized_start=1733
  _globals['_PRIVILEGEACTION']._serialized_end=1875
  _globals['_PRIVILEGECONDITION']._serialized_start=1877
  _globals['_PRIVILEGECONDITION']._serialized_end=1917
  _globals['_PRIVILEGE']._serialized_start=1920
  _globals['_PRIVILEGE']._serialized_end=2416
  _globals['_PRIVILEGELIST']._serialized_start=2418
  _globals['_PRIVILEGELIST']._serialized_end=2481
  _globals['_USERROLE']._serialized_start=2484
  _globals['_USERROLE']._serialized_end=2646
  _globals['_USERROLELIST']._serialized_start=2648
  _globals['_USERROLELIST']._serialized_end=2709
  _globals['_ACCESSTYPELIST']._serialized_start=2711
  _globals['_ACCESSTYPELIST']._serialized_end=2749
# @@protoc_insertion_point(module_scope)
