# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: cs3/permissions/v1beta1/permissions_api.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from cs3.permissions.v1beta1 import resources_pb2 as cs3_dot_permissions_dot_v1beta1_dot_resources__pb2
from cs3.rpc.v1beta1 import status_pb2 as cs3_dot_rpc_dot_v1beta1_dot_status__pb2
from cs3.storage.provider.v1beta1 import resources_pb2 as cs3_dot_storage_dot_provider_dot_v1beta1_dot_resources__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-cs3/permissions/v1beta1/permissions_api.proto\x12\x17\x63s3.permissions.v1beta1\x1a\'cs3/permissions/v1beta1/resources.proto\x1a\x1c\x63s3/rpc/v1beta1/status.proto\x1a,cs3/storage/provider/v1beta1/resources.proto\"\xa2\x01\n\x16\x43heckPermissionRequest\x12\x12\n\npermission\x18\x01 \x01(\t\x12>\n\x0bsubject_ref\x18\x02 \x01(\x0b\x32).cs3.permissions.v1beta1.SubjectReference\x12\x34\n\x03ref\x18\x03 \x01(\x0b\x32\'.cs3.storage.provider.v1beta1.Reference\"B\n\x17\x43heckPermissionResponse\x12\'\n\x06status\x18\x01 \x01(\x0b\x32\x17.cs3.rpc.v1beta1.Status2\x86\x01\n\x0ePermissionsAPI\x12t\n\x0f\x43heckPermission\x12/.cs3.permissions.v1beta1.CheckPermissionRequest\x1a\x30.cs3.permissions.v1beta1.CheckPermissionResponseB\x82\x01\n\x1b\x63om.cs3.permissions.v1beta1B\x13PermissionsApiProtoP\x01Z\x12permissionsv1beta1\xa2\x02\x03\x43PX\xaa\x02\x17\x43s3.Permissions.V1Beta1\xca\x02\x17\x43s3\\Permissions\\V1Beta1b\x06proto3')



_CHECKPERMISSIONREQUEST = DESCRIPTOR.message_types_by_name['CheckPermissionRequest']
_CHECKPERMISSIONRESPONSE = DESCRIPTOR.message_types_by_name['CheckPermissionResponse']
CheckPermissionRequest = _reflection.GeneratedProtocolMessageType('CheckPermissionRequest', (_message.Message,), {
  'DESCRIPTOR' : _CHECKPERMISSIONREQUEST,
  '__module__' : 'cs3.permissions.v1beta1.permissions_api_pb2'
  # @@protoc_insertion_point(class_scope:cs3.permissions.v1beta1.CheckPermissionRequest)
  })
_sym_db.RegisterMessage(CheckPermissionRequest)

CheckPermissionResponse = _reflection.GeneratedProtocolMessageType('CheckPermissionResponse', (_message.Message,), {
  'DESCRIPTOR' : _CHECKPERMISSIONRESPONSE,
  '__module__' : 'cs3.permissions.v1beta1.permissions_api_pb2'
  # @@protoc_insertion_point(class_scope:cs3.permissions.v1beta1.CheckPermissionResponse)
  })
_sym_db.RegisterMessage(CheckPermissionResponse)

_PERMISSIONSAPI = DESCRIPTOR.services_by_name['PermissionsAPI']
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n\033com.cs3.permissions.v1beta1B\023PermissionsApiProtoP\001Z\022permissionsv1beta1\242\002\003CPX\252\002\027Cs3.Permissions.V1Beta1\312\002\027Cs3\\Permissions\\V1Beta1'
  _CHECKPERMISSIONREQUEST._serialized_start=192
  _CHECKPERMISSIONREQUEST._serialized_end=354
  _CHECKPERMISSIONRESPONSE._serialized_start=356
  _CHECKPERMISSIONRESPONSE._serialized_end=422
  _PERMISSIONSAPI._serialized_start=425
  _PERMISSIONSAPI._serialized_end=559
# @@protoc_insertion_point(module_scope)
