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

package rpc

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 AdmitJobRequest struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	ProjectId       int64                  `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ProjectName     string                 `protobuf:"bytes,2,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
	ProjectFullPath string                 `protobuf:"bytes,3,opt,name=project_full_path,json=projectFullPath,proto3" json:"project_full_path,omitempty"`
	NamespaceId     int64                  `protobuf:"varint,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	RootNamespaceId int64                  `protobuf:"varint,5,opt,name=root_namespace_id,json=rootNamespaceId,proto3" json:"root_namespace_id,omitempty"`
	OrganizationId  int64                  `protobuf:"varint,6,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	UserId          int64                  `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Image           *Image                 `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
	RunnerId        int64                  `protobuf:"varint,9,opt,name=runner_id,json=runnerId,proto3" json:"runner_id,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*AdmitJobRequest) ProtoMessage() {}

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

func (x *AdmitJobRequest) GetProjectId() int64 {
	if x != nil {
		return x.ProjectId
	}
	return 0
}

func (x *AdmitJobRequest) GetProjectName() string {
	if x != nil {
		return x.ProjectName
	}
	return ""
}

func (x *AdmitJobRequest) GetProjectFullPath() string {
	if x != nil {
		return x.ProjectFullPath
	}
	return ""
}

func (x *AdmitJobRequest) GetNamespaceId() int64 {
	if x != nil {
		return x.NamespaceId
	}
	return 0
}

func (x *AdmitJobRequest) GetRootNamespaceId() int64 {
	if x != nil {
		return x.RootNamespaceId
	}
	return 0
}

func (x *AdmitJobRequest) GetOrganizationId() int64 {
	if x != nil {
		return x.OrganizationId
	}
	return 0
}

func (x *AdmitJobRequest) GetUserId() int64 {
	if x != nil {
		return x.UserId
	}
	return 0
}

func (x *AdmitJobRequest) GetImage() *Image {
	if x != nil {
		return x.Image
	}
	return nil
}

func (x *AdmitJobRequest) GetRunnerId() int64 {
	if x != nil {
		return x.RunnerId
	}
	return 0
}

type Image struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Image) ProtoMessage() {}

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

func (x *Image) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

type AdmitJobResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to AdmissionResponse:
	//
	//	*AdmitJobResponse_Admitted
	//	*AdmitJobResponse_Rejected
	AdmissionResponse isAdmitJobResponse_AdmissionResponse `protobuf_oneof:"admission_response"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*AdmitJobResponse) ProtoMessage() {}

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

func (x *AdmitJobResponse) GetAdmissionResponse() isAdmitJobResponse_AdmissionResponse {
	if x != nil {
		return x.AdmissionResponse
	}
	return nil
}

func (x *AdmitJobResponse) GetAdmitted() *Admitted {
	if x != nil {
		if x, ok := x.AdmissionResponse.(*AdmitJobResponse_Admitted); ok {
			return x.Admitted
		}
	}
	return nil
}

func (x *AdmitJobResponse) GetRejected() *Rejected {
	if x != nil {
		if x, ok := x.AdmissionResponse.(*AdmitJobResponse_Rejected); ok {
			return x.Rejected
		}
	}
	return nil
}

type isAdmitJobResponse_AdmissionResponse interface {
	isAdmitJobResponse_AdmissionResponse()
}

type AdmitJobResponse_Admitted struct {
	Admitted *Admitted `protobuf:"bytes,1,opt,name=admitted,proto3,oneof"`
}

type AdmitJobResponse_Rejected struct {
	Rejected *Rejected `protobuf:"bytes,2,opt,name=rejected,proto3,oneof"`
}

func (*AdmitJobResponse_Admitted) isAdmitJobResponse_AdmissionResponse() {}

func (*AdmitJobResponse_Rejected) isAdmitJobResponse_AdmissionResponse() {}

type Admitted struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Admitted) ProtoMessage() {}

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

