
import google.protobuf
from packaging.version import Version
if Version(google.protobuf.__version__).major >= 5:
  # -*- coding: utf-8 -*-
  # Generated by the protocol buffer compiler.  DO NOT EDIT!
  # source: jobs.proto
  # Protobuf Python Version: 5.26.0
  """Generated protocol buffer code."""
  from google.protobuf import descriptor as _descriptor
  from google.protobuf import descriptor_pool as _descriptor_pool
  from google.protobuf import symbol_database as _symbol_database
  from google.protobuf.internal import builder as _builder
  # @@protoc_insertion_point(imports)

  _sym_db = _symbol_database.Default()


  from .scalapb import scalapb_pb2 as scalapb_dot_scalapb__pb2


  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\njobs.proto\x12\x06mlflow\x1a\x15scalapb/scalapb.proto\"\xa7\x01\n\x08JobState\x12!\n\x06status\x18\x01 \x01(\x0e\x32\x11.mlflow.JobStatus\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12\x30\n\x08metadata\x18\x03 \x03(\x0b\x32\x1e.mlflow.JobState.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*\xa5\x01\n\tJobStatus\x12\x1a\n\x16JOB_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12JOB_STATUS_PENDING\x10\x01\x12\x1a\n\x16JOB_STATUS_IN_PROGRESS\x10\x02\x12\x18\n\x14JOB_STATUS_COMPLETED\x10\x03\x12\x15\n\x11JOB_STATUS_FAILED\x10\x04\x12\x17\n\x13JOB_STATUS_CANCELED\x10\x05\x42\x1e\n\x14org.mlflow.api.proto\x90\x01\x01\xe2?\x02\x10\x01')

  _globals = globals()
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'jobs_pb2', _globals)
  if not _descriptor._USE_C_DESCRIPTORS:
    _globals['DESCRIPTOR']._loaded_options = None
    _globals['DESCRIPTOR']._serialized_options = b'\n\024org.mlflow.api.proto\220\001\001\342?\002\020\001'
    _globals['_JOBSTATE_METADATAENTRY']._loaded_options = None
    _globals['_JOBSTATE_METADATAENTRY']._serialized_options = b'8\001'
    _globals['_JOBSTATUS']._serialized_start=216
    _globals['_JOBSTATUS']._serialized_end=381
    _globals['_JOBSTATE']._serialized_start=46
    _globals['_JOBSTATE']._serialized_end=213
    _globals['_JOBSTATE_METADATAENTRY']._serialized_start=166
    _globals['_JOBSTATE_METADATAENTRY']._serialized_end=213
  # @@protoc_insertion_point(module_scope)

else:
  # -*- coding: utf-8 -*-
  # Generated by the protocol buffer compiler.  DO NOT EDIT!
  # source: jobs.proto
  """Generated protocol buffer code."""
  from google.protobuf.internal import enum_type_wrapper
  from google.protobuf import descriptor as _descriptor
  from google.protobuf import descriptor_pool as _descriptor_pool
  from google.protobuf import message as _message
  from google.protobuf import reflection as _reflection
  from google.protobuf import symbol_database as _symbol_database
  # @@protoc_insertion_point(imports)

  _sym_db = _symbol_database.Default()


  from .scalapb import scalapb_pb2 as scalapb_dot_scalapb__pb2


  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\njobs.proto\x12\x06mlflow\x1a\x15scalapb/scalapb.proto\"\xa7\x01\n\x08JobState\x12!\n\x06status\x18\x01 \x01(\x0e\x32\x11.mlflow.JobStatus\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12\x30\n\x08metadata\x18\x03 \x03(\x0b\x32\x1e.mlflow.JobState.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*\xa5\x01\n\tJobStatus\x12\x1a\n\x16JOB_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12JOB_STATUS_PENDING\x10\x01\x12\x1a\n\x16JOB_STATUS_IN_PROGRESS\x10\x02\x12\x18\n\x14JOB_STATUS_COMPLETED\x10\x03\x12\x15\n\x11JOB_STATUS_FAILED\x10\x04\x12\x17\n\x13JOB_STATUS_CANCELED\x10\x05\x42\x1e\n\x14org.mlflow.api.proto\x90\x01\x01\xe2?\x02\x10\x01')

  _JOBSTATUS = DESCRIPTOR.enum_types_by_name['JobStatus']
  JobStatus = enum_type_wrapper.EnumTypeWrapper(_JOBSTATUS)
  JOB_STATUS_UNSPECIFIED = 0
  JOB_STATUS_PENDING = 1
  JOB_STATUS_IN_PROGRESS = 2
  JOB_STATUS_COMPLETED = 3
  JOB_STATUS_FAILED = 4
  JOB_STATUS_CANCELED = 5


  _JOBSTATE = DESCRIPTOR.message_types_by_name['JobState']
  _JOBSTATE_METADATAENTRY = _JOBSTATE.nested_types_by_name['MetadataEntry']
  JobState = _reflection.GeneratedProtocolMessageType('JobState', (_message.Message,), {

    'MetadataEntry' : _reflection.GeneratedProtocolMessageType('MetadataEntry', (_message.Message,), {
      'DESCRIPTOR' : _JOBSTATE_METADATAENTRY,
      '__module__' : 'jobs_pb2'
      # @@protoc_insertion_point(class_scope:mlflow.JobState.MetadataEntry)
      })
    ,
    'DESCRIPTOR' : _JOBSTATE,
    '__module__' : 'jobs_pb2'
    # @@protoc_insertion_point(class_scope:mlflow.JobState)
    })
  _sym_db.RegisterMessage(JobState)
  _sym_db.RegisterMessage(JobState.MetadataEntry)

  if _descriptor._USE_C_DESCRIPTORS == False:

    DESCRIPTOR._options = None
    DESCRIPTOR._serialized_options = b'\n\024org.mlflow.api.proto\220\001\001\342?\002\020\001'
    _JOBSTATE_METADATAENTRY._options = None
    _JOBSTATE_METADATAENTRY._serialized_options = b'8\001'
    _JOBSTATUS._serialized_start=216
    _JOBSTATUS._serialized_end=381
    _JOBSTATE._serialized_start=46
    _JOBSTATE._serialized_end=213
    _JOBSTATE_METADATAENTRY._serialized_start=166
    _JOBSTATE_METADATAENTRY._serialized_end=213
  # @@protoc_insertion_point(module_scope)

