// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/status/v3/csds.proto

package envoy_service_status_v3

import (
	context "context"
	fmt "fmt"
	_ "github.com/cncf/udpa/go/udpa/annotations"
	v31 "github.com/envoyproxy/go-control-plane/envoy/admin/v3"
	v32 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
	v3 "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3"
	proto "github.com/golang/protobuf/proto"
	_ "github.com/golang/protobuf/ptypes/struct"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

type ConfigStatus int32

const (
	ConfigStatus_UNKNOWN  ConfigStatus = 0
	ConfigStatus_SYNCED   ConfigStatus = 1
	ConfigStatus_NOT_SENT ConfigStatus = 2
	ConfigStatus_STALE    ConfigStatus = 3
	ConfigStatus_ERROR    ConfigStatus = 4
)

var ConfigStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "SYNCED",
	2: "NOT_SENT",
	3: "STALE",
	4: "ERROR",
}

var ConfigStatus_value = map[string]int32{
	"UNKNOWN":  0,
	"SYNCED":   1,
	"NOT_SENT": 2,
	"STALE":    3,
	"ERROR":    4,
}

func (x ConfigStatus) String() string {
	return proto.EnumName(ConfigStatus_name, int32(x))
}

func (ConfigStatus) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_d6ae65ba18d04178, []int{0}
}

type ClientStatusRequest struct {
	NodeMatchers         []*v3.NodeMatcher `protobuf:"bytes,1,rep,name=node_matchers,json=nodeMatchers,proto3" json:"node_matchers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (m *ClientStatusRequest) Reset()         { *m = ClientStatusRequest{} }
func (m *ClientStatusRequest) String() string { return proto.CompactTextString(m) }
func (*ClientStatusRequest) ProtoMessage()    {}
func (*ClientStatusRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_d6ae65ba18d04178, []int{0}
}

func (m *ClientStatusRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ClientStatusRequest.Unmarshal(m, b)
}
func (m *ClientStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ClientStatusRequest.Marshal(b, m, deterministic)
}
func (m *ClientStatusRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ClientStatusRequest.Merge(m, src)
}
func (m *ClientStatusRequest) XXX_Size() int {
	return xxx_messageInfo_ClientStatusRequest.Size(m)
}
func (m *ClientStatusRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_ClientStatusRequest.DiscardUnknown(m)
}

var xxx_messageInfo_ClientStatusRequest proto.InternalMessageInfo

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

type PerXdsConfig struct {
	Status ConfigStatus `protobuf:"varint,1,opt,name=status,proto3,enum=envoy.service.status.v3.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"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (m *PerXdsConfig) Reset()         { *m = PerXdsConfig{} }
func (m *PerXdsConfig) String() string { return proto.CompactTextString(m) }
func (*PerXdsConfig) ProtoMessage()    {}
func (*PerXdsConfig) Descriptor() ([]byte, []int) {
	return fileDescriptor_d6ae65ba18d04178, []int{1}
}

func (m *PerXdsConfig) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_PerXdsConfig.Unmarshal(m, b)
}
func (m *PerXdsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_PerXdsConfig.Marshal(b, m, deterministic)
}
func (m *PerXdsConfig) XXX_Merge(src proto.Message) {
	xxx_messageInfo_PerXdsConfig.Merge(m, src)
}
func (m *PerXdsConfig) XXX_Size() int {
	return xxx_messageInfo_PerXdsConfig.Size(m)
}
func (m *PerXdsConfig) XXX_DiscardUnknown() {
	xxx_messageInfo_PerXdsConfig.DiscardUnknown(m)
}

var xxx_messageInfo_PerXdsConfig proto.InternalMessageInfo

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

type isPerXdsConfig_PerXdsConfig interface {
	isPerXdsConfig_PerXdsConfig()
}

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

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

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

type PerXdsConfig_ScopedRouteConfig struct {
	ScopedRouteConfig *v31.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() {}

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

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

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

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

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

// XXX_OneofWrappers is for the internal use of the proto package.
func (*PerXdsConfig) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*PerXdsConfig_ListenerConfig)(nil),
		(*PerXdsConfig_ClusterConfig)(nil),
		(*PerXdsConfig_RouteConfig)(nil),
		(*PerXdsConfig_ScopedRouteConfig)(nil),
	}
}

