// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/service/status/v2/csds.proto

package statusv2

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	v2alpha "github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha"
	core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
	matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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)
)

// Status of a config.
type ConfigStatus int32

const (
	// Status info is not available/unknown.
	ConfigStatus_UNKNOWN ConfigStatus = 0
	// Management server has sent the config to client and received ACK.
	ConfigStatus_SYNCED ConfigStatus = 1
	// Config is not sent.
	ConfigStatus_NOT_SENT ConfigStatus = 2
	// Management server has sent the config to client but hasn’t received
	// ACK/NACK.
	ConfigStatus_STALE ConfigStatus = 3
	// Management server has sent the config to client but received NACK.
	ConfigStatus_ERROR ConfigStatus = 4
)

// Enum value maps for ConfigStatus.
var (
	ConfigStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SYNCED",
		2: "NOT_SENT",
		3: "STALE",
		4: "ERROR",
	}
	ConfigStatus_value = map[string]int32{
		"UNKNOWN":  0,
		"SYNCED":   1,
		"NOT_SENT": 2,
		"STALE":    3,
		"ERROR":    4,
	}
)

func (x ConfigStatus) Enum() *ConfigStatus {
	p := new(ConfigStatus)
	*p = x
	return p
}

func (x ConfigStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ConfigStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_envoy_service_status_v2_csds_proto_enumTypes[0].Descriptor()
}

func (ConfigStatus) Type() protoreflect.EnumType {
	return &file_envoy_service_status_v2_csds_proto_enumTypes[0]
}

func (x ConfigStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ConfigStatus.Descriptor instead.
func (ConfigStatus) EnumDescriptor() ([]byte, []int) {
	return file_envoy_service_status_v2_csds_proto_rawDescGZIP(), []int{0}
}

// Request for client status of clients identified by a list of NodeMatchers.
type ClientStatusRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Management server can use these match criteria to identify clients.
	// The match follows OR semantics.
	NodeMatchers  []*matcher.NodeMatcher `protobuf:"bytes,1,rep,name=node_matchers,json=nodeMatchers,proto3" json:"node_matchers,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ClientStatusRequest) ProtoMessage() {}

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

func (x *ClientStatusRequest) GetNodeMatchers() []*matcher.NodeMatcher {
	if x != nil {
		return x.NodeMatchers
	}
	return nil
}

// Detailed config (per xDS) with status.
// [#next-free-field: 6]
type PerXdsConfig struct {
	state  protoimpl.MessageState `protogen:"open.v1"`
	Status ConfigStatus           `protobuf:"varint,1,opt,name=status,proto3,enum=envoy.service.status.v2.ConfigStatus" json:"status,omitempty"`
	// Types that are valid to be assigned to PerXdsConfig:
	//
	//	*PerXdsConfig_ListenerConfig
	//	*PerXdsConfig_ClusterConfig
	//	*PerXdsConfig_RouteConfig
	//	*PerXdsConfig_ScopedRouteConfig
	PerXdsConfig  isPerXdsConfig_PerXdsConfig `protobuf_oneof:"per_xds_config"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PerXdsConfig) ProtoMessage() {}

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

func (x *PerXdsConfig) GetStatus() ConfigStatus {
	if x != nil {
		return x.Status
	}
	return ConfigStatus_UNKNOWN
}

func (x *PerXdsConfig) GetPerXdsConfig() isPerXdsConfig_PerXdsConfig {
	if x != nil {
		return x.PerXdsConfig
	}
	return nil
}

func (x *PerXdsConfig) GetListenerConfig() *v2alpha.ListenersConfigDump {
	if x != nil {
		if x, ok := x.PerXdsConfig.(*PerXdsConfig_ListenerConfig); ok {
			return x.ListenerConfig
		}
	}
	return nil
}

func (x *PerXdsConfig) GetClusterConfig() *v2alpha.ClustersConfigDump {
	if x != nil {
		if x, ok := x.PerXdsConfig.(*PerXdsConfig_ClusterConfig); ok {
			return x.ClusterConfig
		}
	}
	return nil
}

