// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runtime/v1/recycle_bin.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 RecycleBinScope int32

const (
	RecycleBinScope_RECYCLE_BIN_SCOPE_UNSPECIFIED RecycleBinScope = 0
	RecycleBinScope_RECYCLE_BIN_SCOPE_MINE        RecycleBinScope = 1
	RecycleBinScope_RECYCLE_BIN_SCOPE_ALL         RecycleBinScope = 2
)

// Enum value maps for RecycleBinScope.
var (
	RecycleBinScope_name = map[int32]string{
		0: "RECYCLE_BIN_SCOPE_UNSPECIFIED",
		1: "RECYCLE_BIN_SCOPE_MINE",
		2: "RECYCLE_BIN_SCOPE_ALL",
	}
	RecycleBinScope_value = map[string]int32{
		"RECYCLE_BIN_SCOPE_UNSPECIFIED": 0,
		"RECYCLE_BIN_SCOPE_MINE":        1,
		"RECYCLE_BIN_SCOPE_ALL":         2,
	}
)

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

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

func (RecycleBinScope) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_recycle_bin_proto_enumTypes[0].Descriptor()
}

func (RecycleBinScope) Type() protoreflect.EnumType {
	return &file_runtime_v1_recycle_bin_proto_enumTypes[0]
}

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

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

type RecycleBinObjectFailureCode int32

const (
	RecycleBinObjectFailureCode_RECYCLE_BIN_OBJECT_FAILURE_CODE_UNSPECIFIED     RecycleBinObjectFailureCode = 0
	RecycleBinObjectFailureCode_RECYCLE_BIN_OBJECT_FAILURE_CODE_UNKNOWN         RecycleBinObjectFailureCode = 1
	RecycleBinObjectFailureCode_RECYCLE_BIN_OBJECT_FAILURE_CODE_FORBIDDEN       RecycleBinObjectFailureCode = 2
	RecycleBinObjectFailureCode_RECYCLE_BIN_OBJECT_FAILURE_CODE_INVALID_REQUEST RecycleBinObjectFailureCode = 3
	RecycleBinObjectFailureCode_RECYCLE_BIN_OBJECT_FAILURE_CODE_INTERNAL        RecycleBinObjectFailureCode = 4
)

// Enum value maps for RecycleBinObjectFailureCode.
var (
	RecycleBinObjectFailureCode_name = map[int32]string{
		0: "RECYCLE_BIN_OBJECT_FAILURE_CODE_UNSPECIFIED",
		1: "RECYCLE_BIN_OBJECT_FAILURE_CODE_UNKNOWN",
		2: "RECYCLE_BIN_OBJECT_FAILURE_CODE_FORBIDDEN",
		3: "RECYCLE_BIN_OBJECT_FAILURE_CODE_INVALID_REQUEST",
		4: "RECYCLE_BIN_OBJECT_FAILURE_CODE_INTERNAL",
	}
	RecycleBinObjectFailureCode_value = map[string]int32{
		"RECYCLE_BIN_OBJECT_FAILURE_CODE_UNSPECIFIED":     0,
		"RECYCLE_BIN_OBJECT_FAILURE_CODE_UNKNOWN":         1,
		"RECYCLE_BIN_OBJECT_FAILURE_CODE_FORBIDDEN":       2,
		"RECYCLE_BIN_OBJECT_FAILURE_CODE_INVALID_REQUEST": 3,
		"RECYCLE_BIN_OBJECT_FAILURE_CODE_INTERNAL":        4,
	}
)

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

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

func (RecycleBinObjectFailureCode) Descriptor() protoreflect.EnumDescriptor {
	return file_runtime_v1_recycle_bin_proto_enumTypes[1].Descriptor()
}

func (RecycleBinObjectFailureCode) Type() protoreflect.EnumType {
	return &file_runtime_v1_recycle_bin_proto_enumTypes[1]
}

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

// Deprecated: Use RecycleBinObjectFailureCode.Descriptor instead.
func (RecycleBinObjectFailureCode) EnumDescriptor() ([]byte, []int) {
	return file_runtime_v1_recycle_bin_proto_rawDescGZIP(), []int{1}
}

