// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runtime/v1/report.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 ReadReportRequest struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	ReportId           string                 `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"`
	CanonicalFilters   []byte                 `protobuf:"bytes,2,opt,name=canonical_filters,json=canonicalFilters,proto3" json:"canonical_filters,omitempty"`
	Limit              uint32                 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset             uint32                 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	MinCatalogRevision *uint64                `protobuf:"varint,5,opt,name=min_catalog_revision,json=minCatalogRevision,proto3,oneof" json:"min_catalog_revision,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*ReadReportRequest) ProtoMessage() {}

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

func (x *ReadReportRequest) GetReportId() string {
	if x != nil {
		return x.ReportId
	}
	return ""
}

func (x *ReadReportRequest) GetCanonicalFilters() []byte {
	if x != nil {
		return x.CanonicalFilters
	}
	return nil
}

func (x *ReadReportRequest) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

func (x *ReadReportRequest) GetOffset() uint32 {
	if x != nil {
		return x.Offset
	}
	return 0
}

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

type ReadReportResponse struct {
	state           protoimpl.MessageState  `protogen:"open.v1"`
	CanonicalResult []byte                  `protobuf:"bytes,1,opt,name=canonical_result,json=canonicalResult,proto3" json:"canonical_result,omitempty"`
	Receipts        *v1.ConsistencyReceipts `protobuf:"bytes,2,opt,name=receipts,proto3" json:"receipts,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*ReadReportResponse) ProtoMessage() {}

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

func (x *ReadReportResponse) GetCanonicalResult() []byte {
	if x != nil {
		return x.CanonicalResult
	}
	return nil
}

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

var File_runtime_v1_report_proto protoreflect.FileDescriptor

const file_runtime_v1_report_proto_rawDesc = "" +
	"\n" +
	"\x17runtime/v1/report.proto\x12\x13nexuscrm.runtime.v1\x1a\x16common/v1/common.proto\"\xdb\x01\n" +
	"\x11ReadReportRequest\x12\x1b\n" +
	"\treport_id\x18\x01 \x01(\tR\breportId\x12+\n" +
	"\x11canonical_filters\x18\x02 \x01(\fR\x10canonicalFilters\x12\x14\n" +
	"\x05limit\x18\x03 \x01(\rR\x05limit\x12\x16\n" +
	"\x06offset\x18\x04 \x01(\rR\x06offset\x125\n" +
	"\x14min_catalog_revision\x18\x05 \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01B\x17\n" +
	"\x15_min_catalog_revision\"\x84\x01\n" +
	"\x12ReadReportResponse\x12)\n" +
	"\x10canonical_result\x18\x01 \x01(\fR\x0fcanonicalResult\x12C\n" +
	"\breceipts\x18\x02 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceipts2r\n" +
	"\x11ReportReadService\x12]\n" +
	"\n" +
	"ReadReport\x12&.nexuscrm.runtime.v1.ReadReportRequest\x1a'.nexuscrm.runtime.v1.ReadReportResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_report_proto_rawDescOnce sync.Once
	file_runtime_v1_report_proto_rawDescData []byte
)

func file_runtime_v1_report_proto_rawDescGZIP() []byte {
	file_runtime_v1_report_proto_rawDescOnce.Do(func() {
		file_runtime_v1_report_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_report_proto_rawDesc), len(file_runtime_v1_report_proto_rawDesc)))
	})
	return file_runtime_v1_report_proto_rawDescData
}

var file_runtime_v1_report_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_runtime_v1_report_proto_goTypes = []any{
	(*ReadReportRequest)(nil),      // 0: nexuscrm.runtime.v1.ReadReportRequest
	(*ReadReportResponse)(nil),     // 1: nexuscrm.runtime.v1.ReadReportResponse
	(*v1.ConsistencyReceipts)(nil), // 2: nexuscrm.common.v1.ConsistencyReceipts
}
var file_runtime_v1_report_proto_depIdxs = []int32{
	2, // 0: nexuscrm.runtime.v1.ReadReportResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	0, // 1: nexuscrm.runtime.v1.ReportReadService.ReadReport:input_type -> nexuscrm.runtime.v1.ReadReportRequest
	1, // 2: nexuscrm.runtime.v1.ReportReadService.ReadReport:output_type -> nexuscrm.runtime.v1.ReadReportResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_runtime_v1_report_proto_init() }
func file_runtime_v1_report_proto_init() {
	if File_runtime_v1_report_proto != nil {
		return
	}
	file_runtime_v1_report_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_report_proto_rawDesc), len(file_runtime_v1_report_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_report_proto_goTypes,
		DependencyIndexes: file_runtime_v1_report_proto_depIdxs,
		MessageInfos:      file_runtime_v1_report_proto_msgTypes,
	}.Build()
	File_runtime_v1_report_proto = out.File
	file_runtime_v1_report_proto_goTypes = nil
	file_runtime_v1_report_proto_depIdxs = nil
}
