def METHOD_NAME(value, endpoint=None):
    if isinstance(value, unicode):
        value = value.encode('utf-8')
    return ttypes.Annotation(time.time() * 1000 * 1000,
                             str(value), endpoint)