// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runtime/v1/resource_access.proto

package runtimev1

import (
	v1 "github.com/pingcap-inc/nexuscrm-contract/wire-go/gen/common/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type ResourceAccessOperation int32

const (
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_UNSPECIFIED           ResourceAccessOperation = 0
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_LIST_GRANTS           ResourceAccessOperation = 2
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_GET_GRANT             ResourceAccessOperation = 3
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_CREATE_GRANT          ResourceAccessOperation = 4
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_ENSURE_GRANT          ResourceAccessOperation = 5
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_REPLACE_GRANTS        ResourceAccessOperation = 6
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_UPDATE_GRANT          ResourceAccessOperation = 7
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_DELETE_GRANT          ResourceAccessOperation = 8
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_DELETE_PRINCIPAL_TYPE ResourceAccessOperation = 9
	ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_TRANSFER_OWNERSHIP    ResourceAccessOperation = 10
)

// Enum value maps for ResourceAccessOperation.
var (
	ResourceAccessOperation_name = map[int32]string{
		0:  "RESOURCE_ACCESS_OPERATION_UNSPECIFIED",
		2:  "RESOURCE_ACCESS_OPERATION_LIST_GRANTS",
		3:  "RESOURCE_ACCESS_OPERATION_GET_GRANT",
		4:  "RESOURCE_ACCESS_OPERATION_CREATE_GRANT",
		5:  "RESOURCE_ACCESS_OPERATION_ENSURE_GRANT",
		6:  "RESOURCE_ACCESS_OPERATION_REPLACE_GRANTS",
		7:  "RESOURCE_ACCESS_OPERATION_UPDATE_GRANT",
		8:  "RESOURCE_ACCESS_OPERATION_DELETE_GRANT",
		9:  "RESOURCE_ACCESS_OPERATION_DELETE_PRINCIPAL_TYPE",
		10: "RESOURCE_ACCESS_OPERATION_TRANSFER_OWNERSHIP",
	}
	ResourceAccessOperation_value = map[string]int32{
		"RESOURCE_ACCESS_OPERATION_UNSPECIFIED":           0,
		"RESOURCE_ACCESS_OPERATION_LIST_GRANTS":           2,
		"RESOURCE_ACCESS_OPERATION_GET_GRANT":             3,
		"RESOURCE_ACCESS_OPERATION_CREATE_GRANT":          4,
		"RESOURCE_ACCESS_OPERATION_ENSURE_GRANT":          5,
		"RESOURCE_ACCESS_OPERATION_REPLACE_GRANTS":        6,
		"RESOURCE_ACCESS_OPERATION_UPDATE_GRANT":          7,
		"RESOURCE_ACCESS_OPERATION_DELETE_GRANT":          8,
		"RESOURCE_ACCESS_OPERATION_DELETE_PRINCIPAL_TYPE": 9,
		"RESOURCE_ACCESS_OPERATION_TRANSFER_OWNERSHIP":    10,
	}
)

func (x ResourceAccessOperation) Enum() *ResourceAccessOperation {
	p := new(ResourceAccessOperation)
	*p = x
	return p
}

func (x ResourceAccessOperation) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ResourceAccessOperation) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_resource_access_proto_enumTypes[0].Descriptor()
}

func (ResourceAccessOperation) Type() protoreflect.EnumType {
	return &file_runtime_v1_resource_access_proto_enumTypes[0]
}

func (x ResourceAccessOperation) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ResourceAccessOperation.Descriptor instead.
func (ResourceAccessOperation) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_resource_access_proto_rawDescGZIP(), []int{0}
}

