def from_proto_string(pb_string): pb_message = meta_pb2.ProcessorBatch() msg_len = pb_message.ParseFromString(pb_string) return ErProcessorBatch.from_proto(pb_message)
def to_proto(self): return meta_pb2.ProcessorBatch(id=self._id, name=self._name, processors=_elements_to_proto( self._processors), tag=self._tag)