// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.9
// 	protoc        v6.31.1
// source: github.com/buildbarn/bb-storage/pkg/proto/configuration/jwt/jwt.proto

package jwt

import (
	eviction "github.com/buildbarn/bb-storage/pkg/proto/configuration/eviction"
	jmespath "github.com/buildbarn/bb-storage/pkg/proto/configuration/jmespath"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	structpb "google.golang.org/protobuf/types/known/structpb"
	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 AuthorizationHeaderParserConfiguration struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Jwks:
	//
	//	*AuthorizationHeaderParserConfiguration_JwksInline
	//	*AuthorizationHeaderParserConfiguration_JwksFile
	Jwks                                 isAuthorizationHeaderParserConfiguration_Jwks `protobuf_oneof:"jwks"`
	MaximumCacheSize                     int32                                         `protobuf:"varint,3,opt,name=maximum_cache_size,json=maximumCacheSize,proto3" json:"maximum_cache_size,omitempty"`
	CacheReplacementPolicy               eviction.CacheReplacementPolicy               `protobuf:"varint,4,opt,name=cache_replacement_policy,json=cacheReplacementPolicy,proto3,enum=buildbarn.configuration.eviction.CacheReplacementPolicy" json:"cache_replacement_policy,omitempty"`
	ClaimsValidationJmespathExpression   *jmespath.Expression                          `protobuf:"bytes,5,opt,name=claims_validation_jmespath_expression,json=claimsValidationJmespathExpression,proto3" json:"claims_validation_jmespath_expression,omitempty"`
	MetadataExtractionJmespathExpression *jmespath.Expression                          `protobuf:"bytes,6,opt,name=metadata_extraction_jmespath_expression,json=metadataExtractionJmespathExpression,proto3" json:"metadata_extraction_jmespath_expression,omitempty"`
	unknownFields                        protoimpl.UnknownFields
	sizeCache                            protoimpl.SizeCache
}

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

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

func (*AuthorizationHeaderParserConfiguration) ProtoMessage() {}

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

func (x *AuthorizationHeaderParserConfiguration) GetJwks() isAuthorizationHeaderParserConfiguration_Jwks {
	if x != nil {
		return x.Jwks
	}
	return nil
}

func (x *AuthorizationHeaderParserConfiguration) GetJwksInline() *structpb.Struct {
	if x != nil {
		if x, ok := x.Jwks.(*AuthorizationHeaderParserConfiguration_JwksInline); ok {
			return x.JwksInline
		}
	}
	return nil
}

func (x *AuthorizationHeaderParserConfiguration) GetJwksFile() string {
	if x != nil {
		if x, ok := x.Jwks.(*AuthorizationHeaderParserConfiguration_JwksFile); ok {
			return x.JwksFile
		}
	}
	return ""
}

func (x *AuthorizationHeaderParserConfiguration) GetMaximumCacheSize() int32 {
	if x != nil {
		return x.MaximumCacheSize
	}
	return 0
}

func (x *AuthorizationHeaderParserConfiguration) GetCacheReplacementPolicy() eviction.CacheReplacementPolicy {
	if x != nil {
		return x.CacheReplacementPolicy
	}
	return eviction.CacheReplacementPolicy(0)
}

func (x *AuthorizationHeaderParserConfiguration) GetClaimsValidationJmespathExpression() *jmespath.Expression {
	if x != nil {
		return x.ClaimsValidationJmespathExpression
	}
	return nil
}

func (x *AuthorizationHeaderParserConfiguration) GetMetadataExtractionJmespathExpression() *jmespath.Expression {
	if x != nil {
		return x.MetadataExtractionJmespathExpression
	}
	return nil
}

type isAuthorizationHeaderParserConfiguration_Jwks interface {
	isAuthorizationHeaderParserConfiguration_Jwks()
}

type AuthorizationHeaderParserConfiguration_JwksInline struct {
	JwksInline *structpb.Struct `protobuf:"bytes,7,opt,name=jwks_inline,json=jwksInline,proto3,oneof"`
}

