public void write(org.apache.thrift.protocol.TProtocol oprot, IntString struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(MYINT_FIELD_DESC);
      oprot.writeI32(struct.myint);
      oprot.writeFieldEnd();
      if (struct.myString != null) {
        oprot.writeFieldBegin(MY_STRING_FIELD_DESC);
        oprot.writeString(struct.myString);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(UNDERSCORE_INT_FIELD_DESC);
      oprot.writeI32(struct.underscore_int);
      oprot.writeFieldEnd();
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java