def proto_has_field(param_pkg, key_name):
    """
    Judge if proto message field param_pkg has key key_name
    """
    for field in param_pkg.DESCRIPTOR.fields:
        if field.name == key_name:
            return True
    return False