type AuthorizationHeaderParserConfiguration_JwksFile struct {
	JwksFile string `protobuf:"bytes,8,opt,name=jwks_file,json=jwksFile,proto3,oneof"`
}

func (*AuthorizationHeaderParserConfiguration_JwksInline) isAuthorizationHeaderParserConfiguration_Jwks() {
}

func (*AuthorizationHeaderParserConfiguration_JwksFile) isAuthorizationHeaderParserConfiguration_Jwks() {
}

var File_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto protoreflect.FileDescriptor

const file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDesc = "" +
	"\n" +
	"Egithub.com/buildbarn/bb-storage/pkg/proto/configuration/jwt/jwt.proto\x12\x1bbuildbarn.configuration.jwt\x1aOgithub.com/buildbarn/bb-storage/pkg/proto/configuration/eviction/eviction.proto\x1aOgithub.com/buildbarn/bb-storage/pkg/proto/configuration/jmespath/jmespath.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xc0\x04\n" +
	"&AuthorizationHeaderParserConfiguration\x12:\n" +
	"\vjwks_inline\x18\a \x01(\v2\x17.google.protobuf.StructH\x00R\n" +
	"jwksInline\x12\x1d\n" +
	"\tjwks_file\x18\b \x01(\tH\x00R\bjwksFile\x12,\n" +
	"\x12maximum_cache_size\x18\x03 \x01(\x05R\x10maximumCacheSize\x12r\n" +
	"\x18cache_replacement_policy\x18\x04 \x01(\x0e28.buildbarn.configuration.eviction.CacheReplacementPolicyR\x16cacheReplacementPolicy\x12\x7f\n" +
	"%claims_validation_jmespath_expression\x18\x05 \x01(\v2,.buildbarn.configuration.jmespath.ExpressionR\"claimsValidationJmespathExpression\x12\x83\x01\n" +
	"'metadata_extraction_jmespath_expression\x18\x06 \x01(\v2,.buildbarn.configuration.jmespath.ExpressionR$metadataExtractionJmespathExpressionB\x06\n" +
	"\x04jwksJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03B=Z;github.com/buildbarn/bb-storage/pkg/proto/configuration/jwtb\x06proto3"

var (
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDescOnce sync.Once
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDescData []byte
)

func file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDescGZIP() []byte {
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDescOnce.Do(func() {
		file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDesc)))
	})
	return file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDescData
}

var file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_goTypes = []any{
	(*AuthorizationHeaderParserConfiguration)(nil), // 0: buildbarn.configuration.jwt.AuthorizationHeaderParserConfiguration
	(*structpb.Struct)(nil),                        // 1: google.protobuf.Struct
	(eviction.CacheReplacementPolicy)(0),           // 2: buildbarn.configuration.eviction.CacheReplacementPolicy
	(*jmespath.Expression)(nil),                    // 3: buildbarn.configuration.jmespath.Expression
}
var file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_depIdxs = []int32{
	1, // 0: buildbarn.configuration.jwt.AuthorizationHeaderParserConfiguration.jwks_inline:type_name -> google.protobuf.Struct
	2, // 1: buildbarn.configuration.jwt.AuthorizationHeaderParserConfiguration.cache_replacement_policy:type_name -> buildbarn.configuration.eviction.CacheReplacementPolicy
	3, // 2: buildbarn.configuration.jwt.AuthorizationHeaderParserConfiguration.claims_validation_jmespath_expression:type_name -> buildbarn.configuration.jmespath.Expression
	3, // 3: buildbarn.configuration.jwt.AuthorizationHeaderParserConfiguration.metadata_extraction_jmespath_expression:type_name -> buildbarn.configuration.jmespath.Expression
	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_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_init() }
func file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_init() {
	if File_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto != nil {
		return
	}
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_msgTypes[0].OneofWrappers = []any{
		(*AuthorizationHeaderParserConfiguration_JwksInline)(nil),
		(*AuthorizationHeaderParserConfiguration_JwksFile)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_goTypes,
		DependencyIndexes: file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_depIdxs,
		MessageInfos:      file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_msgTypes,
	}.Build()
	File_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto = out.File
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_goTypes = nil
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_jwt_jwt_proto_depIdxs = nil
}