// Identity and authority are authenticated transport context. They are never
// caller-selected semantic request fields.
type ListRecycleBinRequest struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	Scope              RecycleBinScope        `protobuf:"varint,1,opt,name=scope,proto3,enum=nexuscrm.runtime.v1.RecycleBinScope" json:"scope,omitempty"`
	MinCatalogRevision *uint64                `protobuf:"varint,2,opt,name=min_catalog_revision,json=minCatalogRevision,proto3,oneof" json:"min_catalog_revision,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*ListRecycleBinRequest) ProtoMessage() {}

func (x *ListRecycleBinRequest) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_recycle_bin_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 ListRecycleBinRequest.ProtoReflect.Descriptor instead.
func (*ListRecycleBinRequest) Descriptor() ([]byte, []int) {
	return file_runtime_v1_recycle_bin_proto_rawDescGZIP(), []int{0}
}

func (x *ListRecycleBinRequest) GetScope() RecycleBinScope {
	if x != nil {
		return x.Scope
	}
	return RecycleBinScope_RECYCLE_BIN_SCOPE_UNSPECIFIED
}

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

type RecycleBinItem struct {
	state            protoimpl.MessageState `protogen:"open.v1"`
	RecordId         string                 `protobuf:"bytes,1,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"`
	RecordName       string                 `protobuf:"bytes,2,opt,name=record_name,json=recordName,proto3" json:"record_name,omitempty"`
	ObjectId         string                 `protobuf:"bytes,3,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	DeletedBy        string                 `protobuf:"bytes,4,opt,name=deleted_by,json=deletedBy,proto3" json:"deleted_by,omitempty"`
	DeletedDate      string                 `protobuf:"bytes,5,opt,name=deleted_date,json=deletedDate,proto3" json:"deleted_date,omitempty"`
	CreatedDate      string                 `protobuf:"bytes,6,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"`
	LastModifiedDate string                 `protobuf:"bytes,7,opt,name=last_modified_date,json=lastModifiedDate,proto3" json:"last_modified_date,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*RecycleBinItem) ProtoMessage() {}

func (x *RecycleBinItem) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_recycle_bin_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 RecycleBinItem.ProtoReflect.Descriptor instead.
func (*RecycleBinItem) Descriptor() ([]byte, []int) {
	return file_runtime_v1_recycle_bin_proto_rawDescGZIP(), []int{1}
}

func (x *RecycleBinItem) GetRecordId() string {
	if x != nil {
		return x.RecordId
	}
	return ""
}

func (x *RecycleBinItem) GetRecordName() string {
	if x != nil {
		return x.RecordName
	}
	return ""
}

func (x *RecycleBinItem) GetObjectId() string {
	if x != nil {
		return x.ObjectId
	}
	return ""
}

func (x *RecycleBinItem) GetDeletedBy() string {
	if x != nil {
		return x.DeletedBy
	}
	return ""
}

func (x *RecycleBinItem) GetDeletedDate() string {
	if x != nil {
		return x.DeletedDate
	}
	return ""
}

func (x *RecycleBinItem) GetCreatedDate() string {
	if x != nil {
		return x.CreatedDate
	}
	return ""
}

func (x *RecycleBinItem) GetLastModifiedDate() string {
	if x != nil {
		return x.LastModifiedDate
	}
	return ""
}

type RecycleBinObjectFailure struct {
	state         protoimpl.MessageState      `protogen:"open.v1"`
	ObjectId      string                      `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Code          RecycleBinObjectFailureCode `protobuf:"varint,2,opt,name=code,proto3,enum=nexuscrm.runtime.v1.RecycleBinObjectFailureCode" json:"code,omitempty"`
	Message       string                      `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RecycleBinObjectFailure) ProtoMessage() {}

func (x *RecycleBinObjectFailure) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_recycle_bin_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 RecycleBinObjectFailure.ProtoReflect.Descriptor instead.
func (*RecycleBinObjectFailure) Descriptor() ([]byte, []int) {
	return file_runtime_v1_recycle_bin_proto_rawDescGZIP(), []int{2}
}

func (x *RecycleBinObjectFailure) GetObjectId() string {
	if x != nil {
		return x.ObjectId
	}
	return ""
}

func (x *RecycleBinObjectFailure) GetCode() RecycleBinObjectFailureCode {
	if x != nil {
		return x.Code
	}
	return RecycleBinObjectFailureCode_RECYCLE_BIN_OBJECT_FAILURE_CODE_UNSPECIFIED
}

func (x *RecycleBinObjectFailure) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

type ListRecycleBinResponse struct {
	state         protoimpl.MessageState     `protogen:"open.v1"`
	Items         []*RecycleBinItem          `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	FailedObjects []*RecycleBinObjectFailure `protobuf:"bytes,2,rep,name=failed_objects,json=failedObjects,proto3" json:"failed_objects,omitempty"`
	Receipts      *v1.ConsistencyReceipts    `protobuf:"bytes,3,opt,name=receipts,proto3" json:"receipts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListRecycleBinResponse) ProtoMessage() {}

func (x *ListRecycleBinResponse) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_recycle_bin_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 ListRecycleBinResponse.ProtoReflect.Descriptor instead.
func (*ListRecycleBinResponse) Descriptor() ([]byte, []int) {
	return file_runtime_v1_recycle_bin_proto_rawDescGZIP(), []int{3}
}

func (x *ListRecycleBinResponse) GetItems() []*RecycleBinItem {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *ListRecycleBinResponse) GetFailedObjects() []*RecycleBinObjectFailure {
	if x != nil {
		return x.FailedObjects
	}
	return nil
}

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

var File_runtime_v1_recycle_bin_proto protoreflect.FileDescriptor

const file_runtime_v1_recycle_bin_proto_rawDesc = "" +
	"\n" +
	"\x1cruntime/v1/recycle_bin.proto\x12\x13nexuscrm.runtime.v1\x1a\x16common/v1/common.proto\"\xa3\x01\n" +
	"\x15ListRecycleBinRequest\x12:\n" +
	"\x05scope\x18\x01 \x01(\x0e2$.nexuscrm.runtime.v1.RecycleBinScopeR\x05scope\x125\n" +
	"\x14min_catalog_revision\x18\x02 \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01B\x17\n" +
	"\x15_min_catalog_revision\"\xfe\x01\n" +
	"\x0eRecycleBinItem\x12\x1b\n" +
	"\trecord_id\x18\x01 \x01(\tR\brecordId\x12\x1f\n" +
	"\vrecord_name\x18\x02 \x01(\tR\n" +
	"recordName\x12\x1b\n" +
	"\tobject_id\x18\x03 \x01(\tR\bobjectId\x12\x1d\n" +
	"\n" +
	"deleted_by\x18\x04 \x01(\tR\tdeletedBy\x12!\n" +
	"\fdeleted_date\x18\x05 \x01(\tR\vdeletedDate\x12!\n" +
	"\fcreated_date\x18\x06 \x01(\tR\vcreatedDate\x12,\n" +
	"\x12last_modified_date\x18\a \x01(\tR\x10lastModifiedDate\"\x96\x01\n" +
	"\x17RecycleBinObjectFailure\x12\x1b\n" +
	"\tobject_id\x18\x01 \x01(\tR\bobjectId\x12D\n" +
	"\x04code\x18\x02 \x01(\x0e20.nexuscrm.runtime.v1.RecycleBinObjectFailureCodeR\x04code\x12\x18\n" +
	"\amessage\x18\x03 \x01(\tR\amessage\"\xed\x01\n" +
	"\x16ListRecycleBinResponse\x129\n" +
	"\x05items\x18\x01 \x03(\v2#.nexuscrm.runtime.v1.RecycleBinItemR\x05items\x12S\n" +
	"\x0efailed_objects\x18\x02 \x03(\v2,.nexuscrm.runtime.v1.RecycleBinObjectFailureR\rfailedObjects\x12C\n" +
	"\breceipts\x18\x03 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceipts*k\n" +
	"\x0fRecycleBinScope\x12!\n" +
	"\x1dRECYCLE_BIN_SCOPE_UNSPECIFIED\x10\x00\x12\x1a\n" +
	"\x16RECYCLE_BIN_SCOPE_MINE\x10\x01\x12\x19\n" +
	"\x15RECYCLE_BIN_SCOPE_ALL\x10\x02*\x8d\x02\n" +
	"\x1bRecycleBinObjectFailureCode\x12/\n" +
	"+RECYCLE_BIN_OBJECT_FAILURE_CODE_UNSPECIFIED\x10\x00\x12+\n" +
	"'RECYCLE_BIN_OBJECT_FAILURE_CODE_UNKNOWN\x10\x01\x12-\n" +
	")RECYCLE_BIN_OBJECT_FAILURE_CODE_FORBIDDEN\x10\x02\x123\n" +
	"/RECYCLE_BIN_OBJECT_FAILURE_CODE_INVALID_REQUEST\x10\x03\x12,\n" +
	"(RECYCLE_BIN_OBJECT_FAILURE_CODE_INTERNAL\x10\x042\x82\x01\n" +
	"\x15RecycleBinReadService\x12i\n" +
	"\x0eListRecycleBin\x12*.nexuscrm.runtime.v1.ListRecycleBinRequest\x1a+.nexuscrm.runtime.v1.ListRecycleBinResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_recycle_bin_proto_rawDescOnce sync.Once
	file_runtime_v1_recycle_bin_proto_rawDescData []byte
)

func file_runtime_v1_recycle_bin_proto_rawDescGZIP() []byte {
	file_runtime_v1_recycle_bin_proto_rawDescOnce.Do(func() {
		file_runtime_v1_recycle_bin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_recycle_bin_proto_rawDesc), len(file_runtime_v1_recycle_bin_proto_rawDesc)))
	})
	return file_runtime_v1_recycle_bin_proto_rawDescData
}

var file_runtime_v1_recycle_bin_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_runtime_v1_recycle_bin_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_runtime_v1_recycle_bin_proto_goTypes = []any{
	(RecycleBinScope)(0),             // 0: nexuscrm.runtime.v1.RecycleBinScope
	(RecycleBinObjectFailureCode)(0), // 1: nexuscrm.runtime.v1.RecycleBinObjectFailureCode
	(*ListRecycleBinRequest)(nil),    // 2: nexuscrm.runtime.v1.ListRecycleBinRequest
	(*RecycleBinItem)(nil),           // 3: nexuscrm.runtime.v1.RecycleBinItem
	(*RecycleBinObjectFailure)(nil),  // 4: nexuscrm.runtime.v1.RecycleBinObjectFailure
	(*ListRecycleBinResponse)(nil),   // 5: nexuscrm.runtime.v1.ListRecycleBinResponse
	(*v1.ConsistencyReceipts)(nil),   // 6: nexuscrm.common.v1.ConsistencyReceipts
}
var file_runtime_v1_recycle_bin_proto_depIdxs = []int32{
	0, // 0: nexuscrm.runtime.v1.ListRecycleBinRequest.scope:type_name -> nexuscrm.runtime.v1.RecycleBinScope
	1, // 1: nexuscrm.runtime.v1.RecycleBinObjectFailure.code:type_name -> nexuscrm.runtime.v1.RecycleBinObjectFailureCode
	3, // 2: nexuscrm.runtime.v1.ListRecycleBinResponse.items:type_name -> nexuscrm.runtime.v1.RecycleBinItem
	4, // 3: nexuscrm.runtime.v1.ListRecycleBinResponse.failed_objects:type_name -> nexuscrm.runtime.v1.RecycleBinObjectFailure
	6, // 4: nexuscrm.runtime.v1.ListRecycleBinResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	2, // 5: nexuscrm.runtime.v1.RecycleBinReadService.ListRecycleBin:input_type -> nexuscrm.runtime.v1.ListRecycleBinRequest
	5, // 6: nexuscrm.runtime.v1.RecycleBinReadService.ListRecycleBin:output_type -> nexuscrm.runtime.v1.ListRecycleBinResponse
	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_recycle_bin_proto_init() }
func file_runtime_v1_recycle_bin_proto_init() {
	if File_runtime_v1_recycle_bin_proto != nil {
		return
	}
	file_runtime_v1_recycle_bin_proto_msgTypes[0].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_runtime_v1_recycle_bin_proto_rawDesc), len(file_runtime_v1_recycle_bin_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_recycle_bin_proto_goTypes,
		DependencyIndexes: file_runtime_v1_recycle_bin_proto_depIdxs,
		EnumInfos:         file_runtime_v1_recycle_bin_proto_enumTypes,
		MessageInfos:      file_runtime_v1_recycle_bin_proto_msgTypes,
	}.Build()
	File_runtime_v1_recycle_bin_proto = out.File
	file_runtime_v1_recycle_bin_proto_goTypes = nil
	file_runtime_v1_recycle_bin_proto_depIdxs = nil
}
