// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.31.1
// source: omni/specs/oidc.proto

package specs

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

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

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)
)

// JWTPublicKeySpec keeps the active set of JWT signing keys.
type JWTPublicKeySpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// PKCS1 encoded RSA public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Expiration time (when it's ready to be cleaned up).
	Expiration    *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration,proto3" json:"expiration,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*JWTPublicKeySpec) ProtoMessage() {}

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

func (x *JWTPublicKeySpec) GetPublicKey() []byte {
	if x != nil {
		return x.PublicKey
	}
	return nil
}

func (x *JWTPublicKeySpec) GetExpiration() *timestamppb.Timestamp {
	if x != nil {
		return x.Expiration
	}
	return nil
}

var File_omni_specs_oidc_proto protoreflect.FileDescriptor

const file_omni_specs_oidc_proto_rawDesc = "" +
	"\n" +
	"\x15omni/specs/oidc.proto\x12\x05specs\x1a\x1fgoogle/protobuf/timestamp.proto\"m\n" +
	"\x10JWTPublicKeySpec\x12\x1d\n" +
	"\n" +
	"public_key\x18\x01 \x01(\fR\tpublicKey\x12:\n" +
	"\n" +
	"expiration\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"expirationB2Z0github.com/siderolabs/omni/client/api/omni/specsb\x06proto3"

var (
	file_omni_specs_oidc_proto_rawDescOnce sync.Once
	file_omni_specs_oidc_proto_rawDescData []byte
)

func file_omni_specs_oidc_proto_rawDescGZIP() []byte {
	file_omni_specs_oidc_proto_rawDescOnce.Do(func() {
		file_omni_specs_oidc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_omni_specs_oidc_proto_rawDesc), len(file_omni_specs_oidc_proto_rawDesc)))
	})
	return file_omni_specs_oidc_proto_rawDescData
}

var file_omni_specs_oidc_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_omni_specs_oidc_proto_goTypes = []any{
	(*JWTPublicKeySpec)(nil),      // 0: specs.JWTPublicKeySpec
	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_omni_specs_oidc_proto_depIdxs = []int32{
	1, // 0: specs.JWTPublicKeySpec.expiration:type_name -> google.protobuf.Timestamp
	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_omni_specs_oidc_proto_init() }
func file_omni_specs_oidc_proto_init() {
	if File_omni_specs_oidc_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_omni_specs_oidc_proto_rawDesc), len(file_omni_specs_oidc_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_omni_specs_oidc_proto_goTypes,
		DependencyIndexes: file_omni_specs_oidc_proto_depIdxs,
		MessageInfos:      file_omni_specs_oidc_proto_msgTypes,
	}.Build()
	File_omni_specs_oidc_proto = out.File
	file_omni_specs_oidc_proto_goTypes = nil
	file_omni_specs_oidc_proto_depIdxs = nil
}
