def METHOD_NAME(p):
    expect(p).not_to(be_none)
    name = p.__class__.__name__
    expect(name).to(start_with('InterfaceProtocolConfig'))
    proto = name[23:].lower()
    expect(proto).not_to(be_empty)
    pc = client.models.InterfaceProtocolConfig()
    expect(pc).to(have_property(proto))
    setattr(pc, proto, p)
    return pc