// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        v6.32.0
// source: internal/module/workspaces/server/auth.proto

package server

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

type User struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*User) ProtoMessage() {}

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

func (x *User) GetId() int64 {
	if x != nil {
		return x.Id
	}
	return 0
}

type Workspace struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Port          uint32                 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Workspace) ProtoMessage() {}

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

func (x *Workspace) GetId() int64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *Workspace) GetPort() uint32 {
	if x != nil {
		return x.Port
	}
	return 0
}

type OAuthStateParam struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Nonce         string                 `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	OriginalUrl   string                 `protobuf:"bytes,2,opt,name=original_url,proto3" json:"original_url,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,proto3" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*OAuthStateParam) ProtoMessage() {}

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

func (x *OAuthStateParam) GetNonce() string {
	if x != nil {
		return x.Nonce
	}
	return ""
}

func (x *OAuthStateParam) GetOriginalUrl() string {
	if x != nil {
		return x.OriginalUrl
	}
	return ""
}

func (x *OAuthStateParam) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

type OAuthState struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,proto3" json:"created_at,omitempty"`
	OriginalUrl   string                 `protobuf:"bytes,2,opt,name=original_url,proto3" json:"original_url,omitempty"`
	CodeVerifier  string                 `protobuf:"bytes,3,opt,name=code_verifier,proto3" json:"code_verifier,omitempty"`
	StateValue    string                 `protobuf:"bytes,4,opt,name=state_value,proto3" json:"state_value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*OAuthState) ProtoMessage() {}

func (x *OAuthState) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_workspaces_server_auth_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 OAuthState.ProtoReflect.Descriptor instead.
func (*OAuthState) Descriptor() ([]byte, []int) {
	return file_internal_module_workspaces_server_auth_proto_rawDescGZIP(), []int{3}
}

func (x *OAuthState) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *OAuthState) GetOriginalUrl() string {
	if x != nil {
		return x.OriginalUrl
	}
	return ""
}

func (x *OAuthState) GetCodeVerifier() string {
	if x != nil {
		return x.CodeVerifier
	}
	return ""
}

func (x *OAuthState) GetStateValue() string {
	if x != nil {
		return x.StateValue
	}
	return ""
}

type TransferError struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	OriginalUrl    string                 `protobuf:"bytes,1,opt,name=original_url,proto3" json:"original_url,omitempty"`
	HttpStatusCode uint32                 `protobuf:"varint,2,opt,name=http_status_code,proto3" json:"http_status_code,omitempty"`
	Message        string                 `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*TransferError) ProtoMessage() {}

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

func (x *TransferError) GetOriginalUrl() string {
	if x != nil {
		return x.OriginalUrl
	}
	return ""
}

func (x *TransferError) GetHttpStatusCode() uint32 {
	if x != nil {
		return x.HttpStatusCode
	}
	return 0
}

func (x *TransferError) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

type TransferToken struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,proto3" json:"created_at,omitempty"`
	OriginalUrl   string                 `protobuf:"bytes,2,opt,name=original_url,proto3" json:"original_url,omitempty"`
	User          *User                  `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Workspace     *Workspace             `protobuf:"bytes,4,opt,name=workspace,proto3" json:"workspace,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TransferToken) Reset() {
	*x = TransferToken{}
	mi := &file_internal_module_workspaces_server_auth_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*TransferToken) ProtoMessage() {}

func (x *TransferToken) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_workspaces_server_auth_proto_msgTypes[5]
	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 TransferToken.ProtoReflect.Descriptor instead.
func (*TransferToken) Descriptor() ([]byte, []int) {
	return file_internal_module_workspaces_server_auth_proto_rawDescGZIP(), []int{5}
}

func (x *TransferToken) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *TransferToken) GetOriginalUrl() string {
	if x != nil {
		return x.OriginalUrl
	}
	return ""
}

func (x *TransferToken) GetUser() *User {
	if x != nil {
		return x.User
	}
	return nil
}

func (x *TransferToken) GetWorkspace() *Workspace {
	if x != nil {
		return x.Workspace
	}
	return nil
}

