public com . google . cloud . datastore . Key createRawAny ( final com . google . cloud . datastore . Key parent , final String kind , final Object id ) { if ( id instanceof String ) return createRaw ( parent , kind , ( String ) id ) ; else if ( id instanceof Long ) return createRaw ( parent , kind , ( Long ) id ) ; else throw new IllegalArgumentException ( "id '" + id + "' must be String or Long" ) ; }
Construct a Key from a Long or String id