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

// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
// @generated from file runner/v1alpha1/job.proto (package runner.v1alpha1, syntax proto3)

import type { GenEnum, GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2'
import { enumDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2'
import type { Message } from '@bufbuild/protobuf'

/**
 * Describes the file runner/v1alpha1/job.proto.
 */
export const file_runner_v1alpha1_job: GenFile =
  /*@__PURE__*/
  fileDesc(
    'ChlydW5uZXIvdjFhbHBoYTEvam9iLnByb3RvEg9ydW5uZXIudjFhbHBoYTEigQEKCFJlZ2lzdHJ5EgsKA3VybBgBIAEoCRIVCgh1c2VybmFtZRgCIAEoCUgAiAEBEhUKCHBhc3N3b3JkGAMgASgJSAGIAQESFAoHcHJvamVjdBgEIAEoCUgCiAEBQgsKCV91c2VybmFtZUILCglfcGFzc3dvcmRCCgoIX3Byb2plY3QikgEKFlNuYXBzaG90U2FuZGJveFBheWxvYWQSEgoKc2FuZGJveF9pZBgBIAEoCRIMCgRuYW1lGAIgASgJEhcKD29yZ2FuaXphdGlvbl9pZBgDIAEoCRIwCghyZWdpc3RyeRgEIAEoCzIZLnJ1bm5lci52MWFscGhhMS5SZWdpc3RyeUgAiAEBQgsKCV9yZWdpc3RyeSJHChJGb3JrU2FuZGJveFBheWxvYWQSGQoRc291cmNlX3NhbmRib3hfaWQYASABKAkSFgoObmV3X3NhbmRib3hfaWQYAiABKAkiOQoVU25hcHNob3RTYW5kYm94UmVzdWx0EhIKCnNpemVfYnl0ZXMYASABKAMSDAoEaGFzaBgCIAEoCSJDChFGb3JrU2FuZGJveFJlc3VsdBIbCg5kYWVtb25fdmVyc2lvbhgBIAEoCUgAiAEBQhEKD19kYWVtb25fdmVyc2lvbipdCgdKb2JUeXBlEhgKFEpPQl9UWVBFX1VOU1BFQ0lGSUVEEAASHQoZSk9CX1RZUEVfU05BUFNIT1RfU0FOREJPWBABEhkKFUpPQl9UWVBFX0ZPUktfU0FOREJPWBACQkdaRWdpdGh1Yi5jb20vZGF5dG9uYWlvL2RheXRvbmEvZ2VuL3Byb3RvL3J1bm5lci92MWFscGhhMTtydW5uZXJ2MWFscGhhMWIGcHJvdG8z',
  )

/**
 * @generated from message runner.v1alpha1.Registry
 */
export type Registry = Message<'runner.v1alpha1.Registry'> & {
  /**
   * @generated from field: string url = 1;
   */
  url: string

  /**
   * @generated from field: optional string username = 2;
   */
  username?: string

  /**
   * @generated from field: optional string password = 3;
   */
  password?: string

  /**
   * @generated from field: optional string project = 4;
   */
  project?: string
}

/**
 * Describes the message runner.v1alpha1.Registry.
 * Use `create(RegistrySchema)` to create a new message.
 */
export const RegistrySchema: GenMessage<Registry> = /*@__PURE__*/ messageDesc(file_runner_v1alpha1_job, 0)

/**
 * @generated from message runner.v1alpha1.SnapshotSandboxPayload
 */
export type SnapshotSandboxPayload = Message<'runner.v1alpha1.SnapshotSandboxPayload'> & {
  /**
   * @generated from field: string sandbox_id = 1;
   */
  sandboxId: string

  /**
   * @generated from field: string name = 2;
   */
  name: string

  /**
   * @generated from field: string organization_id = 3;
   */
  organizationId: string

  /**
   * @generated from field: optional runner.v1alpha1.Registry registry = 4;
   */
  registry?: Registry
}

/**
 * Describes the message runner.v1alpha1.SnapshotSandboxPayload.
 * Use `create(SnapshotSandboxPayloadSchema)` to create a new message.
 */
export const SnapshotSandboxPayloadSchema: GenMessage<SnapshotSandboxPayload> =
  /*@__PURE__*/
  messageDesc(file_runner_v1alpha1_job, 1)

/**
 * @generated from message runner.v1alpha1.ForkSandboxPayload
 */
export type ForkSandboxPayload = Message<'runner.v1alpha1.ForkSandboxPayload'> & {
  /**
   * @generated from field: string source_sandbox_id = 1;
   */
  sourceSandboxId: string

  /**
   * @generated from field: string new_sandbox_id = 2;
   */
  newSandboxId: string
}

/**
 * Describes the message runner.v1alpha1.ForkSandboxPayload.
 * Use `create(ForkSandboxPayloadSchema)` to create a new message.
 */
export const ForkSandboxPayloadSchema: GenMessage<ForkSandboxPayload> =
  /*@__PURE__*/
  messageDesc(file_runner_v1alpha1_job, 2)

/**
 * @generated from message runner.v1alpha1.SnapshotSandboxResult
 */
export type SnapshotSandboxResult = Message<'runner.v1alpha1.SnapshotSandboxResult'> & {
  /**
   * @generated from field: int64 size_bytes = 1;
   */
  sizeBytes: bigint

  /**
   * @generated from field: string hash = 2;
   */
  hash: string
}

/**
 * Describes the message runner.v1alpha1.SnapshotSandboxResult.
 * Use `create(SnapshotSandboxResultSchema)` to create a new message.
 */
export const SnapshotSandboxResultSchema: GenMessage<SnapshotSandboxResult> =
  /*@__PURE__*/
  messageDesc(file_runner_v1alpha1_job, 3)

/**
 * @generated from message runner.v1alpha1.ForkSandboxResult
 */
export type ForkSandboxResult = Message<'runner.v1alpha1.ForkSandboxResult'> & {
  /**
   * @generated from field: optional string daemon_version = 1;
   */
  daemonVersion?: string
}

/**
 * Describes the message runner.v1alpha1.ForkSandboxResult.
 * Use `create(ForkSandboxResultSchema)` to create a new message.
 */
export const ForkSandboxResultSchema: GenMessage<ForkSandboxResult> =
  /*@__PURE__*/
  messageDesc(file_runner_v1alpha1_job, 4)

/**
 * @generated from enum runner.v1alpha1.JobType
 */
export enum JobType {
  /**
   * @generated from enum value: JOB_TYPE_UNSPECIFIED = 0;
   */
  UNSPECIFIED = 0,

  /**
   * @generated from enum value: JOB_TYPE_SNAPSHOT_SANDBOX = 1;
   */
  SNAPSHOT_SANDBOX = 1,

  /**
   * @generated from enum value: JOB_TYPE_FORK_SANDBOX = 2;
   */
  FORK_SANDBOX = 2,
}

/**
 * Describes the enum runner.v1alpha1.JobType.
 */
export const JobTypeSchema: GenEnum<JobType> = /*@__PURE__*/ enumDesc(file_runner_v1alpha1_job, 0)
