// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.3
// source: internal/module/kubernetes_api/kubernetes_api.proto

package kubernetes_api

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

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 ImpersonationConfig struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Username      string                 `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Groups        []string               `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
	Uid           string                 `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
	Extra         []*ExtraKeyVal         `protobuf:"bytes,4,rep,name=extra,proto3" json:"extra,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ImpersonationConfig) ProtoMessage() {}

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

func (x *ImpersonationConfig) GetUsername() string {
	if x != nil {
		return x.Username
	}
	return ""
}

func (x *ImpersonationConfig) GetGroups() []string {
	if x != nil {
		return x.Groups
	}
	return nil
}

func (x *ImpersonationConfig) GetUid() string {
	if x != nil {
		return x.Uid
	}
	return ""
}

func (x *ImpersonationConfig) GetExtra() []*ExtraKeyVal {
	if x != nil {
		return x.Extra
	}
	return nil
}

type ExtraKeyVal struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Key           string                 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Val           []string               `protobuf:"bytes,2,rep,name=val,proto3" json:"val,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ExtraKeyVal) ProtoMessage() {}

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

func (x *ExtraKeyVal) GetKey() string {
	if x != nil {
		return x.Key
	}
	return ""
}

func (x *ExtraKeyVal) GetVal() []string {
	if x != nil {
		return x.Val
	}
	return nil
}

var File_internal_module_kubernetes_api_kubernetes_api_proto protoreflect.FileDescriptor

const file_internal_module_kubernetes_api_kubernetes_api_proto_rawDesc = "" +
	"\n" +
	"3internal/module/kubernetes_api/kubernetes_api.proto\x12\x1bgitlab.agent.kubernetes_api\x1a\x1bbuf/validate/validate.proto\"\xb2\x01\n" +
	"\x13ImpersonationConfig\x12#\n" +
	"\busername\x18\x01 \x01(\tB\a\xbaH\x04r\x02 \x01R\busername\x12$\n" +
	"\x06groups\x18\x02 \x03(\tB\f\xbaH\t\x92\x01\x06\"\x04r\x02 \x01R\x06groups\x12\x10\n" +
	"\x03uid\x18\x03 \x01(\tR\x03uid\x12>\n" +
	"\x05extra\x18\x04 \x03(\v2(.gitlab.agent.kubernetes_api.ExtraKeyValR\x05extra\"J\n" +
	"\vExtraKeyVal\x12\x19\n" +
	"\x03key\x18\x01 \x01(\tB\a\xbaH\x04r\x02 \x01R\x03key\x12 \n" +
	"\x03val\x18\x02 \x03(\tB\x0e\xbaH\v\x92\x01\b\b\x01\"\x04r\x02 \x01R\x03valB[ZYgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/kubernetes_apib\x06proto3"

var (
	file_internal_module_kubernetes_api_kubernetes_api_proto_rawDescOnce sync.Once
	file_internal_module_kubernetes_api_kubernetes_api_proto_rawDescData []byte
)

func file_internal_module_kubernetes_api_kubernetes_api_proto_rawDescGZIP() []byte {
	file_internal_module_kubernetes_api_kubernetes_api_proto_rawDescOnce.Do(func() {
		file_internal_module_kubernetes_api_kubernetes_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_module_kubernetes_api_kubernetes_api_proto_rawDesc), len(file_internal_module_kubernetes_api_kubernetes_api_proto_rawDesc)))
	})
	return file_internal_module_kubernetes_api_kubernetes_api_proto_rawDescData
}

var file_internal_module_kubernetes_api_kubernetes_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_module_kubernetes_api_kubernetes_api_proto_goTypes = []any{
	(*ImpersonationConfig)(nil), // 0: gitlab.agent.kubernetes_api.ImpersonationConfig
	(*ExtraKeyVal)(nil),         // 1: gitlab.agent.kubernetes_api.ExtraKeyVal
}
var file_internal_module_kubernetes_api_kubernetes_api_proto_depIdxs = []int32{
	1, // 0: gitlab.agent.kubernetes_api.ImpersonationConfig.extra:type_name -> gitlab.agent.kubernetes_api.ExtraKeyVal
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_internal_module_kubernetes_api_kubernetes_api_proto_init() }
func file_internal_module_kubernetes_api_kubernetes_api_proto_init() {
	if File_internal_module_kubernetes_api_kubernetes_api_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_module_kubernetes_api_kubernetes_api_proto_rawDesc), len(file_internal_module_kubernetes_api_kubernetes_api_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_internal_module_kubernetes_api_kubernetes_api_proto_goTypes,
		DependencyIndexes: file_internal_module_kubernetes_api_kubernetes_api_proto_depIdxs,
		MessageInfos:      file_internal_module_kubernetes_api_kubernetes_api_proto_msgTypes,
	}.Build()
	File_internal_module_kubernetes_api_kubernetes_api_proto = out.File
	file_internal_module_kubernetes_api_kubernetes_api_proto_goTypes = nil
	file_internal_module_kubernetes_api_kubernetes_api_proto_depIdxs = nil
}
