// 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/tls/tls.proto

package tls

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	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 ClientConfiguration struct {
	state                        protoimpl.MessageState `protogen:"open.v1"`
	ServerCertificateAuthorities string                 `protobuf:"bytes,1,opt,name=server_certificate_authorities,json=serverCertificateAuthorities,proto3" json:"server_certificate_authorities,omitempty"`
	CipherSuites                 []string               `protobuf:"bytes,4,rep,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"`
	ServerName                   string                 `protobuf:"bytes,5,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
	ClientKeyPair                *X509KeyPair           `protobuf:"bytes,6,opt,name=client_key_pair,json=clientKeyPair,proto3" json:"client_key_pair,omitempty"`
	unknownFields                protoimpl.UnknownFields
	sizeCache                    protoimpl.SizeCache
}

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

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

func (*ClientConfiguration) ProtoMessage() {}

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

func (x *ClientConfiguration) GetServerCertificateAuthorities() string {
	if x != nil {
		return x.ServerCertificateAuthorities
	}
	return ""
}

func (x *ClientConfiguration) GetCipherSuites() []string {
	if x != nil {
		return x.CipherSuites
	}
	return nil
}

func (x *ClientConfiguration) GetServerName() string {
	if x != nil {
		return x.ServerName
	}
	return ""
}

func (x *ClientConfiguration) GetClientKeyPair() *X509KeyPair {
	if x != nil {
		return x.ClientKeyPair
	}
	return nil
}

type ServerConfiguration struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	CipherSuites  []string               `protobuf:"bytes,3,rep,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"`
	ServerKeyPair *X509KeyPair           `protobuf:"bytes,4,opt,name=server_key_pair,json=serverKeyPair,proto3" json:"server_key_pair,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ServerConfiguration) ProtoMessage() {}

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

func (x *ServerConfiguration) GetCipherSuites() []string {
	if x != nil {
		return x.CipherSuites
	}
	return nil
}

func (x *ServerConfiguration) GetServerKeyPair() *X509KeyPair {
	if x != nil {
		return x.ServerKeyPair
	}
	return nil
}

type X509KeyPair struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to KeyPair:
	//
	//	*X509KeyPair_Inline_
	//	*X509KeyPair_Files_
	KeyPair       isX509KeyPair_KeyPair `protobuf_oneof:"key_pair"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*X509KeyPair) ProtoMessage() {}

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

func (x *X509KeyPair) GetKeyPair() isX509KeyPair_KeyPair {
	if x != nil {
		return x.KeyPair
	}
	return nil
}

func (x *X509KeyPair) GetInline() *X509KeyPair_Inline {
	if x != nil {
		if x, ok := x.KeyPair.(*X509KeyPair_Inline_); ok {
			return x.Inline
		}
	}
	return nil
}

func (x *X509KeyPair) GetFiles() *X509KeyPair_Files {
	if x != nil {
		if x, ok := x.KeyPair.(*X509KeyPair_Files_); ok {
			return x.Files
		}
	}
	return nil
}

type isX509KeyPair_KeyPair interface {
	isX509KeyPair_KeyPair()
}

type X509KeyPair_Inline_ struct {
	Inline *X509KeyPair_Inline `protobuf:"bytes,1,opt,name=inline,proto3,oneof"`
}

type X509KeyPair_Files_ struct {
	Files *X509KeyPair_Files `protobuf:"bytes,2,opt,name=files,proto3,oneof"`
}

func (*X509KeyPair_Inline_) isX509KeyPair_KeyPair() {}

func (*X509KeyPair_Files_) isX509KeyPair_KeyPair() {}

type X509KeyPair_Inline struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Certificate   string                 `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
	PrivateKey    string                 `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*X509KeyPair_Inline) ProtoMessage() {}

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

func (x *X509KeyPair_Inline) GetCertificate() string {
	if x != nil {
		return x.Certificate
	}
	return ""
}

func (x *X509KeyPair_Inline) GetPrivateKey() string {
	if x != nil {
		return x.PrivateKey
	}
	return ""
}

type X509KeyPair_Files struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	CertificatePath string                 `protobuf:"bytes,1,opt,name=certificate_path,json=certificatePath,proto3" json:"certificate_path,omitempty"`
	PrivateKeyPath  string                 `protobuf:"bytes,2,opt,name=private_key_path,json=privateKeyPath,proto3" json:"private_key_path,omitempty"`
	RefreshInterval *durationpb.Duration   `protobuf:"bytes,4,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *X509KeyPair_Files) Reset() {
	*x = X509KeyPair_Files{}
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*X509KeyPair_Files) ProtoMessage() {}

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

func (x *X509KeyPair_Files) GetCertificatePath() string {
	if x != nil {
		return x.CertificatePath
	}
	return ""
}

func (x *X509KeyPair_Files) GetPrivateKeyPath() string {
	if x != nil {
		return x.PrivateKeyPath
	}
	return ""
}

