# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: elasticdl/proto/elasticdl.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
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 google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from elasticdl.proto import tensor_dtype_pb2 as elasticdl_dot_proto_dot_tensor__dtype__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='elasticdl/proto/elasticdl.proto',
  package='master',
  syntax='proto3',
  serialized_options=None,
  serialized_pb=_b('\n\x1f\x65lasticdl/proto/elasticdl.proto\x12\x06master\x1a\x1bgoogle/protobuf/empty.proto\x1a\"elasticdl/proto/tensor_dtype.proto\"\x96\x01\n\x04Task\x12\x0f\n\x07task_id\x18\x01 \x01(\x05\x12\x16\n\x0eminibatch_size\x18\x02 \x01(\x05\x12\x12\n\nshard_name\x18\x03 \x01(\t\x12\r\n\x05start\x18\x04 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x05 \x01(\x03\x12\x15\n\rmodel_version\x18\x06 \x01(\x05\x12\x1e\n\x04type\x18\x07 \x01(\x0e\x32\x10.master.TaskType\"[\n\x06Tensor\x12\x0b\n\x03\x64im\x18\x01 \x03(\x05\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\x12\x0f\n\x07indices\x18\x03 \x03(\x05\x12\"\n\x05\x64type\x18\x04 \x01(\x0e\x32\x13.master.TensorDtype\"\x7f\n\x05Model\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\'\n\x05param\x18\x02 \x03(\x0b\x32\x18.master.Model.ParamEntry\x1a<\n\nParamEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.master.Tensor:\x02\x38\x01\"#\n\x0eGetTaskRequest\x12\x11\n\tworker_id\x18\x01 \x01(\x05\"F\n\x0fGetModelRequest\x12\"\n\x06method\x18\x01 \x01(\x0e\x32\x12.master.MethodType\x12\x0f\n\x07version\x18\x02 \x01(\x05\"\x97\x01\n\x15ReportVariableRequest\x12=\n\x08variable\x18\x01 \x03(\x0b\x32+.master.ReportVariableRequest.VariableEntry\x1a?\n\rVariableEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.master.Tensor:\x02\x38\x01\"\xc3\x01\n\x15ReportGradientRequest\x12\x13\n\x0bgradient_id\x18\x01 \x01(\x05\x12\x15\n\rmodel_version\x18\x02 \x01(\x05\x12=\n\x08gradient\x18\x03 \x03(\x0b\x32+.master.ReportGradientRequest.GradientEntry\x1a?\n\rGradientEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.master.Tensor:\x02\x38\x01\"A\n\x16ReportGradientResponse\x12\x10\n\x08\x61\x63\x63\x65pted\x18\x01 \x01(\x08\x12\x15\n\rmodel_version\x18\x02 \x01(\x05\"?\n\x17ReportTaskResultRequest\x12\x0f\n\x07task_id\x18\x01 \x01(\x05\x12\x13\n\x0b\x65rr_message\x18\x02 \x01(\t\"J\n\x1fReportEvaluationMetricsResponse\x12\x10\n\x08\x61\x63\x63\x65pted\x18\x01 \x01(\x08\x12\x15\n\rmodel_version\x18\x02 \x01(\x05\"\xdc\x01\n\x1eReportEvaluationMetricsRequest\x12\x15\n\rmodel_version\x18\x01 \x01(\x05\x12Y\n\x12\x65valuation_metrics\x18\x02 \x03(\x0b\x32=.master.ReportEvaluationMetricsRequest.EvaluationMetricsEntry\x1aH\n\x16\x45valuationMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.master.Tensor:\x02\x38\x01*B\n\x08TaskType\x12\x0c\n\x08TRAINING\x10\x00\x12\x0e\n\nEVALUATION\x10\x01\x12\x0e\n\nPREDICTION\x10\x02\x12\x08\n\x04WAIT\x10\x03*$\n\nMethodType\x12\x0b\n\x07MINIMUM\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x32\xc0\x03\n\x06Master\x12/\n\x07GetTask\x12\x16.master.GetTaskRequest\x1a\x0c.master.Task\x12\x32\n\x08GetModel\x12\x17.master.GetModelRequest\x1a\r.master.Model\x12G\n\x0eReportVariable\x12\x1d.master.ReportVariableRequest\x1a\x16.google.protobuf.Empty\x12O\n\x0eReportGradient\x12\x1d.master.ReportGradientRequest\x1a\x1e.master.ReportGradientResponse\x12j\n\x17ReportEvaluationMetrics\x12&.master.ReportEvaluationMetricsRequest\x1a\'.master.ReportEvaluationMetricsResponse\x12K\n\x10ReportTaskResult\x12\x1f.master.ReportTaskResultRequest\x1a\x16.google.protobuf.Emptyb\x06proto3')
  ,
  dependencies=[google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,elasticdl_dot_proto_dot_tensor__dtype__pb2.DESCRIPTOR,])

