Ejemplo n.º 1
0
 def from_proto_string(pb_string):
     pb_message = meta_pb2.PairBatch()
     msg_len = pb_message.ParseFromString(pb_string)
     return ErPairBatch.from_proto(pb_message)
Ejemplo n.º 2
0
 def to_proto(self):
     return meta_pb2.PairBatch(pairs=_elements_to_proto(self._pairs))