# frozen_string_literal: true

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: api/brisk-api.proto

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
require 'api/shared_types_pb'

descriptor_data = "\n\x13\x61pi/brisk-api.proto\x12\x03\x61pi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16\x61pi/shared_types.proto\"J\n\x0cSplitRequest\x12\x12\n\nalogorithm\x18\x01 \x01(\t\x12\x13\n\x0bnum_buckets\x18\x02 \x01(\x05\x12\x11\n\tfilenames\x18\x03 \x03(\t\"I\n\rSplitResponse\x12\"\n\nfile_lists\x18\x01 \x03(\x0b\x32\x0e.api.TestFiles\x12\x14\n\x0csplit_method\x18\x02 \x01(\t\"\x1e\n\tTestFiles\x12\x11\n\tfilenames\x18\x01 \x03(\t\"+\n\nMachineReq\x12\x1d\n\x07machine\x18\x01 \x01(\x0b\x32\x0c.api.Machine\"0\n\x0fMachineResponse\x12\x1d\n\x07machine\x18\x01 \x01(\x0b\x32\x0c.api.Machine\"\xf3\x01\n\x07Machine\x12\x12\n\nip_address\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x0f\n\x07host_ip\x18\x03 \x01(\t\x12\x0b\n\x03uid\x18\x04 \x01(\t\x12\x0f\n\x07os_info\x18\x05 \x01(\t\x12\x10\n\x08host_uid\x18\x06 \x01(\t\x12\r\n\x05image\x18\x07 \x01(\t\x12\x0c\n\x04type\x18\x08 \x01(\t\x12\r\n\x05state\x18\t \x01(\t\x12\x0e\n\x06region\x18\n \x01(\t\x12\x0c\n\x04\x63pus\x18\x0b \x01(\r\x12\x0e\n\x06memory\x18\x0c \x01(\t\x12\x0c\n\x04\x64isk\x18\r \x01(\t\x12\x11\n\tjson_data\x18\x0e \x01(\t\x12\n\n\x02id\x18\x0f \x01(\r\"4\n\x14\x44\x65RegisterWorkersReq\x12\x1c\n\x07workers\x18\x01 \x03(\x0b\x32\x0b.api.Worker\"\'\n\x15\x44\x65RegisterWorkersResp\x12\x0e\n\x06status\x18\x01 \x01(\t\"Q\n\tLogRunReq\x12%\n\x0fworker_run_info\x18\x01 \x01(\x0b\x32\x0c.api.RunInfo\x12\x1d\n\x07\x63ommand\x18\x02 \x01(\x0b\x32\x0c.api.Command\"\x1d\n\nLogRunResp\x12\x0f\n\x07success\x18\x01 \x01(\x08\"#\n\x11GetAllProjectsReq\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\"E\n\x12GetAllProjectsResp\x12\x1e\n\x08projects\x18\x01 \x03(\x0b\x32\x0c.api.Project\x12\x0f\n\x07message\x18\x02 \x01(\t\"#\n\x0eInitProjectReq\x12\x11\n\tframework\x18\x01 \x01(\t\"@\n\x0fInitProjectResp\x12\x1d\n\x07project\x18\x01 \x01(\x0b\x32\x0c.api.Project\x12\x0e\n\x06status\x18\x02 \x01(\t\"\x89\x01\n\x0cWorkerRegReq\x12\x12\n\nip_address\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x0f\n\x07host_ip\x18\x03 \x01(\t\x12\x0b\n\x03uid\x18\x04 \x01(\t\x12\x14\n\x0cworker_image\x18\x05 \x01(\t\x12\x10\n\x08host_uid\x18\x06 \x01(\t\x12\x11\n\tsync_port\x18\x07 \x01(\t\"B\n\x0fUnreacheableReq\x12\x19\n\x05super\x18\x01 \x01(\x0b\x32\n.api.Super\x12\x14\n\x0cprojectToken\x18\x02 \x01(\t\",\n\x0fUnreachableResp\x12\x19\n\x05super\x18\x01 \x01(\x0b\x32\n.api.Super\"\x0c\n\nWorkersReq\"+\n\x0bWorkersResp\x12\x1c\n\x07workers\x18\x01 \x03(\x0b\x32\x0b.api.Worker\"\xa4\x01\n\x0bSuperRegReq\x12\x12\n\nip_address\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x0f\n\x07host_ip\x18\x03 \x01(\t\x12\x11\n\tsync_port\x18\x04 \x01(\t\x12\x19\n\x11\x65xternal_endpoint\x18\x05 \x01(\t\x12\x15\n\rsync_endpoint\x18\x06 \x01(\t\x12\x0b\n\x03uid\x18\x07 \x01(\t\x12\x10\n\x08host_uid\x18\x08 \x01(\t\"\x18\n\tWorkerReq\x12\x0b\n\x03uid\x18\x01 \x01(\t\")\n\x0f\x43learWorkersReq\x12\x16\n\x0esupervisor_uid\x18\x01 \x01(\t\"\"\n\x10\x43learWorkersResp\x12\x0e\n\x06status\x18\x01 \x01(\t\"\x16\n\x08SuperReq\x12\n\n\x02id\x18\x01 \x01(\x04\"*\n\rSuperResponse\x12\x19\n\x05super\x18\x01 \x01(\x0b\x32\n.api.Super\"\x1c\n\x0e\x43ommandsRunReq\x12\n\n\x02id\x18\x01 \x01(\x04\"-\n\x0eWorkerResponse\x12\x1b\n\x06worker\x18\x01 \x01(\x0b\x32\x0b.api.Worker\"\x9b\x01\n\rGetWorkersReq\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x04\x12\x14\n\x0cworker_image\x18\x03 \x01(\t\x12\x16\n\x0esupervisor_uid\x18\x04 \x01(\t\x12\x14\n\x0crebuild_hash\x18\x05 \x01(\t\x12 \n\trepo_info\x18\x06 \x01(\x0b\x32\r.api.RepoInfo\x12\x0f\n\x07log_uid\x18\x07 \x01(\t\"V\n\x0eGetWorkersResp\x12\x1c\n\x07workers\x18\x01 \x03(\x0b\x32\x0b.api.Worker\x12\x11\n\tjobrun_id\x18\x02 \x01(\r\x12\x13\n\x0bjobrun_link\x18\x03 \x01(\t\"R\n\x0bGetSuperReq\x12\x15\n\rproject_token\x18\x01 \x01(\t\x12\x1a\n\x12unique_instance_id\x18\x02 \x01(\t\x12\x10\n\x08\x61\x66\x66inity\x18\x03 \x01(\t\")\n\x0cGetSuperResp\x12\x19\n\x05super\x18\x01 \x01(\x0b\x32\n.api.Super\"\xbe\x01\n\x05Super\x12\x12\n\nip_address\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\r\n\x05state\x18\x04 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x05 \x01(\t\x12\n\n\x02id\x18\x06 \x01(\x04\x12\x11\n\tsync_port\x18\x07 \x01(\t\x12\x15\n\rsync_endpoint\x18\x08 \x01(\t\x12\x19\n\x11\x65xternal_endpoint\x18\t \x01(\t\x12\x0b\n\x03uid\x18\n \x01(\t\x12\x14\n\x0csetup_run_at\x18\x0b \x01(\t\"\xeb\x01\n\x06Worker\x12\x12\n\nip_address\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x39\n\x15\x62uild_commands_run_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05state\x18\x04 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x05 \x01(\t\x12\n\n\x02id\x18\x06 \x01(\x04\x12\x0b\n\x03uid\x18\x07 \x01(\t\x12\x0f\n\x07host_ip\x18\x08 \x01(\t\x12\x14\n\x0cworker_image\x18\t \x01(\t\x12\x10\n\x08host_uid\x18\n \x01(\t\x12\x11\n\tsync_port\x18\x0b \x01(\t\"\xa4\x01\n\x07Project\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rproject_token\x18\x02 \x01(\t\x12\x10\n\x08username\x18\x03 \x01(\t\x12\x0e\n\x06org_id\x18\x04 \x01(\x04\x12\x0f\n\x07user_id\x18\x05 \x01(\x04\x12\n\n\x02id\x18\x06 \x01(\x04\x12\x13\n\x0b\x63oncurrency\x18\x07 \x01(\x04\x12\x11\n\tframework\x18\x08 \x01(\t\x12\r\n\x05image\x18\t \x01(\t\"\x0f\n\rGetProjectReq\"\xff\x01\n\x10\x46inishRunRequest\x12\x11\n\texit_code\x18\x01 \x01(\x05\x12\x11\n\tjobrun_id\x18\x02 \x01(\x05\x12\x0e\n\x06output\x18\x04 \x01(\t\x12\r\n\x05\x65rror\x18\x05 \x01(\t\x12!\n\x06status\x18\x06 \x01(\x0e\x32\x11.api.JobRunStatus\x12\x16\n\x0esupervisor_uid\x18\x07 \x01(\t\x12%\n\x0fworker_run_info\x18\x08 \x03(\x0b\x32\x0c.api.RunInfo\x12\x1a\n\x12\x66inal_worker_count\x18\t \x01(\x05\x12(\n\x13sync_failed_workers\x18\n \x03(\x0b\x32\x0b.api.Worker\"\xd3\x02\n\x07RunInfo\x12\x11\n\tworker_id\x18\x01 \x01(\r\x12\x14\n\x0crebuild_hash\x18\x02 \x01(\t\x12\x11\n\texit_code\x18\x03 \x01(\t\x12\x0e\n\x06output\x18\x04 \x01(\t\x12/\n\x0b\x66inished_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05\x65rror\x18\x07 \x01(\t\x12\r\n\x05\x66iles\x18\x08 \x03(\t\x12\x0b\n\x03uid\x18\t \x01(\t\x12\x1a\n\x12log_encryption_key\x18\n \x01(\t\x12\x14\n\x0clog_location\x18\x0b \x01(\t\x12\x11\n\tjobrun_id\x18\x0c \x01(\r\x12+\n\x0f\x65xecution_infos\x18\r \x03(\x0b\x32\x12.api.ExecutionInfo\"1\n\x11\x46inishRunResponse\x12\r\n\x05state\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"/\n\x0eGetProjectResp\x12\x1d\n\x07project\x18\x01 \x01(\x0b\x32\x0c.api.Project\"\x1d\n\x0cLoginRequest\x12\r\n\x05nonce\x18\x01 \x01(\t\"h\n\rLoginResponse\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\t\x12%\n\x0b\x63redentials\x18\x04 \x01(\x0b\x32\x10.api.Credentials\"1\n\x0b\x43redentials\x12\x11\n\tapi_token\x18\x01 \x01(\t\x12\x0f\n\x07\x61pi_key\x18\x02 \x01(\t*)\n\x0cJobRunStatus\x12\r\n\tcompleted\x10\x00\x12\n\n\x06\x66\x61iled\x10\x01\x32G\n\tSplitting\x12:\n\x0fSplitForProject\x12\x11.api.SplitRequest\x1a\x12.api.SplitResponse\"\x00\x32\xba\x01\n\x05Infra\x12:\n\x0fRegisterMachine\x12\x0f.api.MachineReq\x1a\x14.api.MachineResponse\"\x00\x12<\n\x11\x44\x65RegisterMachine\x12\x0f.api.MachineReq\x1a\x14.api.MachineResponse\"\x00\x12\x37\n\x0c\x44rainMachine\x12\x0f.api.MachineReq\x1a\x14.api.MachineResponse\"\x00\x32;\n\x05Users\x12\x32\n\x05Login\x12\x11.api.LoginRequest\x1a\x12.api.LoginResponse\"\x00\x30\x01\x32\x93\x05\n\x08Projects\x12+\n\x06LogRun\x12\x0e.api.LogRunReq\x1a\x0f.api.LogRunResp\"\x00\x12<\n\tFinishRun\x12\x15.api.FinishRunRequest\x1a\x16.api.FinishRunResponse\"\x00\x12\x37\n\nGetProject\x12\x12.api.GetProjectReq\x1a\x13.api.GetProjectResp\"\x00\x12\x41\n\x14GetWorkersForProject\x12\x12.api.GetWorkersReq\x1a\x13.api.GetWorkersResp\"\x00\x12;\n\x12GetSuperForProject\x12\x10.api.GetSuperReq\x1a\x11.api.GetSuperResp\"\x00\x12K\n\x1eGetAdditionalWorkersForProject\x12\x12.api.GetWorkersReq\x1a\x13.api.GetWorkersResp\"\x00\x12G\n\x16\x43learWorkersForProject\x12\x14.api.ClearWorkersReq\x1a\x15.api.ClearWorkersResp\"\x00\x12L\n\x11\x44\x65RegisterWorkers\x12\x19.api.DeRegisterWorkersReq\x1a\x1a.api.DeRegisterWorkersResp\"\x00\x12:\n\x0bInitProject\x12\x13.api.InitProjectReq\x1a\x14.api.InitProjectResp\"\x00\x12\x43\n\x0eGetAllProjects\x12\x16.api.GetAllProjectsReq\x1a\x17.api.GetAllProjectsResp\"\x00\x32\xa7\x02\n\x07Workers\x12\x31\n\x08\x46inished\x12\x0e.api.WorkerReq\x1a\x13.api.WorkerResponse\"\x00\x12>\n\x10\x42uildCommandsRun\x12\x13.api.CommandsRunReq\x1a\x13.api.WorkerResponse\"\x00\x12\x34\n\x08Register\x12\x11.api.WorkerRegReq\x1a\x13.api.WorkerResponse\"\x00\x12\x33\n\nDeRegister\x12\x0e.api.WorkerReq\x1a\x13.api.WorkerResponse\"\x00\x12>\n\x17GetRecentlyDeregistered\x12\x0f.api.WorkersReq\x1a\x10.api.WorkersResp\"\x00\x32\x9c\x02\n\x06Supers\x12/\n\x08\x46inished\x12\r.api.SuperReq\x1a\x12.api.SuperResponse\"\x00\x12\x32\n\x08Register\x12\x10.api.SuperRegReq\x1a\x12.api.SuperResponse\"\x00\x12\x31\n\nDeRegister\x12\r.api.SuperReq\x1a\x12.api.SuperResponse\"\x00\x12\x46\n\x16MarkSuperAsUnreachable\x12\x14.api.UnreacheableReq\x1a\x14.api.UnreachableResp\"\x00\x12\x32\n\x0bRecordSetup\x12\r.api.SuperReq\x1a\x12.api.SuperResponse\"\x00\x42\x07Z\x05./apib\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ['api.Command', 'api/shared_types.proto'],
    ['google.protobuf.Timestamp', 'google/protobuf/timestamp.proto']
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn 'Each proto file must use a consistent fully-qualified name.'
  warn 'This will become an error in the next major version.'
end

module Api
  SplitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.SplitRequest').msgclass
  SplitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.SplitResponse').msgclass
  TestFiles = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.TestFiles').msgclass
  MachineReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.MachineReq').msgclass
  MachineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.MachineResponse').msgclass
  Machine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.Machine').msgclass
  DeRegisterWorkersReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.DeRegisterWorkersReq').msgclass
  DeRegisterWorkersResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.DeRegisterWorkersResp').msgclass
  LogRunReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.LogRunReq').msgclass
  LogRunResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.LogRunResp').msgclass
  GetAllProjectsReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetAllProjectsReq').msgclass
  GetAllProjectsResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetAllProjectsResp').msgclass
  InitProjectReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.InitProjectReq').msgclass
  InitProjectResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.InitProjectResp').msgclass
  WorkerRegReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.WorkerRegReq').msgclass
  UnreacheableReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.UnreacheableReq').msgclass
  UnreachableResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.UnreachableResp').msgclass
  WorkersReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.WorkersReq').msgclass
  WorkersResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.WorkersResp').msgclass
  SuperRegReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.SuperRegReq').msgclass
  WorkerReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.WorkerReq').msgclass
  ClearWorkersReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.ClearWorkersReq').msgclass
  ClearWorkersResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.ClearWorkersResp').msgclass
  SuperReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.SuperReq').msgclass
  SuperResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.SuperResponse').msgclass
  CommandsRunReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.CommandsRunReq').msgclass
  WorkerResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.WorkerResponse').msgclass
  GetWorkersReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetWorkersReq').msgclass
  GetWorkersResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetWorkersResp').msgclass
  GetSuperReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetSuperReq').msgclass
  GetSuperResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetSuperResp').msgclass
  Super = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.Super').msgclass
  Worker = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.Worker').msgclass
  Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.Project').msgclass
  GetProjectReq = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetProjectReq').msgclass
  FinishRunRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.FinishRunRequest').msgclass
  RunInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.RunInfo').msgclass
  FinishRunResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.FinishRunResponse').msgclass
  GetProjectResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.GetProjectResp').msgclass
  LoginRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.LoginRequest').msgclass
  LoginResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.LoginResponse').msgclass
  Credentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.Credentials').msgclass
  JobRunStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup('api.JobRunStatus').enummodule
end
