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

// Identity and authority are authenticated transport context. The method name
// is the single owner of the requested operation.
type RestoreRecycleBinRequest struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	RecordId           string                 `protobuf:"bytes,1,opt,name=record_id,json=recordId,proto3" json:"record_id,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 *RestoreRecycleBinRequest) Reset() {
	*x = RestoreRecycleBinRequest{}
	mi := &file_runtime_v1_recycle_bin_mutation_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*RestoreRecycleBinRequest) ProtoMessage() {}

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

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

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

type RestoreRecycleBinResponse struct {
	state         protoimpl.MessageState  `protogen:"open.v1"`
	Receipts      *v1.ConsistencyReceipts `protobuf:"bytes,1,opt,name=receipts,proto3" json:"receipts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RestoreRecycleBinResponse) ProtoMessage() {}

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

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

type PurgeRecycleBinRequest struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	RecordId           string                 `protobuf:"bytes,1,opt,name=record_id,json=recordId,proto3" json:"record_id,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 *PurgeRecycleBinRequest) Reset() {
	*x = PurgeRecycleBinRequest{}
	mi := &file_runtime_v1_recycle_bin_mutation_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PurgeRecycleBinRequest) ProtoMessage() {}

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

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

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

type PurgeRecycleBinResponse struct {
	state         protoimpl.MessageState  `protogen:"open.v1"`
	Receipts      *v1.ConsistencyReceipts `protobuf:"bytes,1,opt,name=receipts,proto3" json:"receipts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PurgeRecycleBinResponse) ProtoMessage() {}

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

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

var File_runtime_v1_recycle_bin_mutation_proto protoreflect.FileDescriptor

const file_runtime_v1_recycle_bin_mutation_proto_rawDesc = "" +
	"\n" +
	"%runtime/v1/recycle_bin_mutation.proto\x12\x13nexuscrm.runtime.v1\x1a\x16common/v1/common.proto\"\x87\x01\n" +
	"\x18RestoreRecycleBinRequest\x12\x1b\n" +
	"\trecord_id\x18\x01 \x01(\tR\brecordId\x125\n" +
	"\x14min_catalog_revision\x18\x02 \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01B\x17\n" +
	"\x15_min_catalog_revision\"`\n" +
	"\x19RestoreRecycleBinResponse\x12C\n" +
	"\breceipts\x18\x01 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceipts\"\x85\x01\n" +
	"\x16PurgeRecycleBinRequest\x12\x1b\n" +
	"\trecord_id\x18\x01 \x01(\tR\brecordId\x125\n" +
	"\x14min_catalog_revision\x18\x02 \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01B\x17\n" +
	"\x15_min_catalog_revision\"^\n" +
	"\x17PurgeRecycleBinResponse\x12C\n" +
	"\breceipts\x18\x01 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceipts2\xfd\x01\n" +
	"\x19RecycleBinMutationService\x12r\n" +
	"\x11RestoreRecycleBin\x12-.nexuscrm.runtime.v1.RestoreRecycleBinRequest\x1a..nexuscrm.runtime.v1.RestoreRecycleBinResponse\x12l\n" +
	"\x0fPurgeRecycleBin\x12+.nexuscrm.runtime.v1.PurgeRecycleBinRequest\x1a,.nexuscrm.runtime.v1.PurgeRecycleBinResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_recycle_bin_mutation_proto_rawDescOnce sync.Once
	file_runtime_v1_recycle_bin_mutation_proto_rawDescData []byte
)

func file_runtime_v1_recycle_bin_mutation_proto_rawDescGZIP() []byte {
	file_runtime_v1_recycle_bin_mutation_proto_rawDescOnce.Do(func() {
		file_runtime_v1_recycle_bin_mutation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_recycle_bin_mutation_proto_rawDesc), len(file_runtime_v1_recycle_bin_mutation_proto_rawDesc)))
	})
	return file_runtime_v1_recycle_bin_mutation_proto_rawDescData
}

var file_runtime_v1_recycle_bin_mutation_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_runtime_v1_recycle_bin_mutation_proto_goTypes = []any{
	(*RestoreRecycleBinRequest)(nil),  // 0: nexuscrm.runtime.v1.RestoreRecycleBinRequest
	(*RestoreRecycleBinResponse)(nil), // 1: nexuscrm.runtime.v1.RestoreRecycleBinResponse
	(*PurgeRecycleBinRequest)(nil),    // 2: nexuscrm.runtime.v1.PurgeRecycleBinRequest
	(*PurgeRecycleBinResponse)(nil),   // 3: nexuscrm.runtime.v1.PurgeRecycleBinResponse
	(*v1.ConsistencyReceipts)(nil),    // 4: nexuscrm.common.v1.ConsistencyReceipts
}
var file_runtime_v1_recycle_bin_mutation_proto_depIdxs = []int32{
	4, // 0: nexuscrm.runtime.v1.RestoreRecycleBinResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	4, // 1: nexuscrm.runtime.v1.PurgeRecycleBinResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	0, // 2: nexuscrm.runtime.v1.RecycleBinMutationService.RestoreRecycleBin:input_type -> nexuscrm.runtime.v1.RestoreRecycleBinRequest
	2, // 3: nexuscrm.runtime.v1.RecycleBinMutationService.PurgeRecycleBin:input_type -> nexuscrm.runtime.v1.PurgeRecycleBinRequest
	1, // 4: nexuscrm.runtime.v1.RecycleBinMutationService.RestoreRecycleBin:output_type -> nexuscrm.runtime.v1.RestoreRecycleBinResponse
	3, // 5: nexuscrm.runtime.v1.RecycleBinMutationService.PurgeRecycleBin:output_type -> nexuscrm.runtime.v1.PurgeRecycleBinResponse
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_runtime_v1_recycle_bin_mutation_proto_init() }
func file_runtime_v1_recycle_bin_mutation_proto_init() {
	if File_runtime_v1_recycle_bin_mutation_proto != nil {
		return
	}
	file_runtime_v1_recycle_bin_mutation_proto_msgTypes[0].OneofWrappers = []any{}
	file_runtime_v1_recycle_bin_mutation_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_recycle_bin_mutation_proto_rawDesc), len(file_runtime_v1_recycle_bin_mutation_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_recycle_bin_mutation_proto_goTypes,
		DependencyIndexes: file_runtime_v1_recycle_bin_mutation_proto_depIdxs,
		MessageInfos:      file_runtime_v1_recycle_bin_mutation_proto_msgTypes,
	}.Build()
	File_runtime_v1_recycle_bin_mutation_proto = out.File
	file_runtime_v1_recycle_bin_mutation_proto_goTypes = nil
	file_runtime_v1_recycle_bin_mutation_proto_depIdxs = nil
}
