// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/config/filter/http/rbac/v2/rbac.proto

package rbacv2

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	v2 "github.com/envoyproxy/go-control-plane/envoy/config/rbac/v2"
	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)
)

// RBAC filter config.
type RBAC struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Specify the RBAC rules to be applied globally.
	// If absent, no enforcing RBAC policy will be applied.
	Rules *v2.RBAC `protobuf:"bytes,1,opt,name=rules,proto3" json:"rules,omitempty"`
	// Shadow rules are not enforced by the filter (i.e., returning a 403)
	// but will emit stats and logs and can be used for rule testing.
	// If absent, no shadow RBAC policy will be applied.
	ShadowRules   *v2.RBAC `protobuf:"bytes,2,opt,name=shadow_rules,json=shadowRules,proto3" json:"shadow_rules,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RBAC) ProtoMessage() {}

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

func (x *RBAC) GetRules() *v2.RBAC {
	if x != nil {
		return x.Rules
	}
	return nil
}

func (x *RBAC) GetShadowRules() *v2.RBAC {
	if x != nil {
		return x.ShadowRules
	}
	return nil
}

type RBACPerRoute struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Override the global configuration of the filter with this new config.
	// If absent, the global RBAC policy will be disabled for this route.
	Rbac          *RBAC `protobuf:"bytes,2,opt,name=rbac,proto3" json:"rbac,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RBACPerRoute) ProtoMessage() {}

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

func (x *RBACPerRoute) GetRbac() *RBAC {
	if x != nil {
		return x.Rbac
	}
	return nil
}

var File_envoy_config_filter_http_rbac_v2_rbac_proto protoreflect.FileDescriptor

const file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDesc = "" +
	"\n" +
	"+envoy/config/filter/http/rbac/v2/rbac.proto\x12 envoy.config.filter.http.rbac.v2\x1a\x1fenvoy/config/rbac/v2/rbac.proto\x1a\x1eudpa/annotations/migrate.proto\x1a\x1dudpa/annotations/status.proto\"w\n" +
	"\x04RBAC\x120\n" +
	"\x05rules\x18\x01 \x01(\v2\x1a.envoy.config.rbac.v2.RBACR\x05rules\x12=\n" +
	"\fshadow_rules\x18\x02 \x01(\v2\x1a.envoy.config.rbac.v2.RBACR\vshadowRules\"P\n" +
	"\fRBACPerRoute\x12:\n" +
	"\x04rbac\x18\x02 \x01(\v2&.envoy.config.filter.http.rbac.v2.RBACR\x04rbacJ\x04\b\x01\x10\x02B\xc2\x01\xf2\x98\xfe\x8f\x05'\x12%envoy.extensions.filters.http.rbac.v3\xba\x80\xc8\xd1\x06\x02\x10\x01\n" +
	".io.envoyproxy.envoy.config.filter.http.rbac.v2B\tRbacProtoP\x01ZNgithub.com/envoyproxy/go-control-plane/envoy/config/filter/http/rbac/v2;rbacv2b\x06proto3"

var (
	file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDescOnce sync.Once
	file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDescData []byte
)

func file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDescGZIP() []byte {
	file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDescOnce.Do(func() {
		file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDesc), len(file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDesc)))
	})
	return file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDescData
}

var file_envoy_config_filter_http_rbac_v2_rbac_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_envoy_config_filter_http_rbac_v2_rbac_proto_goTypes = []any{
	(*RBAC)(nil),         // 0: envoy.config.filter.http.rbac.v2.RBAC
	(*RBACPerRoute)(nil), // 1: envoy.config.filter.http.rbac.v2.RBACPerRoute
	(*v2.RBAC)(nil),      // 2: envoy.config.rbac.v2.RBAC
}
var file_envoy_config_filter_http_rbac_v2_rbac_proto_depIdxs = []int32{
	2, // 0: envoy.config.filter.http.rbac.v2.RBAC.rules:type_name -> envoy.config.rbac.v2.RBAC
	2, // 1: envoy.config.filter.http.rbac.v2.RBAC.shadow_rules:type_name -> envoy.config.rbac.v2.RBAC
	0, // 2: envoy.config.filter.http.rbac.v2.RBACPerRoute.rbac:type_name -> envoy.config.filter.http.rbac.v2.RBAC
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] 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_envoy_config_filter_http_rbac_v2_rbac_proto_init() }
func file_envoy_config_filter_http_rbac_v2_rbac_proto_init() {
	if File_envoy_config_filter_http_rbac_v2_rbac_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDesc), len(file_envoy_config_filter_http_rbac_v2_rbac_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_config_filter_http_rbac_v2_rbac_proto_goTypes,
		DependencyIndexes: file_envoy_config_filter_http_rbac_v2_rbac_proto_depIdxs,
		MessageInfos:      file_envoy_config_filter_http_rbac_v2_rbac_proto_msgTypes,
	}.Build()
	File_envoy_config_filter_http_rbac_v2_rbac_proto = out.File
	file_envoy_config_filter_http_rbac_v2_rbac_proto_goTypes = nil
	file_envoy_config_filter_http_rbac_v2_rbac_proto_depIdxs = nil
}
