public boolean getFlag() { if (getSetField() == _Fields.FLAG) { return (Boolean)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'flag' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public Map<String,String> getUnionMStringString() { if (getSetField() == _Fields.UNION_MSTRING_STRING) { return (Map<String,String>)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'unionMStringString' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public double getDoubleValue() { if (getSetField() == _Fields.DOUBLE_VALUE) { return (Double)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'doubleValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public List<String> getLString() { if (getSetField() == _Fields.L_STRING) { return (List<String>)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'lString' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public long getLongValue() { if (getSetField() == _Fields.LONG_VALUE) { return (Long)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'longValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public int getIntValue() { if (getSetField() == _Fields.INT_VALUE) { return (Integer)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'intValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public String getStringValue() { if (getSetField() == _Fields.STRING_VALUE) { return (String)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'stringValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
@Override public int compareTo(PropValueUnion other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public boolean equals(PropValueUnion other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); list.add(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { list.add(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { list.add(value); } } return list.hashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
public String getStringValue() { if (getSetField() == _Fields.STRING_VALUE) { return (String)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'stringValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
@Override public int compareTo(PropValueUnion other) { int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField()); if (lastComparison == 0) { return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue()); } return lastComparison; }
public int getIntValue() { if (getSetField() == _Fields.INT_VALUE) { return (Integer)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'intValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public boolean getFlag() { if (getSetField() == _Fields.FLAG) { return (Boolean)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'flag' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public long getLongValue() { if (getSetField() == _Fields.LONG_VALUE) { return (Long)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'longValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public Map<String,String> getUnionMStringString() { if (getSetField() == _Fields.UNION_MSTRING_STRING) { return (Map<String,String>)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'unionMStringString' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public long getLongValue() { if (getSetField() == _Fields.LONG_VALUE) { return (Long)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'longValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public List<String> getLString() { if (getSetField() == _Fields.L_STRING) { return (List<String>)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'lString' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public long getLongValue() { if (getSetField() == _Fields.LONG_VALUE) { return (Long)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'longValue' because union is currently set to " + getFieldDesc(getSetField()).name); } }
public boolean getFlag() { if (getSetField() == _Fields.FLAG) { return (Boolean)getFieldValue(); } else { throw new RuntimeException("Cannot get field 'flag' because union is currently set to " + getFieldDesc(getSetField()).name); } }