// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v4.25.2
// source: ui/status.proto

package ui

import (
	observer "github.com/cilium/cilium/api/v1/observer"
	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 GetStatusRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetStatusRequest) ProtoMessage() {}

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

type GetStatusResponse struct {
	state         protoimpl.MessageState         `protogen:"open.v1"`
	Nodes         *observer.GetNodesResponse     `protobuf:"bytes,1,opt,name=nodes,proto3" json:"nodes,omitempty"`
	ServerStatus  *observer.ServerStatusResponse `protobuf:"bytes,2,opt,name=server_status,json=serverStatus,proto3" json:"server_status,omitempty"`
	Versions      []*DeployedComponent           `protobuf:"bytes,3,rep,name=versions,proto3" json:"versions,omitempty"`
	Flows         *FlowStats                     `protobuf:"bytes,4,opt,name=flows,proto3" json:"flows,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetStatusResponse) ProtoMessage() {}

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

func (x *GetStatusResponse) GetNodes() *observer.GetNodesResponse {
	if x != nil {
		return x.Nodes
	}
	return nil
}

func (x *GetStatusResponse) GetServerStatus() *observer.ServerStatusResponse {
	if x != nil {
		return x.ServerStatus
	}
	return nil
}

func (x *GetStatusResponse) GetVersions() []*DeployedComponent {
	if x != nil {
		return x.Versions
	}
	return nil
}

func (x *GetStatusResponse) GetFlows() *FlowStats {
	if x != nil {
		return x.Flows
	}
	return nil
}

type NodeStatus struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IsAvailable   bool                   `protobuf:"varint,2,opt,name=is_available,json=isAvailable,proto3" json:"is_available,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*NodeStatus) ProtoMessage() {}

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

func (x *NodeStatus) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *NodeStatus) GetIsAvailable() bool {
	if x != nil {
		return x.IsAvailable
	}
	return false
}

type DeployedComponent struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version       string                 `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeployedComponent) ProtoMessage() {}

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

func (x *DeployedComponent) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *DeployedComponent) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

type FlowStats struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	PerSecond     float32                `protobuf:"fixed32,1,opt,name=per_second,json=perSecond,proto3" json:"per_second,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *FlowStats) Reset() {
	*x = FlowStats{}
	mi := &file_ui_status_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*FlowStats) ProtoMessage() {}

func (x *FlowStats) ProtoReflect() protoreflect.Message {
	mi := &file_ui_status_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 FlowStats.ProtoReflect.Descriptor instead.
func (*FlowStats) Descriptor() ([]byte, []int) {
	return file_ui_status_proto_rawDescGZIP(), []int{4}
}

func (x *FlowStats) GetPerSecond() float32 {
	if x != nil {
		return x.PerSecond
	}
	return 0
}

var File_ui_status_proto protoreflect.FileDescriptor

const file_ui_status_proto_rawDesc = "" +
	"\n" +
	"\x0fui/status.proto\x12\x02ui\x1a\x17observer/observer.proto\"\x12\n" +
	"\x10GetStatusRequest\"\xe2\x01\n" +
	"\x11GetStatusResponse\x120\n" +
	"\x05nodes\x18\x01 \x01(\v2\x1a.observer.GetNodesResponseR\x05nodes\x12C\n" +
	"\rserver_status\x18\x02 \x01(\v2\x1e.observer.ServerStatusResponseR\fserverStatus\x121\n" +
	"\bversions\x18\x03 \x03(\v2\x15.ui.DeployedComponentR\bversions\x12#\n" +
	"\x05flows\x18\x04 \x01(\v2\r.ui.FlowStatsR\x05flows\"C\n" +
	"\n" +
	"NodeStatus\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12!\n" +
	"\fis_available\x18\x02 \x01(\bR\visAvailable\"A\n" +
	"\x11DeployedComponent\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
	"\aversion\x18\x02 \x01(\tR\aversion\"*\n" +
	"\tFlowStats\x12\x1d\n" +
	"\n" +
	"per_second\x18\x01 \x01(\x02R\tperSecondb\x06proto3"

var (
	file_ui_status_proto_rawDescOnce sync.Once
	file_ui_status_proto_rawDescData []byte
)

func file_ui_status_proto_rawDescGZIP() []byte {
	file_ui_status_proto_rawDescOnce.Do(func() {
		file_ui_status_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ui_status_proto_rawDesc), len(file_ui_status_proto_rawDesc)))
	})
	return file_ui_status_proto_rawDescData
}

var file_ui_status_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_ui_status_proto_goTypes = []any{
	(*GetStatusRequest)(nil),              // 0: ui.GetStatusRequest
	(*GetStatusResponse)(nil),             // 1: ui.GetStatusResponse
	(*NodeStatus)(nil),                    // 2: ui.NodeStatus
	(*DeployedComponent)(nil),             // 3: ui.DeployedComponent
	(*FlowStats)(nil),                     // 4: ui.FlowStats
	(*observer.GetNodesResponse)(nil),     // 5: observer.GetNodesResponse
	(*observer.ServerStatusResponse)(nil), // 6: observer.ServerStatusResponse
}
var file_ui_status_proto_depIdxs = []int32{
	5, // 0: ui.GetStatusResponse.nodes:type_name -> observer.GetNodesResponse
	6, // 1: ui.GetStatusResponse.server_status:type_name -> observer.ServerStatusResponse
	3, // 2: ui.GetStatusResponse.versions:type_name -> ui.DeployedComponent
	4, // 3: ui.GetStatusResponse.flows:type_name -> ui.FlowStats
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_ui_status_proto_init() }
func file_ui_status_proto_init() {
	if File_ui_status_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ui_status_proto_rawDesc), len(file_ui_status_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_ui_status_proto_goTypes,
		DependencyIndexes: file_ui_status_proto_depIdxs,
		MessageInfos:      file_ui_status_proto_msgTypes,
	}.Build()
	File_ui_status_proto = out.File
	file_ui_status_proto_goTypes = nil
	file_ui_status_proto_depIdxs = nil
}