type ClientConfig struct {
	Node                 *v32.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"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *ClientConfig) Reset()         { *m = ClientConfig{} }
func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
func (*ClientConfig) ProtoMessage()    {}
func (*ClientConfig) Descriptor() ([]byte, []int) {
	return fileDescriptor_d6ae65ba18d04178, []int{2}
}

func (m *ClientConfig) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ClientConfig.Unmarshal(m, b)
}
func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic)
}
func (m *ClientConfig) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ClientConfig.Merge(m, src)
}
func (m *ClientConfig) XXX_Size() int {
	return xxx_messageInfo_ClientConfig.Size(m)
}
func (m *ClientConfig) XXX_DiscardUnknown() {
	xxx_messageInfo_ClientConfig.DiscardUnknown(m)
}

var xxx_messageInfo_ClientConfig proto.InternalMessageInfo

func (m *ClientConfig) GetNode() *v32.Node {
	if m != nil {
		return m.Node
	}
	return nil
}

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

type ClientStatusResponse struct {
	Config               []*ClientConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *ClientStatusResponse) Reset()         { *m = ClientStatusResponse{} }
func (m *ClientStatusResponse) String() string { return proto.CompactTextString(m) }
func (*ClientStatusResponse) ProtoMessage()    {}
func (*ClientStatusResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_d6ae65ba18d04178, []int{3}
}

func (m *ClientStatusResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ClientStatusResponse.Unmarshal(m, b)
}
func (m *ClientStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ClientStatusResponse.Marshal(b, m, deterministic)
}
func (m *ClientStatusResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ClientStatusResponse.Merge(m, src)
}
func (m *ClientStatusResponse) XXX_Size() int {
	return xxx_messageInfo_ClientStatusResponse.Size(m)
}
func (m *ClientStatusResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ClientStatusResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ClientStatusResponse proto.InternalMessageInfo

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

func init() {
	proto.RegisterEnum("envoy.service.status.v3.ConfigStatus", ConfigStatus_name, ConfigStatus_value)
	proto.RegisterType((*ClientStatusRequest)(nil), "envoy.service.status.v3.ClientStatusRequest")
	proto.RegisterType((*PerXdsConfig)(nil), "envoy.service.status.v3.PerXdsConfig")
	proto.RegisterType((*ClientConfig)(nil), "envoy.service.status.v3.ClientConfig")
	proto.RegisterType((*ClientStatusResponse)(nil), "envoy.service.status.v3.ClientStatusResponse")
}

func init() { proto.RegisterFile("envoy/service/status/v3/csds.proto", fileDescriptor_d6ae65ba18d04178) }

var fileDescriptor_d6ae65ba18d04178 = []byte{
	// 727 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x4d, 0x6f, 0xd3, 0x4a,
	0x14, 0xed, 0x24, 0x6d, 0xde, 0xeb, 0x4d, 0x9a, 0x97, 0xba, 0x4f, 0x7a, 0x51, 0x5e, 0x0b, 0xc1,
	0xd0, 0x2a, 0xea, 0x87, 0x8d, 0x92, 0x5d, 0x24, 0x84, 0x68, 0x12, 0x40, 0x6a, 0x71, 0x2b, 0xa7,
	0x88, 0xb2, 0x8a, 0x5c, 0x7b, 0x9a, 0x5a, 0x4a, 0x3c, 0xc6, 0x33, 0x0e, 0xcd, 0x0e, 0xb1, 0xaa,
	0x58, 0xc2, 0x8e, 0x05, 0xff, 0x81, 0x1d, 0x62, 0x8f, 0x84, 0xd8, 0x21, 0xfe, 0x02, 0x3f, 0x04,
	0xcd, 0x47, 0x14, 0x27, 0x34, 0x6a, 0x57, 0xec, 0x66, 0x74, 0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0x60, 0xf9, 0x21, 0x66, 0xee, 0xd9, 0x9f, 0x4b, 0xbc, 0xfd, 0xfa, 0xc7, 0xcf, 0x77, 0xa9,
	0x35, 0xfd, 0x7f, 0xfe, 0x25, 0x7b, 0xa3, 0x4e, 0xd4, 0x5d, 0x81, 0xed, 0x48, 0xb2, 0x80, 0xa4,
	0xeb, 0x68, 0x73, 0xf7, 0xfe, 0xe7, 0x57, 0x5f, 0xbf, 0x67, 0x52, 0x85, 0x14, 0xac, 0xfb, 0x44,
	0x26, 0x0a, 0x23, 0x72, 0x3e, 0x9c, 0x95, 0x73, 0x77, 0xb1, 0x41, 0x3d, 0x7a, 0xc8, 0xbf, 0xd9,
	0x43, 0x74, 0x81, 0xd0, 0x49, 0x46, 0x7c, 0xb9, 0xb5, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf8,
	0xc7, 0x20, 0x98, 0x94, 0x06, 0x00, 0x00,
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// ClientStatusDiscoveryServiceClient is the client API for ClientStatusDiscoveryService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ClientStatusDiscoveryServiceClient interface {
	StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error)
	FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error)
}