_TASKTYPE = _descriptor.EnumDescriptor(
  name='TaskType',
  full_name='master.TaskType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='TRAINING', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='EVALUATION', index=1, number=1,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='PREDICTION', index=2, number=2,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='WAIT', index=3, number=3,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1375,
  serialized_end=1441,
)
_sym_db.RegisterEnumDescriptor(_TASKTYPE)

TaskType = enum_type_wrapper.EnumTypeWrapper(_TASKTYPE)
_METHODTYPE = _descriptor.EnumDescriptor(
  name='MethodType',
  full_name='master.MethodType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='MINIMUM', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='FIXED', index=1, number=1,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1443,
  serialized_end=1479,
)
_sym_db.RegisterEnumDescriptor(_METHODTYPE)

MethodType = enum_type_wrapper.EnumTypeWrapper(_METHODTYPE)
TRAINING = 0
EVALUATION = 1
PREDICTION = 2
WAIT = 3
MINIMUM = 0
FIXED = 1



_TASK = _descriptor.Descriptor(
  name='Task',
  full_name='master.Task',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='task_id', full_name='master.Task.task_id', index=0,
      number=1, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='minibatch_size', full_name='master.Task.minibatch_size', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='shard_name', full_name='master.Task.shard_name', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='start', full_name='master.Task.start', index=3,
      number=4, type=3, cpp_type=2, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='end', full_name='master.Task.end', index=4,
      number=5, type=3, cpp_type=2, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='model_version', full_name='master.Task.model_version', index=5,
      number=6, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='type', full_name='master.Task.type', index=6,
      number=7, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=109,
  serialized_end=259,
)


_TENSOR = _descriptor.Descriptor(
  name='Tensor',
  full_name='master.Tensor',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='dim', full_name='master.Tensor.dim', index=0,
      number=1, type=5, cpp_type=1, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='content', full_name='master.Tensor.content', index=1,
      number=2, type=12, cpp_type=9, label=1,
      has_default_value=False, default_value=_b(""),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='indices', full_name='master.Tensor.indices', index=2,
      number=3, type=5, cpp_type=1, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='dtype', full_name='master.Tensor.dtype', index=3,
      number=4, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=261,
  serialized_end=352,
)


_MODEL_PARAMENTRY = _descriptor.Descriptor(
  name='ParamEntry',
  full_name='master.Model.ParamEntry',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='key', full_name='master.Model.ParamEntry.key', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='value', full_name='master.Model.ParamEntry.value', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=_b('8\001'),
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=421,
  serialized_end=481,
)

_MODEL = _descriptor.Descriptor(
  name='Model',
  full_name='master.Model',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='version', full_name='master.Model.version', index=0,
      number=1, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='param', full_name='master.Model.param', index=1,
      number=2, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[_MODEL_PARAMENTRY, ],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=354,
  serialized_end=481,
)


_GETTASKREQUEST = _descriptor.Descriptor(
  name='GetTaskRequest',
  full_name='master.GetTaskRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='worker_id', full_name='master.GetTaskRequest.worker_id', index=0,
      number=1, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=483,
  serialized_end=518,
)


_GETMODELREQUEST = _descriptor.Descriptor(
  name='GetModelRequest',
  full_name='master.GetModelRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='method', full_name='master.GetModelRequest.method', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='version', full_name='master.GetModelRequest.version', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=520,
  serialized_end=590,
)


_REPORTVARIABLEREQUEST_VARIABLEENTRY = _descriptor.Descriptor(
  name='VariableEntry',
  full_name='master.ReportVariableRequest.VariableEntry',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='key', full_name='master.ReportVariableRequest.VariableEntry.key', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='value', full_name='master.ReportVariableRequest.VariableEntry.value', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=_b('8\001'),
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=681,
  serialized_end=744,
)

_REPORTVARIABLEREQUEST = _descriptor.Descriptor(
  name='ReportVariableRequest',
  full_name='master.ReportVariableRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='variable', full_name='master.ReportVariableRequest.variable', index=0,
      number=1, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[_REPORTVARIABLEREQUEST_VARIABLEENTRY, ],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=593,
  serialized_end=744,
)