func (x *PerXdsConfig) GetRouteConfig() *v2alpha.RoutesConfigDump {
	if x != nil {
		if x, ok := x.PerXdsConfig.(*PerXdsConfig_RouteConfig); ok {
			return x.RouteConfig
		}
	}
	return nil
}

func (x *PerXdsConfig) GetScopedRouteConfig() *v2alpha.ScopedRoutesConfigDump {
	if x != nil {
		if x, ok := x.PerXdsConfig.(*PerXdsConfig_ScopedRouteConfig); ok {
			return x.ScopedRouteConfig
		}
	}
	return nil
}

type isPerXdsConfig_PerXdsConfig interface {
	isPerXdsConfig_PerXdsConfig()
}

type PerXdsConfig_ListenerConfig struct {
	ListenerConfig *v2alpha.ListenersConfigDump `protobuf:"bytes,2,opt,name=listener_config,json=listenerConfig,proto3,oneof"`
}

type PerXdsConfig_ClusterConfig struct {
	ClusterConfig *v2alpha.ClustersConfigDump `protobuf:"bytes,3,opt,name=cluster_config,json=clusterConfig,proto3,oneof"`
}

type PerXdsConfig_RouteConfig struct {
	RouteConfig *v2alpha.RoutesConfigDump `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3,oneof"`
}

type PerXdsConfig_ScopedRouteConfig struct {
	ScopedRouteConfig *v2alpha.ScopedRoutesConfigDump `protobuf:"bytes,5,opt,name=scoped_route_config,json=scopedRouteConfig,proto3,oneof"`
}

func (*PerXdsConfig_ListenerConfig) isPerXdsConfig_PerXdsConfig() {}

func (*PerXdsConfig_ClusterConfig) isPerXdsConfig_PerXdsConfig() {}

func (*PerXdsConfig_RouteConfig) isPerXdsConfig_PerXdsConfig() {}

func (*PerXdsConfig_ScopedRouteConfig) isPerXdsConfig_PerXdsConfig() {}

// All xds configs for a particular client.
type ClientConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Node for a particular client.
	Node          *core.Node      `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	XdsConfig     []*PerXdsConfig `protobuf:"bytes,2,rep,name=xds_config,json=xdsConfig,proto3" json:"xds_config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ClientConfig) ProtoMessage() {}

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

func (x *ClientConfig) GetNode() *core.Node {
	if x != nil {
		return x.Node
	}
	return nil
}

func (x *ClientConfig) GetXdsConfig() []*PerXdsConfig {
	if x != nil {
		return x.XdsConfig
	}
	return nil
}

type ClientStatusResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Client configs for the clients specified in the ClientStatusRequest.
	Config        []*ClientConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ClientStatusResponse) ProtoMessage() {}

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

func (x *ClientStatusResponse) GetConfig() []*ClientConfig {
	if x != nil {
		return x.Config
	}
	return nil
}

var File_envoy_service_status_v2_csds_proto protoreflect.FileDescriptor