type clientStatusDiscoveryServiceClient struct {
	cc *grpc.ClientConn
}

func NewClientStatusDiscoveryServiceClient(cc *grpc.ClientConn) ClientStatusDiscoveryServiceClient {
	return &clientStatusDiscoveryServiceClient{cc}
}

func (c *clientStatusDiscoveryServiceClient) StreamClientStatus(ctx context.Context, opts ...grpc.CallOption) (ClientStatusDiscoveryService_StreamClientStatusClient, error) {
	stream, err := c.cc.NewStream(ctx, &_ClientStatusDiscoveryService_serviceDesc.Streams[0], "/envoy.service.status.v3.ClientStatusDiscoveryService/StreamClientStatus", opts...)
	if err != nil {
		return nil, err
	}
	x := &clientStatusDiscoveryServiceStreamClientStatusClient{stream}
	return x, nil
}

type ClientStatusDiscoveryService_StreamClientStatusClient interface {
	Send(*ClientStatusRequest) error
	Recv() (*ClientStatusResponse, error)
	grpc.ClientStream
}

type clientStatusDiscoveryServiceStreamClientStatusClient struct {
	grpc.ClientStream
}

func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Send(m *ClientStatusRequest) error {
	return x.ClientStream.SendMsg(m)
}

func (x *clientStatusDiscoveryServiceStreamClientStatusClient) Recv() (*ClientStatusResponse, error) {
	m := new(ClientStatusResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

func (c *clientStatusDiscoveryServiceClient) FetchClientStatus(ctx context.Context, in *ClientStatusRequest, opts ...grpc.CallOption) (*ClientStatusResponse, error) {
	out := new(ClientStatusResponse)
	err := c.cc.Invoke(ctx, "/envoy.service.status.v3.ClientStatusDiscoveryService/FetchClientStatus", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// ClientStatusDiscoveryServiceServer is the server API for ClientStatusDiscoveryService service.
type ClientStatusDiscoveryServiceServer interface {
	StreamClientStatus(ClientStatusDiscoveryService_StreamClientStatusServer) error
	FetchClientStatus(context.Context, *ClientStatusRequest) (*ClientStatusResponse, error)
}

// UnimplementedClientStatusDiscoveryServiceServer can be embedded to have forward compatible implementations.
type UnimplementedClientStatusDiscoveryServiceServer struct {
}

func (*UnimplementedClientStatusDiscoveryServiceServer) StreamClientStatus(srv ClientStatusDiscoveryService_StreamClientStatusServer) error {
	return status.Errorf(codes.Unimplemented, "method StreamClientStatus not implemented")
}
func (*UnimplementedClientStatusDiscoveryServiceServer) FetchClientStatus(ctx context.Context, req *ClientStatusRequest) (*ClientStatusResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method FetchClientStatus not implemented")
}

func RegisterClientStatusDiscoveryServiceServer(s *grpc.Server, srv ClientStatusDiscoveryServiceServer) {
	s.RegisterService(&_ClientStatusDiscoveryService_serviceDesc, srv)
}

func _ClientStatusDiscoveryService_StreamClientStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
	return srv.(ClientStatusDiscoveryServiceServer).StreamClientStatus(&clientStatusDiscoveryServiceStreamClientStatusServer{stream})
}

type ClientStatusDiscoveryService_StreamClientStatusServer interface {
	Send(*ClientStatusResponse) error
	Recv() (*ClientStatusRequest, error)
	grpc.ServerStream
}

type clientStatusDiscoveryServiceStreamClientStatusServer struct {
	grpc.ServerStream
}

func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Send(m *ClientStatusResponse) error {
	return x.ServerStream.SendMsg(m)
}

func (x *clientStatusDiscoveryServiceStreamClientStatusServer) Recv() (*ClientStatusRequest, error) {
	m := new(ClientStatusRequest)
	if err := x.ServerStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

func _ClientStatusDiscoveryService_FetchClientStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ClientStatusRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/envoy.service.status.v3.ClientStatusDiscoveryService/FetchClientStatus",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ClientStatusDiscoveryServiceServer).FetchClientStatus(ctx, req.(*ClientStatusRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _ClientStatusDiscoveryService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "envoy.service.status.v3.ClientStatusDiscoveryService",
	HandlerType: (*ClientStatusDiscoveryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FetchClientStatus",
			Handler:    _ClientStatusDiscoveryService_FetchClientStatus_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamClientStatus",
			Handler:       _ClientStatusDiscoveryService_StreamClientStatus_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "envoy/service/status/v3/csds.proto",
}
