/** * Returns true if field corresponding to fieldID is set (has been assigned a * value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case HOST_NAME: return isSetHostName(); case PORT: return isSetPort(); case IP_ADDRESS: return isSetIpAddress(); case SERVER_TYPE: return isSetServerType(); } throw new IllegalStateException(); }
if (!struct.isSetPort()) { throw new org.apache.thrift.protocol.TProtocolException( "Required field 'port' was not found in serialized data! Struct: "