type UserSession struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,proto3" json:"created_at,omitempty"`
	Host          string                 `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	User          *User                  `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Workspace     *Workspace             `protobuf:"bytes,4,opt,name=workspace,proto3" json:"workspace,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserSession) Reset() {
	*x = UserSession{}
	mi := &file_internal_module_workspaces_server_auth_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UserSession) ProtoMessage() {}

func (x *UserSession) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_workspaces_server_auth_proto_msgTypes[6]
	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 UserSession.ProtoReflect.Descriptor instead.
func (*UserSession) Descriptor() ([]byte, []int) {
	return file_internal_module_workspaces_server_auth_proto_rawDescGZIP(), []int{6}
}

func (x *UserSession) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *UserSession) GetHost() string {
	if x != nil {
		return x.Host
	}
	return ""
}

func (x *UserSession) GetUser() *User {
	if x != nil {
		return x.User
	}
	return nil
}

func (x *UserSession) GetWorkspace() *Workspace {
	if x != nil {
		return x.Workspace
	}
	return nil
}

var File_internal_module_workspaces_server_auth_proto protoreflect.FileDescriptor

const file_internal_module_workspaces_server_auth_proto_rawDesc = "" +
	"\n" +
	",internal/module/workspaces/server/auth.proto\x12\x1egitlab.agent.workspaces.server\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bbuf/validate/validate.proto\"\x1f\n" +
	"\x04User\x12\x17\n" +
	"\x02id\x18\x01 \x01(\x03B\a\xbaH\x04\"\x02 \x00R\x02id\"C\n" +
	"\tWorkspace\x12\x17\n" +
	"\x02id\x18\x01 \x01(\x03B\a\xbaH\x04\"\x02 \x00R\x02id\x12\x1d\n" +
	"\x04port\x18\x02 \x01(\rB\t\xbaH\x06*\x04\x18\xff\xff\x03R\x04port\"\xa3\x01\n" +
	"\x0fOAuthStateParam\x12\x1d\n" +
	"\x05nonce\x18\x01 \x01(\tB\a\xbaH\x04r\x02 \x01R\x05nonce\x12+\n" +
	"\foriginal_url\x18\x02 \x01(\tB\a\xbaH\x04r\x02 \x01R\foriginal_url\x12D\n" +
	"\n" +
	"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\b\xbaH\x05\xb2\x01\x02*\x00R\n" +
	"created_at\"\xd9\x01\n" +
	"\n" +
	"OAuthState\x12D\n" +
	"\n" +
	"created_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampB\b\xbaH\x05\xb2\x01\x02*\x00R\n" +
	"created_at\x12+\n" +
	"\foriginal_url\x18\x02 \x01(\tB\a\xbaH\x04r\x02 \x01R\foriginal_url\x12-\n" +
	"\rcode_verifier\x18\x03 \x01(\tB\a\xbaH\x04r\x02 \x01R\rcode_verifier\x12)\n" +
	"\vstate_value\x18\x04 \x01(\tB\a\xbaH\x04r\x02 \x01R\vstate_value\"\x8b\x01\n" +
	"\rTransferError\x12+\n" +
	"\foriginal_url\x18\x01 \x01(\tB\a\xbaH\x04r\x02 \x01R\foriginal_url\x12*\n" +
	"\x10http_status_code\x18\x02 \x01(\rR\x10http_status_code\x12!\n" +
	"\amessage\x18\x03 \x01(\tB\a\xbaH\x04r\x02 \x01R\amessage\"\x95\x02\n" +
	"\rTransferToken\x12D\n" +
	"\n" +
	"created_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampB\b\xbaH\x05\xb2\x01\x02*\x00R\n" +
	"created_at\x12+\n" +
	"\foriginal_url\x18\x02 \x01(\tB\a\xbaH\x04r\x02 \x01R\foriginal_url\x12@\n" +
	"\x04user\x18\x03 \x01(\v2$.gitlab.agent.workspaces.server.UserB\x06\xbaH\x03\xc8\x01\x01R\x04user\x12O\n" +
	"\tworkspace\x18\x04 \x01(\v2).gitlab.agent.workspaces.server.WorkspaceB\x06\xbaH\x03\xc8\x01\x01R\tworkspace\"\x83\x02\n" +
	"\vUserSession\x12D\n" +
	"\n" +
	"created_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampB\b\xbaH\x05\xb2\x01\x02*\x00R\n" +
	"created_at\x12\x1b\n" +
	"\x04host\x18\x02 \x01(\tB\a\xbaH\x04r\x02 \x01R\x04host\x12@\n" +
	"\x04user\x18\x03 \x01(\v2$.gitlab.agent.workspaces.server.UserB\x06\xbaH\x03\xc8\x01\x01R\x04user\x12O\n" +
	"\tworkspace\x18\x04 \x01(\v2).gitlab.agent.workspaces.server.WorkspaceB\x06\xbaH\x03\xc8\x01\x01R\tworkspaceB^Z\\gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/workspaces/serverb\x06proto3"

var (
	file_internal_module_workspaces_server_auth_proto_rawDescOnce sync.Once
	file_internal_module_workspaces_server_auth_proto_rawDescData []byte
)

func file_internal_module_workspaces_server_auth_proto_rawDescGZIP() []byte {
	file_internal_module_workspaces_server_auth_proto_rawDescOnce.Do(func() {
		file_internal_module_workspaces_server_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_module_workspaces_server_auth_proto_rawDesc), len(file_internal_module_workspaces_server_auth_proto_rawDesc)))
	})
	return file_internal_module_workspaces_server_auth_proto_rawDescData
}

var file_internal_module_workspaces_server_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_internal_module_workspaces_server_auth_proto_goTypes = []any{
	(*User)(nil),                  // 0: gitlab.agent.workspaces.server.User
	(*Workspace)(nil),             // 1: gitlab.agent.workspaces.server.Workspace
	(*OAuthStateParam)(nil),       // 2: gitlab.agent.workspaces.server.OAuthStateParam
	(*OAuthState)(nil),            // 3: gitlab.agent.workspaces.server.OAuthState
	(*TransferError)(nil),         // 4: gitlab.agent.workspaces.server.TransferError
	(*TransferToken)(nil),         // 5: gitlab.agent.workspaces.server.TransferToken
	(*UserSession)(nil),           // 6: gitlab.agent.workspaces.server.UserSession
	(*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp
}
var file_internal_module_workspaces_server_auth_proto_depIdxs = []int32{
	7, // 0: gitlab.agent.workspaces.server.OAuthStateParam.created_at:type_name -> google.protobuf.Timestamp
	7, // 1: gitlab.agent.workspaces.server.OAuthState.created_at:type_name -> google.protobuf.Timestamp
	7, // 2: gitlab.agent.workspaces.server.TransferToken.created_at:type_name -> google.protobuf.Timestamp
	0, // 3: gitlab.agent.workspaces.server.TransferToken.user:type_name -> gitlab.agent.workspaces.server.User
	1, // 4: gitlab.agent.workspaces.server.TransferToken.workspace:type_name -> gitlab.agent.workspaces.server.Workspace
	7, // 5: gitlab.agent.workspaces.server.UserSession.created_at:type_name -> google.protobuf.Timestamp
	0, // 6: gitlab.agent.workspaces.server.UserSession.user:type_name -> gitlab.agent.workspaces.server.User
	1, // 7: gitlab.agent.workspaces.server.UserSession.workspace:type_name -> gitlab.agent.workspaces.server.Workspace
	8, // [8:8] is the sub-list for method output_type
	8, // [8:8] is the sub-list for method input_type
	8, // [8:8] is the sub-list for extension type_name
	8, // [8:8] is the sub-list for extension extendee
	0, // [0:8] is the sub-list for field type_name
}

func init() { file_internal_module_workspaces_server_auth_proto_init() }
func file_internal_module_workspaces_server_auth_proto_init() {
	if File_internal_module_workspaces_server_auth_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_workspaces_server_auth_proto_rawDesc), len(file_internal_module_workspaces_server_auth_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   7,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_internal_module_workspaces_server_auth_proto_goTypes,
		DependencyIndexes: file_internal_module_workspaces_server_auth_proto_depIdxs,
		MessageInfos:      file_internal_module_workspaces_server_auth_proto_msgTypes,
	}.Build()
	File_internal_module_workspaces_server_auth_proto = out.File
	file_internal_module_workspaces_server_auth_proto_goTypes = nil
	file_internal_module_workspaces_server_auth_proto_depIdxs = nil
}