type ResourceAccessGrantInput struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	PrincipalId   string                 `protobuf:"bytes,1,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"`
	PrincipalType string                 `protobuf:"bytes,2,opt,name=principal_type,json=principalType,proto3" json:"principal_type,omitempty"`
	AccessLevel   string                 `protobuf:"bytes,3,opt,name=access_level,json=accessLevel,proto3" json:"access_level,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ResourceAccessGrantInput) Reset() {
	*x = ResourceAccessGrantInput{}
	mi := &file_runtime_v1_resource_access_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ResourceAccessGrantInput) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ResourceAccessGrantInput) ProtoMessage() {}

func (x *ResourceAccessGrantInput) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_resource_access_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ResourceAccessGrantInput.ProtoReflect.Descriptor instead.
func (*ResourceAccessGrantInput) Descriptor() ([]byte, []int) {
	return file_runtime_v1_resource_access_proto_rawDescGZIP(), []int{0}
}

func (x *ResourceAccessGrantInput) GetPrincipalId() string {
	if x != nil {
		return x.PrincipalId
	}
	return ""
}

func (x *ResourceAccessGrantInput) GetPrincipalType() string {
	if x != nil {
		return x.PrincipalType
	}
	return ""
}

func (x *ResourceAccessGrantInput) GetAccessLevel() string {
	if x != nil {
		return x.AccessLevel
	}
	return ""
}

type ResourceAccessGrant struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ResourceType  string                 `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	ResourceId    string                 `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	PrincipalId   string                 `protobuf:"bytes,4,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"`
	PrincipalType string                 `protobuf:"bytes,5,opt,name=principal_type,json=principalType,proto3" json:"principal_type,omitempty"`
	AccessLevel   string                 `protobuf:"bytes,6,opt,name=access_level,json=accessLevel,proto3" json:"access_level,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ResourceAccessGrant) Reset() {
	*x = ResourceAccessGrant{}
	mi := &file_runtime_v1_resource_access_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ResourceAccessGrant) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ResourceAccessGrant) ProtoMessage() {}

func (x *ResourceAccessGrant) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_resource_access_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ResourceAccessGrant.ProtoReflect.Descriptor instead.
func (*ResourceAccessGrant) Descriptor() ([]byte, []int) {
	return file_runtime_v1_resource_access_proto_rawDescGZIP(), []int{1}
}

func (x *ResourceAccessGrant) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *ResourceAccessGrant) GetResourceType() string {
	if x != nil {
		return x.ResourceType
	}
	return ""
}

func (x *ResourceAccessGrant) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

func (x *ResourceAccessGrant) GetPrincipalId() string {
	if x != nil {
		return x.PrincipalId
	}
	return ""
}

func (x *ResourceAccessGrant) GetPrincipalType() string {
	if x != nil {
		return x.PrincipalType
	}
	return ""
}

func (x *ResourceAccessGrant) GetAccessLevel() string {
	if x != nil {
		return x.AccessLevel
	}
	return ""
}