_REPORTGRADIENTREQUEST_GRADIENTENTRY = _descriptor.Descriptor(
  name='GradientEntry',
  full_name='master.ReportGradientRequest.GradientEntry',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='key', full_name='master.ReportGradientRequest.GradientEntry.key', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='value', full_name='master.ReportGradientRequest.GradientEntry.value', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=_b('8\001'),
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=879,
  serialized_end=942,
)

_REPORTGRADIENTREQUEST = _descriptor.Descriptor(
  name='ReportGradientRequest',
  full_name='master.ReportGradientRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='gradient_id', full_name='master.ReportGradientRequest.gradient_id', index=0,
      number=1, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='model_version', full_name='master.ReportGradientRequest.model_version', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='gradient', full_name='master.ReportGradientRequest.gradient', index=2,
      number=3, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[_REPORTGRADIENTREQUEST_GRADIENTENTRY, ],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=747,
  serialized_end=942,
)


_REPORTGRADIENTRESPONSE = _descriptor.Descriptor(
  name='ReportGradientResponse',
  full_name='master.ReportGradientResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='accepted', full_name='master.ReportGradientResponse.accepted', index=0,
      number=1, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='model_version', full_name='master.ReportGradientResponse.model_version', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=944,
  serialized_end=1009,
)


_REPORTTASKRESULTREQUEST = _descriptor.Descriptor(
  name='ReportTaskResultRequest',
  full_name='master.ReportTaskResultRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='task_id', full_name='master.ReportTaskResultRequest.task_id', index=0,
      number=1, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='err_message', full_name='master.ReportTaskResultRequest.err_message', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1011,
  serialized_end=1074,
)


_REPORTEVALUATIONMETRICSRESPONSE = _descriptor.Descriptor(
  name='ReportEvaluationMetricsResponse',
  full_name='master.ReportEvaluationMetricsResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='accepted', full_name='master.ReportEvaluationMetricsResponse.accepted', index=0,
      number=1, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='model_version', full_name='master.ReportEvaluationMetricsResponse.model_version', index=1,
      number=2, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1076,
  serialized_end=1150,
)


_REPORTEVALUATIONMETRICSREQUEST_EVALUATIONMETRICSENTRY = _descriptor.Descriptor(
  name='EvaluationMetricsEntry',
  full_name='master.ReportEvaluationMetricsRequest.EvaluationMetricsEntry',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='key', full_name='master.ReportEvaluationMetricsRequest.EvaluationMetricsEntry.key', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='value', full_name='master.ReportEvaluationMetricsRequest.EvaluationMetricsEntry.value', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=_b('8\001'),
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1301,
  serialized_end=1373,
)

_REPORTEVALUATIONMETRICSREQUEST = _descriptor.Descriptor(
  name='ReportEvaluationMetricsRequest',
  full_name='master.ReportEvaluationMetricsRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='model_version', full_name='master.ReportEvaluationMetricsRequest.model_version', index=0,
      number=1, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='evaluation_metrics', full_name='master.ReportEvaluationMetricsRequest.evaluation_metrics', index=1,
      number=2, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[_REPORTEVALUATIONMETRICSREQUEST_EVALUATIONMETRICSENTRY, ],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=1153,
  serialized_end=1373,
)

