def init_discarded(value=None):
    'init discarded field with value and return message like representation'
    discarded = []
    if value:
        discarded.append(value)
    return invalid_index_serializer.serialize(discarded, toBytes=False)
init discarded field with value and return message like representation
def init_discarded(value=None):
    
    discarded = []
    if value:
        discarded.append(value)
    return invalid_index_serializer.serialize(discarded, toBytes=False)