// Copyright Daytona Platforms Inc.
// SPDX-License-Identifier: Apache-2.0

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runner/v1alpha1/job.proto

package runnerv1alpha1

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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 JobType int32

const (
	JobType_JOB_TYPE_UNSPECIFIED      JobType = 0
	JobType_JOB_TYPE_SNAPSHOT_SANDBOX JobType = 1
	JobType_JOB_TYPE_FORK_SANDBOX     JobType = 2
)

// Enum value maps for JobType.
var (
	JobType_name = map[int32]string{
		0: "JOB_TYPE_UNSPECIFIED",
		1: "JOB_TYPE_SNAPSHOT_SANDBOX",
		2: "JOB_TYPE_FORK_SANDBOX",
	}
	JobType_value = map[string]int32{
		"JOB_TYPE_UNSPECIFIED":      0,
		"JOB_TYPE_SNAPSHOT_SANDBOX": 1,
		"JOB_TYPE_FORK_SANDBOX":     2,
	}
)

func (x JobType) Enum() *JobType {
	p := new(JobType)
	*p = x
	return p
}

func (x JobType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (JobType) Descriptor() protoreflect.EnumDescriptor {
	return file_runner_v1alpha1_job_proto_enumTypes[0].Descriptor()
}

func (JobType) Type() protoreflect.EnumType {
	return &file_runner_v1alpha1_job_proto_enumTypes[0]
}

func (x JobType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use JobType.Descriptor instead.
func (JobType) EnumDescriptor() ([]byte, []int) {
	return file_runner_v1alpha1_job_proto_rawDescGZIP(), []int{0}
}

type Registry struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Url           string                 `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Username      *string                `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	Password      *string                `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"`
	Project       *string                `protobuf:"bytes,4,opt,name=project,proto3,oneof" json:"project,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Registry) ProtoMessage() {}

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

func (x *Registry) GetUrl() string {
	if x != nil {
		return x.Url
	}
	return ""
}

func (x *Registry) GetUsername() string {
	if x != nil && x.Username != nil {
		return *x.Username
	}
	return ""
}

func (x *Registry) GetPassword() string {
	if x != nil && x.Password != nil {
		return *x.Password
	}
	return ""
}

func (x *Registry) GetProject() string {
	if x != nil && x.Project != nil {
		return *x.Project
	}
	return ""
}

type SnapshotSandboxPayload struct {
	state          protoimpl.MessageState `protogen:"open.v1"`
	SandboxId      string                 `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	Name           string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	OrganizationId string                 `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	Registry       *Registry              `protobuf:"bytes,4,opt,name=registry,proto3,oneof" json:"registry,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*SnapshotSandboxPayload) ProtoMessage() {}

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

func (x *SnapshotSandboxPayload) GetSandboxId() string {
	if x != nil {
		return x.SandboxId
	}
	return ""
}

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

func (x *SnapshotSandboxPayload) GetOrganizationId() string {
	if x != nil {
		return x.OrganizationId
	}
	return ""
}

func (x *SnapshotSandboxPayload) GetRegistry() *Registry {
	if x != nil {
		return x.Registry
	}
	return nil
}

type ForkSandboxPayload struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	SourceSandboxId string                 `protobuf:"bytes,1,opt,name=source_sandbox_id,json=sourceSandboxId,proto3" json:"source_sandbox_id,omitempty"`
	NewSandboxId    string                 `protobuf:"bytes,2,opt,name=new_sandbox_id,json=newSandboxId,proto3" json:"new_sandbox_id,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*ForkSandboxPayload) ProtoMessage() {}

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

func (x *ForkSandboxPayload) GetSourceSandboxId() string {
	if x != nil {
		return x.SourceSandboxId
	}
	return ""
}

func (x *ForkSandboxPayload) GetNewSandboxId() string {
	if x != nil {
		return x.NewSandboxId
	}
	return ""
}

type SnapshotSandboxResult struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	SizeBytes     int64                  `protobuf:"varint,1,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	Hash          string                 `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SnapshotSandboxResult) ProtoMessage() {}

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

func (x *SnapshotSandboxResult) GetSizeBytes() int64 {
	if x != nil {
		return x.SizeBytes
	}
	return 0
}

func (x *SnapshotSandboxResult) GetHash() string {
	if x != nil {
		return x.Hash
	}
	return ""
}

type ForkSandboxResult struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	DaemonVersion *string                `protobuf:"bytes,1,opt,name=daemon_version,json=daemonVersion,proto3,oneof" json:"daemon_version,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ForkSandboxResult) ProtoMessage() {}

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

func (x *ForkSandboxResult) GetDaemonVersion() string {
	if x != nil && x.DaemonVersion != nil {
		return *x.DaemonVersion
	}
	return ""
}

var File_runner_v1alpha1_job_proto protoreflect.FileDescriptor

const file_runner_v1alpha1_job_proto_rawDesc = "" +
	"\n" +
	"\x19runner/v1alpha1/job.proto\x12\x0frunner.v1alpha1\"\xa3\x01\n" +
	"\bRegistry\x12\x10\n" +
	"\x03url\x18\x01 \x01(\tR\x03url\x12\x1f\n" +
	"\busername\x18\x02 \x01(\tH\x00R\busername\x88\x01\x01\x12\x1f\n" +
	"\bpassword\x18\x03 \x01(\tH\x01R\bpassword\x88\x01\x01\x12\x1d\n" +
	"\aproject\x18\x04 \x01(\tH\x02R\aproject\x88\x01\x01B\v\n" +
	"\t_usernameB\v\n" +
	"\t_passwordB\n" +
	"\n" +
	"\b_project\"\xbd\x01\n" +
	"\x16SnapshotSandboxPayload\x12\x1d\n" +
	"\n" +
	"sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12'\n" +
	"\x0forganization_id\x18\x03 \x01(\tR\x0eorganizationId\x12:\n" +
	"\bregistry\x18\x04 \x01(\v2\x19.runner.v1alpha1.RegistryH\x00R\bregistry\x88\x01\x01B\v\n" +
	"\t_registry\"\x89\x01\n" +
	"\x12ForkSandboxPayload\x12*\n" +
	"\x11source_sandbox_id\x18\x01 \x01(\tR\x0fsourceSandboxId\x12$\n" +
	"\x0enew_sandbox_id\x18\x02 \x01(\tR\fnewSandboxId\x12!\n" +
	"\x15SnapshotSandboxResult\x12\x1d\n" +
	"\n" +
	"size_bytes\x18\x01 \x01(\x03R\tsizeBytes\x12\x12\n" +
	"\x04hash\x18\x02 \x01(\tR\x04hash\"R\n" +
	"\x11ForkSandboxResult\x12*\n" +
	"\x0edaemon_version\x18\x01 \x01(\tH\x00R\rdaemonVersion\x88\x01\x01B\x11\n" +
	"\x0f_daemon_version*]\n" +
	"\aJobType\x12\x18\n" +
	"\x14JOB_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n" +
	"\x19JOB_TYPE_SNAPSHOT_SANDBOX\x10\x01\x12\x19\n" +
	"\x15JOB_TYPE_FORK_SANDBOX\x10\x02BGZEgithub.com/daytonaio/daytona/gen/proto/runner/v1alpha1;runnerv1alpha1b\x06proto3"

var (
	file_runner_v1alpha1_job_proto_rawDescOnce sync.Once
	file_runner_v1alpha1_job_proto_rawDescData []byte
)

func file_runner_v1alpha1_job_proto_rawDescGZIP() []byte {
	file_runner_v1alpha1_job_proto_rawDescOnce.Do(func() {
		file_runner_v1alpha1_job_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runner_v1alpha1_job_proto_rawDesc), len(file_runner_v1alpha1_job_proto_rawDesc)))
	})
	return file_runner_v1alpha1_job_proto_rawDescData
}

var file_runner_v1alpha1_job_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_runner_v1alpha1_job_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_runner_v1alpha1_job_proto_goTypes = []any{
	(JobType)(0),                   // 0: runner.v1alpha1.JobType
	(*Registry)(nil),               // 1: runner.v1alpha1.Registry
	(*SnapshotSandboxPayload)(nil), // 2: runner.v1alpha1.SnapshotSandboxPayload
	(*ForkSandboxPayload)(nil),     // 3: runner.v1alpha1.ForkSandboxPayload
	(*SnapshotSandboxResult)(nil),  // 4: runner.v1alpha1.SnapshotSandboxResult
	(*ForkSandboxResult)(nil),      // 5: runner.v1alpha1.ForkSandboxResult
}
var file_runner_v1alpha1_job_proto_depIdxs = []int32{
	1, // 0: runner.v1alpha1.SnapshotSandboxPayload.registry:type_name -> runner.v1alpha1.Registry
	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_runner_v1alpha1_job_proto_init() }
func file_runner_v1alpha1_job_proto_init() {
	if File_runner_v1alpha1_job_proto != nil {
		return
	}
	file_runner_v1alpha1_job_proto_msgTypes[0].OneofWrappers = []any{}
	file_runner_v1alpha1_job_proto_msgTypes[1].OneofWrappers = []any{}
	file_runner_v1alpha1_job_proto_msgTypes[4].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_runner_v1alpha1_job_proto_rawDesc), len(file_runner_v1alpha1_job_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_runner_v1alpha1_job_proto_goTypes,
		DependencyIndexes: file_runner_v1alpha1_job_proto_depIdxs,
		EnumInfos:         file_runner_v1alpha1_job_proto_enumTypes,
		MessageInfos:      file_runner_v1alpha1_job_proto_msgTypes,
	}.Build()
	File_runner_v1alpha1_job_proto = out.File
	file_runner_v1alpha1_job_proto_goTypes = nil
	file_runner_v1alpha1_job_proto_depIdxs = nil
}
