// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.19.0
// source: external/cfgmgmt/response/stats.proto

package response

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 RunsCounts struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Total count of run reports that have landed in Automate for the node.
	Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// Total count of successful run reports that have landed in Automate for the node.
	Success int32 `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	// Total count of failed run reports that have landed in Automate for the node.
	Failure       int32 `protobuf:"varint,3,opt,name=failure,proto3" json:"failure,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RunsCounts) ProtoMessage() {}

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

func (x *RunsCounts) GetTotal() int32 {
	if x != nil {
		return x.Total
	}
	return 0
}

func (x *RunsCounts) GetSuccess() int32 {
	if x != nil {
		return x.Success
	}
	return 0
}

func (x *RunsCounts) GetFailure() int32 {
	if x != nil {
		return x.Failure
	}
	return 0
}

type NodesCounts struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Total count of nodes that have reported in to Automate.
	Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// Total count of nodes that have reported in to Automate whose last run was successful.
	Success int32 `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	// Total count of nodes that have reported in to Automate whose last run was failed.
	Failure int32 `protobuf:"varint,3,opt,name=failure,proto3" json:"failure,omitempty"`
	// Total count of nodes that have been labeled as 'missing' as determined by node lifecycle settings.
	Missing       int32 `protobuf:"varint,4,opt,name=missing,proto3" json:"missing,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*NodesCounts) ProtoMessage() {}

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

func (x *NodesCounts) GetTotal() int32 {
	if x != nil {
		return x.Total
	}
	return 0
}

func (x *NodesCounts) GetSuccess() int32 {
	if x != nil {
		return x.Success
	}
	return 0
}

func (x *NodesCounts) GetFailure() int32 {
	if x != nil {
		return x.Failure
	}
	return 0
}

func (x *NodesCounts) GetMissing() int32 {
	if x != nil {
		return x.Missing
	}
	return 0
}

type CheckInCountsTimeSeries struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of daily checkin counts
	Counts        []*CheckInCounts `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CheckInCountsTimeSeries) ProtoMessage() {}

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

func (x *CheckInCountsTimeSeries) GetCounts() []*CheckInCounts {
	if x != nil {
		return x.Counts
	}
	return nil
}

type CheckInCounts struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Start         string                 `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End           string                 `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	Count         int32                  `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Total         int32                  `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CheckInCounts) ProtoMessage() {}

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

func (x *CheckInCounts) GetStart() string {
	if x != nil {
		return x.Start
	}
	return ""
}

func (x *CheckInCounts) GetEnd() string {
	if x != nil {
		return x.End
	}
	return ""
}

func (x *CheckInCounts) GetCount() int32 {
	if x != nil {
		return x.Count
	}
	return 0
}

func (x *CheckInCounts) GetTotal() int32 {
	if x != nil {
		return x.Total
	}
	return 0
}

var File_external_cfgmgmt_response_stats_proto protoreflect.FileDescriptor

const file_external_cfgmgmt_response_stats_proto_rawDesc = "" +
	"\n" +
	"%external/cfgmgmt/response/stats.proto\x12\"chef.automate.api.cfgmgmt.response\"V\n" +
	"\n" +
	"RunsCounts\x12\x14\n" +
	"\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n" +
	"\asuccess\x18\x02 \x01(\x05R\asuccess\x12\x18\n" +
	"\afailure\x18\x03 \x01(\x05R\afailure\"q\n" +
	"\vNodesCounts\x12\x14\n" +
	"\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n" +
	"\asuccess\x18\x02 \x01(\x05R\asuccess\x12\x18\n" +
	"\afailure\x18\x03 \x01(\x05R\afailure\x12\x18\n" +
	"\amissing\x18\x04 \x01(\x05R\amissing\"d\n" +
	"\x17CheckInCountsTimeSeries\x12I\n" +
	"\x06counts\x18\x01 \x03(\v21.chef.automate.api.cfgmgmt.response.CheckInCountsR\x06counts\"c\n" +
	"\rCheckInCounts\x12\x14\n" +
	"\x05start\x18\x01 \x01(\tR\x05start\x12\x10\n" +
	"\x03end\x18\x02 \x01(\tR\x03end\x12\x14\n" +
	"\x05count\x18\x03 \x01(\x05R\x05count\x12\x14\n" +
	"\x05total\x18\x04 \x01(\x05R\x05totalB8Z6github.com/chef/automate/api/external/cfgmgmt/responseb\x06proto3"

var (
	file_external_cfgmgmt_response_stats_proto_rawDescOnce sync.Once
	file_external_cfgmgmt_response_stats_proto_rawDescData []byte
)

func file_external_cfgmgmt_response_stats_proto_rawDescGZIP() []byte {
	file_external_cfgmgmt_response_stats_proto_rawDescOnce.Do(func() {
		file_external_cfgmgmt_response_stats_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_external_cfgmgmt_response_stats_proto_rawDesc), len(file_external_cfgmgmt_response_stats_proto_rawDesc)))
	})
	return file_external_cfgmgmt_response_stats_proto_rawDescData
}

var file_external_cfgmgmt_response_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_external_cfgmgmt_response_stats_proto_goTypes = []any{
	(*RunsCounts)(nil),              // 0: chef.automate.api.cfgmgmt.response.RunsCounts
	(*NodesCounts)(nil),             // 1: chef.automate.api.cfgmgmt.response.NodesCounts
	(*CheckInCountsTimeSeries)(nil), // 2: chef.automate.api.cfgmgmt.response.CheckInCountsTimeSeries
	(*CheckInCounts)(nil),           // 3: chef.automate.api.cfgmgmt.response.CheckInCounts
}
var file_external_cfgmgmt_response_stats_proto_depIdxs = []int32{
	3, // 0: chef.automate.api.cfgmgmt.response.CheckInCountsTimeSeries.counts:type_name -> chef.automate.api.cfgmgmt.response.CheckInCounts
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_external_cfgmgmt_response_stats_proto_init() }
func file_external_cfgmgmt_response_stats_proto_init() {
	if File_external_cfgmgmt_response_stats_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_external_cfgmgmt_response_stats_proto_rawDesc), len(file_external_cfgmgmt_response_stats_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_external_cfgmgmt_response_stats_proto_goTypes,
		DependencyIndexes: file_external_cfgmgmt_response_stats_proto_depIdxs,
		MessageInfos:      file_external_cfgmgmt_response_stats_proto_msgTypes,
	}.Build()
	File_external_cfgmgmt_response_stats_proto = out.File
	file_external_cfgmgmt_response_stats_proto_goTypes = nil
	file_external_cfgmgmt_response_stats_proto_depIdxs = nil
}
