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

package oidc

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

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

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 AuthenticateRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Auth Request ID.
	AuthRequestId string `protobuf:"bytes,1,opt,name=auth_request_id,json=authRequestId,proto3" json:"auth_request_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AuthenticateRequest) ProtoMessage() {}

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

func (x *AuthenticateRequest) GetAuthRequestId() string {
	if x != nil {
		return x.AuthRequestId
	}
	return ""
}

type AuthenticateResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// URL to redirect the user to.
	RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	// AuthCode to use with the keyboard login.
	AuthCode      string `protobuf:"bytes,2,opt,name=auth_code,json=authCode,proto3" json:"auth_code,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AuthenticateResponse) ProtoMessage() {}

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

func (x *AuthenticateResponse) GetRedirectUrl() string {
	if x != nil {
		return x.RedirectUrl
	}
	return ""
}

func (x *AuthenticateResponse) GetAuthCode() string {
	if x != nil {
		return x.AuthCode
	}
	return ""
}

var File_omni_oidc_oidc_proto protoreflect.FileDescriptor

const file_omni_oidc_oidc_proto_rawDesc = "" +
	"\n" +
	"\x14omni/oidc/oidc.proto\x12\x04oidc\x1a\x1bgoogle/protobuf/empty.proto\"=\n" +
	"\x13AuthenticateRequest\x12&\n" +
	"\x0fauth_request_id\x18\x01 \x01(\tR\rauthRequestId\"V\n" +
	"\x14AuthenticateResponse\x12!\n" +
	"\fredirect_url\x18\x01 \x01(\tR\vredirectUrl\x12\x1b\n" +
	"\tauth_code\x18\x02 \x01(\tR\bauthCode2T\n" +
	"\vOIDCService\x12E\n" +
	"\fAuthenticate\x12\x19.oidc.AuthenticateRequest\x1a\x1a.oidc.AuthenticateResponseB1Z/github.com/siderolabs/omni/client/api/omni/oidcb\x06proto3"

var (
	file_omni_oidc_oidc_proto_rawDescOnce sync.Once
	file_omni_oidc_oidc_proto_rawDescData []byte
)

func file_omni_oidc_oidc_proto_rawDescGZIP() []byte {
	file_omni_oidc_oidc_proto_rawDescOnce.Do(func() {
		file_omni_oidc_oidc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_omni_oidc_oidc_proto_rawDesc), len(file_omni_oidc_oidc_proto_rawDesc)))
	})
	return file_omni_oidc_oidc_proto_rawDescData
}

var file_omni_oidc_oidc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_omni_oidc_oidc_proto_goTypes = []any{
	(*AuthenticateRequest)(nil),  // 0: oidc.AuthenticateRequest
	(*AuthenticateResponse)(nil), // 1: oidc.AuthenticateResponse
}
var file_omni_oidc_oidc_proto_depIdxs = []int32{
	0, // 0: oidc.OIDCService.Authenticate:input_type -> oidc.AuthenticateRequest
	1, // 1: oidc.OIDCService.Authenticate:output_type -> oidc.AuthenticateResponse
	1, // [1:2] is the sub-list for method output_type
	0, // [0:1] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_omni_oidc_oidc_proto_init() }
func file_omni_oidc_oidc_proto_init() {
	if File_omni_oidc_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_oidc_oidc_proto_rawDesc), len(file_omni_oidc_oidc_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_omni_oidc_oidc_proto_goTypes,
		DependencyIndexes: file_omni_oidc_oidc_proto_depIdxs,
		MessageInfos:      file_omni_oidc_oidc_proto_msgTypes,
	}.Build()
	File_omni_oidc_oidc_proto = out.File
	file_omni_oidc_oidc_proto_goTypes = nil
	file_omni_oidc_oidc_proto_depIdxs = nil
}
