core/src/main/java/org/elasticsearch/action/support/replication/ReplicationRequest.java
@SuppressWarnings("unchecked")
    public final Request consistencyLevel(WriteConsistencyLevel consistencyLevel) {
        this.consistencyLevel = consistencyLevel;
        return (Request) this;
    }
/**
     * Sets the consistency level of write. Defaults to {@link org.elasticsearch.action.WriteConsistencyLevel#DEFAULT}
     */
Sets the consistency level of write.
Sets the consistency level of write .
@SuppressWarnings("unchecked")
    public final Request consistencyLevel(WriteConsistencyLevel consistencyLevel) {
        this.consistencyLevel = consistencyLevel;
        return (Request) this;
    }
@ SuppressWarnings ( "unchecked" ) public final Request consistencyLevel ( WriteConsistencyLevel consistencyLevel ) { this . consistencyLevel = consistencyLevel ; return ( Request ) this ; }
Sets the consistency level of write.
Sets the consistency level of write .