def is_complete_v1_key(v1_key):
 assert (len(v1_key.path) >= 1)
 last_element = v1_key.path[(len(v1_key.path) - 1)]
 return (last_element.WhichOneof('id_type') is not None)

def is_complete_v1_key ( v1_key ) : assert ( len ( v1_key . path ) >= 1 ) last_element = v1_key . path [ ( len ( v1_key . path ) - 1 ) ] return ( last_element . WhichOneof ( 'id_type' ) is not None )
returns true if a key specifies an id or name .