const file_envoy_service_status_v2_csds_proto_rawDesc = "" +
	"\n" +
	"\"envoy/service/status/v2/csds.proto\x12\x17envoy.service.status.v2\x1a%envoy/admin/v2alpha/config_dump.proto\x1a\x1cenvoy/api/v2/core/base.proto\x1a\x1denvoy/type/matcher/node.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1dudpa/annotations/status.proto\"[\n" +
	"\x13ClientStatusRequest\x12D\n" +
	"\rnode_matchers\x18\x01 \x03(\v2\x1f.envoy.type.matcher.NodeMatcherR\fnodeMatchers\"\xb1\x03\n" +
	"\fPerXdsConfig\x12=\n" +
	"\x06status\x18\x01 \x01(\x0e2%.envoy.service.status.v2.ConfigStatusR\x06status\x12S\n" +
	"\x0flistener_config\x18\x02 \x01(\v2(.envoy.admin.v2alpha.ListenersConfigDumpH\x00R\x0elistenerConfig\x12P\n" +
	"\x0ecluster_config\x18\x03 \x01(\v2'.envoy.admin.v2alpha.ClustersConfigDumpH\x00R\rclusterConfig\x12J\n" +
	"\froute_config\x18\x04 \x01(\v2%.envoy.admin.v2alpha.RoutesConfigDumpH\x00R\vrouteConfig\x12]\n" +
	"\x13scoped_route_config\x18\x05 \x01(\v2+.envoy.admin.v2alpha.ScopedRoutesConfigDumpH\x00R\x11scopedRouteConfigB\x10\n" +
	"\x0eper_xds_config\"\x81\x01\n" +
	"\fClientConfig\x12+\n" +
	"\x04node\x18\x01 \x01(\v2\x17.envoy.api.v2.core.NodeR\x04node\x12D\n" +
	"\n" +
	"xds_config\x18\x02 \x03(\v2%.envoy.service.status.v2.PerXdsConfigR\txdsConfig\"U\n" +
	"\x14ClientStatusResponse\x12=\n" +
	"\x06config\x18\x01 \x03(\v2%.envoy.service.status.v2.ClientConfigR\x06config*K\n" +
	"\fConfigStatus\x12\v\n" +
	"\aUNKNOWN\x10\x00\x12\n" +
	"\n" +
	"\x06SYNCED\x10\x01\x12\f\n" +
	"\bNOT_SENT\x10\x02\x12\t\n" +
	"\x05STALE\x10\x03\x12\t\n" +
	"\x05ERROR\x10\x042\xb2\x02\n" +
	"\x1cClientStatusDiscoveryService\x12w\n" +
	"\x12StreamClientStatus\x12,.envoy.service.status.v2.ClientStatusRequest\x1a-.envoy.service.status.v2.ClientStatusResponse\"\x00(\x010\x01\x12\x98\x01\n" +
	"\x11FetchClientStatus\x12,.envoy.service.status.v2.ClientStatusRequest\x1a-.envoy.service.status.v2.ClientStatusResponse\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/v2/discovery:client_statusB\x85\x01\xba\x80\xc8\xd1\x06\x02\x10\x01\n" +
	"%io.envoyproxy.envoy.service.status.v2B\tCsdsProtoP\x01ZGgithub.com/envoyproxy/go-control-plane/envoy/service/status/v2;statusv2b\x06proto3"

var (
	file_envoy_service_status_v2_csds_proto_rawDescOnce sync.Once
	file_envoy_service_status_v2_csds_proto_rawDescData []byte
)

func file_envoy_service_status_v2_csds_proto_rawDescGZIP() []byte {
	file_envoy_service_status_v2_csds_proto_rawDescOnce.Do(func() {
		file_envoy_service_status_v2_csds_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_service_status_v2_csds_proto_rawDesc), len(file_envoy_service_status_v2_csds_proto_rawDesc)))
	})
	return file_envoy_service_status_v2_csds_proto_rawDescData
}