type Rejected struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Reason        string                 `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Rejected) ProtoMessage() {}

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

func (x *Rejected) GetReason() string {
	if x != nil {
		return x.Reason
	}
	return ""
}

var File_internal_module_runner_controller_rpc_runner_controller_proto protoreflect.FileDescriptor

const file_internal_module_runner_controller_rpc_runner_controller_proto_rawDesc = "" +
	"\n" +
	"=internal/module/runner_controller/rpc/runner_controller.proto\x12\"gitlab.agent.runner_controller.rpc\x1a\x1bbuf/validate/validate.proto\"\xee\x02\n" +
	"\x0fAdmitJobRequest\x12\x1d\n" +
	"\n" +
	"project_id\x18\x01 \x01(\x03R\tprojectId\x12!\n" +
	"\fproject_name\x18\x02 \x01(\tR\vprojectName\x12*\n" +
	"\x11project_full_path\x18\x03 \x01(\tR\x0fprojectFullPath\x12!\n" +
	"\fnamespace_id\x18\x04 \x01(\x03R\vnamespaceId\x12*\n" +
	"\x11root_namespace_id\x18\x05 \x01(\x03R\x0frootNamespaceId\x12'\n" +
	"\x0forganization_id\x18\x06 \x01(\x03R\x0eorganizationId\x12\x17\n" +
	"\auser_id\x18\a \x01(\x03R\x06userId\x12?\n" +
	"\x05image\x18\b \x01(\v2).gitlab.agent.runner_controller.rpc.ImageR\x05image\x12\x1b\n" +
	"\trunner_id\x18\t \x01(\x03R\brunnerId\"\x1b\n" +
	"\x05Image\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\"\xc7\x01\n" +
	"\x10AdmitJobResponse\x12J\n" +
	"\badmitted\x18\x01 \x01(\v2,.gitlab.agent.runner_controller.rpc.AdmittedH\x00R\badmitted\x12J\n" +
	"\brejected\x18\x02 \x01(\v2,.gitlab.agent.runner_controller.rpc.RejectedH\x00R\brejectedB\x1b\n" +
	"\x12admission_response\x12\x05\xbaH\x02\b\x01\"\n" +
	"\n" +
	"\bAdmitted\"+\n" +
	"\bRejected\x12\x1f\n" +
	"\x06reason\x18\x01 \x01(\tB\a\xbaH\x04r\x02 \x01R\x06reason2\x96\x01\n" +
	"\x17RunnerControllerService\x12{\n" +
	"\bAdmitJob\x124.gitlab.agent.runner_controller.rpc.AdmitJobResponse\x1a3.gitlab.agent.runner_controller.rpc.AdmitJobRequest\"\x00(\x010\x01BbZ`gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/runner_controller/rpcb\x06proto3"

var (
	file_internal_module_runner_controller_rpc_runner_controller_proto_rawDescOnce sync.Once
	file_internal_module_runner_controller_rpc_runner_controller_proto_rawDescData []byte
)

func file_internal_module_runner_controller_rpc_runner_controller_proto_rawDescGZIP() []byte {
	file_internal_module_runner_controller_rpc_runner_controller_proto_rawDescOnce.Do(func() {
		file_internal_module_runner_controller_rpc_runner_controller_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_module_runner_controller_rpc_runner_controller_proto_rawDesc), len(file_internal_module_runner_controller_rpc_runner_controller_proto_rawDesc)))
	})
	return file_internal_module_runner_controller_rpc_runner_controller_proto_rawDescData
}

var file_internal_module_runner_controller_rpc_runner_controller_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_internal_module_runner_controller_rpc_runner_controller_proto_goTypes = []any{
	(*AdmitJobRequest)(nil),  // 0: gitlab.agent.runner_controller.rpc.AdmitJobRequest
	(*Image)(nil),            // 1: gitlab.agent.runner_controller.rpc.Image
	(*AdmitJobResponse)(nil), // 2: gitlab.agent.runner_controller.rpc.AdmitJobResponse
	(*Admitted)(nil),         // 3: gitlab.agent.runner_controller.rpc.Admitted
	(*Rejected)(nil),         // 4: gitlab.agent.runner_controller.rpc.Rejected
}
var file_internal_module_runner_controller_rpc_runner_controller_proto_depIdxs = []int32{
	1, // 0: gitlab.agent.runner_controller.rpc.AdmitJobRequest.image:type_name -> gitlab.agent.runner_controller.rpc.Image
	3, // 1: gitlab.agent.runner_controller.rpc.AdmitJobResponse.admitted:type_name -> gitlab.agent.runner_controller.rpc.Admitted
	4, // 2: gitlab.agent.runner_controller.rpc.AdmitJobResponse.rejected:type_name -> gitlab.agent.runner_controller.rpc.Rejected
	2, // 3: gitlab.agent.runner_controller.rpc.RunnerControllerService.AdmitJob:input_type -> gitlab.agent.runner_controller.rpc.AdmitJobResponse
	0, // 4: gitlab.agent.runner_controller.rpc.RunnerControllerService.AdmitJob:output_type -> gitlab.agent.runner_controller.rpc.AdmitJobRequest
	4, // [4:5] is the sub-list for method output_type
	3, // [3:4] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_internal_module_runner_controller_rpc_runner_controller_proto_init() }
func file_internal_module_runner_controller_rpc_runner_controller_proto_init() {
	if File_internal_module_runner_controller_rpc_runner_controller_proto != nil {
		return
	}
	file_internal_module_runner_controller_rpc_runner_controller_proto_msgTypes[2].OneofWrappers = []any{
		(*AdmitJobResponse_Admitted)(nil),
		(*AdmitJobResponse_Rejected)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_module_runner_controller_rpc_runner_controller_proto_rawDesc), len(file_internal_module_runner_controller_rpc_runner_controller_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_internal_module_runner_controller_rpc_runner_controller_proto_goTypes,
		DependencyIndexes: file_internal_module_runner_controller_rpc_runner_controller_proto_depIdxs,
		MessageInfos:      file_internal_module_runner_controller_rpc_runner_controller_proto_msgTypes,
	}.Build()
	File_internal_module_runner_controller_rpc_runner_controller_proto = out.File
	file_internal_module_runner_controller_rpc_runner_controller_proto_goTypes = nil
	file_internal_module_runner_controller_rpc_runner_controller_proto_depIdxs = nil
}
