public String getName() {
        return this.name;
    }
Gets the name of the variable if it was defined as such and returns null if the value was a literal.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GValue.java