public static PropValueUnion lString(List<String> value) { PropValueUnion x = new PropValueUnion(); x.setLString(value); return x; }
public boolean equals(Object other) { if (other instanceof PropValueUnion) { return equals((PropValueUnion)other); } else { return false; } }
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 static PropValueUnion intValue(int value) { PropValueUnion x = new PropValueUnion(); x.setIntValue(value); return x; }
public static PropValueUnion doubleValue(double value) { PropValueUnion x = new PropValueUnion(); x.setDoubleValue(value); return x; }
_val41 = new PropValueUnion(); _val41.read(iprot); _val37.put(_key40, _val41); case 8: // UNION_FIELD1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.unionField1 = new PropValueUnion(); struct.unionField1.read(iprot); struct.setUnionField1IsSet(true); } else { case 9: // UNION_FIELD2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.unionField2 = new PropValueUnion(); struct.unionField2.read(iprot); struct.setUnionField2IsSet(true); } else { case 10: // UNION_FIELD3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.unionField3 = new PropValueUnion(); struct.unionField3.read(iprot); struct.setUnionField3IsSet(true); } else {
public static PropValueUnion flag(boolean value) { PropValueUnion x = new PropValueUnion(); x.setFlag(value); return x; }
public static PropValueUnion stringValue(String value) { PropValueUnion x = new PropValueUnion(); x.setStringValue(value); return x; }
public boolean equals(PropValueUnion other) { return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue()); }
public static PropValueUnion longValue(long value) { PropValueUnion x = new PropValueUnion(); x.setLongValue(value); return x; }
public static PropValueUnion unionMStringString(Map<String,String> value) { PropValueUnion x = new PropValueUnion(); x.setUnionMStringString(value); return x; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public PropValueUnion deepCopy() { return new PropValueUnion(this); }
_val80 = new PropValueUnion(); _val80.read(iprot); _val76.put(_key79, _val80); struct.unionField1 = new PropValueUnion(); struct.unionField1.read(iprot); struct.setUnionField1IsSet(true); struct.unionField2 = new PropValueUnion(); struct.unionField2.read(iprot); struct.setUnionField2IsSet(true); struct.unionField3 = new PropValueUnion(); struct.unionField3.read(iprot); struct.setUnionField3IsSet(true);
public static PropValueUnion intValue(int value) { PropValueUnion x = new PropValueUnion(); x.setIntValue(value); return x; }
public static PropValueUnion doubleValue(double value) { PropValueUnion x = new PropValueUnion(); x.setDoubleValue(value); return x; }
public static PropValueUnion flag(boolean value) { PropValueUnion x = new PropValueUnion(); x.setFlag(value); return x; }
public static PropValueUnion stringValue(String value) { PropValueUnion x = new PropValueUnion(); x.setStringValue(value); return x; }
@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 static PropValueUnion longValue(long value) { PropValueUnion x = new PropValueUnion(); x.setLongValue(value); return x; }