446 lines
15 KiB
Go
446 lines
15 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_report_result.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
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 CountAllReportResultsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReportNodeId int64 `protobuf:"varint,1,opt,name=reportNodeId,proto3" json:"reportNodeId,omitempty"`
|
|
OkState int32 `protobuf:"varint,2,opt,name=okState,proto3" json:"okState,omitempty"`
|
|
Level string `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAllReportResultsRequest) Reset() {
|
|
*x = CountAllReportResultsRequest{}
|
|
mi := &file_service_report_result_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAllReportResultsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAllReportResultsRequest) ProtoMessage() {}
|
|
|
|
func (x *CountAllReportResultsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_report_result_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 CountAllReportResultsRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountAllReportResultsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_report_result_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CountAllReportResultsRequest) GetReportNodeId() int64 {
|
|
if x != nil {
|
|
return x.ReportNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountAllReportResultsRequest) GetOkState() int32 {
|
|
if x != nil {
|
|
return x.OkState
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountAllReportResultsRequest) GetLevel() string {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 列出单页监控结果
|
|
type ListReportResultsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReportNodeId int64 `protobuf:"varint,1,opt,name=reportNodeId,proto3" json:"reportNodeId,omitempty"`
|
|
OkState int32 `protobuf:"varint,2,opt,name=okState,proto3" json:"okState,omitempty"`
|
|
Level string `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
|
|
Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListReportResultsRequest) Reset() {
|
|
*x = ListReportResultsRequest{}
|
|
mi := &file_service_report_result_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListReportResultsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListReportResultsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListReportResultsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_report_result_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 ListReportResultsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListReportResultsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_report_result_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ListReportResultsRequest) GetReportNodeId() int64 {
|
|
if x != nil {
|
|
return x.ReportNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListReportResultsRequest) GetOkState() int32 {
|
|
if x != nil {
|
|
return x.OkState
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListReportResultsRequest) GetLevel() string {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListReportResultsRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListReportResultsRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListReportResultsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReportResults []*ReportResult `protobuf:"bytes,1,rep,name=reportResults,proto3" json:"reportResults,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListReportResultsResponse) Reset() {
|
|
*x = ListReportResultsResponse{}
|
|
mi := &file_service_report_result_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListReportResultsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListReportResultsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListReportResultsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_report_result_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 ListReportResultsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListReportResultsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_report_result_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ListReportResultsResponse) GetReportResults() []*ReportResult {
|
|
if x != nil {
|
|
return x.ReportResults
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 上传报告结果
|
|
type UpdateReportResultsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReportResults []*ReportResult `protobuf:"bytes,1,rep,name=reportResults,proto3" json:"reportResults,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateReportResultsRequest) Reset() {
|
|
*x = UpdateReportResultsRequest{}
|
|
mi := &file_service_report_result_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateReportResultsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateReportResultsRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateReportResultsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_report_result_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 UpdateReportResultsRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateReportResultsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_report_result_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *UpdateReportResultsRequest) GetReportResults() []*ReportResult {
|
|
if x != nil {
|
|
return x.ReportResults
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查询某个对象的监控结果
|
|
type FindAllReportResultsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
TargetId int64 `protobuf:"varint,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllReportResultsRequest) Reset() {
|
|
*x = FindAllReportResultsRequest{}
|
|
mi := &file_service_report_result_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllReportResultsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllReportResultsRequest) ProtoMessage() {}
|
|
|
|
func (x *FindAllReportResultsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_report_result_proto_msgTypes[4]
|
|
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 FindAllReportResultsRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindAllReportResultsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_report_result_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *FindAllReportResultsRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FindAllReportResultsRequest) GetTargetId() int64 {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindAllReportResultsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReportResults []*ReportResult `protobuf:"bytes,1,rep,name=reportResults,proto3" json:"reportResults,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllReportResultsResponse) Reset() {
|
|
*x = FindAllReportResultsResponse{}
|
|
mi := &file_service_report_result_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllReportResultsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllReportResultsResponse) ProtoMessage() {}
|
|
|
|
func (x *FindAllReportResultsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_report_result_proto_msgTypes[5]
|
|
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 FindAllReportResultsResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindAllReportResultsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_report_result_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FindAllReportResultsResponse) GetReportResults() []*ReportResult {
|
|
if x != nil {
|
|
return x.ReportResults
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_report_result_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_report_result_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1bservice_report_result.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a models/model_report_result.proto\"r\n" +
|
|
"\x1cCountAllReportResultsRequest\x12\"\n" +
|
|
"\freportNodeId\x18\x01 \x01(\x03R\freportNodeId\x12\x18\n" +
|
|
"\aokState\x18\x02 \x01(\x05R\aokState\x12\x14\n" +
|
|
"\x05level\x18\x03 \x01(\tR\x05level\"\x9a\x01\n" +
|
|
"\x18ListReportResultsRequest\x12\"\n" +
|
|
"\freportNodeId\x18\x01 \x01(\x03R\freportNodeId\x12\x18\n" +
|
|
"\aokState\x18\x02 \x01(\x05R\aokState\x12\x14\n" +
|
|
"\x05level\x18\x03 \x01(\tR\x05level\x12\x16\n" +
|
|
"\x06offset\x18\x04 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\x05 \x01(\x03R\x04size\"S\n" +
|
|
"\x19ListReportResultsResponse\x126\n" +
|
|
"\rreportResults\x18\x01 \x03(\v2\x10.pb.ReportResultR\rreportResults\"T\n" +
|
|
"\x1aUpdateReportResultsRequest\x126\n" +
|
|
"\rreportResults\x18\x01 \x03(\v2\x10.pb.ReportResultR\rreportResults\"M\n" +
|
|
"\x1bFindAllReportResultsRequest\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12\x1a\n" +
|
|
"\btargetId\x18\x02 \x01(\x03R\btargetId\"V\n" +
|
|
"\x1cFindAllReportResultsResponse\x126\n" +
|
|
"\rreportResults\x18\x01 \x03(\v2\x10.pb.ReportResultR\rreportResults2\xda\x02\n" +
|
|
"\x13ReportResultService\x12O\n" +
|
|
"\x15countAllReportResults\x12 .pb.CountAllReportResultsRequest\x1a\x14.pb.RPCCountResponse\x12P\n" +
|
|
"\x11listReportResults\x12\x1c.pb.ListReportResultsRequest\x1a\x1d.pb.ListReportResultsResponse\x12E\n" +
|
|
"\x13updateReportResults\x12\x1e.pb.UpdateReportResultsRequest\x1a\x0e.pb.RPCSuccess\x12Y\n" +
|
|
"\x14findAllReportResults\x12\x1f.pb.FindAllReportResultsRequest\x1a .pb.FindAllReportResultsResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_report_result_proto_rawDescOnce sync.Once
|
|
file_service_report_result_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_report_result_proto_rawDescGZIP() []byte {
|
|
file_service_report_result_proto_rawDescOnce.Do(func() {
|
|
file_service_report_result_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_report_result_proto_rawDesc), len(file_service_report_result_proto_rawDesc)))
|
|
})
|
|
return file_service_report_result_proto_rawDescData
|
|
}
|
|
|
|
var file_service_report_result_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_service_report_result_proto_goTypes = []any{
|
|
(*CountAllReportResultsRequest)(nil), // 0: pb.CountAllReportResultsRequest
|
|
(*ListReportResultsRequest)(nil), // 1: pb.ListReportResultsRequest
|
|
(*ListReportResultsResponse)(nil), // 2: pb.ListReportResultsResponse
|
|
(*UpdateReportResultsRequest)(nil), // 3: pb.UpdateReportResultsRequest
|
|
(*FindAllReportResultsRequest)(nil), // 4: pb.FindAllReportResultsRequest
|
|
(*FindAllReportResultsResponse)(nil), // 5: pb.FindAllReportResultsResponse
|
|
(*ReportResult)(nil), // 6: pb.ReportResult
|
|
(*RPCCountResponse)(nil), // 7: pb.RPCCountResponse
|
|
(*RPCSuccess)(nil), // 8: pb.RPCSuccess
|
|
}
|
|
var file_service_report_result_proto_depIdxs = []int32{
|
|
6, // 0: pb.ListReportResultsResponse.reportResults:type_name -> pb.ReportResult
|
|
6, // 1: pb.UpdateReportResultsRequest.reportResults:type_name -> pb.ReportResult
|
|
6, // 2: pb.FindAllReportResultsResponse.reportResults:type_name -> pb.ReportResult
|
|
0, // 3: pb.ReportResultService.countAllReportResults:input_type -> pb.CountAllReportResultsRequest
|
|
1, // 4: pb.ReportResultService.listReportResults:input_type -> pb.ListReportResultsRequest
|
|
3, // 5: pb.ReportResultService.updateReportResults:input_type -> pb.UpdateReportResultsRequest
|
|
4, // 6: pb.ReportResultService.findAllReportResults:input_type -> pb.FindAllReportResultsRequest
|
|
7, // 7: pb.ReportResultService.countAllReportResults:output_type -> pb.RPCCountResponse
|
|
2, // 8: pb.ReportResultService.listReportResults:output_type -> pb.ListReportResultsResponse
|
|
8, // 9: pb.ReportResultService.updateReportResults:output_type -> pb.RPCSuccess
|
|
5, // 10: pb.ReportResultService.findAllReportResults:output_type -> pb.FindAllReportResultsResponse
|
|
7, // [7:11] is the sub-list for method output_type
|
|
3, // [3:7] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_report_result_proto_init() }
|
|
func file_service_report_result_proto_init() {
|
|
if File_service_report_result_proto != nil {
|
|
return
|
|
}
|
|
file_models_rpc_messages_proto_init()
|
|
file_models_model_report_result_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_report_result_proto_rawDesc), len(file_service_report_result_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_report_result_proto_goTypes,
|
|
DependencyIndexes: file_service_report_result_proto_depIdxs,
|
|
MessageInfos: file_service_report_result_proto_msgTypes,
|
|
}.Build()
|
|
File_service_report_result_proto = out.File
|
|
file_service_report_result_proto_goTypes = nil
|
|
file_service_report_result_proto_depIdxs = nil
|
|
}
|