_TASK.fields_by_name['type'].enum_type = _TASKTYPE
_TENSOR.fields_by_name['dtype'].enum_type = elasticdl_dot_proto_dot_tensor__dtype__pb2._TENSORDTYPE
_MODEL_PARAMENTRY.fields_by_name['value'].message_type = _TENSOR
_MODEL_PARAMENTRY.containing_type = _MODEL
_MODEL.fields_by_name['param'].message_type = _MODEL_PARAMENTRY
_GETMODELREQUEST.fields_by_name['method'].enum_type = _METHODTYPE
_REPORTVARIABLEREQUEST_VARIABLEENTRY.fields_by_name['value'].message_type = _TENSOR
_REPORTVARIABLEREQUEST_VARIABLEENTRY.containing_type = _REPORTVARIABLEREQUEST
_REPORTVARIABLEREQUEST.fields_by_name['variable'].message_type = _REPORTVARIABLEREQUEST_VARIABLEENTRY
_REPORTGRADIENTREQUEST_GRADIENTENTRY.fields_by_name['value'].message_type = _TENSOR
_REPORTGRADIENTREQUEST_GRADIENTENTRY.containing_type = _REPORTGRADIENTREQUEST
_REPORTGRADIENTREQUEST.fields_by_name['gradient'].message_type = _REPORTGRADIENTREQUEST_GRADIENTENTRY
_REPORTEVALUATIONMETRICSREQUEST_EVALUATIONMETRICSENTRY.fields_by_name['value'].message_type = _TENSOR
_REPORTEVALUATIONMETRICSREQUEST_EVALUATIONMETRICSENTRY.containing_type = _REPORTEVALUATIONMETRICSREQUEST
_REPORTEVALUATIONMETRICSREQUEST.fields_by_name['evaluation_metrics'].message_type = _REPORTEVALUATIONMETRICSREQUEST_EVALUATIONMETRICSENTRY
DESCRIPTOR.message_types_by_name['Task'] = _TASK
DESCRIPTOR.message_types_by_name['Tensor'] = _TENSOR
DESCRIPTOR.message_types_by_name['Model'] = _MODEL
DESCRIPTOR.message_types_by_name['GetTaskRequest'] = _GETTASKREQUEST
DESCRIPTOR.message_types_by_name['GetModelRequest'] = _GETMODELREQUEST
DESCRIPTOR.message_types_by_name['ReportVariableRequest'] = _REPORTVARIABLEREQUEST
DESCRIPTOR.message_types_by_name['ReportGradientRequest'] = _REPORTGRADIENTREQUEST
DESCRIPTOR.message_types_by_name['ReportGradientResponse'] = _REPORTGRADIENTRESPONSE
DESCRIPTOR.message_types_by_name['ReportTaskResultRequest'] = _REPORTTASKRESULTREQUEST
DESCRIPTOR.message_types_by_name['ReportEvaluationMetricsResponse'] = _REPORTEVALUATIONMETRICSRESPONSE
DESCRIPTOR.message_types_by_name['ReportEvaluationMetricsRequest'] = _REPORTEVALUATIONMETRICSREQUEST
DESCRIPTOR.enum_types_by_name['TaskType'] = _TASKTYPE
DESCRIPTOR.enum_types_by_name['MethodType'] = _METHODTYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), {
  'DESCRIPTOR' : _TASK,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.Task)
  })
_sym_db.RegisterMessage(Task)

Tensor = _reflection.GeneratedProtocolMessageType('Tensor', (_message.Message,), {
  'DESCRIPTOR' : _TENSOR,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.Tensor)
  })
_sym_db.RegisterMessage(Tensor)

Model = _reflection.GeneratedProtocolMessageType('Model', (_message.Message,), {

  'ParamEntry' : _reflection.GeneratedProtocolMessageType('ParamEntry', (_message.Message,), {
    'DESCRIPTOR' : _MODEL_PARAMENTRY,
    '__module__' : 'elasticdl.proto.elasticdl_pb2'
    # @@protoc_insertion_point(class_scope:master.Model.ParamEntry)
    })
  ,
  'DESCRIPTOR' : _MODEL,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.Model)
  })
_sym_db.RegisterMessage(Model)
_sym_db.RegisterMessage(Model.ParamEntry)

GetTaskRequest = _reflection.GeneratedProtocolMessageType('GetTaskRequest', (_message.Message,), {
  'DESCRIPTOR' : _GETTASKREQUEST,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.GetTaskRequest)
  })
_sym_db.RegisterMessage(GetTaskRequest)

GetModelRequest = _reflection.GeneratedProtocolMessageType('GetModelRequest', (_message.Message,), {
  'DESCRIPTOR' : _GETMODELREQUEST,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.GetModelRequest)
  })
_sym_db.RegisterMessage(GetModelRequest)

ReportVariableRequest = _reflection.GeneratedProtocolMessageType('ReportVariableRequest', (_message.Message,), {

  'VariableEntry' : _reflection.GeneratedProtocolMessageType('VariableEntry', (_message.Message,), {
    'DESCRIPTOR' : _REPORTVARIABLEREQUEST_VARIABLEENTRY,
    '__module__' : 'elasticdl.proto.elasticdl_pb2'
    # @@protoc_insertion_point(class_scope:master.ReportVariableRequest.VariableEntry)
    })
  ,
  'DESCRIPTOR' : _REPORTVARIABLEREQUEST,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.ReportVariableRequest)
  })
_sym_db.RegisterMessage(ReportVariableRequest)
_sym_db.RegisterMessage(ReportVariableRequest.VariableEntry)