func (x *X509KeyPair_Files) GetRefreshInterval() *durationpb.Duration {
	if x != nil {
		return x.RefreshInterval
	}
	return nil
}

var File_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto protoreflect.FileDescriptor

const file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDesc = "" +
	"\n" +
	"Egithub.com/buildbarn/bb-storage/pkg/proto/configuration/tls/tls.proto\x12\x1bbuildbarn.configuration.tls\x1a\x1egoogle/protobuf/duration.proto\"\xff\x01\n" +
	"\x13ClientConfiguration\x12D\n" +
	"\x1eserver_certificate_authorities\x18\x01 \x01(\tR\x1cserverCertificateAuthorities\x12#\n" +
	"\rcipher_suites\x18\x04 \x03(\tR\fcipherSuites\x12\x1f\n" +
	"\vserver_name\x18\x05 \x01(\tR\n" +
	"serverName\x12P\n" +
	"\x0fclient_key_pair\x18\x06 \x01(\v2(.buildbarn.configuration.tls.X509KeyPairR\rclientKeyPairJ\x04\b\x02\x10\x03J\x04\b\x03\x10\x04\"\x98\x01\n" +
	"\x13ServerConfiguration\x12#\n" +
	"\rcipher_suites\x18\x03 \x03(\tR\fcipherSuites\x12P\n" +
	"\x0fserver_key_pair\x18\x04 \x01(\v2(.buildbarn.configuration.tls.X509KeyPairR\rserverKeyPairJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03\"\x9e\x03\n" +
	"\vX509KeyPair\x12I\n" +
	"\x06inline\x18\x01 \x01(\v2/.buildbarn.configuration.tls.X509KeyPair.InlineH\x00R\x06inline\x12F\n" +
	"\x05files\x18\x02 \x01(\v2..buildbarn.configuration.tls.X509KeyPair.FilesH\x00R\x05files\x1aK\n" +
	"\x06Inline\x12 \n" +
	"\vcertificate\x18\x01 \x01(\tR\vcertificate\x12\x1f\n" +
	"\vprivate_key\x18\x02 \x01(\tR\n" +
	"privateKey\x1a\xa2\x01\n" +
	"\x05Files\x12)\n" +
	"\x10certificate_path\x18\x01 \x01(\tR\x0fcertificatePath\x12(\n" +
	"\x10private_key_path\x18\x02 \x01(\tR\x0eprivateKeyPath\x12D\n" +
	"\x10refresh_interval\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x0frefreshIntervalB\n" +
	"\n" +
	"\bkey_pairB=Z;github.com/buildbarn/bb-storage/pkg/proto/configuration/tlsb\x06proto3"

var (
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDescOnce sync.Once
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDescData []byte
)

func file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDescGZIP() []byte {
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDescOnce.Do(func() {
		file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDesc)))
	})
	return file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDescData
}

var file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_goTypes = []any{
	(*ClientConfiguration)(nil), // 0: buildbarn.configuration.tls.ClientConfiguration
	(*ServerConfiguration)(nil), // 1: buildbarn.configuration.tls.ServerConfiguration
	(*X509KeyPair)(nil),         // 2: buildbarn.configuration.tls.X509KeyPair
	(*X509KeyPair_Inline)(nil),  // 3: buildbarn.configuration.tls.X509KeyPair.Inline
	(*X509KeyPair_Files)(nil),   // 4: buildbarn.configuration.tls.X509KeyPair.Files
	(*durationpb.Duration)(nil), // 5: google.protobuf.Duration
}
var file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_depIdxs = []int32{
	2, // 0: buildbarn.configuration.tls.ClientConfiguration.client_key_pair:type_name -> buildbarn.configuration.tls.X509KeyPair
	2, // 1: buildbarn.configuration.tls.ServerConfiguration.server_key_pair:type_name -> buildbarn.configuration.tls.X509KeyPair
	3, // 2: buildbarn.configuration.tls.X509KeyPair.inline:type_name -> buildbarn.configuration.tls.X509KeyPair.Inline
	4, // 3: buildbarn.configuration.tls.X509KeyPair.files:type_name -> buildbarn.configuration.tls.X509KeyPair.Files
	5, // 4: buildbarn.configuration.tls.X509KeyPair.Files.refresh_interval:type_name -> google.protobuf.Duration
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_init() }
func file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_init() {
	if File_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto != nil {
		return
	}
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_msgTypes[2].OneofWrappers = []any{
		(*X509KeyPair_Inline_)(nil),
		(*X509KeyPair_Files_)(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_tls_tls_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_goTypes,
		DependencyIndexes: file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_depIdxs,
		MessageInfos:      file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_msgTypes,
	}.Build()
	File_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto = out.File
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_goTypes = nil
	file_github_com_buildbarn_bb_storage_pkg_proto_configuration_tls_tls_proto_depIdxs = nil
}
