def to_proto(self): return meta_pb2.ServerNode(id=self._id, name=self._name, clusterId=self._cluster_id, endpoint=_to_proto(self._endpoint), nodeType=self._node_type, status=self._status)
def to_proto(self): return meta_pb2.Task(id=self._id, name=self._name, inputs=_elements_to_proto(self._inputs), outputs=_elements_to_proto(self._outputs), job=_to_proto(self._job))