public int compareTo(getCounter_args other) {
            if (!getClass().equals(other.getClass())) {
                return getClass().getName().compareTo(other.getClass().getName());
            }

            int lastComparison = 0;
            getCounter_args typedOther = (getCounter_args) other;

            lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
            if (lastComparison != 0) {
                return lastComparison;
            }
            if (isSetKey()) {
                lastComparison = TBaseHelper.compareTo(this.key, typedOther.key);
                if (lastComparison != 0) {
                    return lastComparison;
                }
            }
            return 0;
        }