type AccessResourceRequest struct {
	state              protoimpl.MessageState      `protogen:"open.v1"`
	Operation          ResourceAccessOperation     `protobuf:"varint,1,opt,name=operation,proto3,enum=nexuscrm.runtime.v1.ResourceAccessOperation" json:"operation,omitempty"`
	ResourceType       string                      `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	ResourceId         string                      `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	GrantId            string                      `protobuf:"bytes,4,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"`
	Grant              *ResourceAccessGrantInput   `protobuf:"bytes,5,opt,name=grant,proto3" json:"grant,omitempty"`
	Grants             []*ResourceAccessGrantInput `protobuf:"bytes,6,rep,name=grants,proto3" json:"grants,omitempty"`
	AccessLevel        string                      `protobuf:"bytes,7,opt,name=access_level,json=accessLevel,proto3" json:"access_level,omitempty"`
	PrincipalType      string                      `protobuf:"bytes,8,opt,name=principal_type,json=principalType,proto3" json:"principal_type,omitempty"`
	SourceOwnerId      string                      `protobuf:"bytes,9,opt,name=source_owner_id,json=sourceOwnerId,proto3" json:"source_owner_id,omitempty"`
	TargetOwnerId      string                      `protobuf:"bytes,10,opt,name=target_owner_id,json=targetOwnerId,proto3" json:"target_owner_id,omitempty"`
	MinCatalogRevision *uint64                     `protobuf:"varint,11,opt,name=min_catalog_revision,json=minCatalogRevision,proto3,oneof" json:"min_catalog_revision,omitempty"`
	// Required for mutations and absent for reads. Runtime binds it to a
	// capability-computed effect digest and durable terminal outcome.
	CommandId     string `protobuf:"bytes,12,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AccessResourceRequest) Reset() {
	*x = AccessResourceRequest{}
	mi := &file_runtime_v1_resource_access_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *AccessResourceRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AccessResourceRequest) ProtoMessage() {}

func (x *AccessResourceRequest) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_resource_access_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AccessResourceRequest.ProtoReflect.Descriptor instead.
func (*AccessResourceRequest) Descriptor() ([]byte, []int) {
	return file_runtime_v1_resource_access_proto_rawDescGZIP(), []int{2}
}

func (x *AccessResourceRequest) GetOperation() ResourceAccessOperation {
	if x != nil {
		return x.Operation
	}
	return ResourceAccessOperation_RESOURCE_ACCESS_OPERATION_UNSPECIFIED
}

func (x *AccessResourceRequest) GetResourceType() string {
	if x != nil {
		return x.ResourceType
	}
	return ""
}

func (x *AccessResourceRequest) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

func (x *AccessResourceRequest) GetGrantId() string {
	if x != nil {
		return x.GrantId
	}
	return ""
}

func (x *AccessResourceRequest) GetGrant() *ResourceAccessGrantInput {
	if x != nil {
		return x.Grant
	}
	return nil
}

func (x *AccessResourceRequest) GetGrants() []*ResourceAccessGrantInput {
	if x != nil {
		return x.Grants
	}
	return nil
}

func (x *AccessResourceRequest) GetAccessLevel() string {
	if x != nil {
		return x.AccessLevel
	}
	return ""
}

func (x *AccessResourceRequest) GetPrincipalType() string {
	if x != nil {
		return x.PrincipalType
	}
	return ""
}

func (x *AccessResourceRequest) GetSourceOwnerId() string {
	if x != nil {
		return x.SourceOwnerId
	}
	return ""
}

func (x *AccessResourceRequest) GetTargetOwnerId() string {
	if x != nil {
		return x.TargetOwnerId
	}
	return ""
}

func (x *AccessResourceRequest) GetMinCatalogRevision() uint64 {
	if x != nil && x.MinCatalogRevision != nil {
		return *x.MinCatalogRevision
	}
	return 0
}

func (x *AccessResourceRequest) GetCommandId() string {
	if x != nil {
		return x.CommandId
	}
	return ""
}

type AccessResourceResponse struct {
	state    protoimpl.MessageState  `protogen:"open.v1"`
	Grants   []*ResourceAccessGrant  `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants,omitempty"`
	Receipts *v1.ConsistencyReceipts `protobuf:"bytes,3,opt,name=receipts,proto3" json:"receipts,omitempty"`
	// Echoed for mutations and absent for reads.
	CommandId string `protobuf:"bytes,5,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	// Complete all-or-nothing population changed by TRANSFER_OWNERSHIP.
	AffectedResources uint32 `protobuf:"varint,6,opt,name=affected_resources,json=affectedResources,proto3" json:"affected_resources,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

func (x *AccessResourceResponse) Reset() {
	*x = AccessResourceResponse{}
	mi := &file_runtime_v1_resource_access_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *AccessResourceResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AccessResourceResponse) ProtoMessage() {}

func (x *AccessResourceResponse) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_resource_access_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AccessResourceResponse.ProtoReflect.Descriptor instead.
func (*AccessResourceResponse) Descriptor() ([]byte, []int) {
	return file_runtime_v1_resource_access_proto_rawDescGZIP(), []int{3}
}

func (x *AccessResourceResponse) GetGrants() []*ResourceAccessGrant {
	if x != nil {
		return x.Grants
	}
	return nil
}

func (x *AccessResourceResponse) GetReceipts() *v1.ConsistencyReceipts {
	if x != nil {
		return x.Receipts
	}
	return nil
}

func (x *AccessResourceResponse) GetCommandId() string {
	if x != nil {
		return x.CommandId
	}
	return ""
}

func (x *AccessResourceResponse) GetAffectedResources() uint32 {
	if x != nil {
		return x.AffectedResources
	}
	return 0
}

var File_runtime_v1_resource_access_proto protoreflect.FileDescriptor

const file_runtime_v1_resource_access_proto_rawDesc = "" +
	"\n" +
	" runtime/v1/resource_access.proto\x12\x13nexuscrm.runtime.v1\x1a\x16common/v1/common.proto\"\x87\x01\n" +
	"\x18ResourceAccessGrantInput\x12!\n" +
	"\fprincipal_id\x18\x01 \x01(\tR\vprincipalId\x12%\n" +
	"\x0eprincipal_type\x18\x02 \x01(\tR\rprincipalType\x12!\n" +
	"\faccess_level\x18\x03 \x01(\tR\vaccessLevel\"\xd8\x01\n" +
	"\x13ResourceAccessGrant\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12#\n" +
	"\rresource_type\x18\x02 \x01(\tR\fresourceType\x12\x1f\n" +
	"\vresource_id\x18\x03 \x01(\tR\n" +
	"resourceId\x12!\n" +
	"\fprincipal_id\x18\x04 \x01(\tR\vprincipalId\x12%\n" +
	"\x0eprincipal_type\x18\x05 \x01(\tR\rprincipalType\x12!\n" +
	"\faccess_level\x18\x06 \x01(\tR\vaccessLevel\"\xd9\x04\n" +
	"\x15AccessResourceRequest\x12J\n" +
	"\toperation\x18\x01 \x01(\x0e2,.nexuscrm.runtime.v1.ResourceAccessOperationR\toperation\x12#\n" +
	"\rresource_type\x18\x02 \x01(\tR\fresourceType\x12\x1f\n" +
	"\vresource_id\x18\x03 \x01(\tR\n" +
	"resourceId\x12\x19\n" +
	"\bgrant_id\x18\x04 \x01(\tR\agrantId\x12C\n" +
	"\x05grant\x18\x05 \x01(\v2-.nexuscrm.runtime.v1.ResourceAccessGrantInputR\x05grant\x12E\n" +
	"\x06grants\x18\x06 \x03(\v2-.nexuscrm.runtime.v1.ResourceAccessGrantInputR\x06grants\x12!\n" +
	"\faccess_level\x18\a \x01(\tR\vaccessLevel\x12%\n" +
	"\x0eprincipal_type\x18\b \x01(\tR\rprincipalType\x12&\n" +
	"\x0fsource_owner_id\x18\t \x01(\tR\rsourceOwnerId\x12&\n" +
	"\x0ftarget_owner_id\x18\n" +
	" \x01(\tR\rtargetOwnerId\x125\n" +
	"\x14min_catalog_revision\x18\v \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01\x12\x1d\n" +
	"\n" +
	"command_id\x18\f \x01(\tR\tcommandIdB\x17\n" +
	"\x15_min_catalog_revision\"\x9e\x02\n" +
	"\x16AccessResourceResponse\x12@\n" +
	"\x06grants\x18\x02 \x03(\v2(.nexuscrm.runtime.v1.ResourceAccessGrantR\x06grants\x12C\n" +
	"\breceipts\x18\x03 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceipts\x12\x1d\n" +
	"\n" +
	"command_id\x18\x05 \x01(\tR\tcommandId\x12-\n" +
	"\x12affected_resources\x18\x06 \x01(\rR\x11affectedResourcesJ\x04\b\x01\x10\x02J\x04\b\x04\x10\x05R\fresource_idsR\x15all_resources_visible*\x95\x04\n" +
	"\x17ResourceAccessOperation\x12)\n" +
	"%RESOURCE_ACCESS_OPERATION_UNSPECIFIED\x10\x00\x12)\n" +
	"%RESOURCE_ACCESS_OPERATION_LIST_GRANTS\x10\x02\x12'\n" +
	"#RESOURCE_ACCESS_OPERATION_GET_GRANT\x10\x03\x12*\n" +
	"&RESOURCE_ACCESS_OPERATION_CREATE_GRANT\x10\x04\x12*\n" +
	"&RESOURCE_ACCESS_OPERATION_ENSURE_GRANT\x10\x05\x12,\n" +
	"(RESOURCE_ACCESS_OPERATION_REPLACE_GRANTS\x10\x06\x12*\n" +
	"&RESOURCE_ACCESS_OPERATION_UPDATE_GRANT\x10\a\x12*\n" +
	"&RESOURCE_ACCESS_OPERATION_DELETE_GRANT\x10\b\x123\n" +
	"/RESOURCE_ACCESS_OPERATION_DELETE_PRINCIPAL_TYPE\x10\t\x120\n" +
	",RESOURCE_ACCESS_OPERATION_TRANSFER_OWNERSHIP\x10\n" +
	"\"\x04\b\x01\x10\x01*0RESOURCE_ACCESS_OPERATION_LIST_VISIBLE_RESOURCES2\x82\x01\n" +
	"\x15ResourceAccessService\x12i\n" +
	"\x0eAccessResource\x12*.nexuscrm.runtime.v1.AccessResourceRequest\x1a+.nexuscrm.runtime.v1.AccessResourceResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_resource_access_proto_rawDescOnce sync.Once
	file_runtime_v1_resource_access_proto_rawDescData []byte
)