ReportGradientRequest = _reflection.GeneratedProtocolMessageType('ReportGradientRequest', (_message.Message,), {

  'GradientEntry' : _reflection.GeneratedProtocolMessageType('GradientEntry', (_message.Message,), {
    'DESCRIPTOR' : _REPORTGRADIENTREQUEST_GRADIENTENTRY,
    '__module__' : 'elasticdl.proto.elasticdl_pb2'
    # @@protoc_insertion_point(class_scope:master.ReportGradientRequest.GradientEntry)
    })
  ,
  'DESCRIPTOR' : _REPORTGRADIENTREQUEST,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.ReportGradientRequest)
  })
_sym_db.RegisterMessage(ReportGradientRequest)
_sym_db.RegisterMessage(ReportGradientRequest.GradientEntry)

ReportGradientResponse = _reflection.GeneratedProtocolMessageType('ReportGradientResponse', (_message.Message,), {
  'DESCRIPTOR' : _REPORTGRADIENTRESPONSE,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.ReportGradientResponse)
  })
_sym_db.RegisterMessage(ReportGradientResponse)

ReportTaskResultRequest = _reflection.GeneratedProtocolMessageType('ReportTaskResultRequest', (_message.Message,), {
  'DESCRIPTOR' : _REPORTTASKRESULTREQUEST,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.ReportTaskResultRequest)
  })
_sym_db.RegisterMessage(ReportTaskResultRequest)

ReportEvaluationMetricsResponse = _reflection.GeneratedProtocolMessageType('ReportEvaluationMetricsResponse', (_message.Message,), {
  'DESCRIPTOR' : _REPORTEVALUATIONMETRICSRESPONSE,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.ReportEvaluationMetricsResponse)
  })
_sym_db.RegisterMessage(ReportEvaluationMetricsResponse)

ReportEvaluationMetricsRequest = _reflection.GeneratedProtocolMessageType('ReportEvaluationMetricsRequest', (_message.Message,), {

  'EvaluationMetricsEntry' : _reflection.GeneratedProtocolMessageType('EvaluationMetricsEntry', (_message.Message,), {
    'DESCRIPTOR' : _REPORTEVALUATIONMETRICSREQUEST_EVALUATIONMETRICSENTRY,
    '__module__' : 'elasticdl.proto.elasticdl_pb2'
    # @@protoc_insertion_point(class_scope:master.ReportEvaluationMetricsRequest.EvaluationMetricsEntry)
    })
  ,
  'DESCRIPTOR' : _REPORTEVALUATIONMETRICSREQUEST,
  '__module__' : 'elasticdl.proto.elasticdl_pb2'
  # @@protoc_insertion_point(class_scope:master.ReportEvaluationMetricsRequest)
  })
_sym_db.RegisterMessage(ReportEvaluationMetricsRequest)
_sym_db.RegisterMessage(ReportEvaluationMetricsRequest.EvaluationMetricsEntry)


_MODEL_PARAMENTRY._options = None
_REPORTVARIABLEREQUEST_VARIABLEENTRY._options = None
_REPORTGRADIENTREQUEST_GRADIENTENTRY._options = None
_REPORTEVALUATIONMETRICSREQUEST_EVALUATIONMETRICSENTRY._options = None

_MASTER = _descriptor.ServiceDescriptor(
  name='Master',
  full_name='master.Master',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  serialized_start=1482,
  serialized_end=1930,
  methods=[
  _descriptor.MethodDescriptor(
    name='GetTask',
    full_name='master.Master.GetTask',
    index=0,
    containing_service=None,
    input_type=_GETTASKREQUEST,
    output_type=_TASK,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='GetModel',
    full_name='master.Master.GetModel',
    index=1,
    containing_service=None,
    input_type=_GETMODELREQUEST,
    output_type=_MODEL,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='ReportVariable',
    full_name='master.Master.ReportVariable',
    index=2,
    containing_service=None,
    input_type=_REPORTVARIABLEREQUEST,
    output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='ReportGradient',
    full_name='master.Master.ReportGradient',
    index=3,
    containing_service=None,
    input_type=_REPORTGRADIENTREQUEST,
    output_type=_REPORTGRADIENTRESPONSE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='ReportEvaluationMetrics',
    full_name='master.Master.ReportEvaluationMetrics',
    index=4,
    containing_service=None,
    input_type=_REPORTEVALUATIONMETRICSREQUEST,
    output_type=_REPORTEVALUATIONMETRICSRESPONSE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='ReportTaskResult',
    full_name='master.Master.ReportTaskResult',
    index=5,
    containing_service=None,
    input_type=_REPORTTASKRESULTREQUEST,
    output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    serialized_options=None,
  ),
])
_sym_db.RegisterServiceDescriptor(_MASTER)

DESCRIPTOR.services_by_name['Master'] = _MASTER

# @@protoc_insertion_point(module_scope)