var file_envoy_service_status_v2_csds_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_envoy_service_status_v2_csds_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_envoy_service_status_v2_csds_proto_goTypes = []any{
	(ConfigStatus)(0),                      // 0: envoy.service.status.v2.ConfigStatus
	(*ClientStatusRequest)(nil),            // 1: envoy.service.status.v2.ClientStatusRequest
	(*PerXdsConfig)(nil),                   // 2: envoy.service.status.v2.PerXdsConfig
	(*ClientConfig)(nil),                   // 3: envoy.service.status.v2.ClientConfig
	(*ClientStatusResponse)(nil),           // 4: envoy.service.status.v2.ClientStatusResponse
	(*matcher.NodeMatcher)(nil),            // 5: envoy.type.matcher.NodeMatcher
	(*v2alpha.ListenersConfigDump)(nil),    // 6: envoy.admin.v2alpha.ListenersConfigDump
	(*v2alpha.ClustersConfigDump)(nil),     // 7: envoy.admin.v2alpha.ClustersConfigDump
	(*v2alpha.RoutesConfigDump)(nil),       // 8: envoy.admin.v2alpha.RoutesConfigDump
	(*v2alpha.ScopedRoutesConfigDump)(nil), // 9: envoy.admin.v2alpha.ScopedRoutesConfigDump
	(*core.Node)(nil),                      // 10: envoy.api.v2.core.Node
}
var file_envoy_service_status_v2_csds_proto_depIdxs = []int32{
	5,  // 0: envoy.service.status.v2.ClientStatusRequest.node_matchers:type_name -> envoy.type.matcher.NodeMatcher
	0,  // 1: envoy.service.status.v2.PerXdsConfig.status:type_name -> envoy.service.status.v2.ConfigStatus
	6,  // 2: envoy.service.status.v2.PerXdsConfig.listener_config:type_name -> envoy.admin.v2alpha.ListenersConfigDump
	7,  // 3: envoy.service.status.v2.PerXdsConfig.cluster_config:type_name -> envoy.admin.v2alpha.ClustersConfigDump
	8,  // 4: envoy.service.status.v2.PerXdsConfig.route_config:type_name -> envoy.admin.v2alpha.RoutesConfigDump
	9,  // 5: envoy.service.status.v2.PerXdsConfig.scoped_route_config:type_name -> envoy.admin.v2alpha.ScopedRoutesConfigDump
	10, // 6: envoy.service.status.v2.ClientConfig.node:type_name -> envoy.api.v2.core.Node
	2,  // 7: envoy.service.status.v2.ClientConfig.xds_config:type_name -> envoy.service.status.v2.PerXdsConfig
	3,  // 8: envoy.service.status.v2.ClientStatusResponse.config:type_name -> envoy.service.status.v2.ClientConfig
	1,  // 9: envoy.service.status.v2.ClientStatusDiscoveryService.StreamClientStatus:input_type -> envoy.service.status.v2.ClientStatusRequest
	1,  // 10: envoy.service.status.v2.ClientStatusDiscoveryService.FetchClientStatus:input_type -> envoy.service.status.v2.ClientStatusRequest
	4,  // 11: envoy.service.status.v2.ClientStatusDiscoveryService.StreamClientStatus:output_type -> envoy.service.status.v2.ClientStatusResponse
	4,  // 12: envoy.service.status.v2.ClientStatusDiscoveryService.FetchClientStatus:output_type -> envoy.service.status.v2.ClientStatusResponse
	11, // [11:13] is the sub-list for method output_type
	9,  // [9:11] is the sub-list for method input_type
	9,  // [9:9] is the sub-list for extension type_name
	9,  // [9:9] is the sub-list for extension extendee
	0,  // [0:9] is the sub-list for field type_name
}

func init() { file_envoy_service_status_v2_csds_proto_init() }
func file_envoy_service_status_v2_csds_proto_init() {
	if File_envoy_service_status_v2_csds_proto != nil {
		return
	}
	file_envoy_service_status_v2_csds_proto_msgTypes[1].OneofWrappers = []any{
		(*PerXdsConfig_ListenerConfig)(nil),
		(*PerXdsConfig_ClusterConfig)(nil),
		(*PerXdsConfig_RouteConfig)(nil),
		(*PerXdsConfig_ScopedRouteConfig)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_service_status_v2_csds_proto_rawDesc), len(file_envoy_service_status_v2_csds_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_envoy_service_status_v2_csds_proto_goTypes,
		DependencyIndexes: file_envoy_service_status_v2_csds_proto_depIdxs,
		EnumInfos:         file_envoy_service_status_v2_csds_proto_enumTypes,
		MessageInfos:      file_envoy_service_status_v2_csds_proto_msgTypes,
	}.Build()
	File_envoy_service_status_v2_csds_proto = out.File
	file_envoy_service_status_v2_csds_proto_goTypes = nil
	file_envoy_service_status_v2_csds_proto_depIdxs = nil
}