func file_runtime_v1_resource_access_proto_rawDescGZIP() []byte {
	file_runtime_v1_resource_access_proto_rawDescOnce.Do(func() {
		file_runtime_v1_resource_access_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_resource_access_proto_rawDesc), len(file_runtime_v1_resource_access_proto_rawDesc)))
	})
	return file_runtime_v1_resource_access_proto_rawDescData
}

var file_runtime_v1_resource_access_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_runtime_v1_resource_access_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_runtime_v1_resource_access_proto_goTypes = []any{
	(ResourceAccessOperation)(0),     // 0: nexuscrm.runtime.v1.ResourceAccessOperation
	(*ResourceAccessGrantInput)(nil), // 1: nexuscrm.runtime.v1.ResourceAccessGrantInput
	(*ResourceAccessGrant)(nil),      // 2: nexuscrm.runtime.v1.ResourceAccessGrant
	(*AccessResourceRequest)(nil),    // 3: nexuscrm.runtime.v1.AccessResourceRequest
	(*AccessResourceResponse)(nil),   // 4: nexuscrm.runtime.v1.AccessResourceResponse
	(*v1.ConsistencyReceipts)(nil),   // 5: nexuscrm.common.v1.ConsistencyReceipts
}
var file_runtime_v1_resource_access_proto_depIdxs = []int32{
	0, // 0: nexuscrm.runtime.v1.AccessResourceRequest.operation:type_name -> nexuscrm.runtime.v1.ResourceAccessOperation
	1, // 1: nexuscrm.runtime.v1.AccessResourceRequest.grant:type_name -> nexuscrm.runtime.v1.ResourceAccessGrantInput
	1, // 2: nexuscrm.runtime.v1.AccessResourceRequest.grants:type_name -> nexuscrm.runtime.v1.ResourceAccessGrantInput
	2, // 3: nexuscrm.runtime.v1.AccessResourceResponse.grants:type_name -> nexuscrm.runtime.v1.ResourceAccessGrant
	5, // 4: nexuscrm.runtime.v1.AccessResourceResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	3, // 5: nexuscrm.runtime.v1.ResourceAccessService.AccessResource:input_type -> nexuscrm.runtime.v1.AccessResourceRequest
	4, // 6: nexuscrm.runtime.v1.ResourceAccessService.AccessResource:output_type -> nexuscrm.runtime.v1.AccessResourceResponse
	6, // [6:7] is the sub-list for method output_type
	5, // [5:6] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_runtime_v1_resource_access_proto_init() }
func file_runtime_v1_resource_access_proto_init() {
	if File_runtime_v1_resource_access_proto != nil {
		return
	}
	file_runtime_v1_resource_access_proto_msgTypes[2].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_runtime_v1_resource_access_proto_rawDesc), len(file_runtime_v1_resource_access_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_resource_access_proto_goTypes,
		DependencyIndexes: file_runtime_v1_resource_access_proto_depIdxs,
		EnumInfos:         file_runtime_v1_resource_access_proto_enumTypes,
		MessageInfos:      file_runtime_v1_resource_access_proto_msgTypes,
	}.Build()
	File_runtime_v1_resource_access_proto = out.File
	file_runtime_v1_resource_access_proto_goTypes = nil
	file_runtime_v1_resource_access_proto_depIdxs = nil
}
