def from_proto_string(pb_string): pb_message = command_pb2.CommandResponse() msg_len = pb_message.ParseFromString(pb_string) return ErCommandResponse.from_proto(pb_message)
def to_proto(self): return command_pb2.CommandResponse( id=self._id, request=self._request.to_proto() if self._request else None, results=self._results)